示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }
示例#3
0
        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++;
            }
        }