public ActionResult RechargeList(string usercode, string truename, DateTime?start, DateTime?end, int type = 0, int style = 0, int pageIndex = 1) { RechargeListModel model = new RechargeListModel(); //查询数据 RechargePageResult rechargeModel = new RechargePageResult(); rechargeModel = rechargeService.GetPageList(0, usercode, truename, type, style, start, end, pageIndex, PageSize); model.rechargeList = rechargeModel.Recharges; //分页 Pagination pager = new Pagination(); pager.PageIndex = pageIndex; pager.PageSize = PageSize; pager.TotalCount = rechargeModel.TotalCount; if (rechargeModel.TotalCount <= PageSize) { model.Page = ""; } else { model.Page = pager.GetPagerHtml(); } return(Json(new AjaxResult { Status = "1", Data = model })); }
public ActionResult ChargeList() { List <MD_Remit> list = NewUser.GetUserRemitList(1, 50, " where a.uid=" + WorkContext.Uid.ToString()); RechargeListModel recharge = new RechargeListModel { PageModel = new PageModel(15, 1, list.Count > 0 ? list[0].TotalCount : 0), RechargeList = list }; return(View(recharge)); }
/// <summary> /// 后台充值列表 /// </summary> /// <returns></returns> public ActionResult RechargeList() { RechargeListModel model = new RechargeListModel(); //查询数据 RechargePageResult rechargeModel = new RechargePageResult(); rechargeModel = rechargeService.GetPageList(0, "", "", 0, 0, null, null, 1, PageSize); model.rechargeList = rechargeModel.Recharges; //分页 Pagination pager = new Pagination(); pager.PageIndex = 1; pager.PageSize = PageSize; pager.TotalCount = rechargeModel.TotalCount; if (rechargeModel.TotalCount <= PageSize) { model.Page = ""; } else { model.Page = pager.GetPagerHtml(); } //币种 model.currencyList = currencynameService.GetList(); var selectItemList = new List <SelectListItem>() { new SelectListItem() { Value = "0", Text = "请选择", Selected = true } }; var selectList = new SelectList(model.currencyList, "ID", "CurrencyName"); selectItemList.AddRange(selectList); ViewBag.currency = selectItemList; return(View(model)); }
public ActionResult RechargeList(string mobile = "", string suite = "-1", string platform = "全部", string starttime = "", string endtime = "", int pageSize = 15, int pageNumber = 1) { StringBuilder strb = new StringBuilder(); strb.Append(" where 1=1 "); if (mobile != "") { strb.Append(" and a.account like '" + mobile + "%' "); } if (suite != "-1") { strb.Append(" and a.vossuiteid = " + suite + " "); } if (platform != "全部") { strb.Append(" and a.platform = '" + platform + "' "); } if (starttime != "" && endtime != "") { strb.Append(" and (convert(varchar(10),a.paytime,120) between '" + starttime + "' and '" + endtime + "')"); } strb.Append(" order by a.addtime desc "); List <RechargeModel> rechargelist = Recharge.GetRechargeList(pageNumber, pageSize, strb.ToString()); RechargeListModel model = new RechargeListModel() { RechargeList = rechargelist, PageModel = new PageModel(pageSize, pageNumber, rechargelist.Count > 0 ? rechargelist[0].TotalCount : 0), Mobile = mobile, Suite = suite, PlatForm = platform, StartTime = starttime, EndTime = endtime }; return(View(model)); }