예제 #1
0
        /// <summary>
        /// 获取商家入驻第三部信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public static ShopProfileStep2 GetShopProfileStep2(long id, out Entities.ShopInfo.ShopStage Stage)
        {
            var shop  = Service.GetShop(id);
            var model = new ShopProfileStep2()
            {
                BankAccountName                 = shop.BankAccountName == null ? "" : shop.BankAccountName,
                BankAccountNumber               = shop.BankAccountNumber == null ? "" : shop.BankAccountNumber,
                BankCode                        = shop.BankCode == null ? "" : shop.BankCode,
                BankName                        = shop.BankName == null ? "" : shop.BankName,
                BankPhoto                       = shop.BankPhoto == null ? "" : shop.BankPhoto,
                BankRegionId                    = shop.BankRegionId,
                TaxpayerId                      = shop.TaxpayerId == null ? "" : shop.TaxpayerId,
                TaxRegistrationCertificate      = shop.TaxRegistrationCertificate == null ? "" : shop.TaxRegistrationCertificate,
                TaxRegistrationCertificatePhoto = shop.TaxRegistrationCertificatePhoto == null ? "" : shop.TaxRegistrationCertificatePhoto,
                WeiXinAddress                   = shop.WeiXinAddress == null ? "" : shop.WeiXinAddress,
                WeiXinNickName                  = shop.WeiXinNickName == null ? "" : shop.WeiXinNickName,
                WeiXinOpenId                    = shop.WeiXinOpenId == null ? "" : shop.WeiXinOpenId,
                WeiXinSex                       = shop.WeiXinSex == null ? 0 : shop.WeiXinSex.Value,
                WeiXinTrueName                  = shop.WeiXinTrueName == null ? "" : shop.WeiXinTrueName,
                BusinessType                    = shop.BusinessType,
                Settled = GetSettled()
            };

            Stage = shop.Stage;
            return(model);
        }
예제 #2
0
        public ActionResult Step6()
        {
            ShopInfo         shop             = ServiceHelper.Create <IShopService>().GetShop(base.CurrentSellerManager.ShopId, false);
            ShopProfileStep2 shopProfileStep2 = new ShopProfileStep2()
            {
                BankAccountName              = shop.BankAccountName,
                BankAccountNumber            = shop.BankAccountNumber,
                BankCode                     = shop.BankCode,
                BankName                     = shop.BankName,
                BankPhoto                    = shop.BankPhoto,
                BeneficiaryBankName          = shop.BeneficiaryBankName,
                SWiftBic                     = shop.SWiftBic,
                BeneficiaryName              = shop.BeneficiaryName,
                BeneficiaryAccountNum        = shop.BeneficiaryAccountNum,
                CompanysAddress              = shop.CompanysAddress,
                BeneficiaryBankBranchAddress = shop.BeneficiaryBankBranchAddress,
                AbaRoutingNumber             = shop.AbaRoutingNumber
                                               //BankRegionId = shop.BankRegionId,
                                               //TaxpayerId = shop.TaxpayerId,
                                               //TaxRegistrationCertificate = shop.TaxRegistrationCertificate,
                                               //TaxRegistrationCertificatePhoto = shop.TaxRegistrationCertificatePhoto
            };

            ViewBag.BankRegionIds = ServiceHelper.Create <IRegionService>().GetRegionIdPath(shop.BankRegionId);
            return(View(shopProfileStep2));
        }
예제 #3
0
        public JsonResult EditProfile2(ShopProfileStep2 shopProfileStep2)
        {
            ShopInfo shopInfo = new ShopInfo()
            {
                Id = base.CurrentSellerManager.ShopId,
                BankAccountName              = shopProfileStep2.BankAccountName,
                BankAccountNumber            = shopProfileStep2.BankAccountNumber,
                BankCode                     = shopProfileStep2.BankCode,
                BankName                     = shopProfileStep2.BankName,
                BankPhoto                    = shopProfileStep2.BankPhoto,
                BankRegionId                 = shopProfileStep2.BankRegionId,
                BeneficiaryBankName          = shopProfileStep2.BeneficiaryBankName,
                SWiftBic                     = shopProfileStep2.SWiftBic,
                BeneficiaryName              = shopProfileStep2.BeneficiaryName,
                BeneficiaryAccountNum        = shopProfileStep2.BeneficiaryAccountNum,
                CompanysAddress              = shopProfileStep2.CompanysAddress,
                BeneficiaryBankBranchAddress = shopProfileStep2.BeneficiaryBankBranchAddress,
                AbaRoutingNumber             = shopProfileStep2.AbaRoutingNumber,
                ShopStatus                   = ShopInfo.ShopAuditStatus.WaitAudit,
                GradeId = 1,
                EndDate = DateTime.Now.AddDays(1000),
                Stage   = ShopInfo.ShopStage.Finish
            };

            ServiceHelper.Create <IShopService>().UpdateShop(shopInfo);
            return(Json(new { success = true }));
        }
