public JsonResult GetUserLottery(string cpcode) { int total = 0; int pageTotal = 0; var items = LotteryOrderBusiness.GetLotteryOrder("", cpcode, CurrentUser.UserID, "", "", "", -1, -1, 20, 1, ref total, ref pageTotal, 0, DateTime.Now.ToString("yyyy-MM-dd") + " 00:00:00", DateTime.Now.ToString("yyyy-MM-dd")); JsonDictionary.Add("items", items); return(new JsonResult() { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
public JsonResult GetLotteryRecord(string cpcode, int status, string lcode, string issuenum, string type, int selfrange, int winType, string btime, string etime, int pageIndex) { int total = 0; int pageTotal = 0; var items = LotteryOrderBusiness.GetLotteryOrder("", cpcode, CurrentUser.UserID, lcode, issuenum, type, status, winType, PageSize, pageIndex, ref total, ref pageTotal, selfrange, btime, etime); JsonDictionary.Add("items", items); JsonDictionary.Add("totalCount", total); JsonDictionary.Add("pageCount", pageTotal); return(new JsonResult() { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }