Exemplo n.º 1
0
        /// <summary>
        /// 商家入驻协议
        /// </summary>
        /// <returns></returns>
        public ActionResult Step1()
        {
            ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement();
            var model = ShopApplication.GetSettled();

            if (CurrentSellerManager != null)
            {
                var shop = ShopApplication.GetShop(CurrentSellerManager.ShopId);
                if (null != shop && shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.HasExpired)
                {
                    throw new HimallException("抱歉,您的店铺已过期");
                }
                if (null != shop && shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.Freeze)
                {
                    throw new HimallException("抱歉,您的店铺已冻结");
                }
                if (shop != null)
                {
                    if (shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.Refuse)
                    {
                        return(RedirectToAction("step3"));
                    }
                    ViewBag.IsSeller  = shop.Stage == Entities.ShopInfo.ShopStage.Finish && shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.Open;
                    ViewBag.WaitAudit = shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.WaitAudit;
                }
            }
            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult Step0()
        {
            ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement();
            var model = ShopApplication.GetSettled();

            return(View(model));
        }
Exemplo n.º 3
0
 public ActionResult EditProfile6()
 {
     ViewBag.Step    = 2;
     ViewBag.Frame   = "Step6";
     ViewBag.Manager = CurrentUser;
     ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement();
     return(View("EditProfile"));
 }
Exemplo n.º 4
0
 public ActionResult EditProfile4()
 {
     ViewBag.Step                 = 3;
     ViewBag.Frame                = "Step4";
     ViewBag.Manager              = CurrentUser;
     ViewBag.Username             = CurrentSellerManager.UserName;
     ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement();
     return(View("EditProfile"));
 }
Exemplo n.º 5
0
        public ActionResult EditProfile2()
        {
            ViewBag.MenuStep             = 2;
            ViewBag.Step                 = 1;
            ViewBag.Frame                = "Step2";
            ViewBag.Manager              = CurrentUser;
            ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement();
            var step2 = new ShopProfileStep2();

            return(View("EditProfile", step2));
        }
Exemplo n.º 6
0
        public ActionResult Step0()
        {
            if (CurrentSellerManager != null)
            {
                var shop = ShopApplication.GetShop(CurrentSellerManager.ShopId);
                ViewBag.ShopType = shop.BusinessType.HasValue ? (int)shop.BusinessType.Value : 99;
            }
            ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement();
            var model = ShopApplication.GetSettled();

            return(View(model));
        }
Exemplo n.º 7
0
        public ActionResult Step6()
        {
            Cache.Remove(CacheKeyCollection.CACHE_SHOPDTO(CurrentSellerManager.ShopId, true));
            var shop = ShopApplication.GetShop(CurrentSellerManager.ShopId, true);

            if (shop.ShopStatus == ShopInfo.ShopAuditStatus.Refuse)
            {
                ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement();
                var model = ShopApplication.GetSettled();
                return(View("step1", model));
            }
            return(View());
        }
Exemplo n.º 8
0
        public ActionResult Step6()
        {
            ShopApplication.ClearCacheShop(CurrentSellerManager.ShopId);
            var shop = ShopApplication.GetShop(CurrentSellerManager.ShopId, true);

            if (shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.Refuse)
            {
                ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement();
                var model = ShopApplication.GetSettled();
                return(View("step1", model));
            }
            return(View());
        }
Exemplo n.º 9
0
        public ActionResult EditProfile1()
        {
            var model = ShopApplication.GetShop(CurrentSellerManager.ShopId);

            ViewBag.Step     = 1;
            ViewBag.MenuStep = 1;
            if (model.BusinessType.Equals(Mall.CommonModel.ShopBusinessType.Personal))
            {
                ViewBag.Frame = "Steps1";
            }
            else
            {
                ViewBag.Frame = "Step1";
            }
            ViewBag.Manager = CurrentUser;
            ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement();
            var step1 = new ShopProfileStep1();

            return(View("EditProfile", step1));
        }
Exemplo n.º 10
0
        /// <summary>
        /// 诊所入驻协议
        /// </summary>
        /// <returns></returns>
        public ActionResult Step1()
        {
            ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement();
            var model = ShopApplication.GetSettled();

            if (CurrentSellerManager != null)
            {
                var shop = ShopApplication.GetShop(CurrentSellerManager.ShopId);
                if (shop != null)
                {
                    if (shop.ShopStatus == ShopInfo.ShopAuditStatus.Refuse)
                    {
                        return(RedirectToAction("step3"));
                    }

                    ViewBag.IsSeller  = shop.Stage == ShopInfo.ShopStage.Finish && shop.ShopStatus == ShopInfo.ShopAuditStatus.Open;
                    ViewBag.WaitAudit = shop.ShopStatus == ShopInfo.ShopAuditStatus.WaitAudit;
                }
            }
            return(View(model));
        }