//PackageTrayByItems #region PackageTrayByItems public void InitTrayPriceItem() { tray_prices.Clear(); CTable o = GetDbObject(); ArrayList arr = o.GetChildArray("PACKAGE_TRAY_PRICE_ITEM"); if (arr == null) { return; } foreach (CTable t in arr) { MPackageTrayPriceDiscount v = new MPackageTrayPriceDiscount(t); tray_prices.Add(v); v.Seq = internalSeq; internalSeq++; v.ExtFlag = "I"; } }
public void AddTrayPriceItem(MPackageTrayPriceDiscount vp) { CTable o = GetDbObject(); ArrayList arr = o.GetChildArray("PACKAGE_TRAY_PRICE_ITEM"); if (arr == null) { arr = new ArrayList(); o.AddChildArray("PACKAGE_TRAY_PRICE_ITEM", arr); } arr.Add(vp.GetDbObject()); tray_prices.Add(vp); vp.Seq = internalSeq; internalSeq++; //Not use vp.SeqNo = "1"; vp.PricingType = "1"; vp.ExtFlag = "A"; }
public void RemoveTrayPriceItem(MPackageTrayPriceDiscount vp) { removeAssociateItems(vp, "PACKAGE_TRAY_PRICE_ITEM", "INTERNAL_SEQ", "PACKAGE_TRAY_PRICE_ID"); tray_prices.Remove(vp); }