Example #1
0
        public JsonResult GetUserReport(string btime, string etime, int pageIndex)
        {
            int total     = 0;
            int pageTotal = 0;
            var list      = UserReportBussiness.GetReportList(btime, etime, CurrentUser.UserID, pageIndex, PageSize,
                                                              ref total, ref pageTotal);

            JsonDictionary.Add("items", list);
            JsonDictionary.Add("totalCount", total);
            JsonDictionary.Add("pageCount", pageTotal);
            return(new JsonResult()
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
Example #2
0
        public JsonResult GetLotteryOrderReportList(string btime, string etime, int playtype, string cpcode,
                                                    string lcode, string issuenum, string type, string state, int winType, int pageIndex, int selfrange = 0)
        {
            int total     = 0;
            int pageTotal = 0;
            var list      = UserReportBussiness.GetLotteryOrderReportList(btime, etime, playtype, cpcode, CurrentUser.UserID, lcode, issuenum, type, state, winType, pageIndex, PageSize,
                                                                          ref total, ref pageTotal, selfrange);

            JsonDictionary.Add("items", list);
            JsonDictionary.Add("totalCount", total);
            JsonDictionary.Add("pageCount", pageTotal);
            return(new JsonResult()
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }