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,75 @@
{
Attachment: 0,
ChangedBy: {
Availability: 0,
BranchI3D: 0,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'c-entron Administrator',
Email: null,
Employeenumber: null,
FirstName: 'c-entron',
FullName: 'Administrator, c-entron (ADMIN)',
I3D: 22,
IsActive: false,
LastAvailabilityChange: null,
LastName: 'Administrator',
LeavingDate: null,
Phone1: null,
RemainingDaysOfVacation: 0.0,
ShortSign: 'ADMIN',
State: null,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 0.0
},
CreatedBy: {
Availability: 0,
BranchI3D: 0,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'c-entron Administrator',
Email: null,
Employeenumber: null,
FirstName: 'c-entron',
FullName: 'Administrator, c-entron (ADMIN)',
I3D: 22,
IsActive: false,
LastAvailabilityChange: null,
LastName: 'Administrator',
LeavingDate: null,
Phone1: null,
RemainingDaysOfVacation: 0.0,
ShortSign: 'ADMIN',
State: null,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 0.0
},
DMSSyncDate: null,
DMSSyncEmployeeI3D: null,
DMSSyncType: null,
DMSSyncUniqueID: null,
DocumentReferenceObjectKind: 0,
DocumentSize: 3114,
FileData: 'CkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0LCBjb25zZWN0ZXR1ciBhZGlwaXNjaW5nIGVsaXQuIEV0aWFtIGVsaXQgZGlhbSwgdGVtcHVzIGVnZXQgbW9sZXN0aWUgZWdldCwgaWFjdWxpcyB1dCB2ZWxpdC4gVml2YW11cyBlZmZpY2l0dXIgYmxhbmRpdCBhcmN1IGVnZXQgdmFyaXVzLiBWaXZhbXVzIHNlZCBvcm5hcmUgbG9yZW0uIEludGVnZXIgY29uZGltZW50dW0gbGliZXJvIGluIHNhcGllbiBpbnRlcmR1bSwgdmVsIGZhdWNpYnVzIGZlbGlzIGJpYmVuZHVtLiBJbiBzaXQgYW1ldCBtZXR1cyBhdCBhcmN1IGRhcGlidXMgdWx0cmljZXMuIFBlbGxlbnRlc3F1ZSBldCBkaWN0dW0gZXguIFN1c3BlbmRpc3NlIGZyaW5naWxsYSBsb3JlbSBlZ2V0IHRlbXBvciBmYWNpbGlzaXMuIFF1aXNxdWUgdm9sdXRwYXQgdWxsYW1jb3JwZXIgcXVhbSB2ZWwgZmluaWJ1cy4gTW9yYmkgZW5pbSBsaWd1bGEsIGVmZmljaXR1ciB2ZWwgbGFjdXMgYWMsIHZlaGljdWxhIHZhcml1cyBqdXN0by4gTWF1cmlzIGVyb3MgZmVsaXMsIGZldWdpYXQgdXQgdmVzdGlidWx1bSBuZWMsIHRlbXB1cyBldSBmZWxpcy4gQWVuZWFuIGZhdWNpYnVzLCBhdWd1ZSBzZWQgcHJldGl1bSBjb25zZXF1YXQsIGRvbG9yIG5pc2wgZ3JhdmlkYSBtYXNzYSwgcXVpcyB2aXZlcnJhIGF1Z3VlIGxpYmVybyBub24gbGVvLiBWaXZhbXV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uaXNsIHV0IGRpYW0gbW9sbGlzIGludGVyZHVtLiBQcm9pbiBpZCBlbGl0IGRpY3R1bSBqdXN0byBlbGVtZW50dW0gbGFvcmVldC4K',
Flags: 0,
HelpdeskHistoryI3D: null,
I3D: 7423,
LockedBy: null,
LockedByWorkstation: null,
LockedFilePath: null,
MetaInformations: null,
Name: 'iamafile.txt',
ParentDirectoryI3D: 2,
PublicDelete: false,
ThumbnailI3D: null,
UploadedByContactI3D: null,
Version: 1
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,523 @@
{
AdditionalText2: null,
AddressI3D: 1,
AdressContactI3D: 23,
ArticleWorkItemCaption: null,
ArticleWorkItemI3D: null,
BilledCalculableNotPlannedTimesInSeconds: 0,
BranchI3D: null,
BranchName: null,
CalcuableTimersCount: 0,
CalculableNotPlannedTimesInSeconds: 0,
CalculableTimesInSeconds: 0,
CFlowStateI3D: null,
ChangedDate: DateTime,
ClosedDate: null,
ConnectionNumber: 0,
ContactEmail: 'ff@c-entron.de',
ContactName: 'Franziska Franzen',
ContactTelephoneNumber: '0731-140399-0',
ContactTitle: 'Frau',
ContractCaption: '',
ContractId: 0,
ContractName: null,
ContractNumber: null,
ContractTypeCaption: null,
CreatedBy: {
Availability: 0,
BranchI3D: 0,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Huber, Markus (HM)',
Email: 'markus.fischer@celos.de',
Employeenumber: 0,
FirstName: 'Markus',
FullName: 'Huber, Markus (HM)',
I3D: 23,
IsActive: true,
LastAvailabilityChange: null,
LastName: 'Huber',
LeavingDate: DateTime,
Phone1: '+ 49 731 12345',
RemainingDaysOfVacation: 0.0,
ShortSign: 'HM',
State: 1,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 0.0
},
CreatedDate: DateTime,
CreatedFrom: 0,
CreatedFromObjectI3D: 6,
CreatedFromObjectKind: 131,
CreatedFromTicketPatternI3D: null,
CustomerAdviser1: 'TH',
CustomerAdviser2: 'MAFI',
CustomerAdviser3: 'NP',
CustomerAdviser4: 'UT',
CustomerCity: 'Ulm',
CustomerHasSlaContract: false,
CustomerI3D: 10000,
CustomerName: 'c-entron software gmbh',
CustomerOrderProcessingContractState: null,
CustomerStreet: 'Liststrasse 1',
CustomerZip: '89079',
Description: '=== support@c-entron.de === 09.11.17 - 15:24\r\nToner schon mehrfach geschüttelt\r\n=================\r\n\r\n',
Documentation: null,
DueDate: DateTime,
EditEndDate: null,
EditorI3Ds: null,
Editors: [
{
Availability: 0,
BranchI3D: null,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Bauer, Elisabeth (EBA)',
Email: 'zeller@c-entron.de',
Employeenumber: null,
FirstName: 'Elisabeth',
FullName: 'Bauer, Elisabeth (EBA)',
I3D: 35,
IsActive: false,
LastAvailabilityChange: null,
LastName: 'Bauer',
LeavingDate: null,
Phone1: null,
RemainingDaysOfVacation: 0.0,
ShortSign: 'EBA',
State: null,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 0.0
},
{
Availability: 0,
BranchI3D: null,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Lehnert, Volker (VL)',
Email: 'lehnert@c-entron.de',
Employeenumber: null,
FirstName: 'Volker',
FullName: 'Lehnert, Volker (VL)',
I3D: 44,
IsActive: false,
LastAvailabilityChange: null,
LastName: 'Lehnert',
LeavingDate: null,
Phone1: null,
RemainingDaysOfVacation: 0.0,
ShortSign: 'VL',
State: null,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 0.0
}
],
EditorsSingleLine: null,
EditStartDate: null,
EscalationLevel: 0,
FreeText1: null,
HelpdeskMarked: false,
HelpdeskPriorityCaption: 'niedrig (72 Stunden)',
HelpdeskPriorityI3D: 3,
HelpdeskStatusCaption: 'offen',
HelpdeskStatusI3D: 1,
HelpdeskType: {
Color: null,
Description: null,
I3D: 2,
IsDeactivated: null,
Name: 'Installation',
Number: 2,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null
},
HelpdeskTypeCaption: 'Installation',
HelpdeskTypeI3D: 2,
HistoryCount: 1,
I3D: 10491,
InternalNote: null,
IsCalculable: false,
IsLinkedWithDocBee: false,
IsOnlyInternalVisible: false,
IsRMA: false,
IsTicketRefused: false,
LastAction: null,
LastCommentDate: null,
LastEmailDate: null,
LockUser: {
Availability: 0,
BranchI3D: 0,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Huber, Markus (HM)',
Email: 'markus.fischer@celos.de',
Employeenumber: null,
FirstName: 'Markus',
FullName: 'Huber, Markus (HM)',
I3D: 23,
IsActive: true,
LastAvailabilityChange: null,
LastName: 'Huber',
LeavingDate: DateTime,
Phone1: '+ 49 731 12345',
RemainingDaysOfVacation: 0.0,
ShortSign: 'HM',
State: 1,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 0.0
},
MainCategory: {
Description: null,
I3D: 28,
IsDeactivated: null,
IsPrivate: null,
Name: null,
Number: null,
ParentI3D: null,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: [
{
Description: null,
I3D: 29,
IsDeactivated: true,
IsPrivate: null,
Name: 'Monitor',
Number: 1,
ParentI3D: 28,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: [
{
Description: null,
I3D: 31,
IsDeactivated: true,
IsPrivate: null,
Name: 'CRT',
Number: 1,
ParentI3D: 29,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
{
Description: null,
I3D: 39,
IsDeactivated: true,
IsPrivate: null,
Name: 'TFT',
Number: 2,
ParentI3D: 29,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
{
Description: null,
I3D: 40,
IsDeactivated: true,
IsPrivate: null,
Name: 'TV LCD/Plasma',
Number: 3,
ParentI3D: 29,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
}
]
},
{
Description: null,
I3D: 30,
IsDeactivated: true,
IsPrivate: null,
Name: 'Drucker',
Number: 2,
ParentI3D: 28,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: [
{
Description: null,
I3D: 32,
IsDeactivated: true,
IsPrivate: null,
Name: 'HP',
Number: 1,
ParentI3D: 30,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
{
Description: null,
I3D: 33,
IsDeactivated: true,
IsPrivate: null,
Name: 'Kyocera',
Number: 2,
ParentI3D: 30,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
{
Description: null,
I3D: 41,
IsDeactivated: true,
IsPrivate: null,
Name: 'Lexmark',
Number: 3,
ParentI3D: 30,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
{
Description: null,
I3D: 42,
IsDeactivated: true,
IsPrivate: null,
Name: 'Oki',
Number: 4,
ParentI3D: 30,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
{
Description: null,
I3D: 43,
IsDeactivated: true,
IsPrivate: null,
Name: 'Canon',
Number: 5,
ParentI3D: 30,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
{
Description: null,
I3D: 44,
IsDeactivated: true,
IsPrivate: null,
Name: 'Epson',
Number: 6,
ParentI3D: 30,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
}
]
},
{
Description: null,
I3D: 37,
IsDeactivated: true,
IsPrivate: null,
Name: null,
Number: null,
ParentI3D: 28,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
{
Description: null,
I3D: 38,
IsDeactivated: true,
IsPrivate: null,
Name: 'USB Zusätze',
Number: 4,
ParentI3D: 28,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
}
]
},
MainCategoryCaption: null,
MainCategoryI3D: 28,
Matchcode: null,
NotBilledCalculableNotPlannedTimesInSeconds: 0,
NotCalculableNotPlannedTimesInSeconds: 0,
NotCalculableTimesInSeconds: 0,
Number: 12505,
ParentHelpdeskI3D: null,
PlannedDurationInHours: null,
PlannedTimesInSeconds: 0,
ProjectHelpdeskI3D: null,
ProjectNumber: null,
ResponsiblePerson: {
Availability: 0,
BranchI3D: 0,
DefaultStorageI3D: null,
Dispatcher: false,
DisplayText: 'Huber, Markus (HM)',
Email: 'markus.fischer@celos.de',
Employeenumber: 0,
FirstName: 'Markus',
FullName: 'Huber, Markus (HM)',
I3D: 23,
IsActive: true,
LastAvailabilityChange: null,
LastName: 'Huber',
LeavingDate: DateTime,
Phone1: '+ 49 731 12345',
RemainingDaysOfVacation: 0.0,
ShortSign: 'HM',
State: 1,
SupportLevel: null,
Template1: false,
Template2: false,
Template3: false,
Template4: false,
VacationEntitlement: 0.0
},
RMANumber: null,
ShortDescription: 'Drucker schmiert',
SubCategory1: {
Description: null,
I3D: 30,
IsDeactivated: true,
IsPrivate: null,
Name: 'Drucker',
Number: 2,
ParentI3D: 28,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: [
{
Description: null,
I3D: 32,
IsDeactivated: true,
IsPrivate: null,
Name: 'HP',
Number: 1,
ParentI3D: 30,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
{
Description: null,
I3D: 33,
IsDeactivated: true,
IsPrivate: null,
Name: 'Kyocera',
Number: 2,
ParentI3D: 30,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
{
Description: null,
I3D: 41,
IsDeactivated: true,
IsPrivate: null,
Name: 'Lexmark',
Number: 3,
ParentI3D: 30,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
{
Description: null,
I3D: 42,
IsDeactivated: true,
IsPrivate: null,
Name: 'Oki',
Number: 4,
ParentI3D: 30,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
{
Description: null,
I3D: 43,
IsDeactivated: true,
IsPrivate: null,
Name: 'Canon',
Number: 5,
ParentI3D: 30,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
{
Description: null,
I3D: 44,
IsDeactivated: true,
IsPrivate: null,
Name: 'Epson',
Number: 6,
ParentI3D: 30,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
}
]
},
SubCategory1Caption: null,
SubCategory1I3D: 30,
SubCategory2: {
Description: null,
I3D: 33,
IsDeactivated: true,
IsPrivate: null,
Name: 'Kyocera',
Number: 2,
ParentI3D: 30,
ServiceBoardWebColor: null,
ServiceBoardWebIcon: null,
SkillAssignments: [],
SubCategories: []
},
SubCategory2Caption: null,
SubCategory2I3D: 33,
TicketTags: [],
TimersCount: 0,
TotalTimer: 1,
Version: null
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,672 @@
{
AdditionalText: '',
AddressI3D: 1,
BranchI3D: null,
BranchOrigin: 0,
CampaignI3D: null,
ChangedAt: DateTime,
ChangedByI3D: 22,
ChangedThroughApplication: 0,
City: 'Ulm',
CollectiveAccount: null,
ConcurrencyControlGuid: Guid,
ContactName: 'Franzen',
ContactPersonI3D: 23,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CountryI3D: 1,
CreatedAt: DateTime,
CreatedByI3D: 22,
CurrencyFactor: 1.0,
CurrencyFactorIsFixed: false,
CurrencyI3D: 1,
CurrencyString: '€',
CustomerI3D: 10000,
CustomUpdateArticlePricesAndTexts: false,
Date: DateTime,
DeliveryAddress: null,
DeliveryAddressAddressI3D: null,
DeliveryAddressContactPersonI3D: null,
DeliveryAddressCustomerI3D: null,
DeliveryAddressInformation: null,
DeliveryConditionI3D: 21,
DeliveryConditionText: 'Die Lieferung erfolgt zur Lieferanschrift frei Haus.',
DeliveryDate: null,
DirectoryI3D: 637,
DownPaymentForOrderI3D: null,
EditorI3D: 22,
Email: 'info@c-entron.de',
EsrAmount: null,
EsrCodelineAmount: null,
EsrReferenceNumber: null,
ExclusiveOfVAT: false,
ExternalInvoiceDate: null,
ExternalInvoiceNumber: null,
Fax: '0731-140399-399',
HasPostOfficeBox: false,
I3D: 51,
Information: '',
InvoiceAddress: null,
InvoiceAddressAddressI3D: null,
InvoiceAddressContactPersonI3D: null,
InvoiceAddressCustomerI3D: null,
InvoiceAddressInformation: null,
IsCashAsset: false,
IsFixed: false,
IsPartialDeliveryPossible: false,
Items: [
{
AddAdditionalInformations: [],
ArticleCode: null,
ArticleI3D: null,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: null,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: '',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 207,
Indent: 0,
InternalPosition: 0,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: 0.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 51,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: null,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'Folgende Positionen wurden aus Lieferschein 30022 vom EinDatum eingefügt:',
VATI3D: null,
VATRate: 0.00,
Visible: 1,
WarehouseI3D: null,
WEEE: null
},
{
AddAdditionalInformations: [],
ArticleCode: 'SERHM',
ArticleI3D: 5,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 125.0,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: DateTime,
DifferentBalanceDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: '',
Expanded: null,
FontColor: -16777208,
FontName: '',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 208,
Indent: 0,
InternalPosition: 1,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: '',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 125.0,
OriginKind: 2,
OriginReceiptI3D: 24,
OriginReceiptItemI3D: 111,
PreparationDate: DateTime,
ProjectOfferRichText: null,
PurchaseBasePrice: 125.0,
PurchaseInformations: null,
PurchaseOrderNumber: '',
QuantityComplete: 8.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: '',
ReceiptI3D: 51,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: 4400,
RichText: null,
RMAItemI3D: 0,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'Servicetechnikerstunden Herr Huber\r\nPos: 1, Beginn: EinDatum 10:38:12, Ende: EinDatum 12:38:12, Gesamt: 8\r\nWas wurde beim Kunden gemacht',
VATI3D: 4,
VATRate: 19.00,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
},
{
AddAdditionalInformations: [],
ArticleCode: 'SERHM-GA',
ArticleI3D: 7,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 0.0,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: DateTime,
DifferentBalanceDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: '',
Expanded: null,
FontColor: -16777208,
FontName: '',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 209,
Indent: 0,
InternalPosition: 2,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: '',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 0.0,
OriginKind: 2,
OriginReceiptI3D: 24,
OriginReceiptItemI3D: 112,
PreparationDate: DateTime,
ProjectOfferRichText: null,
PurchaseBasePrice: 0.0,
PurchaseInformations: null,
PurchaseOrderNumber: '',
QuantityComplete: 2.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: '',
ReceiptI3D: 51,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: 4400,
RichText: null,
RMAItemI3D: 0,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'Servicetechnikerstunden Herr Huber -Garantie-\r\nPos: 2, Beginn: EinDatum 12:39:00, Ende: EinDatum 14:39:00, Gesamt: 2\r\nServicearbeitem',
VATI3D: 4,
VATRate: 19.00,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
},
{
AddAdditionalInformations: [],
ArticleCode: null,
ArticleI3D: null,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: null,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: '',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 210,
Indent: 0,
InternalPosition: 3,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: 0.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 51,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: null,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'Ende der Positionen aus Lieferschein 30022.',
VATI3D: null,
VATRate: 0.00,
Visible: 1,
WarehouseI3D: null,
WEEE: null
},
{
AddAdditionalInformations: [],
ArticleCode: null,
ArticleI3D: null,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: null,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: '',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 211,
Indent: 0,
InternalPosition: 4,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: 0.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 51,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: null,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'Folgende Positionen wurden aus Lieferschein 30021 vom EinDatum eingefügt:',
VATI3D: null,
VATRate: 0.00,
Visible: 1,
WarehouseI3D: null,
WEEE: null
},
{
AddAdditionalInformations: [],
ArticleCode: null,
ArticleI3D: null,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: null,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: '',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 212,
Indent: 0,
InternalPosition: 5,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: 0.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 51,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: null,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'Folgende Zeiten stammen aus Helpdesk Request 12041',
VATI3D: null,
VATRate: 0.00,
Visible: 1,
WarehouseI3D: null,
WEEE: null
},
{
AddAdditionalInformations: [],
ArticleCode: 'SERMAHE-KU',
ArticleI3D: 12,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 0.0,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: '',
Expanded: null,
FontColor: -16777208,
FontName: '',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [
49
],
I3D: 213,
Indent: 0,
InternalPosition: 6,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: '',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 0.0,
OriginKind: 2,
OriginReceiptI3D: 23,
OriginReceiptItemI3D: 109,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 0.0,
PurchaseInformations: null,
PurchaseOrderNumber: '',
QuantityComplete: 0.1600000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: '',
ReceiptI3D: 51,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: 4400,
RichText: null,
RMAItemI3D: 0,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'Consulting / Beratung durch Herr Herzog -Kulanz-\r\n(EinDatum 10:07 - 10:17)\r\nText von Rechnung und Lieferschein',
VATI3D: 4,
VATRate: 19.00,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
},
{
AddAdditionalInformations: [],
ArticleCode: 'SERMAHE',
ArticleI3D: 11,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: 125.0,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: '',
Expanded: null,
FontColor: -16777208,
FontName: '',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [
50
],
I3D: 214,
Indent: 0,
InternalPosition: 7,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 1,
LicenseDate: null,
ManufacturerCode: '',
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: 125.0,
OriginKind: 2,
OriginReceiptI3D: 23,
OriginReceiptItemI3D: 110,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: 125.0,
PurchaseInformations: null,
PurchaseOrderNumber: '',
QuantityComplete: 2.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: '',
ReceiptI3D: 51,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: 4400,
RichText: null,
RMAItemI3D: 0,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'Consulting / Beratung durch Herr Herzog\r\n(EinDatum 10:19 - 12:19)\r\nWas habe ich gemacht',
VATI3D: 4,
VATRate: 19.00,
Visible: 1,
WarehouseI3D: -1,
WEEE: ''
},
{
AddAdditionalInformations: [],
ArticleCode: null,
ArticleI3D: null,
ArticlePositionKind: 0,
AttachedData: {},
BalanceID: null,
Barcodes: [],
BasePrice: null,
ChangeStock: false,
ContractI3D: null,
CostCenterI3D: null,
CostObjectI3D: null,
CustomerCostCenter: null,
DeliveryDate: null,
DifferentBalanceDate: null,
Discount: 0.000000000000,
DisplayPositionNumber: null,
EANCode: null,
Expanded: null,
FontColor: -16777208,
FontName: '',
FontSize: 9,
FontStyle: 0,
GroupID: 0,
HelpdeskTimerI3Ds: [],
I3D: 215,
Indent: 0,
InternalPosition: 8,
IsBillingPartList: false,
IsReverseCharge: false,
Kind: 2,
LicenseDate: null,
ManufacturerCode: null,
MasterDataListSerialNumberI3D: null,
OrderDisplayPositionNumber: null,
OriginalPurchasePrice: null,
OriginKind: null,
OriginReceiptI3D: null,
OriginReceiptItemI3D: null,
PreparationDate: null,
ProjectOfferRichText: null,
PurchaseBasePrice: null,
PurchaseInformations: null,
PurchaseOrderNumber: null,
QuantityComplete: 0.0000000,
QuantityProcessed: 0.0000000,
ReasonForCustomPurchasePrice: null,
ReceiptI3D: 51,
ReceiptItemServiceArticleClassificationI3D: null,
RevenueAccount: null,
RichText: null,
RMAItemI3D: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
SpecialAgreementI3D: null,
Text: 'Ende der Positionen aus Lieferschein 30021.',
VATI3D: null,
VATRate: 0.00,
Visible: 1,
WarehouseI3D: null,
WEEE: null
}
],
LicenseeAddress: null,
LicenseeAddressAddressI3D: null,
LicenseeAddressContactPersonI3D: null,
LicenseeAddressCustomerI3D: null,
LicenseeAddressInformation: null,
MandatI3D: null,
MandatorBankNumber: null,
Number: 40033,
OfficeStaffI3D: 27,
PaidFC: 1487.5,
PaymentConditionI3D: 5,
PaymentConditionText: 'Die Rechnung ist fällig bis zum EinDatum rein netto ohne Abzug und Skonto.\r\nEs gelten unsere AGB sowie erweiterter Eigentumsvorbehalt.',
PaymentDueDate: DateTime,
Phone: '0731-140399-0',
PostOfficeBox: '',
PreparationDate: null,
ProjectNumber: '',
Provision: [],
PurchaseOrderNumber: '',
ReceiptKind: 4,
ReceiptReceiver: null,
ReceiptReceiverDelivery: null,
ReceiptReceiverInvoice: null,
ReceiptReceiverLicense: null,
ReceiptUserStateI3D: null,
Receiver: 'Celos Software GmbH\r\nFrau Franzen\r\nListstraße 1\r\n\r\nD - 89079 Ulm',
ReminderDate: null,
SalesRepresentativeI3D: 27,
SchemaName: null,
ServicePeriodFrom: null,
ServicePeriodTo: null,
ShowInformation: false,
State: 2,
Street: 'Liststraße 1',
TrackingNumber: '',
TrackingNumberURL: null,
UsedAlternativeDeliveryAddress: false,
UsedAlternativeInvoiceAddress: false,
VariableDateField: null,
Version: 1,
Zip: '89079'
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,115 @@
using Centron.BusinessLogic;
using Centron.BusinessLogic.WebServices.Administration.FileManagement;
using Centron.BusinessLogic.WebServices.Sales.Receipts;
using Centron.BusinessLogic.WebServices.Sales.Support;
using Centron.Data.WebServices.Administration.FileManagement;
using Centron.Interfaces.BL;
using Centron.Tests.EndToEnd.Infrastructure;
using CentronSoftware.Centron.WebServices.Connections.Serializer;
using System;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Xunit.Abstractions;
namespace Centron.Tests.EndToEnd.Tests.Serialization
{
public class SerializationTests : EndToEndTest
{
private int _documentI3D;
public SerializationTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
{
this.Verifier.Settings.IgnoreProperties<DocumentDTO>(f => f.ChangedDate, f => f.ChangedVersion, f => f.CreatedDate, f => f.CreatedVersion);
}
public override void Execute()
{
this.PrepareDatabase();
// this should not have any polymorphism and is a simple test
using (var session = new BLSession())
{
var helpdesk = session.GetBL<HelpdeskWebServiceBL>()
.GetHelpdeskByI3D(10491, this.GetLoggedInUser())
.ThrowIfError();
this.Test(helpdesk, "Helpdesk", new CentronJsonSerializer()).Wait();
}
// here we're testing for the correct encoding for byte arrays
using(var session = new BLSession())
{
var document = session.GetBL<DocumentWebServiceBL>()
.GetDocument(this.GetLoggedInUser(), this._documentI3D)
.ThrowIfError();
// we need to manually reset these values, so they don't get serialized at all
document.ChangedDate = new DateTime(2020, 1, 1);
document.ChangedVersion = "1";
document.CreatedDate = new DateTime(2020, 1, 1);
document.CreatedVersion = "2";
this.Test(document, "Document", new CentronJsonSerializer()).Wait();
}
using (var session = new BLSession())
{
var receipt = session.GetBL<ReceiptWebServiceBL>()
.GetReceiptByI3D(51, Interfaces.CentronObjectKindNumeric.InvoiceClass, this.GetLoggedInUser())
.ThrowIfError();
this.Test(receipt, "Invoice", new CentronJsonSerializer()).Wait();
}
}
public void PrepareDatabase()
{
// there are no documents here, so we create one
using(var session = new BLSession())
{
var text = @"
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam elit diam, tempus eget molestie eget, iaculis ut velit. Vivamus efficitur blandit arcu eget varius. Vivamus sed ornare lorem. Integer condimentum libero in sapien interdum, vel faucibus felis bibendum. In sit amet metus at arcu dapibus ultrices. Pellentesque et dictum ex. Suspendisse fringilla lorem eget tempor facilisis. Quisque volutpat ullamcorper quam vel finibus. Morbi enim ligula, efficitur vel lacus ac, vehicula varius justo. Mauris eros felis, feugiat ut vestibulum nec, tempus eu felis. Aenean faucibus, augue sed pretium consequat, dolor nisl gravida massa, quis viverra augue libero non leo. Vivamus id porttitor lectus. Aliquam ut orci in est auctor tincidunt nec sed purus. Cras ex nisi, sollicitudin ac augue in, pulvinar aliquam enim.
Proin lacus eros, consequat id porttitor sit amet, congue vel ante. Nam id est quis urna dignissim mollis. Nam tempor nec dui ut ultricies. Proin mollis ornare faucibus. Sed at justo ipsum. Ut placerat orci bibendum, rhoncus est eget, varius nunc. Maecenas hendrerit metus libero, eget tempor eros consectetur at. Mauris finibus facilisis ultrices. Phasellus ut ligula efficitur, convallis orci eget, ornare est. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Aliquam porttitor ex non lectus cursus, sit amet cursus orci venenatis. Duis condimentum nisl quam, vel gravida nisi malesuada vitae.
Proin est massa, posuere suscipit semper at, ullamcorper in nunc. Integer ultricies fermentum lacus sit amet finibus. Praesent ultrices, nisl ut sagittis blandit, felis magna eleifend lorem, vitae egestas ligula odio in tortor. Nam vel consequat nunc, vitae porta ante. In ac lectus accumsan, pellentesque libero vehicula, rhoncus neque. Sed nec nunc ullamcorper purus dignissim varius. Aenean pretium augue nec porttitor finibus. Aliquam porttitor sit amet purus euismod gravida. Cras porta eu enim at dapibus. Donec semper ultrices magna eget mollis. Duis dolor urna, posuere ac justo vitae, pretium consectetur quam. Aliquam sit amet turpis elementum, accumsan massa sed, volutpat tellus.
Nulla gravida lacus a fringilla sollicitudin. In pharetra fringilla tortor nec dignissim. Phasellus non mauris consectetur dolor rutrum laoreet quis vitae risus. Ut volutpat tempor diam at molestie. Proin congue erat elementum, fringilla turpis sed, tincidunt massa. Sed ullamcorper est erat, ac auctor lorem aliquam et. Donec eget fringilla arcu. Donec egestas, est eu viverra elementum, justo felis tincidunt mauris, ut aliquam ligula sem ut lacus. Suspendisse tempor neque non ante viverra lacinia.
Quisque vestibulum lobortis dapibus. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean rhoncus lacus et est vestibulum placerat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Praesent at placerat tortor, in hendrerit augue. Sed egestas metus velit, mattis semper nulla finibus in. Vestibulum eget nisl ut diam mollis interdum. Proin id elit dictum justo elementum laoreet.
";
text = text.Replace("\r", "");
var document = session.GetBL<DocumentWebServiceBL>()
.AddDocumentToDirectory(this.GetLoggedInUser(),
2,// customer main directory
Encoding.UTF8.GetBytes(text),
"iamafile.txt");
this._documentI3D = document.I3D;
}
}
private async Task Test<T>(T instance, string name, ISerializer serializer)
{
this.Verifier.Verify(name, instance);
using var memestream = new MemoryStream();
await serializer.Serialize(typeof(T), instance, memestream, CancellationToken.None);
memestream.Position = 0;
using var streamReader = new StreamReader(memestream);
this.Verifier.Verify(name + "RawJson", streamReader.ReadToEnd());
memestream.Position = 0;
var copiedInstance = (T)await serializer.Deserialize(typeof(T), memestream, CancellationToken.None);
// we intenionally compare it to the one before
this.Verifier.Verify(name, copiedInstance);
}
}
}