コード例 #1
0
        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);
        }
コード例 #2
0
 public static void AddBGM(this EDIFACT.SegmentCollection doc)
 {
 }
コード例 #3
0
 public static void AddUNH(this EDIFACT.SegmentCollection doc, object obj)
 {
 }