コード例 #1
0
ファイル: X12_4010_214.cs プロジェクト: tronsoft/ediFabric
        public void Add_N4_Geographic(G_N1 g_n1, string City, string State, string Zip, string Country, string LocationQualifier, string LocationIdentifier)
        {
            this.SegmentCount++;
             g_n1.S_N4 = new S_N4();
             g_n1.S_N4.D_19_1 = City;
             g_n1.S_N4.D_156_2 = State;
             g_n1.S_N4.D_116_3 = Zip;

             g_n1.S_N4.D_26_4  = Country;
             g_n1.S_N4.D_309_5 = LocationQualifier;
             g_n1.S_N4.D_310_6 = LocationIdentifier;
        }
コード例 #2
0
ファイル: X12_4010_214.cs プロジェクト: tronsoft/ediFabric
        public G_N1 Add_N1_Name(string EntityIdCode, string Name, string IDCodeQualifier = "", string IDCode="")
        {
            if (this.m214.G_N1 == null)
             {
                 this.m214.G_N1 = new List<G_N1>();
             }
             this.SegmentCount++;
             G_N1 G_N1;

             G_N1 = new G_N1();
             G_N1.S_N1 = new S_N1();
             G_N1.S_N1.D_98_1 = EntityIdCode;
             if (Name.Length != 0)
                G_N1.S_N1.D_93_2 = Name;

             if (Name.Length != 0)
                 G_N1.S_N1.D_66_3 = IDCodeQualifier;
             if (Name.Length != 0)
                 G_N1.S_N1.D_67_4 = IDCode;

             this.m214.G_N1.Add(G_N1);
             return G_N1;
        }
コード例 #3
0
ファイル: X12_4010_214.cs プロジェクト: tronsoft/ediFabric
 public void Add_N3_Address(G_N1 g_n1, string Address1, string Address2 ="")
 {
     if (g_n1.S_N3 == null)
      {
          g_n1.S_N3 = new List<S_N3>();
      }
      this.SegmentCount++;
      S_N3 S_N3 = new S_N3();
      S_N3.D_166_1 = Address1;
      if (!string.IsNullOrWhiteSpace(Address2))
         S_N3.D_166_2 = Address2;
      g_n1.S_N3.Add(S_N3);
 }
コード例 #4
0
ファイル: X12_4010_214.cs プロジェクト: tronsoft/ediFabric
 public void Add_G62_Date(G_N1 g_n1, string DateType, string Date, string Time="", string TimeType="", string TimeCode="")
 {
     this.SegmentCount++;
      g_n1.S_G62  = new S_G62();
      g_n1.S_G62.D_432_1 = DateType;
      g_n1.S_G62.D_373_2 = Date; //CCYYMMDD
      g_n1.S_G62.D_176_3 = TimeType;
      g_n1.S_G62.D_337_4 = Time;
      g_n1.S_G62.D_623_5 = TimeCode;
 }