Example #1
0
        /// <summary>
        /// 获取存管用户实体
        /// </summary>
        private void GetShowQuanStatus()
        {
            Guid userid = WebUserAuth.UserId.Value;

            cgtmode = new QueryClient().GetUserByPlatformUserNo(userid);
            if (cgtmode == null)
            {
                cgtmode = new cgt_user_UserExt_Info();
                cgtmode.accountStage   = 1;
                cgtmode.isBindCard     = false;
                cgtmode.isAllowRechare = false;
                isRealName             = false;
            }
        }
Example #2
0
        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;
                }
            }
        }
Example #3
0
        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;
                }
            }
        }
Example #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.IsPostBack)
     {
         Guid    userid = WebUserAuth.UserId.Value;
         UserBLL bll    = new UserBLL();
         UserInfo = bll.GetUserBasicInfoModelById(userid);
         if (UserInfo == null)
         {
             Response.Redirect("~/Member/my_account.aspx");
             return;
         }
         CgtUser = new QueryClient().GetUserByPlatformUserNo(userid);
         //if (CgtUser == null)
         //{
         //    Response.Redirect("~/Member/my_userdetailinfo.aspx");
         //    return;
         //}
         GetShowQuanStatus();
         rInfo = new UserRiskEvaluationBLL().GetAssassTimeThisYear(userid, TdConfig.ApplicationName);
     }
 }