public frm_quanLyCongViec() { _congViec = new BUSCongViec(); BindingSourceCongViec = new BindingSource(); BeginTable(); InitializeComponent(); }
public frm_themCongViec() { InitializeComponent(); congViec = new eCongViec(); busCongViec = new BUSCongViec(); busDuAn = new BUSDuAn(); }
public frm_tinhLuongNhanVien() { InitializeComponent(); _nhanVien = new BUSNhanVien(); _chamCong = new BUSChamCong(); _congViec = new BUSCongViec(); BeginTable(); }
private void btnRefresh_Click(object sender, EventArgs e) { dgv_congViec.DataSource = null; BUSCongViec cv = new BUSCongViec(); dgv_congViec.DataSource = cv.GetAllList(); LoadDgvCongViec(); }
private void dgv_duAn_SelectionChanged(object sender, EventArgs e) { if (dgv_duAn.CurrentRow != null) { int rowindex = dgv_duAn.CurrentRow.Index; if (rowindex >= 0) { DataGridViewRow row = dgv_duAn.Rows[rowindex]; string maDuAn = row.Cells[0].Value.ToString(); BUSCongViec cv = new BUSCongViec(); List <eCongViec> list = cv.GetManyItemByCondition(x => x.DuAn.MaDuAn == maDuAn); dgv_congViec.DataSource = list; LoadDgvCongViec(); lbl_tenDuAn.Text = row.Cells[1].Value.ToString(); lbl_ngayThangNam.Text = row.Cells[2].Value.ToString() + "-" + row.Cells[3].Value.ToString(); lbl_trangThai.Text = "Trạng thái: " + row.Cells[5].Value.ToString(); } } }
public frm_suaCongViec(string maCongViec, eDuAn duAn, string tenCongViec, DateTime ngayBatDau, DateTime ngayKetThuc, string trangThai, int tienDoCongViec, string viTriCongViec) { InitializeComponent(); congViec = new eCongViec(); busCongViec = new BUSCongViec(); congViec.MaCongViec = maCongViec; congViec.DuAn = duAn; congViec.TrangThai = trangThai; congViec.Tiendo = tienDoCongViec; congViec.NgayBatDau = ngayBatDau; congViec.NgayKetThuc = ngayKetThuc; congViec.TenCongViec = tenCongViec; congViec.ViTriCongViec = viTriCongViec; // Gan gia tri Trang Thai cho combobox cboTrangThai.DataSource = new string[] { "Chưa thực hiện", "Đang thực hiện", "Hoàn thành" }; // Gan gia tri Vi Tri Cong Viec cho combobox cboViTriCongViec.DataSource = new string[] { "Quản Lý", "Khảo Sát", "Thiết Kế", "Giám Sát", "Thi Công" }; }
public frm_timKiemCongViec() { InitializeComponent(); _congViec = new BUSCongViec(); _duAn = new BUSDuAn(); }
public frm_phanCongCongViec() { _nhanVien = new BUSNhanVien(); _congViec = new BUSCongViec(); InitializeComponent(); }
public frm_userMain() { _duAn = new BUSDuAn(); _congViec = new BUSCongViec(); InitializeComponent(); }