コード例 #1
0
ファイル: INT.cs プロジェクト: tronsoft/ediFabric
 public MyGroup CreateGroup(int controlNo, string function, string sender, string receiver)
 {
     var mGrp = new MyGroup(controlNo, function, sender, receiver);
         _interchange.Groups.Add(mGrp.Group);
         _miea.GroupCount(_interchange.Groups.Count);
         return mGrp;
 }
コード例 #2
0
        public MyGroup CreateGroup(int controlNo, string function, string sender, string receiver)
        {
            var mGrp = new MyGroup(controlNo, function, sender, receiver);

            _interchange.Groups.Add(mGrp.Group);
            _miea.GroupCount(_interchange.Groups.Count);
            return(mGrp);
        }
コード例 #3
0
ファイル: EdiBuild.cs プロジェクト: mrmanicou/ediFabric
        public void Create214()
        {
            var mInterchange = new MyInterchange(1, "ZZ", "STDSP5AC", "ZZ", "GTNEXUS", false);

            MyGroup mGroup     = mInterchange.CreateGroup(263, "QM", "STDSP5AC", "STDCERTSH");
            var     ediMessage = new X12_4010_214(1, "STDSP5Z30001", "STDSP5Z30001", "ZZAC");

            ediMessage.Add_L11_Reference("UA007", "AF");
            ediMessage.Add_L11_Reference("Unidentified Airlines", "SCA");

            Definitions.X12_004010_214.G_N1 gN1A = ediMessage.Add_N1_Name("SH", "Shipper Name", "94", "CNZHSPC-TMPF");
            ediMessage.Add_N3_Address(gN1A, "Chengxin Middle Road", "Xinqian Town, Huangyan District");
            ediMessage.Add_N4_Geographic(gN1A, "Taizhou", "", "", "CN", "UN", "CNTIZ");
            ediMessage.Add_G62_Date(gN1A, "69", "20110812");

            Definitions.X12_004010_214.G_N1 gN1B = ediMessage.Add_N1_Name("OT", "Shanghai International Airport", "94", "SHA");
            ediMessage.Add_N4_Geographic(gN1B, "Shanghai", "", "", "CN", "IA", "SHA");

            Definitions.X12_004010_214.G_N1 gN1C = ediMessage.Add_N1_Name("DT", "DFW International Airport", "94", "DFW");
            ediMessage.Add_N4_Geographic(gN1C, "Dallas", "TX", "", "US", "IA", "DFW");

            Definitions.X12_004010_214.G_N1 gN1D = ediMessage.Add_N1_Name("CN", "Consignee Name", "94", "STDCN");
            ediMessage.Add_N3_Address(gN1D, "2560 W. Commerce Street");
            ediMessage.Add_N4_Geographic(gN1D, "Dallas", "TX", "", "US", "UN", "USDAL");
            ediMessage.Add_G62_Date(gN1D, "17", "20110815");

            ediMessage.Add_MS3_Interline_Info("UA", "O", "", "A");

            Definitions.X12_004010_214.G_LX gLx = ediMessage.Add_LX_Assigned_Number(1);

            G_AT7 gAt7 = ediMessage.Add_G_AT7(gLx);

            ediMessage.Add_Shipment_Status_Detail(gAt7, "AF", "NS", "", "", "20110812", "1100", "LT");
            ediMessage.Add_LX_K1_Remarks(gLx, "comments go here");
            ediMessage.Add_AT8_Shipment_Info(gLx, "G", "K", 100.105M, 106M, "X", 20.826M);
            ediMessage.Add_MS1_ESR_Property_Locationo(gAt7, "SHA", "0I", "CN");

            mGroup.AddMessage(ediMessage.m214);

            mInterchange.SaveXml("Test214.xml");
            mInterchange.SaveEdi("Test214.edi");
            mInterchange.SaveEdi("Test214.txt", Environment.NewLine);
        }