Exemplo n.º 1
0
        public void AddFinalDiscountItem(MPackageFinalDiscount vp)
        {
            CTable    o   = GetDbObject();
            ArrayList arr = o.GetChildArray("PACKAGE_FINAL_DISCOUNT_ITEM");

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

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

            vp.Seq          = internalSeq;
            vp.QuantityType = "1";
            internalSeq++;

            vp.ExtFlag = "A";
        }
Exemplo n.º 2
0
        public void InitPackageFinalDiscounts()
        {
            package_final_discounts.Clear();

            CTable    o   = GetDbObject();
            ArrayList arr = o.GetChildArray("PACKAGE_FINAL_DISCOUNT_ITEM");

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

            foreach (CTable t in arr)
            {
                MPackageFinalDiscount v = new MPackageFinalDiscount(t);
                package_final_discounts.Add(v);

                v.ExtFlag = "I";

                v.Seq = internalSeq;
                internalSeq++;
            }
        }
Exemplo n.º 3
0
 public void RemoveFinalDiscountItem(MPackageFinalDiscount vp)
 {
     removeAssociateItems(vp, "PACKAGE_FINAL_DISCOUNT_ITEM", "INTERNAL_SEQ", "PACKAGE_FNLDISC_ID");
     package_final_discounts.Remove(vp);
 }