private void frmXemCong_Load(object sender, EventArgs e) { #region kiểm tra kết nối csdl , nếu mất kết nối thì đóng if (SqlDataAccessHelper.TestConnection(SqlDataAccessHelper.ConnectionString) == false) { ACMessageBox.Show(Resources.Text_MatKetNoiCSDL, Resources.Caption_Loi, 4000); Close(); return; } #endregion BUS_LichTrinh_Ca busLichTrinhCa = new BUS_LichTrinh_Ca(); busLichTrinhCa.LayTatCaLichTrinhVaCa(ref m_AllNhomCa); LoadDSNV(); }
private void fmXemCong4_Load(object sender, EventArgs e) { #region kiểm tra kết nối csdl , nếu mất kết nối thì đóng if (SqlDataAccessHelper.TestConnection(SqlDataAccessHelper.ConnectionString) == false) { ACMessageBox.Show(Resources.Text_MatKetNoiCSDL, Resources.Caption_Loi, 4000); Close(); return; } #endregion /* 1. load tree phòng ( datasource cho checkComboEdit chọn nv do hàm treeAfterselect tạo * 2. * 3. set tháng khi load lần đầu */ loadTreePhgBan(treePhongBan); treePhongBan.AfterSelect += treePhongBan_AfterSelect; // xác định lịch trình tổng quan BUS_LichTrinh_Ca busLichTrinhCa = new BUS_LichTrinh_Ca(); busLichTrinhCa.LayTatCaLichTrinhVaCa(ref m_AllNhomCa); }