Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Ajax.Utility.RegisterTypeForAjax(typeof(RoleAdd));
            MyAddInit();
            CTRL_AREA.MySelectChange += new DigiPower.Onlinecol.Standard.Web.CommonCtrl.ctrlDropDownArea.SelectChange(CompanySelectChange);
            if (!this.IsPostBack)
            {
                RoleType.DataValueField = "SystemInfoCode";
                RoleType.DataBindEx();

                if (PublicModel.isSuperAdmin())
                {
                    CTRL_AREA.BindDblArea(true, "");
                }
                else
                {
                    CTRL_AREA.BindDblArea(true, "AREA_CODE='" + Common.Session.GetSession("AREA_CODE") + "'");
                }

                if ((CommonEnum.PageState)ViewState["ps"] == CommonEnum.PageState.VIEW)
                {
                    btnSave.Visible = false;
                }

                CompanySelectChange();
                BindPage(ID);
            }
        }