C#EdiFabric:额外的UNT消息预告片段

时间:2017-01-25 21:33:34

标签: c# edi

我正在导出X12 EDI 835,但是当我生成.txt文件时,会出现一个额外的段。它似乎是EDIFACT EDI UNT段,由于这是X12格式并且使用SE段来列出段计数,因此不应该出现。这是一个例子:

var ediInterchange = new X12Interchange(interchangeHeader); var groupHeader = CreateGs(); var ediGroup = new X12Group<M_835>(groupHeader); var m835 = Create835Message(); ediInterchange.AddItem(ediGroup); ediGroup.AddItem(m835); var defaultSeparators = Separators.DefaultX12(); var newSeparators = new Separators(defaultSeparators.Segment, ':', defaultSeparators.DataElement, defaultSeparators.RepetitionDataElement, null); var ediSegments = ediInterchange.GenerateEdi(newSeparators); var ediSegmentArray = ediSegments as string[] ?? ediSegments.ToArray(); var edi = ediSegmentArray.Aggregate("", (current, segment) => current + segment + Environment.NewLine); var errors = Validation(m835);

用于生成835的代码:

{{1}}

0 个答案:

没有答案