public void InitBranchPOSs()
        {
            details.Clear();

            CTable o = GetDbObject();

            if (o == null)
            {
                return;
            }

            ArrayList arr = o.GetChildArray("BRNCH_CONFIG_POS_ITEM");

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

            foreach (CTable t in arr)
            {
                MBranchConfigPosCenter v = new MBranchConfigPosCenter(t);
                details.Add(v);

                v.ExtFlag = "I";

                v.Seq = internalSeq;
                internalSeq++;
            }
        }
        public void AddBranchPOS()
        {
            CTable t = new CTable("");
            MBranchConfigPosCenter vp = new MBranchConfigPosCenter(t);

            CTable o = GetDbObject();

            if (o == null)
            {
                return;
            }

            ArrayList arr = o.GetChildArray("BRNCH_CONFIG_POS_ITEM");

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

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

            vp.Seq = internalSeq;
            internalSeq++;

            vp.ExtFlag = "A";
        }
 public void RemovePOSSeriesItem(MBranchConfigPosCenter vp)
 {
     removeAssociateItems(vp, "BRNCH_CONFIG_POS_ITEM", "INTERNAL_SEQ", "BRANCH_POS_ID");
     details.Remove(vp);
 }