Пример #1
0
        // GET: SellerAdmin/Coupon
        public ActionResult Management()
        {
            //处理错误同步结果
            _iCouponService.ClearErrorWeiXinCardSync();

            var settings = MarketApplication.GetServiceSetting(MarketType.Coupon);

            if (settings == null)
            {
                return(View("Nosetting"));
            }

            var market = _iCouponService.GetCouponService(CurrentSellerManager.ShopId);

            //未购买服务且列表刚进来则让进入购买服务页
            if ((market == null || market.Id <= 0) && Request.Query["first"].ToString() == "1")
            {
                return(RedirectToAction("BuyService"));
            }

            ViewBag.Available = false;
            if (market != null && MarketApplication.GetServiceEndTime(market.Id) > DateTime.Now)
            {
                ViewBag.Available = true;
            }

            return(View());
        }
Пример #2
0
 public ActionResult Management()
 {
     couponser.ClearErrorWeiXinCardSync();
     if (ServiceHelper.Create <IMarketService>().GetServiceSetting(MarketType.Coupon) == null)
     {
         return(View("Nosetting"));
     }
     ViewBag.Market = ServiceHelper.Create <ICouponService>().GetCouponService(base.CurrentSellerManager.ShopId);
     return(View());
 }
Пример #3
0
        // GET: SellerAdmin/Coupon
        public ActionResult Management()
        {
            //处理错误同步结果
            _iCouponService.ClearErrorWeiXinCardSync();

            var settings = _iMarketService.GetServiceSetting(MarketType.Coupon);

            if (settings == null)
            {
                return(View("Nosetting"));
            }

            ViewBag.Market = _iCouponService.GetCouponService(CurrentSellerManager.ShopId);
            return(View());
        }
Пример #4
0
 /// <summary>
 /// 处理错误的卡券同步信息
 /// </summary>
 public static void ClearErrorWeiXinCardSync()
 {
     _iCouponService.ClearErrorWeiXinCardSync();
 }