예제 #1
0
        public ActionResult UnitReport(string designation, string title, int?semester, DateTime?beginDate, DateTime?endDate, int?lecturerId, string status)
        {
            UnitSearch unitSearch = new UnitSearch(this.DatabaseContext);

            unitSearch.Designation = designation;
            unitSearch.Title       = title;
            unitSearch.Semester    = semester;
            unitSearch.BeginDate   = beginDate;
            unitSearch.EndDate     = endDate;
            unitSearch.LecturerId  = lecturerId;
            unitSearch.SetStatus(status);

            UnitReport report = new UnitReport();

            report.Search = unitSearch;
            return(Content(report.CreateReport(), "text/html"));
        }