public G_AT7 Add_G_AT7(G_LX g_lx) { G_AT7 g_at7 = new G_AT7(); g_lx.G_AT7.Add(g_at7); return(g_at7); }
public void Add_MS1_ESR_Property_Locationo(G_AT7 g_at7, string City, string State, string Country) { this.SegmentCount++; S_MS1 s_ms1 = new S_MS1(); s_ms1.D_19_1 = City; s_ms1.D_156_2 = State; s_ms1.D_26_3 = Country; g_at7.S_MS1 = s_ms1; }
public void Add_Shipment_Status_Detail(G_AT7 g_at7, string ShipmentStatusCode, string ShipmentStatus, string AppointmentStatusCode, string AppointmentStatus, string Date, string Time, string TimeCode) { this.SegmentCount++; S_AT7 s_at7 = new S_AT7(); s_at7.D_1650_1 = ShipmentStatusCode; s_at7.D_1651_2 = ShipmentStatus; s_at7.D_1652_3 = AppointmentStatusCode; s_at7.D_1651_4 = AppointmentStatus; s_at7.D_373_5 = Date; s_at7.D_337_6 = Time; s_at7.D_623_7 = TimeCode; g_at7.S_AT7 = s_at7; }
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); }