示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="selected"></param>
        /// <param name="begin"></param>
        /// <param name="end"></param>
        private void QueryAmount(StationCollection selected, DateTime begin, DateTime end)
        {
            DataTable tbl = selected.GetAmountDataTable(begin, end);

            this.UCAMChart1.SetLineChartInfo(tbl,
                                             YongShuiGuanLiDBI.DBNames.vDitchDataDay.StationName,
                                             YongShuiGuanLiDBI.DBNames.vDitchDataDay.DT,
                                             YongShuiGuanLiDBI.DBNames.vDitchDataDay.DayAmount);

            this.GridView1.DataSource = tbl;
            this.GridView1.DataBind();
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="selected"></param>
        /// <param name="begin"></param>
        /// <param name="end"></param>
        private void QueryAmount(StationCollection selected, DateTime begin, DateTime end)
        {
            string title  = string.Format("{0} ~ {1} {2}水量曲线", begin, end, this.GetSelectedChannelName());
            string yTitle = "水量(m3)";

            DataTable tbl = selected.GetAmountDataTable(begin, end);

            this.UCAMChart1.SetLineChartInfo(tbl,
                                             YongShuiGuanLiDBI.DBNames.vDitchDataDay.StationName,
                                             YongShuiGuanLiDBI.DBNames.vDitchDataDay.DT,
                                             YongShuiGuanLiDBI.DBNames.vDitchDataDay.DayAmount,
                                             title,
                                             yTitle);


            this.GridView1.Columns.Clear();
            Xdgk.UI.GridViewHelper h = new Xdgk.UI.GridViewHelper(this.GridView1);
            h.GridViewConfig = GetGridViewConfig(DataEnum.Amount, tbl);
            h.DataSource     = tbl;
            h.Bind();
        }
示例#3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="selected"></param>
        /// <param name="begin"></param>
        /// <param name="end"></param>
        private void QueryAmount(StationCollection selected, DateTime begin, DateTime end)
        {
            string title = string.Format("{0} ~ {1} {2}水量曲线", begin, end, this.GetSelectedChannelName());
            string yTitle = "水量(m3)";

            DataTable tbl = selected.GetAmountDataTable(begin, end);
            this.UCAMChart1.SetLineChartInfo(tbl,
                YongShuiGuanLiDBI.DBNames.vDitchDataDay.StationName,
                YongShuiGuanLiDBI.DBNames.vDitchDataDay.DT,
                YongShuiGuanLiDBI.DBNames.vDitchDataDay.DayAmount,
                title,
                yTitle);

            this.GridView1.Columns.Clear();
            Xdgk.UI.GridViewHelper h = new Xdgk.UI.GridViewHelper(this.GridView1);
            h.GridViewConfig = GetGridViewConfig(DataEnum.Amount,tbl);
            h.DataSource = tbl;
            h.Bind();
        }
示例#4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="selected"></param>
        /// <param name="begin"></param>
        /// <param name="end"></param>
        private void QueryAmount(StationCollection selected, DateTime begin, DateTime end)
        {
            DataTable tbl = selected.GetAmountDataTable(begin, end);
            this.UCAMChart1.SetLineChartInfo(tbl,
                YongShuiGuanLiDBI.DBNames.vDitchDataDay.StationName,
                YongShuiGuanLiDBI.DBNames.vDitchDataDay.DT,
                YongShuiGuanLiDBI.DBNames.vDitchDataDay.DayAmount);

            this.GridView1.DataSource = tbl;
            this.GridView1.DataBind();
        }