Ejemplo n.º 1
0
        private List <string> SetAddComment(string text, int begin, int end, bool isMandatory)
        {
            List <string> FTXCommentList = new List <string>();

            if (!String.IsNullOrEmpty(text))
            {
                int    start         = 0;
                string truncatedText = string.Empty;
                text = text.Replace(KD.StringTools.Const.CrLf, String.Empty);

                for (int line = begin; line < end; line++)
                {
                    if (OrderConstants.CommentSceneCharactersPerLineMax + start > text.Length)
                    {
                        int len = (text.Length - (OrderConstants.CommentSceneCharactersPerLineMax + start));
                        truncatedText = text.Substring(start, (OrderConstants.CommentSceneCharactersPerLineMax + len));
                        truncatedText = this.IsMandatoryAddBracket(isMandatory, truncatedText);
                        c108          = new C108(truncatedText);

                        OrderWrite.segmentNumberBetweenUNHandUNT += 1;
                        FTXCommentList.Add(StructureEDI.FTX_H + Separator.DataGroup + this.E4451 + c108.Add() + Separator.DataGroup + this.E3453 + Separator.EndLine);
                        break;
                    }
                    truncatedText = text.Substring(start, OrderConstants.CommentSceneCharactersPerLineMax);
                    truncatedText = this.IsMandatoryAddBracket(isMandatory, truncatedText);
                    c108          = new C108(truncatedText);

                    OrderWrite.segmentNumberBetweenUNHandUNT += 1;
                    FTXCommentList.Add(StructureEDI.FTX_H + Separator.DataGroup + this.E4451 + c108.Add() + Separator.DataGroup + this.E3453 + Separator.EndLine);
                    start += OrderConstants.CommentSceneCharactersPerLineMax;
                }
            }

            return(FTXCommentList);
        }
Ejemplo n.º 2
0
        private string SetAdd(string information)
        {
            c108   = new C108(information);
            _e4451 = Eancom.FTX_H.E4451_ZZZ + Separator.DataGroup + Separator.DataGroup + Separator.DataGroup;

            OrderWrite.segmentNumberBetweenUNHandUNT += 1;
            return(StructureEDI.FTX_H + Separator.DataGroup + this.E4451 + c108.Add() + Separator.DataGroup + this.E3453 + Separator.EndLine);
        }
Ejemplo n.º 3
0
 public FTX_A(OrderInformations orderInformations)
 {
     c108    = new C108(orderInformations);
     utility = new UtilitySegment();
 }