Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }