public v03_frm_XoaGio() { InitializeComponent(); dgrdGioKDQD.AutoGenerateColumns = false; log4net.Config.XmlConfigurator.Configure(); ThamSo.VeCheckBox_CheckAll(dgrdGioKDQD, checkAllGridTH, checkAll_CheckedChanged, new Point(7, 10)); }
public frm_21_KhaiBaoVang() { InitializeComponent(); dgrdDSNVTrgPhg.AutoGenerateColumns = dgrdNgayVang.AutoGenerateColumns = false; ThamSo.VeCheckBox_CheckAll(dgrdNgayVang, checkAll_GridNgayVang, checkAll_CheckedChanged, new Point(7, 3)); ThamSo.VeCheckBox_CheckAll(dgrdDSNVTrgPhg, checkAll_GridDSNV, checkAll_CheckedChanged, new Point(7, 3)); }
public frm_22_KhaiBaoLamViecNgayNghi() { InitializeComponent(); dgrdDSNVTrgPhg.AutoGenerateColumns = dgrdNgayNghi.AutoGenerateColumns = false; ThamSo.VeCheckBox_CheckAll(dgrdNgayNghi, checkAll_GridNgayVang, checkAll_CheckedChanged, new Point(7, 3)); ThamSo.VeCheckBox_CheckAll(dgrdDSNVTrgPhg, checkAll_GridDSNV, checkAll_CheckedChanged, new Point(7, 3)); DateTime today = DateTime.Today; dtpThang.Value = new DateTime(today.Year, today.Month, today.Day); }
public frm_31_SuaGioHangLoat() { InitializeComponent(); dgrdDSNVTrgPhg.AutoGenerateColumns = dgrdCTGioVao.AutoGenerateColumns = dgrdCTGioRa.AutoGenerateColumns = false; ThamSo.VeCheckBox_CheckAll(dgrdDSNVTrgPhg, checkAll_GridDSNV, checkAll_CheckedChanged, new Point(7, 3)); ThamSo.VeCheckBox_CheckAll(dgrdCTGioVao, checkAllGridCheckIn, checkAll_CheckedChanged, new Point(7, 3)); ThamSo.VeCheckBox_CheckAll(dgrdCTGioRa, checkAllGridCheckOut, checkAll_CheckedChanged, new Point(7, 3)); DateTime today = DateTime.Today; dtpBD.Value = new DateTime(today.Year, today.Month, today.Day, 0, 0, 0); dtpKT.Value = new DateTime(today.Year, today.Month, today.Day, 23, 59, 59, 0); }
private void frm_ChamCongTay_Load(object sender, EventArgs e) { ThamSo.VeCheckBox_CheckAll(dgrdDSNVTrgPhg, checkAll_GridDSNV, checkAll_CheckedChanged, new Point(7, 3)); m_listIDPhongBan = new List <int>(); dtpBDLam.ValueChanged += dtp_ValueChanged; dtpKTLam.ValueChanged += dtp_ValueChanged; dtpNgay.ValueChanged += dtpNgay_ValueChanged; m_DSCa = new List <cShift>(ThamSo.DSCa); cShift tmp = new cShift() { ShiftID = 0, ShiftCode = "--" }; cShift ca8tieng = new cShift() { ShiftID = int.MinValue, ShiftCode = "Ca 8 tiếng" }; cShift cadai = new cShift() { ShiftID = int.MinValue + 1, ShiftCode = "Ca dài 12 tiếng" }; m_DSCa.Insert(0, cadai); m_DSCa.Insert(0, ca8tieng); m_DSCa.Insert(0, tmp); cbCa.ValueMember = "ShiftID"; cbCa.DisplayMember = "ShiftCode"; cbCa.DataSource = m_DSCa; cbCa.SelectionChangeCommitted += cbCa_SelectionChangeCommitted; tbGioLam.TextChanged += tbGioLam_TextChanged; DataTable tablePhong = DAL.LayDSPhong(ThamSo.currUserID); if (tablePhong.Rows.Count == 0) { AutoClosingMessageBox.Show("Bạn chưa được phân quyền thao tác.", "Thông báo", 2000); return; } //2. lấy dữ liệu phòng ban được phép thao tác và load treePhongBan : xoá dữ liệu trước và load treePhongBan.Nodes.Clear(); loadTreePhgBan(treePhongBan, tablePhong); // đăng ký sự kiện cho tree và chọn topNode treePhongBan.AfterSelect += treePhongBan_AfterSelect; treePhongBan.SelectedNode = treePhongBan.TopNode; }
public frm_11_XemCong() { InitializeComponent(); log4net.Config.XmlConfigurator.Configure(); //1. không cho autogen các column khi bind dữ liệu: 4 cái dgrdDSNVTrgPhg.AutoGenerateColumns = dgrdTongHop.AutoGenerateColumns = dgrdGioKDQD.AutoGenerateColumns = false; DateTime today = DateTime.Today; dtpNgayBD.Value = new DateTime(today.Year, today.Month, 1); dtpNgayKT.Value = new DateTime(today.Year, today.Month, DateTime.DaysInMonth(today.Year, today.Month)); //3. vẽ 3 checkbox checkall cho DSNV trong phòng ThamSo.VeCheckBox_CheckAll(dgrdDSNVTrgPhg, checkAll_GridDSNV, checkAll_CheckedChanged, new Point(7, 3)); ThamSo.VeCheckBox_CheckAll(dgrdTongHop, checkAllGridTH, checkAll_CheckedChanged, new Point(7, 10)); ThamSo.VeCheckBox_CheckAll(dgrdGioKDQD, checkAllGridKDQD, checkAll_CheckedChanged, new Point(7, 10)); }
public frm_XacNhanNgayLVTinhPC100() { InitializeComponent(); dgrdNgayNghi.AutoGenerateColumns = false; ThamSo.VeCheckBox_CheckAll(dgrdNgayNghi, checkAll_GridNgayVang, checkAll_CheckedChanged, new Point(7, 3)); }