public frmNhapCongViecGiaoVien() { InitializeComponent(); oBGGCongViecGiaoVien = new cBGG_CongViecGiaoVien(); pCongViecGiaoVienInfo = new GG_CongViecGiaoVienInfo(); pDonViInfo = new NS_DonViInfo(); oBLoaiCongViec = new cBDM_LoaiCongViec(); dtNhiemVu = oBLoaiCongViec.Get(new DM_LoaiCongViecInfo()); cmbNhiemVu.Properties.DataSource = dtNhiemVu; }
private void GetData() { grdLoaiCongViec.DataSource = oBLoaiCongViec.Get(pLoaiCongViecInfo); if (grvLoaiCongViec.RowCount > 0) { SetControl(true); } else { SetControl(false); } }