コード例 #1
0
ファイル: ShopApplication.cs プロジェクト: sky63886/Himall3.3
        /// <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 Step2()
        {
            Entities.ShopInfo.ShopStage Stage = Entities.ShopInfo.ShopStage.Agreement;
            var shop = ShopApplication.GetShopProfileStep2(CurrentSellerManager.ShopId, out Stage);

            if (Stage == Entities.ShopInfo.ShopStage.CompanyInfo)
            {
                return(RedirectToAction("step1"));
            }

            ViewBag.BankRegionIds = RegionApplication.GetRegionPath(shop.BankRegionId);


            return(View(shop));
        }
コード例 #3
0
        /// <summary>
        /// 提现申请页面初始
        /// </summary>
        /// <returns></returns>
        public ActionResult ApplyWithDraw()
        {
            Entities.ShopInfo.ShopStage Stage = Entities.ShopInfo.ShopStage.Agreement;
            var shop = ShopApplication.GetShopProfileStep2(CurrentSellerManager.ShopId, out Stage);

            Himall.DTO.MemberAccountSafety mMemberAccountSafety = MemberApplication.GetMemberAccountSafety(MemberApplication.GetMemberUserIdOrShop(CurrentUser, CurrentSellerManager));

            ViewBag.MemberEmail = mMemberAccountSafety.Email;
            ViewBag.MemberPhone = mMemberAccountSafety.Phone;
            var siteSetting = SiteSettingApplication.SiteSettings;

            ViewBag.CanAlipay       = siteSetting.Withdraw_AlipayEnable;
            ViewBag.CanWXpay        = siteSetting.IsOpenH5;//微信提现需要绑定了微信支付才可以
            ViewBag.WithDrawMinimum = siteSetting.ShopWithDrawMinimum;
            ViewBag.WithDrawMaximum = siteSetting.ShopWithDrawMaximum;
            return(View(shop));
        }