using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using EMIS.Web.Controls; using EMIS.CommonLogic.CalendarManage; using EMIS.CommonLogic.UniversityManage.AdministrativeOrgan; using EMIS.CommonLogic.Report; namespace EMIS.Web.Controllers.StudentManage.StudentStatistics { [Authorization] public class StudentCountController : Controller { public ISchoolYearServices SchoolYearServices { get; set; } public IUniversityServices universityServices { get; set; } public INewReportServices NewReportServices { get; set; } /// /// /// /// public ActionResult Index() { var university = universityServices.GetUniversityList().FirstOrDefault().Name; var schoolYear = SchoolYearServices.GetSchoolYearIsCurrent(true); ViewBag.SchoolYearID = university+schoolYear.Code + "学生学籍信息统计表";//默认当前学年 return View(); } // // GET: /StudentCount/Details/5 public ActionResult Details(int id) { return View(); } // // GET: /StudentCount/Create public ActionResult Create() { return View(); } // // POST: /StudentCount/Create [HttpPost] public ActionResult Create(FormCollection collection) { try { // TODO: Add insert logic here return RedirectToAction("Index"); } catch { return View(); } } // // GET: /StudentCount/Edit/5 public ActionResult Edit(int id) { return View(); } // // POST: /StudentCount/Edit/5 [HttpPost] public ActionResult Edit(int id, FormCollection collection) { try { // TODO: Add update logic here return RedirectToAction("Index"); } catch { return View(); } } // // GET: /StudentCount/Delete/5 public ActionResult Delete(int id) { return View(); } // // POST: /StudentCount/Delete/5 [HttpPost] public ActionResult Delete(int id, FormCollection collection) { try { // TODO: Add delete logic here return RedirectToAction("Index"); } catch { return View(); } } public ActionResult StudentCountPDF(int? InSchoolStatusID) { var pdf = NewReportServices.StudentCountPDF(InSchoolStatusID); return File(pdf.ToArray(), "application/pdf"); } } }