private void HienThiDanhSachChucVu()
        {
            DataTable chucVu = new DataTable();

            chucVu = bd.layDanhSachChucVu(ref err);
            dgvChucVu.DataSource = chucVu;
        }
 private void dgvChucVu_Click(object sender, EventArgs e)
 {
     if (dgvChucVu.Rows.Count > 0)
     {
         chucVu           = new ChucVu();
         chucVu.MaChucVu  = dgvChucVu.CurrentRow.Cells["colMaChucVu"].Value.ToString();
         chucVu.TenChucVu = dgvChucVu.CurrentRow.Cells["colTenChucVu"].Value.ToString();
     }
 }
 private void LayThongTinChucVuTuControl()
 {
     chucVu           = new ChucVu();
     chucVu.MaChucVu  = txtMaChucVu.Text;
     chucVu.TenChucVu = txtTenChucVu.Text;
 }
 private void LayDuLieuVaoControl(ChucVu chucVu)
 {
     txtMaChucVu.Text  = chucVu.MaChucVu;
     txtTenChucVu.Text = chucVu.TenChucVu;
 }