Example #1
0
        public void AddBarcode()
        {
            CTable t = new CTable("ITEM_BARCODE");
            MInventoryBarcodeItem v = new MInventoryBarcodeItem(t);

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

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

            v.Seq = internalSeq;
            internalSeq++;

            arr.Add(t);
            barcodes.Add(v);

            v.ExtFlag = "A";
        }
Example #2
0
        public void InitSubItem()
        {
            barcodes.Clear();

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

            if (arr == null)
            {
                return;
            }

            foreach (CTable t in arr)
            {
                MInventoryBarcodeItem v = new MInventoryBarcodeItem(t);
                barcodes.Add(v);

                v.Seq = internalSeq;
                internalSeq++;

                v.ExtFlag = "I";
            }
        }
Example #3
0
 public void RemoveBarcodeItem(MInventoryBarcodeItem vp)
 {
     removeAssociateItems(vp, "BARCODE_ITEM", "INTERNAL_SEQ", "ITEM_BC_ID");
     barcodes.Remove(vp);
 }