Exemple #1
0
        public IEdiInContainer CreateChild(EdiSegmentCollection segs)
        {
            var child = new GroupContainer(segs);

            _groups.Add(child);
            return(child);
        }
 public DocContainer(EdiSegmentCollection segs, GroupContainer parent)
 {
     _elDelimiter = segs.ElementDelimiter;
     Segments = segs.SegmentList;
     var els = Segments.First().GetElements(_elDelimiter);
     DocType = els[1];
     ControlNumber = els[2].CastToInt();
     ParentGroup = parent;
 }
Exemple #3
0
        public DocContainer(EdiSegmentCollection segs, GroupContainer parent)
        {
            _elDelimiter = segs.ElementDelimiter;
            Segments     = segs.SegmentList;
            var els = Segments.First().GetElements(_elDelimiter);

            DocType       = els[1];
            ControlNumber = els[2].CastToInt();
            ParentGroup   = parent;
        }
 public IEdiInContainer CreateChild(EdiSegmentCollection segs)
 {
     var child = new GroupContainer(segs);
     _groups.Add(child);
     return child;
 }
 public IEnumerable<DocContainer> SplitByDocument(EdiSegmentCollection segments, GroupContainer parent)
 {
     var docs = split(segments, SegmentLabel.DocumentLabel, SegmentLabel.DocumentClose, parent).Select(c => (DocContainer)c);
     return docs;
 }
Exemple #6
0
        public IEnumerable <DocContainer> SplitByDocument(EdiSegmentCollection segments, GroupContainer parent)
        {
            var docs = split(segments, SegmentLabel.DocumentLabel, SegmentLabel.DocumentClose, parent).Select(c => (DocContainer)c);

            return(docs);
        }