public void InitErrorItem() { CTable o = GetDbObject(); ArrayList arr = o.GetChildArray("ERROR_ITEM"); if (arr == null) { return; } errorItems.Clear(); foreach (CTable t in arr) { MError v = new MError(t); errorItems.Add(v); } }
public void InitErrorItem() { CTable o = GetDbObject(); ArrayList arr = o.GetChildArray("ERROR_ITEM"); if (arr == null) { return; } errorItems.Clear(); foreach (CTable t in arr) { t.SetFieldValue("TYPE_ERROR", "InventoryDoc"); MError v = new MError(t); errorItems.Add(v); } }
public void InitBranchPOSError() { details.Clear(); CTable o = GetDbObject(); if (o == null) { return; } ArrayList arr = o.GetChildArray("LOG_IMPORT_ERROR_ITEM"); if (arr == null) { arr = new ArrayList(); o.AddChildArray("LOG_IMPORT_ERROR_ITEM", arr); } foreach (CTable t in arr) { MError e = new MError(t); MLogImportError v = new MLogImportError(t); details.Add(v); if (!e.ErrorNormalizeDesc.Equals("")) { v.ErrorDesc = e.ErrorNormalizeDesc; } v.ExtFlag = "I"; v.Seq = internalSeq; internalSeq++; } }