protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { FrmUtil.FillCodes(this); } }
protected void Page_Load(object sender, EventArgs e) { // 每次请求时,在服务端是不保持状态的,所以每次重新添加监听 if (Context.Handler is FrmBase) { (Context.Handler as FrmBase).dialogButtonClickHandler += onDialogButtonClick; (Context.Handler as FrmBase).dialogShowHandler += onDialogShow; txtCode.ReadOnly = true; } if (!IsPostBack) { FrmUtil.FillCodes(this); } }
protected void Page_Load(object sender, EventArgs e) { if (Context.CurrentHandler is FrmBase) { (Context.CurrentHandler as FrmBase).dialogShowHandler += delegate(object x, DialogShowEventArgs y) { loadUserInfo(y.Id); }; (Context.CurrentHandler as FrmBase).dialogButtonClickHandler += delegate(object x, DialogButtonClickEventArgs y) { y.Msg = saveUserInfo(); }; } if (!IsPostBack) { FrmUtil.FillCodes(this); } }
protected override void Page_Load(object sender, EventArgs e) { base.Page_Load(sender, e); addEventHandler(); if (!IsCallback && !IsPostBack) { FrmUtil.FillCodes(this); string fmDate = Request.QueryString["ToToDate"]; if (!string.IsNullOrEmpty(fmDate)) { datToToDate.Value = Convert.ToDateTime(fmDate); } string conStatus = Request.QueryString["ConStatus"]; if (!string.IsNullOrEmpty(conStatus)) { cbbConStatus.Value = conStatus; } loadContract(grdView); } }
protected void cbbEmployee_Callback(object sender, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e) { // 选中部门时,重新填充员工 FrmUtil.FillCodes(cbbEmployee, e.Parameter); }
protected void cbbEmpCode_Callback(object sender, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e) { FrmUtil.FillCodes(cbbEmpCode, e.Parameter); }