예제 #4
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));
        }
예제 #5
0
 public JsonResult EditProfile2(ShopProfileStep2 shopProfileStep2)
 {
     Mall.DTO.Shop shopInfo = ShopApplication.GetShop(CurrentSellerManager.ShopId);
     shopInfo.Id = CurrentSellerManager.ShopId;
     shopInfo.BankAccountName                 = shopProfileStep2.BankAccountName;
     shopInfo.BankAccountNumber               = shopProfileStep2.BankAccountNumber;
     shopInfo.BankCode                        = shopProfileStep2.BankCode;
     shopInfo.BankName                        = shopProfileStep2.BankName;
     shopInfo.BankPhoto                       = shopProfileStep2.BankPhoto;
     shopInfo.BankRegionId                    = shopProfileStep2.BankRegionId;
     shopInfo.TaxpayerId                      = shopProfileStep2.TaxpayerId;
     shopInfo.TaxRegistrationCertificate      = shopProfileStep2.TaxRegistrationCertificate;
     shopInfo.TaxRegistrationCertificatePhoto = shopProfileStep2.TaxRegistrationCertificatePhoto;
     shopInfo.Stage = Entities.ShopInfo.ShopStage.ShopInfo;
     ShopApplication.UpdateShop(shopInfo);
     return(Json(new { success = true }));
 }
        public ActionResult Step2()
        {
            ShopInfo         shop             = ServiceHelper.Create <IShopService>().GetShop(base.CurrentSellerManager.ShopId, false);
            ShopProfileStep2 shopProfileStep2 = new ShopProfileStep2()
            {
                BankAccountName                 = shop.BankAccountName,
                BankAccountNumber               = shop.BankAccountNumber,
                BankCode                        = shop.BankCode,
                BankName                        = shop.BankName,
                BankPhoto                       = shop.BankPhoto,
                BankRegionId                    = shop.BankRegionId,
                TaxpayerId                      = shop.TaxpayerId,
                TaxRegistrationCertificate      = shop.TaxRegistrationCertificate,
                TaxRegistrationCertificatePhoto = shop.TaxRegistrationCertificatePhoto
            };

            ViewBag.BankRegionIds = ServiceHelper.Create <IRegionService>().GetRegionIdPath(shop.BankRegionId);
            return(View(shopProfileStep2));
        }
        public JsonResult EditProfile2(ShopProfileStep2 shopProfileStep2)
        {
            ShopInfo shopInfo = new ShopInfo()
            {
                Id = base.CurrentSellerManager.ShopId,
                BankAccountName                 = shopProfileStep2.BankAccountName,
                BankAccountNumber               = shopProfileStep2.BankAccountNumber,
                BankCode                        = shopProfileStep2.BankCode,
                BankName                        = shopProfileStep2.BankName,
                BankPhoto                       = shopProfileStep2.BankPhoto,
                BankRegionId                    = shopProfileStep2.BankRegionId,
                TaxpayerId                      = shopProfileStep2.TaxpayerId,
                TaxRegistrationCertificate      = shopProfileStep2.TaxRegistrationCertificate,
                TaxRegistrationCertificatePhoto = shopProfileStep2.TaxRegistrationCertificatePhoto,
                Stage = new ShopInfo.ShopStage?(ShopInfo.ShopStage.ShopInfo)
            };

            ServiceHelper.Create <IShopService>().UpdateShop(shopInfo);
            return(Json(new { success = true }));
        }
예제 #8
0
        public JsonResult EditProfile2(ShopProfileStep2 shopProfileStep2)
        {
            Cache.Remove(CacheKeyCollection.CACHE_SHOP(CurrentSellerManager.ShopId, false));
            Cache.Remove(CacheKeyCollection.CACHE_SHOPDTO(CurrentSellerManager.ShopId, false));
            Himall.DTO.Shop shopInfo = ShopApplication.GetShop(CurrentSellerManager.ShopId);
            shopInfo.Id = CurrentSellerManager.ShopId;
            shopInfo.BankAccountName                 = shopProfileStep2.BankAccountName;
            shopInfo.BankAccountNumber               = shopProfileStep2.BankAccountNumber;
            shopInfo.BankCode                        = shopProfileStep2.BankCode;
            shopInfo.BankName                        = shopProfileStep2.BankName;
            shopInfo.BankPhoto                       = shopProfileStep2.BankPhoto;
            shopInfo.BankRegionId                    = shopProfileStep2.BankRegionId;
            shopInfo.TaxpayerId                      = shopProfileStep2.TaxpayerId;
            shopInfo.TaxRegistrationCertificate      = shopProfileStep2.TaxRegistrationCertificate;
            shopInfo.TaxRegistrationCertificatePhoto = shopProfileStep2.TaxRegistrationCertificatePhoto;
            shopInfo.Stage = ShopInfo.ShopStage.ShopInfo;
            ShopApplication.UpdateShop(shopInfo);

            return(Json(new { success = true }));
        }