/// <summary> /// bảng lương theo mức lương /// </summary> private void createtablesalary1() { object ob = null; ketoan.GetSalary(out ob); if (ob != null) { dtgS.DataSource = (DataTable)ob; if (dtgS.Rows.Count - 1 > 0) { Mypaint.dtgcolor(dtgS); } else { MessageBox.Show("Bảng lương trống", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { MessageBox.Show("Lỗi không lấy được bảng lương", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void Salary_Load(object sender, EventArgs e) { InputInfo(); createTableSalary(); Mypaint.dtgcolor(dtgS); }
private void RAD_Load(object sender, EventArgs e) { Mypaint.dtgcolor(dtgKTKL); Mypaint.dtgcolor(dtgNVKTKL); createtableKTKL(); }