public ActionResult Index() { AssignUserInfo(); qlXeBusiness = Get <QL_XEBusiness>(); XeBenhVienIndexViewModel viewModel = new XeBenhVienIndexViewModel(); XeSearchBO searchModel = new XeSearchBO(); searchModel.CCTC_THANHPHAN_ID = currentUser.DeptParentID.GetValueOrDefault(); viewModel.listXeBenhViens = qlXeBusiness.GetDataByPage(searchModel); SessionManager.SetValue("SearchXeBenhVien", searchModel); return(View(viewModel)); }
public JsonResult SearchData(FormCollection fc) { AssignUserInfo(); qlXeBusiness = Get <QL_XEBusiness>(); var searchModel = (XeSearchBO)SessionManager.GetValue("SearchXeBenhVien"); searchModel.TENXE = fc["TENXE"]; searchModel.BIENSO = fc["BIENSO"]; searchModel.querySoChoEnd = fc["querySoChoEnd"].ToIntOrNULL(); searchModel.querySoChoStart = fc["querySoChoStart"].ToIntOrNULL(); searchModel.CCTC_THANHPHAN_ID = currentUser.DeptParentID.GetValueOrDefault(); SessionManager.SetValue("SearchXeBenhVien", searchModel); var result = qlXeBusiness.GetDataByPage(searchModel); return(Json(result)); }
public JsonResult GetData(int pageIndex, string sortQuery, int pageSize) { AssignUserInfo(); qlXeBusiness = Get <QL_XEBusiness>(); XeSearchBO searchModel = (XeSearchBO)SessionManager.GetValue("SearchXeBenhVien"); if (searchModel == null) { searchModel = new XeSearchBO(); } searchModel.sortQuery = sortQuery; searchModel.CCTC_THANHPHAN_ID = currentUser.DeptParentID.GetValueOrDefault(); PageListResultBO <XeBO> data = qlXeBusiness.GetDataByPage(searchModel); return(Json(data)); }