protected void Page_Load(object sender, EventArgs e) { IsOpenCgt = ConfigHelper.getConfigString("IsOpenCGT") == "1"; Guid userId = WebUserAuth.UserId.Value; if (userId == Guid.Empty) { Response.Redirect("/Member/my_userdetailinfo.aspx"); } if (!this.IsPostBack) { UserBLL bll = new UserBLL(); userModel = bll.GetUserBasicInfoModelById(userId); if (userModel != null) { if (!string.IsNullOrEmpty(userModel.HeadImage)) { headImage = userModel.HeadImage; } //登录时判断超级会员是否过期 userModel.Level = BusinessDll.Users.JudgeUserLevel(userModel.Level.Value, userModel.LevelEndDate); } accountModel = bll.GetWXFundAccountInfo(userId); } }
protected bool IsInvestNewUser = false;//是否投资新手 //UserBLL bll = new UserBLL(); protected void Page_Load(object sender, EventArgs e) { type = WEBRequest.GetString("type", ""); //Response.Redirect(GlobalUtils.WebURL + "/Member/UserPrize/RedPacket.aspx?type="+type); SetPageTitle(); if (!IsPostBack) { //判断当前用户是否投资新手 WXFundAccountInfo accountModel = bll.GetWXFundAccountInfo(WebUserAuth.UserId.Value); if (accountModel != null && (accountModel.TotalInvest ?? 0) == 0) { IsInvestNewUser = true; } } }
protected void InitFormData() { UserBLL bll = new UserBLL(); userModel = bll.GetUserBasicInfoModelById(userId); ExtModel = bll.GetUserBasicInfoExtInfo(userId); if (!string.IsNullOrWhiteSpace(userModel.HeadImage)) { headImage = userModel.HeadImage; } accountModel = bll.GetWXFundAccountInfo(userId); //获取紧急联系人信息 UserBasicInfo_Ext _userBasicInfo_Ext = new UserBLL().GetEmergencyContact(userId); if (_userBasicInfo_Ext != null) { ExtModel.ContactName = _userBasicInfo_Ext.ContactName; ExtModel.ContactTelNo = _userBasicInfo_Ext.ContactTelNo; ExtModel.ContactRelationShip = _userBasicInfo_Ext.ContactRelationShip; } if (string.IsNullOrEmpty(ExtModel.Graduation) || string.IsNullOrEmpty(ExtModel.University) || string.IsNullOrEmpty(ExtModel.Marriage) || string.IsNullOrEmpty(ExtModel.Address) || string.IsNullOrEmpty(ExtModel.OfficeDomain) || string.IsNullOrEmpty(ExtModel.OfficeScale) || string.IsNullOrEmpty(ExtModel.Position) || string.IsNullOrEmpty(ExtModel.Salary) || !ExtModel.IsHaveHouse.HasValue || !ExtModel.IsHaveCar.HasValue || string.IsNullOrEmpty(ExtModel.ContactName) || string.IsNullOrEmpty(ExtModel.ContactTelNo) || string.IsNullOrEmpty(ExtModel.ContactRelationShip)) { IsCompleteDetailInfo = false; } UserVipModel = this.GetNewVipUserInfo(); UserSettingInfo UserSetting = new UserSettingBLL().GetUserSettingInfo(userId); if (UserSetting != null) { IsTenderNeedPayPassword = UserSetting.IsTenderNeedPayPassword; } //存管通用户 CgtUser = new QueryClient().GetUserByPlatformUserNo(userId); if (GlobalUtils.IsBankService) { var bankInfo = new BankFromJavaService().GetBankInfo(userId, TuanDai.WXSystem.Core.models.ServiceType.TuoMin); if (bankInfo != null && bankInfo.respData != null) { userModel.OpenBankName = bankInfo.respData.openBankName; } } }
protected void InitFormData() { UserBLL bll = new UserBLL(); userModel = bll.GetUserBasicInfoModelById(userId); ExtModel = bll.GetUserBasicInfoExtInfo(userId); if (!string.IsNullOrWhiteSpace(userModel.HeadImage)) { headImage = userModel.HeadImage; } accountModel = bll.GetWXFundAccountInfo(userId); //获取紧急联系人信息 UserBasicInfo_Ext _userBasicInfo_Ext = new UserBLL().GetEmergencyContact(userId); if (_userBasicInfo_Ext != null) { ExtModel.ContactName = _userBasicInfo_Ext.ContactName; ExtModel.ContactTelNo = _userBasicInfo_Ext.ContactTelNo; ExtModel.ContactRelationShip = _userBasicInfo_Ext.ContactRelationShip; } UserVipModel = this.GetNewVipUserInfo(); UserSettingInfo UserSetting = new UserSettingBLL().GetUserSettingInfo(userId); if (UserSetting != null) { IsTenderNeedPayPassword = UserSetting.IsTenderNeedPayPassword; } //存管通用户 CgtUser = new QueryClient().GetUserByPlatformUserNo(userId); if (GlobalUtils.IsBankService) { var bankInfo = new BankFromJavaService().GetBankInfo(userId, ServiceType.TuoMin); if (bankInfo != null && bankInfo.respData != null) { userModel.OpenBankName = bankInfo.respData.openBankName; } } }