public IActionResult Export(ServiceApplySearchParam param) { var list = _service.Fetch(param); var path = SaveExcel(list, "服务申请记录"); return(Redirect(path)); }
public JsonResult Get(int?id, ServiceApplySearchParam param) { if (!id.HasValue || id <= 0) { id = 1; } if (!DataItemUtil.GetValues("AssetManager").Contains(WxUser.UserId)) { param.UserId = WxUser.UserId; } var list = _service.PageList((int)id, 5, param); return(Json(ResultUtil.PageList(list))); }
public JsonResult Get(ServiceApplySearchParam param, int pageIndex = 1, int pageSize = 20) { var pageList = _service.PageList(pageIndex, pageSize, param); return(Json(ResultUtil.PageList(pageList))); }