protected void Page_Load(object sender, EventArgs e) { Ajax.Utility.RegisterTypeForAjax(typeof(UserAdd)); MyAddInit(); CompanyID.MySelectChange += new DigiPower.Onlinecol.Standard.Web.CommonCtrl.ctrlDropDownCompanyInfo.SelectChange(ddlCompan_MySelectChange); if (!this.IsPostBack) { CompanyID.DataBindEx(); ddlCompan_MySelectChange(); BindPage(ID); if ((CommonEnum.PageState)ViewState["ps"] == CommonEnum.PageState.ADD) { Createdate.Text = DateTime.Now.ToString("yyyy-MM-dd"); } if ((CommonEnum.PageState)ViewState["ps"] == CommonEnum.PageState.VIEW) { btnSave.Visible = false; } if ((CommonEnum.PageState)ViewState["ps"] == CommonEnum.PageState.EDIT) { CompanyID.enabled = false; } } }
protected void Page_Load(object sender, EventArgs e) { Ajax.Utility.RegisterTypeForAjax(typeof(WorkFlowAdd)); MyAddInit(); CompanyID.MySelectChange += new DigiPower.Onlinecol.Standard.Web.CommonCtrl.ctrlDropDownCompanyInfo.SelectChange(ddlCompan_MySelectChange); if (!IsPostBack) { chkMenuRight.DataBindEx(SystemSet._WORKFLOWRIGHTCHAR); CompanyID.DataBindEx(); ddlCompan_MySelectChange(); BindPage(ID); if ((CommonEnum.PageState)ViewState["ps"] == CommonEnum.PageState.VIEW) { btnSave.Visible = false; } } }
/// <summary> /// 根据区域选择,对应的公司(档案馆) /// </summary> private void CompanySelectChange() { CompanyID.DataBindEx(CTRL_AREA.SelectValue); }