private void LoadTKCBPB()
 {
     try
     {
         phongbanBL _ctr = new phongbanBL();
         DataTable  dt   = new DataTable();
         dt = _ctr.GetAll();
         cbTK_PhongBan.DataSource    = dt;
         cbTK_PhongBan.DisplayMember = "tenphongban";
         cbTK_PhongBan.ValueMember   = "idphongban";
     }
     catch { }
 }
Esempio n. 2
0
        private void HienThiDS()
        {
            phongbanBL _ctr = new phongbanBL();
            DataTable  dt   = new DataTable();

            dt = _ctr.GetAll();
            if (dt != null)
            {
                c1FlexGrid1.DataSource = dt;
                dt.Columns.Add("TT", typeof(Int32));
                FormatGrid();
            }
        }