Esempio n. 1
0
        protected void removeAssociateItems(MBaseModel vp, String arrName, String seqField, String idField)
        {
            CTable    o   = GetDbObject();
            ArrayList arr = o.GetChildArray(arrName);

            if (arr == null)
            {
                return;
            }

            CTable obj = vp.GetDbObject();
            String seq = obj.GetFieldValue(seqField);

            foreach (CTable t in arr)
            {
                String q = t.GetFieldValue(seqField);
                if (q.Equals(seq))
                {
                    if (obj.GetFieldValue(idField).Equals(""))
                    {
                        arr.Remove(t);
                        break;
                    }
                    else
                    {
                        obj.SetFieldValue("EXT_FLAG", "D");
                    }
                }
            }
        }
Esempio n. 2
0
        public void InitScreenConfig()
        {
            sortingColumns.Clear();

            CTable o = GetDbObject();

            if (o == null)
            {
                return;
            }

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

            if (arr == null)
            {
                return;
            }

            foreach (CTable obj in arr)
            {
                MBaseModel v = new MBaseModel(obj);
                sortingColumns.Add(v);
            }
        }