public SegmentCollection CreateInterchange() { SegmentCollection interchange = new SegmentCollection(); interchange.Add(ServiceStringAdvice ?? Helpers.Interchange.DefaultServiceStringAdvice); bool acknowledgementRequest = false; Segment unb = EDIFACT.Helpers.Interchange.GetUNB("UNOC", 3, SenderGLN, "14", RecipientGLN, "14", PreparationTime, InterchangeControlReference, null, null, null, acknowledgementRequest ? 1 : (Nullable <int>)null, null, null); interchange.Add(unb); foreach (var message in Messages) { interchange.AddSegments(message.CreateMessage()); } int InterchangeControlCount = 1; var sg = Helpers.Interchange.GetInterchangeFooter( InterchangeControlCount, this.InterchangeControlReference); interchange.AddSegments(sg); return(interchange); }
public static void AddBGM(this EDIFACT.SegmentCollection doc) { }
public static void AddUNH(this EDIFACT.SegmentCollection doc, object obj) { }