private static void DateWindow(DataModel doc) { var output = new MyConcept("DateWindow"); output.Components.Add(new Variable("DateTime", "startDate", Variable.RELATION.variable)); output.Components.Add(new Variable("DateTime", "endDate", Variable.RELATION.variable)); doc.AddComponent(output); }
private static void Creation(DataModel doc) { var output = new MyConcept("Creation"); output.Components.Add(new Variable("Address", "address", Variable.RELATION.variable)); output.Components.Add(new Variable("DateTime", "date", Variable.RELATION.variable)); doc.AddComponent(output); }
private static void Cancellation(DataModel doc) { var output = new MyConcept("Cancellation"); output.Components.Add(new Variable("Entity", "cancelledBy", Variable.RELATION.reference)); output.Components.Add(new Variable("DateTime", "date", Variable.RELATION.variable)); output.Components.Add(new Variable("String", "reason", Variable.RELATION.variable)); doc.AddComponent(output); }
private static void Remark(DataModel doc) { var output = new MyConcept("Remark"); output.Components.Add(new Variable("String", "comments", Variable.RELATION.variable)); output.Components.Add(new Variable("Boolean", "isDamaged", Variable.RELATION.variable) { Optional = true }); doc.AddComponent(output); }
private static void Address(DataModel doc) { var output = new MyConcept("Address"); output.Components.Add(new Variable("String", "name", Variable.RELATION.variable)); output.Components.Add(new Variable("String", "street", Variable.RELATION.variable)); output.Components.Add(new Variable("String", "houseNumber", Variable.RELATION.variable)); output.Components.Add(new Variable("String", "city", Variable.RELATION.variable)); output.Components.Add(new Variable("String", "zipCode", Variable.RELATION.variable)); output.Components.Add(new Variable("String", "country", Variable.RELATION.variable)); output.Components.Add(new Variable("Double", "latitude", Variable.RELATION.variable)); output.Components.Add(new Variable("Double", "longitude", Variable.RELATION.variable)); doc.AddComponent(output); }
private static void Loading(DataModel doc) { var output = new MyConcept("Loading"); output.Components.Add(new Variable("Address", "address", Variable.RELATION.variable)); output.Components.Add(new Variable("DateWindow", "expectedWindow", Variable.RELATION.variable) { Optional = true }); output.Components.Add(new Variable("DateTime", "actualDate", Variable.RELATION.variable) { Optional = true }); doc.AddComponent(output); }
private static void Good(DataModel doc) { var output = new MyConcept("Good"); output.Components.Add(new Variable("Vehicle", "vehicle", Variable.RELATION.variable)); output.Components.Add(new Variable("Remark", "carrierLoadingRemark", Variable.RELATION.variable) { Optional = true }); output.Components.Add(new Variable("Remark", "compoundRemark", Variable.RELATION.variable) { Optional = true }); output.Components.Add(new Variable("Remark", "recipientRemark", Variable.RELATION.variable) { Optional = true }); output.Components.Add(new Variable("Remark", "carrierDeliveryRemark", Variable.RELATION.variable) { Optional = true }); output.Components.Add(new Variable("String", "description", Variable.RELATION.variable) { Optional = true }); output.Components.Add(new Variable("Double", "weight", Variable.RELATION.variable) { Optional = true }); output.Components.Add(new Variable("Address", "loadingAddress", Variable.RELATION.variable)); output.Components.Add(new Variable("Address", "deliveryAddress", Variable.RELATION.variable)); output.Components.Add(new Variable("DateWindow", "pickupWindow", Variable.RELATION.variable)); output.Components.Add(new Variable("DateWindow", "deliveryWindow", Variable.RELATION.variable)); output.Components.Add(new Variable("Cancellation", "cancellation", Variable.RELATION.variable) { Optional = true }); output.Components.Add(new Variable("CompoundOrg", "source", Variable.RELATION.reference)); output.Components.Add(new Variable("RecipientOrg", "recipient", Variable.RELATION.reference)); doc.AddComponent(output); }
private static void Signature(DataModel doc) { var output = new MyConcept("Signature"); output.Components.Add(new Variable("User", "certificate", Variable.RELATION.reference)); output.Components.Add(new Variable("Double", "latitude", Variable.RELATION.variable) { Optional = true }); output.Components.Add(new Variable("Double", "longitude", Variable.RELATION.variable) { Optional = true }); output.Components.Add(new Variable("String", "ip", Variable.RELATION.variable) { Optional = true }); output.Components.Add(new Variable("DateTime", "timestamp", Variable.RELATION.variable)); output.Components.Add(new Variable("Remark", "generalRemark", Variable.RELATION.variable) { Optional = true }); doc.AddComponent(output); }