public ActionResult PromotionAppr() { int total; IApproveWayManager _approveWayManager = new ApproveWayManager(); var list = _approveWayManager.MyCanApprovePromotion(out total , CurrentUser.UserId , CurrentUser.PostId , MyRoles.GetString() , 1, 3, "RecordId DESC", "", "", 1); return(View(list)); }
public JsonResult GetMyCanApprovePromotionList(int approveStatus, string objectUsername, string objectUserDeptPost, int pageSize = 20, int pageIndex = 1, string jsRenderSortField = " RecordId desc") { SearchCondtion["ApprovePromotion/approveStatus"] = approveStatus.ToString(CultureInfo.InvariantCulture); SearchCondtion["ApprovePromotion/objectUsername"] = objectUsername; SearchCondtion["ApprovePromotion/objectUserDeptPost"] = objectUserDeptPost; SearchCondtion["ApprovePromotion/pageIndex"] = pageIndex.ToString(CultureInfo.InvariantCulture); SearchCondtion["ApprovePromotion/pageSize"] = pageSize.ToString(CultureInfo.InvariantCulture); int totalRecords; var list = _approveWayManager.MyCanApprovePromotion(out totalRecords, CurrentUser.UserId, CurrentUser.PostId, MyRoles.GetString(), pageIndex, pageSize, jsRenderSortField, objectUsername, objectUserDeptPost, approveStatus); return(Json(new { dataList = list, recordCount = totalRecords }, JsonRequestBehavior.AllowGet)); }