public void AddBundleItem(MPackageBundle vp) { CTable o = GetDbObject(); ArrayList arr = o.GetChildArray("PACKAGE_BUNDLE_ITEM"); if (arr == null) { arr = new ArrayList(); o.AddChildArray("PACKAGE_BUNDLE_ITEM", arr); } arr.Add(vp.GetDbObject()); package_bundles.Add(vp); vp.Seq = internalSeq; vp.QuantityType = "1"; internalSeq++; vp.ExtFlag = "A"; }
public void InitPackageBundles() { package_bundles.Clear(); CTable o = GetDbObject(); ArrayList arr = o.GetChildArray("PACKAGE_BUNDLE_ITEM"); if (arr == null) { arr = new ArrayList(); o.AddChildArray("PACKAGE_BUNDLE_ITEM", arr); } foreach (CTable t in arr) { MPackageBundle v = new MPackageBundle(t); package_bundles.Add(v); v.ExtFlag = "I"; v.Seq = internalSeq; internalSeq++; } }
public void RemoveBundleItem(MPackageBundle vp) { removeAssociateItems(vp, "PACKAGE_BUNDLE_ITEM", "INTERNAL_SEQ", "PACKAGE_BUNDLE_ID"); package_bundles.Remove(vp); }