public TransactionSetErrors(int seqNo, string code, string number, EdiSectionErrors list)
 {
     sequenceNo    = seqNo;
     mIdCode       = code;
     controlNumber = number;
     mTsErrorList  = list;
 }
Beispiel #2
0
        public static void AddFieldError(this InterchangeErrors errors, string segmentName, string fieldName, int errorCode, string errorDescription, int segmentNo,
                                         int positionInSegment, string fieldValue, long startIndex, long endIndex, EdiErrorType errorType)
        {
            if (errors == null)
            {
                throw new ArgumentNullException("errors");
            }

            int    positionInField = -1;
            int    repetitionCount = 0;
            string refDesignator   = "";

            if (errors == null)
            {
                throw new ArgumentNullException("errors");
            }

            FieldError fieldError = new FieldError(string.Format("{0}-{1}", segmentName, fieldName), positionInSegment, positionInField,
                                                   repetitionCount, errorCode, errorDescription, segmentNo,
                                                   fieldValue, refDesignator, startIndex, endIndex, errorType);

            EdiSectionErrors ediSectionErrors = GetEdiSectionErrors(errors, segmentName);

            ediSectionErrors.FieldErrorList.Add(fieldError);
        }
 public FunctionalGroupErrors(int seqNo, string idCode, string ctrlNumber)
 {
     sequenceNo           = seqNo;
     functionalIdCode     = idCode;
     controlNumber        = ctrlNumber;
     gsGeErrors           = new EdiSectionErrors();
     transactionSetErrors = new List <TransactionSetErrors>();
     countOfContainedTS   = countOfAcceptedTS = 0;
 }
Beispiel #4
0
        public static void AddGenericError(this InterchangeErrors errors, string segmentName, int errorCode, string errorDescription, int segmentNo,
                                           long startIndex, long endIndex)
        {
            if (errors == null)
            {
                throw new ArgumentNullException("errors");
            }

            GenericError genericError = new GenericError(errorCode, errorDescription, segmentNo, segmentName, startIndex, endIndex);

            EdiSectionErrors ediSectionErrors = GetEdiSectionErrors(errors, segmentName);

            ediSectionErrors.GenericErrorList.Add(genericError);
        }
Beispiel #5
0
        public static void AddSegmentError(this InterchangeErrors errors, string segmentName, int errorCode, string errorDescription,
                                           int segmentNumber, long startIndex, long endIndex, EdiErrorType errorType)
        {
            if (errors == null)
            {
                throw new ArgumentNullException("errors");
            }

            string       explicitLoopId = "";
            SegmentError segmentError   = new SegmentError(segmentName, segmentNumber, errorCode, errorDescription,
                                                           explicitLoopId, startIndex, endIndex, errorType);

            EdiSectionErrors ediSectionErrors = GetEdiSectionErrors(errors, segmentName);

            ediSectionErrors.SegmentErrorList.Add(segmentError);
        }
        IList <FunctionalGroupErrors> functionalGroupErrors; //of FunctionalGroupErrorInfo

        public InterchangeErrors()
        {
            isaIeaErrors          = new EdiSectionErrors();
            functionalGroupErrors = new List <FunctionalGroupErrors>();
        }