public ActionResult SearchObservationList(SearchObservationListModel searchModel, [DefaultValue(1)] int pageIndex) { Session["SearchObservationListModel"] = searchModel; var page = new Paging() { PageIndex = pageIndex, PageSize = 15 }; //选项卡索引 int tabIndex = Session["ObservationTabIndex"] != null ? int.Parse(Session["ObservationTabIndex"].ToString()) : 1; return ReserveCourse(pageIndex, tabIndex); }
public ActionResult Index() { //{ BeginDate = DateTime.Now.Date } Session["SearchObservationListModel"] = new SearchObservationListModel(); return View(Session["SearchObservationListModel"] as SearchObservationListModel); }