public ActionResult AlreadyApplyWishJson() { int tCount = 0; GetReportDataParams param = new GetReportDataParams(); List <KeyValue> where = new Functions().GetParam(Request); param.PageIndex = string.IsNullOrEmpty(Request["page"]) ? 1 : Convert.ToInt32(Request["page"]); param.PageSize = string.IsNullOrEmpty(Request["rows"]) ? 20 : Convert.ToInt32(Request["rows"]); param.Order = Request["sort"] == null ? "" : Request["sort"] + " " + Request["order"]; param.Where = where; var list = new WishHelper().GetWishReport(param, out tCount); var json = new DataGridJson(tCount, list); return(Json(json)); }
public ActionResult ColumnListJson() { int tCount = 0; GetReportDataParams param = new GetReportDataParams(); List <KeyValue> where = new Functions().GetParam(Request); //where.Add(new KeyValue() { Key = "ChlBusinessID", Value = new UserHelper().CurrentChlBussinessID.ToString() }); param.PageIndex = string.IsNullOrEmpty(Request["page"]) ? 1 : Convert.ToInt32(Request["page"]); param.PageSize = string.IsNullOrEmpty(Request["rows"]) ? 20 : Convert.ToInt32(Request["rows"]); param.Order = Request["sort"] == null ? "" : Request["sort"] + " " + Request["order"]; param.Where = where; var list = new Helpers.SystemHelper().GetColumnList(param, out tCount); var json = new DataGridJson(tCount, list); return(Json(json)); }
public ActionResult NewsListJson() { int tCount = 0; GetReportDataParams param = new GetReportDataParams(); List <KeyValue> where = new Functions().GetParam(Request); where.Add(new KeyValue { Key = "CategoryID", Value = "1" }); param.PageIndex = string.IsNullOrEmpty(Request["page"]) ? 1 : Convert.ToInt32(Request["page"]); param.PageSize = string.IsNullOrEmpty(Request["rows"]) ? 20 : Convert.ToInt32(Request["rows"]); param.Order = Request["sort"] == null ? "" : Request["sort"] + " " + Request["order"]; param.Where = where; var list = new NewsHelper().GetNewsList(param, out tCount); var json = new DataGridJson(tCount, list); return(Json(json)); }
public ActionResult WishListJson() { int tCount = 0; GetReportDataParams param = new GetReportDataParams(); List <KeyValue> where = new Functions().GetParam(Request); //where.Add(new KeyValue { Key = "Status1", Value = WishStatus.WaitAudit.ToString() }); where.Add(new KeyValue { Key = "UserID", Value = User.Identity.Name }); param.PageIndex = string.IsNullOrEmpty(Request["page"]) ? 1 : Convert.ToInt32(Request["page"]); param.PageSize = string.IsNullOrEmpty(Request["rows"]) ? 20 : Convert.ToInt32(Request["rows"]); param.Order = Request["sort"] == null ? "" : Request["sort"] + " " + Request["order"]; param.Where = where; var list = new WishHelper().GetWishReport(param, out tCount); var json = new DataGridJson(tCount, list); return(Json(json)); }
public ActionResult CourseListJson() { int tCount = 0; GetReportDataParams param = new GetReportDataParams(); List <KeyValue> where = new Functions().GetParam(Request); if (!LoginHelper.IsManage) { where.Add(new KeyValue() { Key = "UserID", Value = LoginHelper.UserID.ToString() }); } param.PageIndex = string.IsNullOrEmpty(Request["page"]) ? 1 : Convert.ToInt32(Request["page"]); param.PageSize = string.IsNullOrEmpty(Request["rows"]) ? 20 : Convert.ToInt32(Request["rows"]); param.Order = Request["sort"] == null ? "" : Request["sort"] + " " + Request["order"]; param.Where = where; var list = new Helpers.CourseHelper().GetCourseReport(param, out tCount); var json = new DataGridJson(tCount, list); return(Json(json)); }