예제 #1
0
        public System.Collections.Generic.SortedDictionary <string, ListtemplateColumn> ListtemplateColumnsSort(string ListName)
        {
            System.Collections.Generic.SortedDictionary <string, ListtemplateColumn> scol = new System.Collections.Generic.SortedDictionary <string, ListtemplateColumn>();
            listtemplate list = this.listtemplates.getListtemplate(ListName);

            if (list != null)
            {
                foreach (ListtemplateColumn col in list.ListtemplateColumns)
                {
                    scol.Add(col.Seqnr, col);
                }
            }
            return(scol);
        }
예제 #2
0
        private void init()
        {
            DataTable tbl = pvMetadata.MetaUtilities.OpenDataSet("ProPurList").Tables["row"];

            _listtemplates      = new Dictionary <int, listtemplate>();
            _listtemplates_name = new Dictionary <string, int>();
            foreach (DataRow row in tbl.Rows)
            {
                listtemplate val = new listtemplate(row);
                int          key = val.id;
                if (!_listtemplates_name.ContainsKey(val.SysName))
                {
                    _listtemplates.Add(key, val);
                    _listtemplates_name.Add(val.SysName, key);
                }
            }
        }