Beispiel #1
0
        private CategorHelper()
        {
            CategorDictionary = new Dictionary <object, DataTable>();
            DataTable table = DictionaryHelper.GetTableByCode("dic_file_jd");

            foreach (DataRow row in table.Rows)
            {
                object    pCode  = row["dd_code"];
                DataTable _table = GetTableByCode(pCode);
                CategorDictionary.Add(row["dd_id"], _table);
            }
        }
Beispiel #2
0
 private void Frm_AddFile_Load(object sender, EventArgs e)
 {
     //阶段
     cbo_stage.DataSource    = DictionaryHelper.GetTableByCode("dic_file_jd");
     cbo_stage.DisplayMember = "dd_name";
     cbo_stage.ValueMember   = "dd_id";
     //类别
     LoadCategorByStage(cbo_stage.SelectedValue);
     //默认焦点
     cbo_stage.Focus();
     //编辑状态加载信息
     LoadFileInfo(fileId);
 }