/// <summary> /// 作者:Kylin /// 时间:2014.04.15 /// 描述:获取培训列表 /// </summary> /// <param name="model"></param> /// <param name="pageIndex"></param> /// <returns></returns> public PagedList<TrainSchedule> SearchTrainSchedulePagedList(SearchTrainScheduleModel model, int pageIndex) { var page = new Paging() { PageIndex = pageIndex, PageSize = Global.ManagerSmallPageSize }; var result = TrainBLL.GetTrainScheduleList(model.BranchId, model.BeginTime, model.EndTime, model.PlatformType, model.SearchKey, model.SearchKeyValue, page); return result; }
/// <summary> /// 作者:Kylin /// 时间:2014.04.15 /// 描述:获取培训列表 /// </summary> /// <param name="model"></param> /// <returns></returns> public ActionResult SearchTrainScheduleList(SearchTrainScheduleModel model, [DefaultValue(1)]int pageIndex) { Session["TrainScheduleList"] = model; return PartialView("_List", SearchTrainSchedulePagedList(model, pageIndex)); }