private void cnNhanVien_Load(object sender, EventArgs e) { //Load DataGrid dgvNhanVien.DataSource = nvBUS.LayDanhSachNhanVien(); groupControl1.Enabled = false; binding(); }
private void Rp_NhanVien_Load(object sender, EventArgs e) { txtNhanVien.Text = Utilities.user.HoTenNV; txtTongSo.Text = nvBUS.dem_NV(); nHANVIENBindingSource.DataSource = nvBUS.LayDanhSachNhanVien(); reportViewer1.RefreshReport(); }
private void ttNhanVien_Load(object sender, EventArgs e) { //Load DataGrid grid_nhanvien.DataSource = nvBUS.LayDanhSachNhanVien(); group_thongtin.Enabled = false; bt_them.Enabled = true; bt_sua.Enabled = true; bt_xoa.Enabled = true; binding(); hien_anh(); }
private void LoadDataSource() { dt = Utils.Utils.ConvertToDataTable <NhanVien>(_Nv_Bll.LayDanhSachNhanVien()); gridControl1.DataSource = dt; }