Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private GridViewConfig GetGridViewConfig2()
        {
            Xdgk.UI.GridViewConfig cfg = new Xdgk.UI.GridViewConfig();
            this.GridView2.Columns.Clear();
            cfg.AutoGenerateColumns = false;

            cfg.GridViewColumnConfigCollection.AddBoundField("开始日期", "BeginString");
            cfg.GridViewColumnConfigCollection.AddBoundField("结束日期", "EndString");
            cfg.GridViewColumnConfigCollection.AddBoundField("计算公式", "FormulaExpress");
            return(cfg);
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private GridViewConfig GetGridViewConfig()
        {
            Xdgk.UI.GridViewConfig cfg = new Xdgk.UI.GridViewConfig();
            this.GridView1.Columns.Clear();
            cfg.AutoGenerateColumns = false;

            cfg.GridViewColumnConfigCollection.AddBoundField(strings.StationName,
                                                             YongShuiGuanLiDBI.DBNames.vDitchData.StationName);

            cfg.GridViewColumnConfigCollection.AddBoundField(strings.DT, YongShuiGuanLiDBI.DBNames.vDitchData.DT);
            cfg.GridViewColumnConfigCollection.AddBoundField(strings.WLWithUnit, YongShuiGuanLiDBI.DBNames.vDitchData.WL1);
            cfg.GridViewColumnConfigCollection.AddBoundField(strings.InstantFluxWithUnit, YongShuiGuanLiDBI.DBNames.vDitchData.InstantFlux);
            return(cfg);
        }
Beispiel #3
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        private GridViewConfig GetGridViewConfig()
        {
            Xdgk.UI.GridViewConfig cfg = new Xdgk.UI.GridViewConfig();
            cfg.AutoGenerateColumns = false;
            cfg.AllowSorting        = true;
            cfg.Caption             = "LastDataCaption";
            cfg.GridViewColumnConfigCollection.AddHyperLinkField(
                "",
                strings.Detail,
                new string[] { YongShuiGuanLiDBI.DBNames.vDitchDataLast.StationID },
                "~/pDataHistory.aspx?StationID={0}"
                );

            cfg.GridViewColumnConfigCollection.AddBoundField(strings.StationName,
                                                             YongShuiGuanLiDBI.DBNames.vDitchData.StationName);

            cfg.GridViewColumnConfigCollection.AddBoundField(strings.DT, YongShuiGuanLiDBI.DBNames.vDitchData.DT);
            cfg.GridViewColumnConfigCollection.AddBoundField(strings.WL1, YongShuiGuanLiDBI.DBNames.vDitchData.WL1);
            cfg.GridViewColumnConfigCollection.AddBoundField(strings.InstantFlux, YongShuiGuanLiDBI.DBNames.vDitchData.InstantFlux);
            return(cfg);
        }
Beispiel #4
0
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        private GridViewConfig GetGridViewConfig()
        {
            Xdgk.UI.GridViewConfig cfg = new Xdgk.UI.GridViewConfig();
            cfg.AutoGenerateColumns = false;
            cfg.AllowSorting = true;
            cfg.Caption = "LastDataCaption";
            cfg.GridViewColumnConfigCollection.AddHyperLinkField(
                "",
                strings.Detail,
                new string[] { YongShuiGuanLiDBI.DBNames.vDitchDataLast.StationID },
                "~/pDataHistory.aspx?StationID={0}"
                );

            cfg.GridViewColumnConfigCollection.AddBoundField(strings.StationName,
                YongShuiGuanLiDBI.DBNames.vDitchData.StationName);

            cfg.GridViewColumnConfigCollection.AddBoundField(strings.DT, YongShuiGuanLiDBI.DBNames.vDitchData.DT);
            cfg.GridViewColumnConfigCollection.AddBoundField(strings.WL1, YongShuiGuanLiDBI.DBNames.vDitchData.WL1);
            cfg.GridViewColumnConfigCollection.AddBoundField(strings.InstantFlux, YongShuiGuanLiDBI.DBNames.vDitchData.InstantFlux);
            return cfg;
        }
Beispiel #5
0
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        private GridViewConfig GetGridViewConfig2()
        {
            Xdgk.UI.GridViewConfig cfg = new Xdgk.UI.GridViewConfig();
            this.GridView2.Columns.Clear();
            cfg.AutoGenerateColumns = false;

            cfg.GridViewColumnConfigCollection.AddBoundField("开始日期", "BeginString");
            cfg.GridViewColumnConfigCollection.AddBoundField("结束日期", "EndString");
            cfg.GridViewColumnConfigCollection.AddBoundField("计算公式", "FormulaExpress");
            return cfg;
        }
Beispiel #6
0
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        private GridViewConfig GetGridViewConfig()
        {
            Xdgk.UI.GridViewConfig cfg = new Xdgk.UI.GridViewConfig();
            this.GridView1.Columns.Clear();
            cfg.AutoGenerateColumns = false;

            cfg.GridViewColumnConfigCollection.AddBoundField(strings.StationName,
                YongShuiGuanLiDBI.DBNames.vDitchData.StationName);

            cfg.GridViewColumnConfigCollection.AddBoundField(strings.DT, YongShuiGuanLiDBI.DBNames.vDitchData.DT);
            cfg.GridViewColumnConfigCollection.AddBoundField(strings.WLWithUnit , YongShuiGuanLiDBI.DBNames.vDitchData.WL1);
            cfg.GridViewColumnConfigCollection.AddBoundField(strings.InstantFluxWithUnit, YongShuiGuanLiDBI.DBNames.vDitchData.InstantFlux);
            return cfg;
        }