Пример #1
0
        /// <summary>
        /// 红包模板列表
        /// </summary>
        /// <returns></returns>
        public ActionResult RedBagCouponTemplateManager()
        {
            ViewBag.StartTime = string.IsNullOrWhiteSpace(Request["startTime"]) ? DateTime.Today.AddMonths(-1) : Convert.ToDateTime(Request["startTime"]);
            ViewBag.EndTime   = string.IsNullOrWhiteSpace(Request["endTime"]) ? DateTime.Today.AddDays(1).AddSeconds(-1) : Convert.ToDateTime(Request["endTime"]);

            ViewBag.TagList           = FundClient.GetRedBagCouponTemplateTags().ReturnValue.Split(',');
            ViewBag.sel_RedBagTemTags = string.IsNullOrWhiteSpace(Request["sel_RedBagTemTags"]) ? "" : Request["sel_RedBagTemTags"].ToString();

            ViewBag.txt_couponName      = string.IsNullOrWhiteSpace(Request["txt_couponName"]) ? "" : Request["txt_couponName"].ToString();
            ViewBag.txt_RedBagCopTemId  = string.IsNullOrWhiteSpace(Request["txt_RedBagCopTemId"]) ? "" : Request["txt_RedBagCopTemId"].ToString();
            ViewBag.txt_couponMoney     = string.IsNullOrWhiteSpace(Request["txt_couponMoney"]) ? "" : Request["txt_couponMoney"].ToString();
            ViewBag.txt_couponFillMoney = string.IsNullOrWhiteSpace(Request["txt_couponFillMoney"]) ? "" : Request["txt_couponFillMoney"].ToString();
            ViewBag.sel_RedBagTemStatus = string.IsNullOrWhiteSpace(Request["sel_RedBagTemStatus"]) ? "" : Request["sel_RedBagTemStatus"].ToString();

            ViewBag.PageIndex = string.IsNullOrWhiteSpace(Request["pageIndex"]) ? base.PageIndex : Convert.ToInt32(Request["pageIndex"]);
            ViewBag.PageSize  = string.IsNullOrWhiteSpace(Request["pageSize"]) ? base.PageSize : Convert.ToInt32(Request["pageSize"]);

            ViewBag.List = this.QueryClient.QueryRedBagCouponTemplateListAdmin(
                string.IsNullOrEmpty(ViewBag.txt_RedBagCopTemId) ? 0 : Convert.ToInt32(ViewBag.txt_RedBagCopTemId),
                ViewBag.txt_couponName,
                string.IsNullOrEmpty(ViewBag.txt_couponMoney) ? 0 : Convert.ToDecimal(ViewBag.txt_couponMoney),
                string.IsNullOrEmpty(ViewBag.txt_couponFillMoney) ? -1 : Convert.ToDecimal(ViewBag.txt_couponFillMoney),
                ViewBag.sel_RedBagTemTags,
                string.IsNullOrEmpty(ViewBag.sel_RedBagTemStatus) ? CouponTemplateStatus.All : ((CouponTemplateStatus)Convert.ToInt32(ViewBag.sel_RedBagTemStatus)),
                Convert.ToDateTime(ViewBag.StartTime),
                Convert.ToDateTime(ViewBag.EndTime),
                Convert.ToInt32(ViewBag.PageIndex) - 1,
                ViewBag.PageSize);
            return(View());
        }
Пример #2
0
 /// <summary>
 /// 用户提现总额
 /// </summary>
 /// <returns></returns>
 public ContentResult QueryUserTotalWithdraw()
 {
     try
     {
         var userId = Request["userId"];
         var money  = FundClient.QueryUserTotalWithdrawMoney(userId);
         return(Content(money.ToString("c")));
     }
     catch (Exception)
     {
         return(Content("0"));
     }
 }
Пример #3
0
        public JsonResult GetRedBagTemTags()
        {
            var TagList = FundClient.GetRedBagCouponTemplateTags().ReturnValue.Split(',');

            return(Json(new { IsSuccess = true, Data = TagList }, JsonRequestBehavior.AllowGet));
        }