/// <summary> /// return view ThoiKhoaBieu /// </summary> /// <returns>ThoiKhoaBieu.cshtml</returns> public ActionResult LapThoiKhoaBieu() { ViewBag.dsTKB = JsonConvert.SerializeObject(_ThoiKhoaBieuService.GetAll()); ViewBag.dsNamHoc = JsonConvert.SerializeObject(_NamHocService.GetAll()); ViewBag.dsHocKy = JsonConvert.SerializeObject(_HocKyService.GetAll()); ViewBag.dsGiaoVien = JsonConvert.SerializeObject(_GiaoVienService.GetAllGiaoVien()); ViewBag.dsMonHoc = JsonConvert.SerializeObject(_MonHocService.GetAll() .Select(e => new { value = e.MaMonHoc, text = e.TenMonHoc })); //ViewBag.dsLopHoc = JsonConvert.SerializeObject(_LopHocService.GetAll()); return(View()); }
/// <summary> /// return view QuanLyGiaoVien /// </summary> /// <returns>QuanLyGiaoVien.cshtml</returns> public ActionResult QuanLyGiaoVien() { ViewBag.dsGiaoVien = JsonConvert.SerializeObject(_GiaoVienService.GetAllGiaoVien()); ViewBag.dsMonHoc = JsonConvert.SerializeObject(_MonHocService.GetAll() .Select(e => new { value = e.MaMonHoc, text = e.TenMonHoc })); return(View()); }
/// <summary> /// return view QuanLyKhenThuong /// </summary> /// <returns>QuanLyKhenThuong.cshtml</returns> public ActionResult QuanLyKhenThuong() { ViewBag.dsHocSinh = JsonConvert.SerializeObject(_HocSinhService.GetAll() .Select(e => new { value = e.PersonId, text = e.HoTen })); ViewBag.dsGiaoVien = JsonConvert.SerializeObject(_GiaoVienService.GetAllGiaoVien() .Select(e => new { value = e.PersonId, text = e.HoTen })); ViewBag.dsTietHoc = JsonConvert.SerializeObject(_TietHocService.GetAllTietHoc() .Select(e => new { value = e.MaTietHoc, text = "Tiết " + e.MaTietHoc })); return(View()); }