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_Y3(string BookingNo, string SailDate, string EstArr, string CutOff, string LoadTime, X12_ID_375 SvcLvl, string CarrierSCAC = "WINA", string PointLoc = "", string PierName = "", X12_ID_91 ContMode = X12_ID_91.O, X12_ID_623 TimeCode = X12_ID_623.LT) { m301.S_Y3 = new S_Y3 { D_13_1 = BookingNo, D_140_2 = CarrierSCAC, D_373_3 = SailDate, D_373_4 = EstArr, D_154_5 = PointLoc, D_112_6 = PierName, D_373_7 = CutOff, D_337_8 = LoadTime.PadRight(6, '0'), D_91_9 = ContMode, D_91_9Specified = true, D_375_10 = SvcLvl, D_375_10Specified = true, D_623_11 = TimeCode, D_623_11Specified = true }; SegmentCount++; }