/// <summary> /// 获取店铺账户 /// </summary> /// <returns></returns> public ShopAccountModel GetShopAccount() { CheckShopManageLogin(); var shop = CurrentShop; long shopId = shop.Id; var shopAccount = BillingApplication.GetShopAccount(shopId); ShopAccountModel model = new ShopAccountModel() { PeriodSettlement = shopAccount.PendingSettlement, Settlement = shopAccount.Settled, ShopName = shopAccount.ShopName, Balance = shopAccount.Balance, LastSettlement = BillingApplication.GetLastSettlementByShopId(shopId), LastSettlementModel = BillingApplication.GetLastSettlementInfo(), IsShowWithDraw = CurrentUser.IsMainAccount }; return(model); }
/// <summary> /// 获取可提现金额 /// </summary> /// <returns></returns> public object GetWithdraw() { CheckShopManageLogin();; //获取诊所账户信息 DTO.ShopAccount shopAccount = BillingApplication.GetShopAccount(CurrentShop.Id); //获取站点配置信息 var siteSetting = SiteSettingApplication.GetSiteSettings(); //获取加盟商账户余额 var balance = 0m; if (shopAccount != null) { balance = shopAccount.Balance; } //判断诊所是否绑定银行卡 bool IsBindBank = true; if (string.IsNullOrWhiteSpace(CurrentShop.BankAccountNumber)) { IsBindBank = false; } var user = MemberApplication.GetMemberByName(CurrentUser.UserName); Himall.DTO.MemberAccountSafety mMemberAccountSafety = MemberApplication.GetMemberAccountSafety(user.Id); return(Json(new { success = true, //状态 msg = "", Balance = balance, //诊所账户余额 RealMoney = (MAX_WithDraw_Money - balance) <= 0 ? MAX_WithDraw_Money : balance, //实际可提现金额 //实际可提现金额 BankAccountName = CurrentShop.BankAccountName, //银行开户名 BankAccountNumber = CurrentShop.BankAccountNumber, //银行账号 BankName = CurrentShop.BankName, //开户银行名称 IsBindBank = IsBindBank, //诊所是否绑定银行卡号 true=已绑定 Phone = mMemberAccountSafety.Phone, // 手机号码 BankBranch = CurrentShop.BankName //开户银行支行完整名称 })); }
/// <summary> /// 充值页面 /// </summary> /// <returns></returns> public ActionResult CapitalCharge() { Himall.DTO.ShopAccount model = BillingApplication.GetShopAccount(CurrentSellerManager.ShopId); return(View(model)); }