예제 #1
0
        public void LoadData()
        {
            dt1 = new DataTable();
            dt1 = HeSoLuongCtrl.GetData();
            dgvHeSoLuong.DataSource = dt1;

            txtBacLuong.Enabled    = false;
            txtLuongCB.Enabled     = false;
            txtLuongtangca.Enabled = false;

            txtTimKiem.Enabled = true;


            btnHuy.Enabled  = false;
            btnLuu.Enabled  = false;
            btnThem.Enabled = true;
            btnSua.Enabled  = true;
            btnXoa.Enabled  = true;
        }
예제 #2
0
 public void LoadDataLuong()
 {
     cmbBacLuong.DataSource    = HeSoLuongCtrl.GetData();
     cmbBacLuong.ValueMember   = "BacLuong";
     cmbBacLuong.DisplayMember = "BacLuong";
 }