Ejemplo n.º 1
0
        public void InitPackageDiscountFilters()
        {
            CTable    o   = GetDbObject();
            ArrayList arr = o.GetChildArray("PACKAGE_DISCOUNT_ITEM");

            if (arr == null)
            {
                arr = new ArrayList();
                o.AddChildArray("PACKAGE_DISCOUNT_ITEM", arr);
            }

            int cnt = 0;

            foreach (CTable t in arr)
            {
                MPackageDiscount v = new MPackageDiscount(t);
                package_discountFilter.Add(v);
                v.ExtFlag = "I";

                v.Seq = priceItemSeq;
                priceItemSeq++;

                cnt++;
            }
        }
Ejemplo n.º 2
0
        public void AddDiscountItem(MPackageDiscount vp)
        {
            CTable    o   = GetDbObject();
            ArrayList arr = o.GetChildArray("PACKAGE_DISCOUNT_ITEM");

            if (arr == null)
            {
                arr = new ArrayList();
                o.AddChildArray("PACKAGE_DISCOUNT_ITEM", arr);
            }

            arr.Add(vp.GetDbObject());
            package_discountFilter.Add(vp);

            vp.Seq = priceItemSeq;
            priceItemSeq++;

            vp.DiscountType = "1";
            vp.ExtFlag      = "A";
        }
Ejemplo n.º 3
0
 public void RemoveDiscountItem(MPackageDiscount vp)
 {
     removeAssociateItems(vp, "PACKAGE_DISCOUNT_ITEM", "INTERNAL_SEQ", "PACKAGE_DISCOUNT_ID");
     package_discountFilter.Remove(vp);
 }