Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void Add_N4_Geographic(G_N1 g_n1, string City, string State, string Zip)
 {
     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;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
        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;
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        public G_N1 Add_N1_Name(string NameType, string Name)
        {
            if (this.m210.G_N1 == null)
            {
                this.m210.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 = NameType;
            if (Name.Length != 0)
            {
                G_N1.S_N1.D_93_2 = Name;
            }
            this.m210.G_N1.Add(G_N1);
            return(G_N1);
        }
Ejemplo n.º 7
0
 public void Add_N4_Geographic(G_N1 g_n1, string City, string State, string Zip)
 {
     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;
 }
Ejemplo n.º 8
0
        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);
        }
Ejemplo n.º 9
0
 public void Add_N3_Address(G_N1 g_n1, string Address1)
 {
     this.Add_N3_Address(g_n1, Address1, null);
 }
Ejemplo n.º 10
0
        public G_N1 Add_N1_Name(string NameType, string Name)
        {
            if (this.m210.G_N1 == null)
             {
                 this.m210.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 = NameType;
             if (Name.Length != 0)
                G_N1.S_N1.D_93_2 = Name;
             this.m210.G_N1.Add(G_N1);
             return G_N1;
        }
Ejemplo n.º 11
0
 public void Add_N3_Address(G_N1 g_n1, string Address1)
 {
     this.Add_N3_Address(g_n1, Address1, null);
 }