Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Init(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.txtBegin.Text = YongShuiGuanLiLib.DateTimeHelper.GetYesterday().ToString();
                this.txtEnd.Text   = YongShuiGuanLiLib.DateTimeHelper.GetTomorrow().ToString();

                WaterUserDataBinder.DataBind(SessionManager.LoginSession.WaterUser, this.ddlWaterUser);
                this.ddlWaterUser.Items.Insert(0, new ListItem("<全部>", "0"));
            }
        }
Exemple #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        //protected void Page_Load(object sender, EventArgs e)
        protected void Page_Init(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                YongShuiGuanLiLib.ValidatorMessageCreater.CreateSQLDateTimeMessage(
                    this.cvBegin);
                YongShuiGuanLiLib.ValidatorMessageCreater.CreateSQLDateTimeMessage(
                    this.cvEnd);

                this.txtBegin.Text = YongShuiGuanLiLib.DateTimeHelper.GetYesterday().ToString();
                this.txtEnd.Text   = YongShuiGuanLiLib.DateTimeHelper.GetTomorrow().ToString();
                // fill water user list
                //
                //OrganizationDataBinder .DataBind (
                //StationDataBinder .DataBind (
                WaterUserClass wu = SessionManager.LoginSession.WaterUser;
                WaterUserDataBinder.DataBind(wu, this.cblWaterUserList);
            }
        }