コード例 #1
0
ファイル: TransferUC.ascx.cs プロジェクト: NagisaSaku/EMS
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         FrmUtil.FillCodes(this);
     }
 }
コード例 #2
0
ファイル: ContractUC.ascx.cs プロジェクト: NagisaSaku/EMS
        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);
            }
        }
コード例 #3
0
        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);
            }
        }
コード例 #4
0
        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);
            }
        }
コード例 #5
0
 protected void cbbEmployee_Callback(object sender, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e)
 {
     // 选中部门时,重新填充员工
     FrmUtil.FillCodes(cbbEmployee, e.Parameter);
 }
コード例 #6
0
ファイル: LeaveUC.ascx.cs プロジェクト: NagisaSaku/EMS
 protected void cbbEmpCode_Callback(object sender, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e)
 {
     FrmUtil.FillCodes(cbbEmpCode, e.Parameter);
 }