Codebasis als Dateien ins Arbeitsrepo statt als Gitlink

QuellCode/CentronERP war nur als Gitlink (Submodul-Referenz auf 79c1142)
getrackt, ohne .gitmodules und ohne erreichbares Remote. Der
Untersuchungsgegenstand der Versuchsreihe war damit nicht reproduzierbar
gesichert: Ein Klon haette ein leeres Verzeichnis erhalten, und die Belege
der 3.287 Anforderungen waeren nicht ueberpruefbar gewesen.

Umstellung:
- Historie nach c:\DEV\CentronERP_git_snapshot_79c1142 ausgelagert
  (vollstaendig lesbar, enthaelt 79c1142 und Vorgaenger 89ccfd6)
- Gitlink aus dem Index entfernt
- Dateiinhalt aufgenommen: 24.557 Dateien, rund 333 MB

Die verschachtelte .gitignore der Codebasis gilt weiter, Build-Artefakte
bleiben ausgeschlossen. Details in Versuche/Versuch_01/_Codebasis-Nachweis.md
This commit is contained in:
Christoph Schwörer
2026-08-26 07:43:51 +02:00
parent 18edae75b6
commit f045b99a25
24664 changed files with 5846716 additions and 1 deletions
@@ -0,0 +1,107 @@
{
Data: [
{
Description: 'Office 2021',
I3D: 1,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 24,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 1,
RememberDays: 30,
State: 0
},
{
Description: 'HP Care Pack',
I3D: 2,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 12,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 1,
RememberDays: 30,
State: 0
},
{
Description: 'Care Pack 1 Jahr',
I3D: 3,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 12,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 2,
RememberDays: 10,
State: 1
},
{
Description: 'Antivurs 12 Monate',
I3D: 4,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 12,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 3,
RememberDays: 30,
State: 1
},
{
Description: 'Antivirus 24 Monate',
I3D: 5,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 24,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 3,
RememberDays: 30,
State: 1
},
{
Description: 'Care Pack 2 Jahre',
I3D: 6,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 24,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 2,
RememberDays: 14,
State: 1
},
{
Description: 'Antivirus Light Pack',
I3D: 7,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 6,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 3,
RememberDays: 7,
State: 1
},
{
Description: 'Software Pack 1',
I3D: 8,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 2,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 5,
RememberDays: 5,
State: 1
},
{
Description: 'Antivirus',
I3D: 9,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 36,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 3,
RememberDays: 30,
State: 1
}
],
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,107 @@
{
Data: [
{
Description: '',
I3D: 1,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 0,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 1,
RememberDays: 0,
State: 0
},
{
Description: 'HP Care Pack',
I3D: 2,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 12,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 1,
RememberDays: 30,
State: 0
},
{
Description: 'Care Pack 1 Jahr',
I3D: 3,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 12,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 2,
RememberDays: 10,
State: 1
},
{
Description: 'Antivurs 12 Monate',
I3D: 4,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 12,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 3,
RememberDays: 30,
State: 1
},
{
Description: 'Antivirus 24 Monate',
I3D: 5,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 24,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 3,
RememberDays: 30,
State: 1
},
{
Description: 'Care Pack 2 Jahre',
I3D: 6,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 24,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 2,
RememberDays: 14,
State: 1
},
{
Description: 'Antivirus Light Pack',
I3D: 7,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 6,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 3,
RememberDays: 7,
State: 1
},
{
Description: 'Software Pack 1',
I3D: 8,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 2,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 5,
RememberDays: 5,
State: 1
},
{
Description: 'Antivirus',
I3D: 9,
LifetimeEndChangesTaxRate: null,
LifetimeMonths: 36,
OfferTemplateI3D: null,
ProductFamilyGroupCaption: null,
ProductFamilyGroupI3D: 3,
RememberDays: 30,
State: 1
}
],
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,43 @@
{
Data: [
{
Caption: 'Microsoft',
I3D: 1,
LifetimeMonths: 24,
RememberDays: 30,
Status: 0
},
{
Caption: 'HP Care Pack',
I3D: 2,
LifetimeMonths: 12,
RememberDays: 10,
Status: 1
},
{
Caption: 'Antivirus',
I3D: 3,
LifetimeMonths: 12,
RememberDays: 14,
Status: 1
},
{
Caption: 'Carepacks',
I3D: 4,
LifetimeMonths: 0,
RememberDays: 0,
Status: 1
},
{
Caption: 'Produktfamilie 2',
I3D: 5,
LifetimeMonths: 0,
RememberDays: 0,
Status: 1
}
],
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,43 @@
{
Data: [
{
Caption: '',
I3D: 1,
LifetimeMonths: 0,
RememberDays: 0,
Status: 0
},
{
Caption: 'HP Care Pack',
I3D: 2,
LifetimeMonths: 12,
RememberDays: 10,
Status: 1
},
{
Caption: 'Antivirus',
I3D: 3,
LifetimeMonths: 12,
RememberDays: 14,
Status: 1
},
{
Caption: 'Carepacks',
I3D: 4,
LifetimeMonths: 0,
RememberDays: 0,
Status: 1
},
{
Caption: 'Produktfamilie 2',
I3D: 5,
LifetimeMonths: 0,
RememberDays: 0,
Status: 1
}
],
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,468 @@
{
Data: [
{
AccountAddressContactI3D: 2,
AccountI3D: 1,
AccountName: 'c-entron software gmbh',
Adviser1: 'ABO',
Adviser2: 'MAFI',
Adviser3: 'NP',
Adviser4: 'SM',
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: '456',
BarcodeI3D: 155,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: 'support@c-entron.de',
EndDate: DateTime,
I3D: 1,
InvoiceDate: DateTime,
InvoiceI3D: 210,
InvoiceItemI3D: 1142,
InvoiceNumber: 40140,
IsDeactivated: true,
IsFromDataImport: true,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1129.02,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 1142,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1129.02
},
{
AccountAddressContactI3D: null,
AccountI3D: 2,
AccountName: 'Barkunde',
Adviser1: null,
Adviser2: null,
Adviser3: null,
Adviser4: null,
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: 'fsdafdsfasdds',
BarcodeI3D: 83,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: '',
EndDate: DateTime,
I3D: 2,
InvoiceDate: DateTime,
InvoiceI3D: 42,
InvoiceItemI3D: 198,
InvoiceNumber: 20012,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1241.92,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 198,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1241.92
},
{
AccountAddressContactI3D: null,
AccountI3D: 2,
AccountName: 'Barkunde',
Adviser1: null,
Adviser2: null,
Adviser3: null,
Adviser4: null,
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: 'adsfasf',
BarcodeI3D: 85,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: '',
EndDate: DateTime,
I3D: 3,
InvoiceDate: DateTime,
InvoiceI3D: 44,
InvoiceItemI3D: 200,
InvoiceNumber: 20014,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1260.50,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 200,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1260.50
},
{
AccountAddressContactI3D: null,
AccountI3D: 2,
AccountName: 'Barkunde',
Adviser1: null,
Adviser2: null,
Adviser3: null,
Adviser4: null,
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: 'aasdfsad',
BarcodeI3D: 86,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: '',
EndDate: DateTime,
I3D: 4,
InvoiceDate: DateTime,
InvoiceI3D: 45,
InvoiceItemI3D: 201,
InvoiceNumber: 20015,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1344.54,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 201,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1344.54
},
{
AccountAddressContactI3D: 22,
AccountI3D: 8,
AccountName: 'MF Consulting',
Adviser1: 'MAFI',
Adviser2: 'MAFI',
Adviser3: 'MAFI',
Adviser4: 'MAFI',
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: '789',
BarcodeI3D: 156,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: '',
EndDate: DateTime,
I3D: 5,
InvoiceDate: DateTime,
InvoiceI3D: 102,
InvoiceItemI3D: 484,
InvoiceNumber: 20024,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1241.92,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 484,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1241.92
},
{
AccountAddressContactI3D: 20,
AccountI3D: 8,
AccountName: 'MF Consulting',
Adviser1: 'MAFI',
Adviser2: 'MAFI',
Adviser3: 'MAFI',
Adviser4: 'MAFI',
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: 'weter',
BarcodeI3D: 153,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: '',
EndDate: DateTime,
I3D: 6,
InvoiceDate: DateTime,
InvoiceI3D: 69,
InvoiceItemI3D: 315,
InvoiceNumber: 40045,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1241.92,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 315,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1241.92
},
{
AccountAddressContactI3D: 20,
AccountI3D: 8,
AccountName: 'MF Consulting',
Adviser1: 'MAFI',
Adviser2: 'MAFI',
Adviser3: 'MAFI',
Adviser4: 'MAFI',
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: '123',
BarcodeI3D: 154,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: '',
EndDate: DateTime,
I3D: 7,
InvoiceDate: DateTime,
InvoiceI3D: 95,
InvoiceItemI3D: 450,
InvoiceNumber: 40064,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1241.92,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 450,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1241.92
},
{
AccountAddressContactI3D: 23,
AccountI3D: 9,
AccountName: 'NP-Consulting',
Adviser1: 'MAFI',
Adviser2: 'MAFI',
Adviser3: 'MAFI',
Adviser4: 'MAFI',
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: '100122109',
BarcodeI3D: 205,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: 'info@centron.de',
EndDate: DateTime,
I3D: 8,
InvoiceDate: DateTime,
InvoiceI3D: 147,
InvoiceItemI3D: 709,
InvoiceNumber: 40100,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1241.92,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 709,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1241.92
},
{
AccountAddressContactI3D: 8,
AccountI3D: 4,
AccountName: 'Herzog Martin',
Adviser1: 'MAHE',
Adviser2: 'MAHE',
Adviser3: null,
Adviser4: null,
ArticleCode: '417446421',
ArticleI3D: 21,
Barcode: 'uiiu778',
BarcodeI3D: 61,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'HP ML370T05 PEY 2330 4MB cache 2GB RAM P400 Server\r\nPedestrial Server',
DeviceName: null,
DeviceType: null,
Email: 'Vertrieb@celos.de',
EndDate: DateTime,
I3D: 9,
InvoiceDate: DateTime,
InvoiceI3D: 30,
InvoiceItemI3D: 152,
InvoiceNumber: 40023,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: '417446-421',
Model: null,
OfferI3D: null,
Price: 2639.40,
ProductFamilyI3D: 5,
Quantity: 1.00,
ShortName: null,
SourceI3D: 152,
SourceType: 0,
StartDate: DateTime,
SumPrice: 2639.40
},
{
AccountAddressContactI3D: 8,
AccountI3D: 4,
AccountName: 'Herzog Martin',
Adviser1: 'MAHE',
Adviser2: 'MAHE',
Adviser3: 'MAFI',
Adviser4: 'HM',
ArticleCode: '417446421',
ArticleI3D: 21,
Barcode: '200309004',
BarcodeI3D: 165,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'HP ML370T05 PEY 2330 4MB cache 2GB RAM P400 Server\r\nPedestrial Server',
DeviceName: null,
DeviceType: null,
Email: 'Vertrieb@celos.de',
EndDate: DateTime,
I3D: 10,
InvoiceDate: DateTime,
InvoiceI3D: 255,
InvoiceItemI3D: 1710,
InvoiceNumber: 40179,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: '417446-421',
Model: null,
OfferI3D: null,
Price: 2639.40,
ProductFamilyI3D: 5,
Quantity: 1.00,
ShortName: null,
SourceI3D: 1710,
SourceType: 0,
StartDate: DateTime,
SumPrice: 2639.40
}
],
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,468 @@
{
Data: [
{
AccountAddressContactI3D: 2,
AccountI3D: 1,
AccountName: 'c-entron software gmbh',
Adviser1: 'ABO',
Adviser2: 'MAFI',
Adviser3: 'NP',
Adviser4: 'SM',
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: '456',
BarcodeI3D: 155,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: 'support@c-entron.de',
EndDate: DateTime,
I3D: 1,
InvoiceDate: DateTime,
InvoiceI3D: 210,
InvoiceItemI3D: 1142,
InvoiceNumber: 40140,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1129.02,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 1142,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1129.02
},
{
AccountAddressContactI3D: null,
AccountI3D: 2,
AccountName: 'Barkunde',
Adviser1: null,
Adviser2: null,
Adviser3: null,
Adviser4: null,
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: 'fsdafdsfasdds',
BarcodeI3D: 83,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: '',
EndDate: DateTime,
I3D: 2,
InvoiceDate: DateTime,
InvoiceI3D: 42,
InvoiceItemI3D: 198,
InvoiceNumber: 20012,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1241.92,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 198,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1241.92
},
{
AccountAddressContactI3D: null,
AccountI3D: 2,
AccountName: 'Barkunde',
Adviser1: null,
Adviser2: null,
Adviser3: null,
Adviser4: null,
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: 'adsfasf',
BarcodeI3D: 85,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: '',
EndDate: DateTime,
I3D: 3,
InvoiceDate: DateTime,
InvoiceI3D: 44,
InvoiceItemI3D: 200,
InvoiceNumber: 20014,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1260.50,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 200,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1260.50
},
{
AccountAddressContactI3D: null,
AccountI3D: 2,
AccountName: 'Barkunde',
Adviser1: null,
Adviser2: null,
Adviser3: null,
Adviser4: null,
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: 'aasdfsad',
BarcodeI3D: 86,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: '',
EndDate: DateTime,
I3D: 4,
InvoiceDate: DateTime,
InvoiceI3D: 45,
InvoiceItemI3D: 201,
InvoiceNumber: 20015,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1344.54,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 201,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1344.54
},
{
AccountAddressContactI3D: 22,
AccountI3D: 8,
AccountName: 'MF Consulting',
Adviser1: 'MAFI',
Adviser2: 'MAFI',
Adviser3: 'MAFI',
Adviser4: 'MAFI',
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: '789',
BarcodeI3D: 156,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: '',
EndDate: DateTime,
I3D: 5,
InvoiceDate: DateTime,
InvoiceI3D: 102,
InvoiceItemI3D: 484,
InvoiceNumber: 20024,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1241.92,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 484,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1241.92
},
{
AccountAddressContactI3D: 20,
AccountI3D: 8,
AccountName: 'MF Consulting',
Adviser1: 'MAFI',
Adviser2: 'MAFI',
Adviser3: 'MAFI',
Adviser4: 'MAFI',
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: 'weter',
BarcodeI3D: 153,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: '',
EndDate: DateTime,
I3D: 6,
InvoiceDate: DateTime,
InvoiceI3D: 69,
InvoiceItemI3D: 315,
InvoiceNumber: 40045,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1241.92,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 315,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1241.92
},
{
AccountAddressContactI3D: 20,
AccountI3D: 8,
AccountName: 'MF Consulting',
Adviser1: 'MAFI',
Adviser2: 'MAFI',
Adviser3: 'MAFI',
Adviser4: 'MAFI',
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: '123',
BarcodeI3D: 154,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: '',
EndDate: DateTime,
I3D: 7,
InvoiceDate: DateTime,
InvoiceI3D: 95,
InvoiceItemI3D: 450,
InvoiceNumber: 40064,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1241.92,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 450,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1241.92
},
{
AccountAddressContactI3D: 23,
AccountI3D: 9,
AccountName: 'NP-Consulting',
Adviser1: 'MAFI',
Adviser2: 'MAFI',
Adviser3: 'MAFI',
Adviser4: 'MAFI',
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: '100122109',
BarcodeI3D: 205,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: 'info@centron.de',
EndDate: DateTime,
I3D: 8,
InvoiceDate: DateTime,
InvoiceI3D: 147,
InvoiceItemI3D: 709,
InvoiceNumber: 40100,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1241.92,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 709,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1241.92
},
{
AccountAddressContactI3D: 8,
AccountI3D: 4,
AccountName: 'Herzog Martin',
Adviser1: 'MAHE',
Adviser2: 'MAHE',
Adviser3: null,
Adviser4: null,
ArticleCode: '417446421',
ArticleI3D: 21,
Barcode: 'uiiu778',
BarcodeI3D: 61,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'HP ML370T05 PEY 2330 4MB cache 2GB RAM P400 Server\r\nPedestrial Server',
DeviceName: null,
DeviceType: null,
Email: 'Vertrieb@celos.de',
EndDate: DateTime,
I3D: 9,
InvoiceDate: DateTime,
InvoiceI3D: 30,
InvoiceItemI3D: 152,
InvoiceNumber: 40023,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: '417446-421',
Model: null,
OfferI3D: null,
Price: 2639.40,
ProductFamilyI3D: 5,
Quantity: 1.00,
ShortName: null,
SourceI3D: 152,
SourceType: 0,
StartDate: DateTime,
SumPrice: 2639.40
},
{
AccountAddressContactI3D: 8,
AccountI3D: 4,
AccountName: 'Herzog Martin',
Adviser1: 'MAHE',
Adviser2: 'MAHE',
Adviser3: 'MAFI',
Adviser4: 'HM',
ArticleCode: '417446421',
ArticleI3D: 21,
Barcode: '200309004',
BarcodeI3D: 165,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'HP ML370T05 PEY 2330 4MB cache 2GB RAM P400 Server\r\nPedestrial Server',
DeviceName: null,
DeviceType: null,
Email: 'Vertrieb@celos.de',
EndDate: DateTime,
I3D: 10,
InvoiceDate: DateTime,
InvoiceI3D: 255,
InvoiceItemI3D: 1710,
InvoiceNumber: 40179,
IsDeactivated: false,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: '417446-421',
Model: null,
OfferI3D: null,
Price: 2639.40,
ProductFamilyI3D: 5,
Quantity: 1.00,
ShortName: null,
SourceI3D: 1710,
SourceType: 0,
StartDate: DateTime,
SumPrice: 2639.40
}
],
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,10 @@
[
'40140',
'20012',
'20014',
'20015',
'20024',
'40045',
'40064',
'40100'
]
@@ -0,0 +1,147 @@
using Centron.BusinessLogic;
using Centron.BusinessLogic.EmployeeArea;
using Centron.BusinessLogic.WebServices.Monitoring.NAble.Asset;
using Centron.BusinessLogic.WebServices.Warehousing.ArticleManagement;
using Centron.Data.Entities.Administration.Logins;
using Centron.Interfaces.BL;
using Centron.Tests.EndToEnd.Infrastructure;
using CentronSoftware.Centron.WebServices.Entities.Warehousing.ArticleManagement;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.Tests.PLM
{
public class PlmTest : EndToEndTest
{
public PlmTest(ITestOutputHelper testOutputHelper)
: base(testOutputHelper)
{
}
public override void Execute()
{
var productFamilyGroupsBefore = this.GetProductFamilyGroups("GetProductFamilyGroups_Before");
this.SaveProductFamilyGroup(productFamilyGroupsBefore.FirstOrDefault());
this.GetProductFamilyGroups("GetProductFamilyGroups_After");
var productFamilies = this.GetProductFamilies("GetProductFamilies_Before");
this.SaveProductFamily(productFamilies.FirstOrDefault());
this.GetProductFamilies("GetProductFamilies_After");
foreach (var item in productFamilies)
this.ImportReceiptLicenses(item.I3D);
var productLifecycleInfosIvoice = this.GetProductLifecycleInformations("GetProductLifecycleInformations_Before_Invoice", ProductLifecycleInformationSource.Invoice);
this.UpdateProductLifecycleInfo(productLifecycleInfosIvoice.First(), "Invoice");
this.ProductLifecycleInformationsDataImport(productLifecycleInfosIvoice.First(), "DataImport");
this.GetProductLifecycleInformations("GetProductLifecycleInformations_After_Invoice", ProductLifecycleInformationSource.Invoice);
}
private List<ProductFamilyGroupDTO> GetProductFamilyGroups(string testName)
{
using (var session = new BLSession())
{
var result = session.GetBL<ProductFamilyWebServiceBL>().GetAllProductFamilyGroups();
this.Verifier.Verify(testName, result);
return (List<ProductFamilyGroupDTO>)result.Data;
}
}
private void SaveProductFamilyGroup(ProductFamilyGroupDTO productFamilyGroup)
{
productFamilyGroup.LifetimeMonths = 24;
productFamilyGroup.Caption = "Microsoft";
productFamilyGroup.RememberDays = 30;
using (var session = new BLSession())
{
var result = session.GetBL<ProductFamilyWebServiceBL>().SaveAllProductFamilyGroups(new List<ProductFamilyGroupDTO>() { productFamilyGroup });
this.Verifier.Verify("SaveProductFamilyGroup", result);
}
}
private List<ProductFamilyDTO> GetProductFamilies(string testName)
{
using (var session = new BLSession())
{
var result = session.GetBL<ProductFamilyWebServiceBL>().GetAllProductFamilies();
this.Verifier.Verify(testName, result);
return (List<ProductFamilyDTO>)result.Data;
}
}
private void SaveProductFamily(ProductFamilyDTO productFamily)
{
productFamily.LifetimeMonths = 24;
productFamily.Description = "Office 2021";
productFamily.RememberDays = 30;
using (var session = new BLSession())
{
var result = session.GetBL<ProductFamilyWebServiceBL>().SaveAllProductFamilies(new List<ProductFamilyDTO>() { productFamily });
this.Verifier.Verify("SaveProductFamily", result);
}
}
private void ImportReceiptLicenses(int productFamilyI3D)
{
using (var session = new BLSession())
{
var result = session.GetBL<ProductFamilyWebServiceBL>().ImportProductLifecycleInformations(productFamilyI3D, ProductLifecycleInformationSource.Invoice, this.GetLoggedInUser().User).ThrowIfError();
this.Verifier.Verify($"ImportReceiptLicenses_{productFamilyI3D}", result.ToList());
}
}
private List<ProductLifecycleInformationDTO> GetProductLifecycleInformations(string testName, ProductLifecycleInformationSource source)
{
using (var session = new BLSession())
{
var result = session.GetBL<ProductFamilyWebServiceBL>().GetProductLifecycleInformations(new GetProductLifecycleInformationsFilter() { Source = (int)source }, this.GetLoggedInUser());
this.Verifier.Verify(testName, result);
return (List<ProductLifecycleInformationDTO>)result.Data;
}
}
private void UpdateProductLifecycleInfo(ProductLifecycleInformationDTO productLifecycleInfo, string name)
{
productLifecycleInfo.StartDate = DateTime.Now;
productLifecycleInfo.EndDate = DateTime.Now.AddMonths(12);
productLifecycleInfo.IsDeactivated = true;
using (var session = new BLSession())
{
var result = session.GetBL<ProductFamilyWebServiceBL>()
.SaveProductLifecycleInformations(new List<ProductLifecycleInformationDTO>() { productLifecycleInfo }, this.GetLoggedInUser().User);
this.Verifier.Verify($"UpdateProductLifecycleInfo_{name}", result);
}
}
private void ProductLifecycleInformationsDataImport(ProductLifecycleInformationDTO productLifecycleInfo, string name)
{
productLifecycleInfo.StartDate = DateTime.Now;
productLifecycleInfo.EndDate = DateTime.Now.AddMonths(12);
productLifecycleInfo.IsFromDataImport = true;
using var session = new BLSession();
var result = session.GetBL<ProductFamilyWebServiceBL>()
.SaveProductLifecycleInformations(new List<ProductLifecycleInformationDTO>() { productLifecycleInfo }, this.GetLoggedInUser().User);
this.Verifier.Verify($"UpdateProductLifecycleInfo_{name}", result);
}
}
}
@@ -0,0 +1,6 @@
{
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,6 @@
{
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,54 @@
{
Data: [
{
AccountAddressContactI3D: 2,
AccountI3D: 1,
AccountName: 'c-entron software gmbh',
Adviser1: 'ABO',
Adviser2: 'MAFI',
Adviser3: 'NP',
Adviser4: 'SM',
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: '456',
BarcodeI3D: 155,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: 'support@c-entron.de',
EndDate: DateTime,
I3D: 1,
InvoiceDate: DateTime,
InvoiceI3D: 210,
InvoiceItemI3D: 1142,
InvoiceNumber: 40140,
IsDeactivated: true,
IsFromDataImport: true,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1129.02,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 1142,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1129.02
}
],
Error: null,
Message: null,
MessageCode: null,
Status: 0
}
@@ -0,0 +1,54 @@
{
Data: [
{
AccountAddressContactI3D: 2,
AccountI3D: 1,
AccountName: 'c-entron software gmbh',
Adviser1: 'ABO',
Adviser2: 'MAFI',
Adviser3: 'NP',
Adviser4: 'SM',
ArticleCode: 'U6493PE',
ArticleI3D: 72,
Barcode: '456',
BarcodeI3D: 155,
ChangedAt: DateTime,
ChangedBy: 'ADMIN',
ChangedManually: false,
ChangedManuallyBy: '',
Comment: null,
CreatedAt: DateTime,
CustomerAdviser1: null,
CustomerAdviser2: null,
Description: 'Care Pack 12Plus Laserjet 9500 1 Jahr, VOS nächst. Arbeitstag',
DeviceName: null,
DeviceType: null,
Email: 'support@c-entron.de',
EndDate: DateTime,
I3D: 1,
InvoiceDate: DateTime,
InvoiceI3D: 210,
InvoiceItemI3D: 1142,
InvoiceNumber: 40140,
IsDeactivated: true,
IsFromDataImport: false,
IsOfferSent: false,
LicenseKey: null,
ManufacturerCode: 'U6493PE',
Model: null,
OfferI3D: null,
Price: 1129.02,
ProductFamilyI3D: 3,
Quantity: 1.00,
ShortName: null,
SourceI3D: 1142,
SourceType: 0,
StartDate: DateTime,
SumPrice: 1129.02
}
],
Error: null,
Message: null,
MessageCode: null,
Status: 0
}