public static bool KiemTraTonTaiSucKhoe(string maTre, int thang, int nam) { DataTable dt = SucKhoeDAL.KiemTraTonTaiSucKhoe(maTre, thang, nam); foreach (DataRow row in dt.Rows) { return(int.Parse(row[0].ToString()) == 1); } return(false); }
public static bool CapNhatSucKhoe(SucKhoe sucKhoe) { try { SucKhoeDAL.CapNhatSucKhoe(sucKhoe); return(true); } catch (Exception ex) { return(false); } }
public static List <SucKhoe> GetListSucKhoeTheoThang(string maTre, int tuThang, int denThang, string maNamHoc) { List <SucKhoe> listSucKhoe = new List <SucKhoe>(); listSucKhoe.Add(SucKhoeDAL.GetSucKhoeTheoThang(maTre, tuThang, LopBLL.GetNamHoc(tuThang, maNamHoc))); while (tuThang != denThang) { tuThang++; if (tuThang > 12) { tuThang = 1; } listSucKhoe.Add(SucKhoeDAL.GetSucKhoeTheoThang(maTre, tuThang, LopBLL.GetNamHoc(tuThang, maNamHoc))); } return(listSucKhoe); }
public static void KhoiTaoSucKhoe(string maTre, int thang, int nam) { SucKhoeDAL.KhoiTaoSucKhoe(maTre, thang, nam); }
public static DataTable GetListSucKhoe(string maLop, int thang, string maNamHoc) { return(SucKhoeDAL.GetListSucKhoe(maLop, thang, LopBLL.GetNamHoc(thang, maNamHoc))); }