public void AddXferItem(MCashDocXferDetail vp) { CTable o = GetDbObject(); ArrayList arr = o.GetChildArray("CASH_XFER_ITEM"); if (arr == null) { arr = new ArrayList(); o.AddChildArray("CASH_XFER_ITEM", arr); } vp.ExtFlag = "A"; arr.Add(vp.GetDbObject()); xferItems.Add(vp); }
public void InitXferItems() { CTable o = GetDbObject(); ArrayList arr = o.GetChildArray("CASH_XFER_ITEM"); if (arr == null) { xferItems.Clear(); return; } xferItems.Clear(); foreach (CTable t in arr) { MCashDocXferDetail v = new MCashDocXferDetail(t); if (!v.ExtFlag.Equals("D")) { xferItems.Add(v); } } }