Пример #1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            this.cmdSave.Attributes["onclick"] = "this.disabled=true;if(document.getElementById('chbMailNotify').checked) document.getElementById('chbMailNotify').checked = confirm('"
                                                 + BenQGuru.eMES.Web.Helper.MessageCenter.ParserMessage("$If_Mail_Notified"                                                        //确实要邮件通知相关人员吗?
                                                                                                        , this.languageComponent1)
                                                 + "');"
                                                 + "document.getElementById('btnSave').click();";
            _actionType = Request.QueryString["action"];
            try
            {
                _alertID = int.Parse(Request.QueryString["alertid"]);
            }
            catch
            {
                _alertID = 0;
            }

            _alertConst = new AlertConst(this.languageComponent1);
            this.cmdAddUser.Attributes["onclick"] = "document.getElementById('stbUser:_ctl2').click();";

            if (!IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                AlertLevelBuilder.Build(this.drpAlertLevel.Items, this._alertConst);
                if (_actionType == AlertPageAction.Edit)
                {
                    LoadData();
                }
            }
        }
Пример #2
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            _alertConst = new AlertConst(this.languageComponent1);

            if (!IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                AlertLevelBuilder.Build(this.drpAlertLevel.Items, this._alertConst);
                this.drpAlertLevel.Items.Insert(0, (new ListItem(_alertConst.GetName("*"), "*")));
            }
        }
Пример #3
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            try
            {
                _alertID = int.Parse(Request.QueryString["alertid"]);
            }
            catch
            {
                _alertID = 0;
            }

            _alertConst = new AlertConst(this.languageComponent1);

            if (!IsPostBack)
            {
                // 初始化页面语言
                this.InitPageLanguage(this.languageComponent1, false);

                AlertLevelBuilder.Build(this.drpAlertLevel.Items, this._alertConst);
                AlertStatusBuilder.Build(this.drpAlertStatus.Items, this._alertConst);
                LoadData();
            }
        }