Ejemplo n.º 1
0
 /// <summary>
 /// 作者:Kylin
 /// 时间:2014.06.20
 /// 描述:教师班表查询
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public ActionResult SearchTeacherSchedule(SearchTeacherScheduleModel model)
 {
     model.BeginTime = model.BeginTime ?? DateTime.Now.Date;
     var endDate = model.BeginTime.Value.AddDays(1).AddMilliseconds(-1);
     model.EndTime = endDate;
     Session["SearchTeacherScheduleModel"] = model;
     var allTeacherScheduleListModel = GetTeacherScheduleList(model.BranchId, model.BeginTime.Value,
         model.EndTime.Value);
     return PartialView("_List", allTeacherScheduleListModel);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 作者:Kylin
 /// 时间:2014.06.20
 /// 描述:教师班表
 //    [Authorization(true, true)]
 /// </summary>
 /// <returns></returns>
 public ActionResult Index()
 {
     var model = new SearchTeacherScheduleModel()
     {
         BeginTime = DateTime.Now,
         EndTime = DateTime.Now.Date.AddDays(1).AddMilliseconds(-1)
     };
     Session["SearchTeacherScheduleModel"] = model;
     return View(model);
 }