示例#1
0
        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";
        }
示例#2
0
        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++;
            }
        }
示例#3
0
 public void RemoveBundleItem(MPackageBundle vp)
 {
     removeAssociateItems(vp, "PACKAGE_BUNDLE_ITEM", "INTERNAL_SEQ", "PACKAGE_BUNDLE_ID");
     package_bundles.Remove(vp);
 }