コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindUser();

                if (PortalUtils.GetHideDemoCheckbox())
                {
                    chkDemo.Visible = lblDemoAccount.Visible = false;
                }
            }
        }
コード例 #2
0
        private void BindForm()
        {
            UserSettings settings = ES.Services.Users.GetUserSettings(PanelSecurity.LoggedUserId, UserSettings.ACCOUNT_SUMMARY_LETTER);
            bool         accountSummaryEmailEnabled = !String.IsNullOrEmpty(settings["EnableLetter"]) && Utils.ParseBool(settings["EnableLetter"], false);

            this.chkAccountLetter.Enabled             = accountSummaryEmailEnabled;
            this.pnlDisabledSummaryLetterHint.Visible = !accountSummaryEmailEnabled;
            if (PortalUtils.GetHideDemoCheckbox())
            {
                this.lblDemoAccount.Visible = this.chkDemo.Checked = this.chkDemo.Visible = false;
            }

            //reseller.UserId = PanelSecurity.SelectedUserId;
            userPassword.SetUserPolicy(PanelSecurity.SelectedUserId, UserSettings.WEBSITEPANEL_POLICY, "PasswordPolicy");
        }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindUser();

                if (PortalUtils.GetHideDemoCheckbox())
                {
                    rowDemo.Visible = false;
                }
            }

            if (PanelSecurity.LoggedUser.Role == UserRole.User)
            {
                txtSubscriberNumber.ReadOnly = true;
            }
        }