123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- 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; }
- /// <summary>
- ///
- /// </summary>
- /// <returns></returns>
- 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");
- }
- }
- }
|