示例#1
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.cvDate);
                this.txtDate.Text = YongShuiGuanLiLib.DateTimeHelper.GetYesterday().ToString();

                OrganizationDataBinder.DataBind(this.ddlOrganization);
                StationDataBinder.DataBind(this.ddlStation, this.ddlOrganization);
            }
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Init(object sender, EventArgs e)
        {
            Trace.Warn("UCConditionDTTwo page_init()");
            if (!IsPostBack)
            {
                ValidatorMessageCreater.CreateSQLDateTimeMessage(this.cvBegin);
                ValidatorMessageCreater.CreateSQLDateTimeMessage(this.cvEnd);
                this.txtBegin.Text = YongShuiGuanLiLib.DateTimeHelper.GetYesterday().ToString();
                this.txtEnd.Text   = YongShuiGuanLiLib.DateTimeHelper.GetTomorrow().ToString();

                OrganizationDataBinder.DataBind(this.ddlOrganization);
                StationDataBinder.DataBind(this.ddlStation, this.ddlOrganization, this.IsAddAll);
            }
        }
示例#3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Init(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.txtDateBegin.Text  = YongShuiGuanLiLib.DateTimeHelper.GetYesterday().ToString();
                this.txtDateBegin2.Text = YongShuiGuanLiLib.DateTimeHelper.GetYesterday().ToString();

                this.txtDateEnd.Text  = YongShuiGuanLiLib.DateTimeHelper.GetTomorrow().ToString();
                this.txtDateEnd2.Text = YongShuiGuanLiLib.DateTimeHelper.GetTomorrow().ToString();

                if (SessionManager.LoginSession.WaterUser != null)
                {
                    int ID = SessionManager.LoginSession.WaterUser.WaterUserID;
                    StationDataBinder.DataBind(this.ddlStation, ID, false);
                    StationDataBinder.DataBind(this.ddlStation2, ID, false);
                }
            }
        }
示例#4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void ddlOrganization_SelectedIndexChanged(object sender, EventArgs e)
 {
     //int id = int.Parse(this.ddlOrganization.SelectedValue);
     StationDataBinder.DataBind(this.ddlStation, this.ddlOrganization);
 }
示例#5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void ddlOrganization_SelectedIndexChanged(object sender, EventArgs e)
 {
     StationDataBinder.DataBind(this.ddlStation, this.ddlOrganization, false);
 }