//----------------------------------------------------------------------------------------------------- public void Add_R4(X12_ID_115 LocFuncCode, X12_ID_309 LocQual, string Loc, string Name, string Cntry) { if (this.m315.G_R4 == null) { this.m315.G_R4 = new List<G_R4>(); } var R4 = new G_R4 { S_R4 = new S_R4 { D_115_1 = LocFuncCode, D_309_2 = LocQual, D_309_2Specified = true, D_310_3 = Loc, D_114_4 = Name, D_26_5 = Cntry } }; this.m315.G_R4.Add(R4); this.SegmentCount++; }
//----------------------------------------------------------------------------------------------------- public void Add_R4(X12_ID_115 LocFuncCode, X12_ID_309 LocQual, string Loc, string Name, string Cntry, List<S_DTM> dates) { if (m310.G_R4 == null) { m310.G_R4 = new List<G_R4>(); } var R4 = new G_R4 { S_R4 = new S_R4 { D_115_1 = LocFuncCode, D_309_2 = LocQual, D_309_2Specified = true, D_310_3 = Loc, D_114_4 = Name, D_26_5 = Cntry }, S_DTM = dates }; SegmentCount = SegmentCount + dates.Count; m310.G_R4.Add(R4); SegmentCount++; }