示例#1
0
        public void loadData(string key = "")
        {
            try
            {
                SysCompanyBLL companybll = new SysCompanyBLL();
                var           rows       = companybll.loadData(key);

                if (rows == null || rows.Count < 1)
                {
                    untCommon.InfoMsg("没有任何数据!");
                    return;
                }
                dataGridView.DataSource = rows;
            }
            catch (Exception ex)
            {
                untCommon.ErrorMsg("公司管理加载数据异常:" + ex.Message);
            }
        }
示例#2
0
 private void loadDroplistData()
 {
     try
     {
         SysCompanyBLL companybll = new SysCompanyBLL();
         var           rows       = companybll.loadData("");
         C_Code.DataSource    = rows;
         C_Code.ValueMember   = "C_Code";
         C_Code.DisplayMember = "C_Name";
         if (string.IsNullOrEmpty(company))
         {
             C_Code.SelectedIndex = 0;
         }
         else
         {
             C_Code.SelectedValue = company;
         }
     }
     catch (Exception ex)
     {
         untCommon.ErrorMsg("部门管理加载数据异常:" + ex.Message);
     }
 }