public void Add_LX(string strCount,X12_ID_1650 shpStaCode, X12_ID_1651 shpReaCode, X12_ID_1652 shpAppStaCode, X12_ID_1651 shpAppReaCode, string strDate, string strTime, X12_ID_623 timeCode, string strCity, string strState, string strCountry) { if(this.m214.G_LX == null) { this.m214.G_LX = new List<G_LX>();} var LX = new G_LX { S_LX = new S_LX { D_554_1 = strCount, }, G_AT7 = new List<G_AT7> { new G_AT7 { S_AT7 = new S_AT7 { D_1650_1 = shpStaCode, D_1650_1Specified = true, D_1651_2 = shpReaCode, D_1651_2Specified = true, D_1652_3 = shpAppStaCode, D_1652_3Specified = true, D_1651_4 = shpAppReaCode, D_1651_4Specified = true, D_373_5 = strDate, D_337_6 = strTime, D_623_7 = timeCode, D_623_7Specified = true }, S_MS1 = new S_MS1 { D_19_1 = strCity, D_156_2 = strState, D_26_3 = strCountry } } }, S_L11_3 = new List<S_L11_3> { new S_L11_3 { D_127_1 = "1", D_128_2 = X12_ID_128.QN, D_128_2Specified = true } } }; switch (shpStaCode) { case X12_ID_1650.X3: case X12_ID_1650.AF: case X12_ID_1650.X1: case X12_ID_1650.D1: case X12_ID_1650.AG: case X12_ID_1650.OO: case X12_ID_1650.P1: case X12_ID_1650.X4: { LX.G_AT7[0].S_AT7.D_1652_3Specified = false; LX.G_AT7[0].S_AT7.D_1651_4Specified = false; } break; } this.m214.G_LX.Add(LX); this.SegmentCount = this.SegmentCount + 4; }
public void Add_AT8_Shipment_Info(G_LX g_lx, string WeightQualifier, string WeightUnitCode, decimal Weight, decimal LadingQty, string VolunmeQualifier, decimal Volume) { if (g_lx.S_AT8 == null) { g_lx.S_AT8 = new List<S_AT8>(); } this.SegmentCount++; S_AT8 s_at8 = new S_AT8(); s_at8.D_187_1 = WeightQualifier; s_at8.D_188_2 = WeightUnitCode; s_at8.D_81_3 = Weight.ToString(); s_at8.D_80_4 = LadingQty.ToString(); s_at8.D_184_6 = VolunmeQualifier; s_at8.D_183_7 = Volume.ToString(); g_lx.S_AT8.Add(s_at8); }
public G_LX Add_LX_Assigned_Number(int AssignedNo) { if (this.m214.G_LX == null) { this.m214.G_LX = new List<G_LX>(); } this.SegmentCount++; G_LX g_lx = new G_LX(); g_lx.S_LX = new S_LX(); g_lx.S_LX.D_554_1 = AssignedNo.ToString(); this.m214.G_LX.Add(g_lx); return g_lx; }
//public void Add_K1_Remarks(string Message) //{ // if (m214.S_K1 == null) // { // m214.S_K1 = new List<S_K1>(); // } // SegmentCount++; // S_K1 s_k1 = new S_K1(); // s_k1.D_61_1 = Message; // m214.S_K1.Add(s_k1); //} public void Add_LX_K1_Remarks(G_LX g_lx, string Message) { if (g_lx.S_K1_2 == null) { g_lx.S_K1_2 = new List<S_K1_2>(); } this.SegmentCount++; S_K1_2 s_k1_2 = new S_K1_2(); s_k1_2.D_61_1 = Message; g_lx.S_K1_2.Add(s_k1_2); }
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; }