コード例 #1
0
ファイル: X12_4010_214.cs プロジェクト: mrmanicou/ediFabric
        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);
        }
コード例 #2
0
ファイル: X12_4010_214.cs プロジェクト: mrmanicou/ediFabric
        //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);
        }
コード例 #3
0
        public S_L7 Add_LX_L7_Tarrif_Ref(G_LX g_lx, int LineNo, string FreightCodeClass)
        {
            if (g_lx.S_L7 == null)
            {
                g_lx.S_L7 = new List <S_L7>();
            }
            this.SegmentCount++;
            S_L7 S_L7 = new S_L7();

            S_L7.D_213_1 = LineNo.ToString();
            S_L7.D_59_7  = FreightCodeClass; // "0E60";
            g_lx.S_L7.Add(S_L7);
            return(S_L7);
        }
コード例 #4
0
        public G_LX Add_LX_Invoice_Line(int AssignedNo)
        {
            if (this.m210.G_LX == null)
            {
                this.m210.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.m210.G_LX.Add(g_lx);
            return(g_lx);
        }
コード例 #5
0
        public S_L1 Add_LX_L1_Rate_Charges(G_LX g_lx, int LineNo, decimal FreightRate, string RateType, decimal Charge)
        {
            if (g_lx.S_L1 == null)
            {
                g_lx.S_L1 = new List <S_L1>();
            }
            this.SegmentCount++;
            S_L1 S_L1 = new S_L1();

            S_L1.D_213_1 = LineNo.ToString();
            S_L1.D_60_2  = ((int)(FreightRate * 100)).ToString();
            S_L1.D_122_3 = RateType;
            S_L1.D_58_4  = ((int)(Charge * 100)).ToString();
            g_lx.S_L1.Add(S_L1);
            return(S_L1);
        }
コード例 #6
0
        public S_L5 Add_LX_L5_Description(G_LX g_lx, int LineNo, string LadingDescription, string CommodityCode, string CommodityCodeType)
        {
            if (g_lx.S_L5 == null)
            {
                g_lx.S_L5 = new List <S_L5>();
            }
            this.SegmentCount++;
            S_L5 S_L5 = new S_L5();

            S_L5.D_213_1 = LineNo.ToString(); // "1";
            S_L5.D_79_2  = LadingDescription; // "PETROLEUM OILS,";
            S_L5.D_22_3  = CommodityCode;     // "15525002";
            S_L5.D_23_4  = CommodityCodeType; // "N";
            g_lx.S_L5.Add(S_L5);
            return(S_L5);
        }
コード例 #7
0
ファイル: X12_4010_214.cs プロジェクト: mrmanicou/ediFabric
        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);
        }
コード例 #8
0
        public S_L0 Add_LX_L0_Qty_Weight(G_LX g_lx, int LineNo, int Weight, string WeightType, int Qty, string QtyType, string WeightUnitCode)
        {
            if (g_lx.S_L0 == null)
            {
                g_lx.S_L0 = new List <S_L0>();
            }
            this.SegmentCount++;
            S_L0 S_L0 = new S_L0();

            S_L0.D_213_1  = LineNo.ToString();
            S_L0.D_81_4   = Weight.ToString();
            S_L0.D_187_5  = WeightType;     // G = Gross / N = Actual Net / B = Billed
            S_L0.D_80_8   = Qty.ToString(); ////Lading Quantity
            S_L0.D_211_9  = QtyType;        //"PLT";  // Lading Quantity CAS = Case CNT = Container CTN = Carton CUB = Cube PCS = Pieces PLT = Pallet
            S_L0.D_188_11 = WeightUnitCode; //"L";  //Weight Unit Code L = Pounds
            g_lx.S_L0.Add(S_L0);
            return(S_L0);
        }
コード例 #9
0
ファイル: X12_4010_210.cs プロジェクト: tronsoft/ediFabric
 public S_L7 Add_LX_L7_Tarrif_Ref(G_LX g_lx, int LineNo, string FreightCodeClass)
 {
     if (g_lx.S_L7 == null)
      {
          g_lx.S_L7 = new List<S_L7>();
      }
      this.SegmentCount++;
      S_L7 S_L7 = new S_L7();
      S_L7.D_213_1 = LineNo.ToString();
      S_L7.D_59_7 = FreightCodeClass; // "0E60";
      g_lx.S_L7.Add(S_L7);
      return S_L7;
 }
コード例 #10
0
ファイル: X12_4010_210.cs プロジェクト: tronsoft/ediFabric
 public S_L5 Add_LX_L5_Description(G_LX g_lx, int LineNo, string LadingDescription, string CommodityCode, string CommodityCodeType)
 {
     if (g_lx.S_L5 == null)
      {
          g_lx.S_L5 = new List<S_L5>();
      }
      this.SegmentCount++;
      S_L5 S_L5 = new S_L5();
      S_L5.D_213_1 = LineNo.ToString(); // "1";
      S_L5.D_79_2 = LadingDescription;// "PETROLEUM OILS,";
      S_L5.D_22_3 = CommodityCode;// "15525002";
      S_L5.D_23_4 = CommodityCodeType; // "N";
      g_lx.S_L5.Add(S_L5);
      return S_L5;
 }
コード例 #11
0
ファイル: X12_4010_210.cs プロジェクト: tronsoft/ediFabric
 public S_L1 Add_LX_L1_Rate_Charges(G_LX g_lx, int LineNo, decimal FreightRate, string RateType, decimal Charge)
 {
     if (g_lx.S_L1 == null)
      {
          g_lx.S_L1 = new List<S_L1>();
      }
      this.SegmentCount++;
      S_L1 S_L1 = new S_L1();
      S_L1.D_213_1 = LineNo.ToString();
      S_L1.D_60_2 = ((int)(FreightRate * 100)).ToString();
      S_L1.D_122_3 = RateType;
      S_L1.D_58_4 = ((int)(Charge * 100)).ToString();
      g_lx.S_L1.Add(S_L1);
      return S_L1;
 }
コード例 #12
0
ファイル: X12_4010_210.cs プロジェクト: tronsoft/ediFabric
 public S_L0 Add_LX_L0_Qty_Weight(G_LX g_lx, int LineNo, int Weight, string WeightType, int Qty, string QtyType, string WeightUnitCode)
 {
     if (g_lx.S_L0 == null)
      {
          g_lx.S_L0 = new List<S_L0>();
      }
      this.SegmentCount++;
      S_L0 S_L0 = new S_L0();
      S_L0.D_213_1 = LineNo.ToString();
      S_L0.D_81_4 = Weight.ToString();
      S_L0.D_187_5 = WeightType;// G = Gross / N = Actual Net / B = Billed
      S_L0.D_80_8 = Qty.ToString(); ////Lading Quantity
      S_L0.D_211_9 = QtyType;  //"PLT";  // Lading Quantity CAS = Case CNT = Container CTN = Carton CUB = Cube PCS = Pieces PLT = Pallet
      S_L0.D_188_11 = WeightUnitCode; //"L";  //Weight Unit Code L = Pounds
      g_lx.S_L0.Add(S_L0);
      return S_L0;
 }
コード例 #13
0
ファイル: X12_4010_210.cs プロジェクト: tronsoft/ediFabric
        public G_LX Add_LX_Invoice_Line(int AssignedNo)
        {
            if (this.m210.G_LX == null)
             {
                 this.m210.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.m210.G_LX.Add(g_lx);
             return g_lx;
        }