// Kiểm tra sĩ số public static bool KiemTraSiSo(string maLop, int soHS) { int siSoHienTai = LOP_DAL.LaySiSoLop(maLop); double siSoToiDa = THAMSO_BUS.LayThamSo("SISOTOIDA"); if (siSoHienTai + soHS > siSoToiDa) { return(false); } return(true); }
// Tìm kiếm lớp theo mã lớp public static DataTable timLopTheoMaLop(string maLop) { return(LOP_DAL.timLopTheoMaLop(maLop)); }
// Tìm kiếm lớp theo tên lớp public static DataTable timLopTheoTen(string ten) { return(LOP_DAL.timLopTheoTen(ten)); }
// Lấy mã lớp auto public static string autoMaLop() { return(LOP_DAL.autoMaLop()); }
// Lấy ds lớp theo Khối public static List <LOP> LayLopTheoKhoi(string maKhoi) { return(LOP_DAL.LayLopTheoKhoi(maKhoi)); }
// Lấy ds lớp theo năm học public static DataTable LayLopTheoNamHoc(string maNamHoc) { return(LOP_DAL.LayLopTheoNamHoc(maNamHoc)); }
// Lấy tất cả các lớp public static List <LOP> LayTatCaLop() { return(LOP_DAL.LayTatCaLop()); }
// Xóa lớp public static void Delete(string maLop) { LOP_DAL.Delete(maLop); }
// Sửa học sinh public static void Update(string maLop, string tenLop, string maKhoi) { LOP_DAL.Update(maLop, tenLop, maKhoi); }
// Thêm lớp public static void Insert(string maLop, string tenLop, string maKhoi) { LOP_DAL.Insert(maLop, tenLop, maKhoi); }