Example #1
0
        public void AddCommissionByGroupDetail(MCommissionProfileDetail vp)
        {
            CTable    o   = GetDbObject();
            ArrayList arr = o.GetChildArray("COMMISSION_DETAIL_ITEM");

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

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

            vp.Seq = internalSeq;
            internalSeq++;

            vp.ExtFlag = "A";
        }
Example #2
0
        public void InitCommisionByItemDetails()
        {
            CTable    o   = GetDbObject();
            ArrayList arr = o.GetChildArray("COMMISSION_DETAIL_ITEM");

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

            foreach (CTable t in arr)
            {
                MCommissionProfileDetail v = new MCommissionProfileDetail(t);
                commisionByItemDetails.Add(v);

                v.Seq = internalSeq;
                internalSeq++;
                v.ExtFlag = "I";
            }
        }
Example #3
0
        public void InitCommisionByGroupDetails()
        {
            //commisionByGroupDetails.Clear();

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

            if (arr == null)
            {
                return;
            }

            foreach (CTable t in arr)
            {
                MCommissionProfileDetail v = new MCommissionProfileDetail(t);
                commisionByGroupDetails.Add(v);

                v.Seq = internalSeq;
                internalSeq++;
                v.ExtFlag = "I";
            }
        }
Example #4
0
 public void RemoveCommissionByGroupDetail(MCommissionProfileDetail vp)
 {
     removeAssociateItems(vp, "COMMISSION_DETAIL_ITEM", "INTERNAL_SEQ", "COMMISSION_PDETL_ID");
     commisionByGroupDetails.Remove(vp);
 }