Ejemplo n.º 1
0
        /// <summary>
        /// InitPage
        /// </summary>
        private void InitPage()
        {
            this.template_path = WebUtils.GetWebPath();

            LocalizationUtility.SetValueControl(this);

            //this.header_name = Constant.UI.admin_users_header_title_edit;
            this.l_btn_apply  = Constant.UI.admin_apply;
            this.l_btn_save   = Constant.UI.admin_save;
            this.l_btn_delete = Constant.UI.admin_delete;
            this.l_btn_cancel = Constant.UI.admin_cancel;
            //this.l_publish = Constant.UI.admin_publish;
            //this.l_username = Constant.UI.admin_user_username;
            //this.l_password = Constant.UI.admin_user_password;
            //this.l_confirmpassword = Constant.UI.admin_user_confirmpassword;
            //this.l_name = Constant.UI.admin_name;
            //this.l_email = Constant.UI.admin_user_email;
            this.l_phone = Constant.UI.admin_user_phone;
            //this.ltr_Mobile.Text = Constant.UI.admin_user_mobile;
            //this.l_address = Constant.UI.admin_user_address;
            //this.ltr_city.Text = Constant.UI.admin_user_city;
            //this.l_permission = Constant.UI.admin_user_permission_label;
            //this.l_dept = Constant.UI.admin_user_dept;

            //this.ltrNoteUsername.Text = Constant.UI.admin_user_note_username;
            //this.ltrNotePassword.Text = Constant.UI.admin_user_note_psaaword;
            //alert
            this.msg_confirm_delete_item       = Constant.UI.admin_msg_confirm_delete_item;
            this.reqv_txtUsername.Text         = Constant.UI.alert_empty_username;
            this.reqv_txtPassword.Text         = Constant.UI.alert_empty_password;
            this.reqvc_txtConfirmpassword.Text = Constant.UI.alert_empty_password2;
            this.comv_Password.Text            = Constant.UI.alert_invalid_password2;
            this.cusv_txtUsername.Text         = Constant.UI.alert_empty_username;
            this.reqvc_txtEmail.Text           = Constant.UI.alert_empty_email;
            this.regv_Email.Text = Constant.UI.alert_invalid_email;
            this.btn_Delete.Attributes.Add(" OnClientClick", "javascript:return confirmDelete('" + msg_confirm_delete_item + "');");
            this.reqvc_txtFullName.Text = Constant.UI.alert_empty_name_outsite;
            regv_txtPhone.Text          = Constant.UI.alert_invalid_phone;
            regv_txtMobile.Text         = Constant.UI.alert_invalid_mobile;

            //load data drop down list
            LoadDataDropdownlist(drpCity);
            UserBLL.BindRoleName(drpPermission);

            //Init Validate string
            regv_txtPhone.ValidationExpression  = Constant.RegularExpressionString.validatePhone;
            regv_txtMobile.ValidationExpression = Constant.RegularExpressionString.validatePhone;
            regv_Email.ValidationExpression     = Constant.RegularExpressionString.validateEmail;

            //Event server validate
            cusv_txtUsername.ServerValidate += new ServerValidateEventHandler(cusv_txtUsername_ServerValidate);
            this.cus_checkPassWord.Text      = Constant.UI.msg_account_password_short;

            this.ltrAdminApply.Text  = Constant.UI.admin_apply;
            this.ltrAdminCancel.Text = Constant.UI.admin_cancel;
            this.ltrAdminDelete.Text = Constant.UI.admin_delete;
            this.ltrAdminSave.Text   = Constant.UI.admin_save;
        }