Beispiel #1
0
 private void Form_QLCongViec_Activated(object sender, EventArgs e)
 {
     loadDataDetailCongViec();
     dataGridView3.DataSource = null;
     dataGridView1.DataSource = null;
     dataGridView2.DataSource = null;
     dataGridView3.DataSource = cvBLL.getAllCongViec();
     dataGridView1.DataSource = ctBLL.getAllCongTrinh_DangThucHien_QuaHan();
     dataGridView2.DataSource = cvBLL.getCongViecByIdCongTrinh(ctBLL.getIdCongTrinhFirst());
 }
Beispiel #2
0
        public Form_QLCongViec()
        {
            InitializeComponent();
            cvBLL = new CongViecBLL();
            ctBLL = new CongTrinhBLL();

            dataGridView1.AutoGenerateColumns = dataGridView2.AutoGenerateColumns = dataGridView3.AutoGenerateColumns = false;

            dataGridView3.DataSource = cvBLL.getAllCongViec();
            dataGridView1.DataSource = ctBLL.getAllCongTrinh_DangThucHien_QuaHan();
            dataGridView2.DataSource = cvBLL.getCongViecByIdCongTrinh(ctBLL.getIdCongTrinhFirst());
        }
        public Form_PhanCong()
        {
            InitializeComponent();

            pbBLL = new PhongBanBLL();
            nvBLL = new NhanVienBLL();
            cvBLL = new CongViecBLL();
            ctBLL = new CongTrinhBLL();

            dataGridView_CongViecCuaNhanVien.AutoGenerateColumns = dataGridView_DanhSachCongTrinh.AutoGenerateColumns = dataGridView_DanhSachCongViecCuaCongTrinh.AutoGenerateColumns = dataGridView_NhanVienTrongPhongBan.AutoGenerateColumns = false;

            dataGridView_DanhSachCongTrinh.DataSource = ctBLL.getAllCongTrinh_DangThucHien_QuaHan();
        }