public void InitItemsPrice() { package_itemPrice.Clear(); CTable o = GetDbObject(); ArrayList arr = o.GetChildArray("PACKAGE_ITEM_PRICE_ITEM"); if (arr == null) { return; } foreach (CTable t in arr) { MPackagePrice v = new MPackagePrice(t); package_itemPrice.Add(v); v.Seq = priceItemSeq; priceItemSeq++; v.ExtFlag = "I"; } }
public void AddPriceItem(MPackagePrice vp) { CTable o = GetDbObject(); ArrayList arr = o.GetChildArray("PACKAGE_ITEM_PRICE_ITEM"); if (arr == null) { arr = new ArrayList(); o.AddChildArray("PACKAGE_ITEM_PRICE_ITEM", arr); } arr.Add(vp.GetDbObject()); package_itemPrice.Add(vp); vp.Seq = priceItemSeq; priceItemSeq++; //Not use vp.SeqNo = "1"; vp.PricingType = "1"; vp.ExtFlag = "A"; }
public void RemovePriceItem(MPackagePrice vp) { removeAssociateItems(vp, "PACKAGE_ITEM_PRICE_ITEM", "INTERNAL_SEQ", "PACKAGE_ITM_PRICE_ID"); package_itemPrice.Remove(vp); }