コード例 #1
0
ファイル: pDuring.aspx.cs プロジェクト: wwkkww1983/yh
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Query()
        {
            if (IsValid)
            {
                DateTime begin = UCConditionDTTwo1.Begin;
                DateTime end   = UCConditionDTTwo1.End;

                //int  UCConditionDTTwo1.GetQueryDeviceIDs();
                StationCollection sc           = this.UCConditionDTTwo1.Stations;
                string[]          stationNames = sc.GetStationNames();

                DataTable tbl = DitchDataDayDBI.GetDayDataTable(begin, end, stationNames, this.DataEnum);
                //this.GridView1.DataSource = tbl;
                //this.DataBind();
                this.GridView1.Columns.Clear();
                Xdgk.UI.GridViewHelper H = new Xdgk.UI.GridViewHelper(this.GridView1);
                H.GridViewConfig = GetGridViewConfig(tbl);
                H.DataSource     = tbl;
                H.Bind();


                this.UCZedChart1.DataSource      = tbl;
                this.UCZedChart1.GraphPaneConfig = GetGraphPaneConfig(tbl);
            }
        }
コード例 #2
0
ファイル: pDuringAmount.aspx.cs プロジェクト: wwkkww1983/yh
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void UCConditionDTTwo1_QueryEvent(object sender, EventArgs e)
        {
            if (IsValid)
            {
                DateTime begin = this.UCConditionDTTwo1.Begin;
                DateTime end   = this.UCConditionDTTwo1.End;

                StationCollection stations = this.UCConditionDTTwo1.Stations;
                DataTable         tbl      = DitchDataDayDBI.GetDayDataTable(begin, end, stations.GetStationNames(), DataEnum.Amount);
                this.GridView1.DataSource = tbl;
                this.GridView1.DataBind();
            }
        }