duheng
2024-03-25 de6cca765801bf519d72dc4271ee8ae81d1b4fec
补充查询历史数据内容
已修改19个文件
已添加1个文件
2045 ■■■■■ 文件已修改
Library/IStation.Log.dll 补丁 | 查看 | 原始文档 | blame | 历史
Library/IStation.Log.pdb 补丁 | 查看 | 原始文档 | blame | 历史
Library/IStation.Newtonsoft.dll 补丁 | 查看 | 原始文档 | blame | 历史
Library/IStation.Newtonsoft.pdb 补丁 | 查看 | 原始文档 | blame | 历史
Library/IStation.Settings.dll 补丁 | 查看 | 原始文档 | blame | 历史
Library/IStation.Settings.pdb 补丁 | 查看 | 原始文档 | blame | 历史
Model/IStation.Model.Basic/waterLevel/PumpRunParas.cs 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/IStation.ChEr.WebApi.csproj 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/IStation.ChEr.WebApi.csproj.user 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebApi/众毅调度/ZyConnectHelper.cs 244 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/IStation.WinFrmUI.Basic/ElecPrice/ViewElecPriceByDayDlg.Designer.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/IStation.WinFrmUI.Basic/IStation.WinFrmUI.Basic.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/IStation.WinFrmUI.Monitor/HistoryDataAPiHelper.cs 244 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/IStation.WinFrmUI.Monitor/IStation.WinFrmUI.Monitor.csproj 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/IStation.WinFrmUI.Monitor/ResultChartControl.Designer.cs 907 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/IStation.WinFrmUI.Monitor/ResultChartControl.cs 179 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/IStation.WinFrmUI.Monitor/ResultChartControl.resx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/IStation.WinFrmUI.Monitor/SearchHistoryData.cs 55 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/IStation.WinFrmUI.Monitor/SearchHistoryData.designer.cs 335 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WinFrmUI/IStation.WinFrmUI.Monitor/SearchHistoryData.resx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Library/IStation.Log.dll
Binary files differ
Library/IStation.Log.pdb
Binary files differ
Library/IStation.Newtonsoft.dll
Binary files differ
Library/IStation.Newtonsoft.pdb
Binary files differ
Library/IStation.Settings.dll
Binary files differ
Library/IStation.Settings.pdb
Binary files differ
Model/IStation.Model.Basic/waterLevel/PumpRunParas.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -80,6 +81,60 @@
            /// å¼€æœºæƒ…况
            /// </summary>
            public string Isopen { get; set; }
        }
    }
         public class PumpWater
        {
        /// <summary>
        /// æ ‡ç­¾
        /// </summary>
        public string Tag { get; set; }
        /// <summary>
        /// å–水量
        /// </summary>
        public List<Water> Values { get; set; }
    }
    public class Water
    {
        /// <summary>
        /// æ—¶é—´
        /// </summary>
        public DateTime DateTime { get; set; }
        /// <summary>
        /// å–水量
        /// </summary>
        public double    SingleWater { get; set; }
    }
    public class electricity
    {
        /// <summary>
        /// æ ‡ç­¾
        /// </summary>
        public string Tag { get; set; }
        /// <summary>
        /// æœ‰åŠŸç”µèƒ½
        /// </summary>
        public List<Ele> TotalEle { get; set; }
    }
    //电能
    public class Ele
    {
        /// <summary>
        /// æ—¶é—´
        /// </summary>
        public DateTime DateTime { get; set; }
        /// <summary>
        /// è¯¦ç»†ç”¨ç”µé‡
        /// </summary>
        public double Value { get; set; }
    }
}
WebApi/IStation.ChEr.WebApi.csproj
@@ -208,6 +208,7 @@
    <Compile Include="Controllers\AnaPrjController.cs" />
    <Compile Include="Controllers\HomeController.cs" />
    <Compile Include="Controllers\AnaSettingController.cs" />
    <Compile Include="Controllers\PumpRunController.cs" />
    <Compile Include="Controllers\ReservoirParasController.cs" />
    <Compile Include="Controllers\ReservoirWaterLevelController.cs" />
    <Compile Include="Controllers\RiverWaterLevelDropController.cs" />
@@ -223,6 +224,7 @@
    <Compile Include="众毅调度\dto\input\ScadaDispatchInput.cs" />
    <Compile Include="众毅调度\dto\MonitorRecord.cs" />
    <Compile Include="众毅调度\dto\output\ScadaDispatchOutput.cs" />
    <Compile Include="众毅调度\PumpRunParasDay.cs" />
    <Compile Include="众毅调度\ZyConnectHelper.cs" />
    <Compile Include="水总量\TotalWaterInHelper.cs" />
    <Compile Include="水总量\TotalWaterOutHelper.cs" />
WebApi/IStation.ChEr.WebApi.csproj.user
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
    <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
    <UseIISExpress>true</UseIISExpress>
    <Use64BitIISExpress />
    <IISExpressSSLPort>44318</IISExpressSSLPort>
WebApi/ÖÚÒãµ÷¶È/ZyConnectHelper.cs
@@ -1,4 +1,5 @@

using IStation.Model;
using IStation.ZyDto;
using Microsoft.Ajax.Utilities;
using System;
@@ -9,6 +10,9 @@
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using IsOpen = IStation.ZyDto.IsOpen;
using PumpIsopen = IStation.ZyDto.PumpIsopen;
using PumpTotalelectricity = IStation.ZyDto.PumpTotalelectricity;
namespace IStation
{
@@ -433,6 +437,246 @@
        /// <summary>
        /// èŽ·å–æ³µçš„å¼€æœºæƒ…å†µ
        /// </summary>
        /// <param name="startTime">开始时间</param>
        /// <param name="endTime">结束时间</param>
        /// <param name="resolution">时间步长,默认300秒</param>
        /// <returns></returns>
        public static async Task<List<ZyDto.PumpIsopen>> GetPumpIsopen(DateTime StartTime, DateTime EndTime, string resolution = "300")
        {
            List<IsOpen> listopen = new List<IsOpen> {
            new IsOpen
            {
                DateTime = DateTime.Now.AddDays(1),
                Isopen = "0"
            }
             };
            List<PumpIsopen> pumpIsopens = new List<PumpIsopen> {
               new PumpIsopen
            {
                Tag = "_0402010204012101001",
                Values = listopen
            }
        };
            if (isDebug)
            {
                return pumpIsopens;
            }
            var tagDict = new Dictionary<string, string>
            {
                  { "_0402010204012101001", "二取水1号泵开关状态" },
                  { "_0402010204012201001", "二取水2号泵开关状态" },
                  { "_0402010204012301001","二取水3号泵开关状态" },
                  { "_0402010204012401001", "二取水4号泵开关状态" },
                  {" _0402010204012501001", "二取水5号泵开关状态" },
            };
            var input = new ScadaDispatchInput
            {
                search = "history",
                starttime = new DateTime(StartTime.Year, StartTime.Month, StartTime.Day, 0, 0, 0).ToString("G"),
                endtime = new DateTime(EndTime.Year, EndTime.Month, EndTime.Day, 23, 59, 59).ToString("G"),
                Resolution = resolution,
                taglist = tagDict.Select(x => x.Key).ToArray()
            };
            var realScadaDataList = await GetRealScadaResultSate(input);
            return realScadaDataList;
        }
        /// <summary>
        /// èŽ·å–å®žæ—¶æ•°æ®å­—å…¸
        /// èŽ·å–å¼€æœºçŠ¶æ€
        /// </summary>
        /// <returns></returns>
        public static async Task<List<ZyDto.PumpIsopen>> GetRealScadaResultSate(ScadaDispatchInput input)
        {
            if (input == null)
                return default;
            var ws = new ClientWebSocket();
            await ws.ConnectAsync(new Uri(_url_root), CancellationToken.None);
            if (ws.State != WebSocketState.Open)
            {
                return default;
            }
            var realScadaDataList = new List<PumpIsopen>();
            var inputJson = JsonHelper.Object2Json(input);
            var inputBytes = Encoding.UTF8.GetBytes(inputJson);
            await ws.SendAsync(new ArraySegment<byte>(inputBytes), WebSocketMessageType.Text, true, CancellationToken.None);
            try
            {
                List<byte> outputBytes = new List<byte>();//全部消息容器
                var buffer = new byte[1024 * 4];//缓冲区
                var result = await ws.ReceiveAsync(new ArraySegment<byte>(buffer), CancellationToken.None); //监听Socket信息
                while (!result.CloseStatus.HasValue)  //是否关闭
                {
                    if (result.MessageType == WebSocketMessageType.Text)//文本消息
                    {
                        outputBytes.AddRange(buffer.Take(result.Count));
                        if (result.EndOfMessage)//消息是否已接收完全
                        {
                            //发送过来的消息
                            string outputJson = Encoding.UTF8.GetString(outputBytes.ToArray(), 0, outputBytes.Count);
                            var scadaDict = JsonHelper.Json2Object<Dictionary<string, Dictionary<DateTime, string>>>(outputJson);
                            if (scadaDict != null && scadaDict.Any())
                            {
                                foreach (var dict in scadaDict)
                                {
                                    var data = new PumpIsopen();
                                    data.Tag = dict.Key;
                                    foreach (var item in dict.Value)
                                    {
                                        var State = new IsOpen();
                                        State.DateTime = item.Key;
                                        State.Isopen = item.Value;
                                        data.Values.Add(State);
                                    }
                                    realScadaDataList.Add(data);
                                }
                            }
                            break;
                        }
                    }
                    result = await ws.ReceiveAsync(new ArraySegment<byte>(buffer), CancellationToken.None);//继续监听Socket信息
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                try
                {
                    //关闭WebSocket
                    await ws.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "AcknowledgeCloseframe", CancellationToken.None);
                }
                catch (Exception ex)
                {
                    throw ex;
                }
                ws.Abort();
                ws.Dispose();
            }
            return realScadaDataList;
        }
        /// <summary>
        /// èŽ·å–æŸæ®µæ—¶é—´çš„ç”¨ç”µé‡
        /// </summary>
        /// <param name="StartTime"></param>
        /// <param name="EndTime"></param>
        /// <param name="resolution"></param>
        /// <returns></returns>
        public static async Task<List<ZyDto.PumpTotalelectricity>> GetPumpTotalElectricity(DateTime StartTime, DateTime EndTime, string resolution = "300")
        {
            var tagDict = new Dictionary<string, string>
            {
                  { "_0402010204040193046", "二取水1号泵有功电能" },
                  { "_0402010204040193047", "二取水2号泵有功电能" },
                  { "_0402010204012308007", "二取水3号泵有功电能" },
                  { "_0402010204012408007", "二取水4号泵有功电能" },
                  {" _0402010204012508007", "二取水5号泵有功电能" },
            };
            var input = new ScadaDispatchInput
            {
                search = "history",
                starttime = new DateTime(StartTime.Year, StartTime.Month, StartTime.Day, 0, 0, 0).ToString("G"),
                endtime = new DateTime(EndTime.Year, EndTime.Month, EndTime.Day, 23, 59, 59).ToString("G"),
                Resolution = resolution,
                taglist = tagDict.Select(x => x.Key).ToArray()
            };
            var realScadaDataList = await GetRealScadaResultElectricity(input);
            return realScadaDataList;
        }
        /// <summary>
        /// èŽ·å–å®žæ—¶æ•°æ®å­—å…¸
        /// ç”¨ç”µé‡
        /// </summary>
        /// <returns></returns>
        public static async Task<List<ZyDto.PumpTotalelectricity>> GetRealScadaResultElectricity(ScadaDispatchInput input)
        {
            if (input == null)
                return default;
            var ws = new ClientWebSocket();
            await ws.ConnectAsync(new Uri(_url_root), CancellationToken.None);
            if (ws.State != WebSocketState.Open)
            {
                return default;
            }
            var realScadaDataList = new List<PumpTotalelectricity>();
            var inputJson = JsonHelper.Object2Json(input);
            var inputBytes = Encoding.UTF8.GetBytes(inputJson);
            await ws.SendAsync(new ArraySegment<byte>(inputBytes), WebSocketMessageType.Text, true, CancellationToken.None);
            try
            {
                List<byte> outputBytes = new List<byte>();//全部消息容器
                var buffer = new byte[1024 * 4];//缓冲区
                var result = await ws.ReceiveAsync(new ArraySegment<byte>(buffer), CancellationToken.None); //监听Socket信息
                while (!result.CloseStatus.HasValue)  //是否关闭
                {
                    if (result.MessageType == WebSocketMessageType.Text)//文本消息
                    {
                        outputBytes.AddRange(buffer.Take(result.Count));
                        if (result.EndOfMessage)//消息是否已接收完全
                        {
                            //发送过来的消息
                            string outputJson = Encoding.UTF8.GetString(outputBytes.ToArray(), 0, outputBytes.Count);
                            var scadaDict = JsonHelper.Json2Object<Dictionary<DateTime, double>>(outputJson);
                            if (scadaDict != null && scadaDict.Any())
                            {
                                foreach (var dict in scadaDict)
                                {
                                    var data = new PumpTotalelectricity();
                                    data.DateTime = dict.Key;
                                    data.value = dict.Value;
                                    realScadaDataList.Add(data);
                                }
                            }
                            break;
                        }
                    }
                    result = await ws.ReceiveAsync(new ArraySegment<byte>(buffer), CancellationToken.None);//继续监听Socket信息
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                try
                {
                    //关闭WebSocket
                    await ws.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "AcknowledgeCloseframe", CancellationToken.None);
                }
                catch (Exception ex)
                {
                    throw ex;
                }
                ws.Abort();
                ws.Dispose();
            }
            return realScadaDataList;
        }
        /// <summary>
        /// èŽ·å–å®žæ—¶æ•°æ®å­—å…¸
        /// </summary> 
WinFrmUI/IStation.WinFrmUI.Basic/ElecPrice/ViewElecPriceByDayDlg.Designer.cs
@@ -94,14 +94,14 @@
            xyDiagram1.AxisX.VisualRange.Auto = false;
            xyDiagram1.AxisX.VisualRange.AutoSideMargins = false;
            xyDiagram1.AxisX.VisualRange.EndSideMargin = 0D;
            xyDiagram1.AxisX.VisualRange.MaxValueSerializable = "0";
            xyDiagram1.AxisX.VisualRange.MinValueSerializable = "24";
            xyDiagram1.AxisX.VisualRange.MaxValueSerializable = "24";
            xyDiagram1.AxisX.VisualRange.MinValueSerializable = "0";
            xyDiagram1.AxisX.VisualRange.StartSideMargin = 2.8D;
            xyDiagram1.AxisX.WholeRange.Auto = false;
            xyDiagram1.AxisX.WholeRange.AutoSideMargins = false;
            xyDiagram1.AxisX.WholeRange.EndSideMargin = 0D;
            xyDiagram1.AxisX.WholeRange.MaxValueSerializable = "0";
            xyDiagram1.AxisX.WholeRange.MinValueSerializable = "24";
            xyDiagram1.AxisX.WholeRange.MaxValueSerializable = "24";
            xyDiagram1.AxisX.WholeRange.MinValueSerializable = "0";
            xyDiagram1.AxisX.WholeRange.StartSideMargin = 2.8D;
            xyDiagram1.AxisY.Title.MaxLineCount = 3;
            xyDiagram1.AxisY.Title.Text = "ä»·æ ¼";
WinFrmUI/IStation.WinFrmUI.Basic/IStation.WinFrmUI.Basic.csproj
@@ -428,6 +428,7 @@
    <EmbeddedResource Include="ElecPrice\ViewElecPriceByDayDlg.resx">
      <DependentUpon>ViewElecPriceByDayDlg.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="Properties\licenses.licx" />
    <EmbeddedResource Include="Properties\Resources.resx">
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
WinFrmUI/IStation.WinFrmUI.Monitor/HistoryDataAPiHelper.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,244 @@
using IStation.Model;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace IStation.WinFrmUI.Monitor
{
    public class HistoryDataAPiHelper
    {
        public List<Model.PumpIsopen> GetPumpRunParas()
        {
            string path = System.IO.Path.Combine(IStation.DataFolderHelper.GetRootPath(),
               "二取机泵参数", "RunTimeTest.csv");
            if (!File.Exists(path))
                return null;
            int totalLines = File.ReadLines(path, Encoding.GetEncoding("gb2312")).Count();//总行数
            System.IO.FileStream fs = new System.IO.FileStream(path, System.IO.FileMode.Open);
            System.IO.StreamReader sr = new System.IO.StreamReader(fs, Encoding.GetEncoding("gb2312"));
            string tempText;
            List<Model.PumpIsopen> pumpISopenlist = new List<Model.PumpIsopen>();
            for (int i = 0; i < totalLines; i++)
            {
                tempText = sr.ReadLine();
                string[] arr = tempText.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
                var pumpISopen = new Model.PumpIsopen
                {
                    Tag = arr[1],
                    Values = new List<Model.IsOpen>
                    {
                        new Model.IsOpen
                        {
                            DateTime = Convert.ToDateTime(arr[0]),
                            Isopen = arr[2]
                        }
                     }
                };
                pumpISopenlist.Add(pumpISopen);
            }
            fs.Close();
            return pumpISopenlist;
        }
        /// <summary>
        /// èŽ·å–å…·ä½“æ—¶é—´æ®µçš„å¼€æ³µå°æ•°
        /// </summary>
        public List<(DateTime, DateTime, int)> getPumpIsOpen()
        {
            var TestIsOpen = GetPumpRunParas();
            if (TestIsOpen == null)
                return null;
             var Pump1 = TestIsOpen.Where(x => x.Tag == "_0402010204012101001").ToList();
            var Pump2 = TestIsOpen.Where(x => x.Tag == "_0402010204012201001").ToList();
            var Pump3 = TestIsOpen.Where(x => x.Tag == "_0402010204012301001").ToList();
            var Pump4 = TestIsOpen.Where(x => x.Tag == "_0402010204012401001").ToList();
            var Pump5 = TestIsOpen.Where(x => x.Tag == "_0402010204012501001").ToList();
            List<string> startTime = new List<string>();
            List<string> endtime = new List<string>();
            var one = GetData(Pump1);
            var two = GetData(Pump2);
            var three = GetData(Pump3);
            var four = GetData(Pump4);
            var five = GetData(Pump5);
            List<(DateTime, DateTime)> mergedList = MergeList(one, two, three, four, five);
            return MergeTimeSlots(mergedList);
         }
        //获取详细开关机时间
        private List<(DateTime, DateTime)> GetData(List<PumpIsopen> PumpList)
        {
            List<(DateTime, DateTime)> values = new List<(DateTime, DateTime)>();
            values.Clear();
            //    List<DateTime> Endvalues = new List<DateTime>();
            DateTime startTime;
            DateTime EndTime;
            for (int time = 0; time < PumpList.Count; time++)
            {
                foreach (var value in PumpList[time].Values)
                {
                    if (value.Isopen == "1")
                    {
                        startTime = value.DateTime;
                        EndTime = value.DateTime;
                        for (int k = time + 1; k < PumpList.Count; k++)   //k为从开机后比较的变量下标
                        {
                            if (PumpList[k].Values[0].Isopen == "1")
                            {
                                EndTime = PumpList[k].Values[0].DateTime;
                                time = k;
                            }
                            else break;
                        }
                        values.Add((startTime, EndTime));
                    }
                }
            }
            return values;
        }
        /// <summary>
        /// æ¨¡ç³Šåˆå¹¶æ—¶é—´æ®µ
        /// </summary>
        /// <param name="Date"></param>
        /// <returns></returns>
        static List<(DateTime, DateTime, int)> MergeTimeSlots(List<(DateTime, DateTime)> Date)
        {
            List<(DateTime, DateTime, int)> mergedSlots = new List<(DateTime, DateTime, int)>();
            Date.Sort((x, y) => x.Item1.CompareTo(y.Item1)); // æŒ‰ç…§èµ·å§‹æ—¶é—´æŽ’序
            DateTime mergedStart = Date[0].Item1;
            DateTime mergedEnd = Date[0].Item2;
            int mergeCount = 1;
            // ä»Žç¬¬äºŒä¸ªæ—¶é—´æ®µå¼€å§‹è¿­ä»£
            for (int i = 1; i < Date.Count; i++)
            {
                DateTime start = Date[i].Item1;
                DateTime end = Date[i].Item2;
                // å¦‚果当前时间段的起始时间在模糊时间范围内,则合并
                if (start <= mergedEnd.AddMinutes(15)) // å‡è®¾æ¨¡ç³Šæ—¶é—´èŒƒå›´ä¸º15分钟
                {
                    mergedEnd = DateTime.Compare(mergedEnd, end) < 0 ? end : mergedEnd;
                    mergeCount++;
                }
                else
                {
                    mergedSlots.Add((mergedStart, mergedEnd, mergeCount));
                    mergedStart = start;
                    mergedEnd = end;
                    mergeCount = 1;
                }
            }
            // æ·»åŠ æœ€åŽä¸€ä¸ªæ—¶é—´æ®µ
            mergedSlots.Add((mergedStart, mergedEnd, mergeCount));
            return mergedSlots;
        }
        /// <summary>
        /// åˆå¹¶äº”台泵的运行时间
        /// </summary>
        /// <param name="lists"></param>
        /// <returns></returns>
        static List<(DateTime, DateTime)> MergeList(params List<(DateTime, DateTime)>[] lists)
        {
            List<(DateTime, DateTime)> mergedList = new List<(DateTime, DateTime)>();
              foreach (var list in lists)
            {
                mergedList.AddRange(list);
            }
             return mergedList;
         }
        public List <Model.PumpWater> GetWaterData()
        {
            string path = System.IO.Path.Combine(IStation.DataFolderHelper.GetRootPath(),
              "二取机泵参数", "WaterTest.csv");
            if (!File.Exists(path))
                return  null;
            int totalLines = File.ReadLines(path, Encoding.GetEncoding("gb2312")).Count();//总行数
            System.IO.FileStream fs = new System.IO.FileStream(path, System.IO.FileMode.Open);
            System.IO.StreamReader sr = new System.IO.StreamReader(fs, Encoding.GetEncoding("gb2312"));
            string tempText;
            List<Model.PumpWater> pumpISopenlist = new List<Model.PumpWater>();
            for (int i = 0; i < totalLines; i++)
            {
                tempText = sr.ReadLine();
                string[] arr = tempText.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
                var pumpISopen = new Model.PumpWater
                {
                    Tag = arr[1],
                    Values = new List<Model.Water>
                    {
                        new Model.Water
                        {
                            DateTime = Convert.ToDateTime(arr[0]),
                            SingleWater =Convert.ToDouble( arr[2])
                        }
                     }
                };
                pumpISopenlist.Add(pumpISopen);
            }
            fs.Close();
            return pumpISopenlist;
        }
        /// <summary>
        /// èŽ·å–æœ‰åŠŸç”µèƒ½
        /// </summary>
        /// <returns></returns>
       public List<Model.electricity> GetEleData()
        {
            string path = System.IO.Path.Combine(IStation.DataFolderHelper.GetRootPath(),
              "二取机泵参数", "AmountEle.csv");
            if (!File.Exists(path))
                return null;
            int totalLines = File.ReadLines(path, Encoding.GetEncoding("gb2312")).Count();//总行数
            System.IO.FileStream fs = new System.IO.FileStream(path, System.IO.FileMode.Open);
            System.IO.StreamReader sr = new System.IO.StreamReader(fs, Encoding.GetEncoding("gb2312"));
            string tempText;
            List<Model.electricity> pumpISopenlist = new List<Model.electricity>();
            for (int i = 0; i < totalLines; i++)
            {
                tempText = sr.ReadLine();
                string[] arr = tempText.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
                var pumpISopen = new Model.electricity
                {
                    Tag = arr[1],
                    TotalEle = new List<Model.Ele>
                    {
                       new Model.Ele
                        {
                            DateTime = Convert.ToDateTime(arr[0]),
                            Value =Convert.ToDouble( arr[2])
                        }
                    }
                };
                pumpISopenlist.Add(pumpISopen);
            }
            fs.Close();
            return pumpISopenlist;
        }
    }
}
WinFrmUI/IStation.WinFrmUI.Monitor/IStation.WinFrmUI.Monitor.csproj
@@ -48,6 +48,10 @@
    <Reference Include="DevExpress.XtraLayout.v22.2, Version=22.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
    <Reference Include="DevExpress.XtraPrinting.v22.2, Version=22.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
    <Reference Include="DevExpress.XtraTreeList.v22.2, Version=22.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
    <Reference Include="IStation.WinFrmUI.CalcErQu, Version=1.1.1.4, Culture=neutral, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\out\IStation.WinFrmUI.CalcErQu.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.ComponentModel.DataAnnotations" />
    <Reference Include="System.Core" />
@@ -63,6 +67,7 @@
  </ItemGroup>
  <ItemGroup>
    <Compile Include="-helper\ColorHelper.cs" />
    <Compile Include="HistoryDataAPiHelper.cs" />
    <Compile Include="HistoryDataDlg.cs">
      <SubType>UserControl</SubType>
    </Compile>
WinFrmUI/IStation.WinFrmUI.Monitor/ResultChartControl.Designer.cs
@@ -28,6 +28,7 @@
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            DevExpress.XtraCharts.XYDiagram xyDiagram1 = new DevExpress.XtraCharts.XYDiagram();
            DevExpress.XtraCharts.ConstantLine constantLine1 = new DevExpress.XtraCharts.ConstantLine();
            DevExpress.XtraCharts.ConstantLine constantLine2 = new DevExpress.XtraCharts.ConstantLine();
@@ -46,20 +47,45 @@
            DevExpress.XtraCharts.Series series5 = new DevExpress.XtraCharts.Series();
            DevExpress.XtraCharts.LineSeriesView lineSeriesView5 = new DevExpress.XtraCharts.LineSeriesView();
            this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
            this.gridControl2 = new DevExpress.XtraGrid.GridControl();
            this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
            this.gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn18 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn19 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.repositoryItemMemoExEdit2 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoExEdit();
            this.repositoryItemMemoEdit7 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.repositoryItemMemoEdit8 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.repositoryItemMemoEdit9 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.repositoryItemMemoEdit6 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.repositoryItemMemoEdit10 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.chartControl实时数据 = new DevExpress.XtraCharts.ChartControl();
            this.textEdit总供水量 = new DevExpress.XtraEditors.TextEdit();
            this.textEdit总电费 = new DevExpress.XtraEditors.TextEdit();
            this.textEdit总用电量 = new DevExpress.XtraEditors.TextEdit();
            this.textEdit千吨水能耗 = new DevExpress.XtraEditors.TextEdit();
            this.textEdit1 = new DevExpress.XtraEditors.TextEdit();
            this.textEdit13 = new DevExpress.XtraEditors.TextEdit();
            this.textEdit14 = new DevExpress.XtraEditors.TextEdit();
            this.textEdit12 = new DevExpress.XtraEditors.TextEdit();
            this.textEdit11 = new DevExpress.XtraEditors.TextEdit();
            this.textEdit9 = new DevExpress.XtraEditors.TextEdit();
            this.textEdit方案总电费 = new DevExpress.XtraEditors.TextEdit();
            this.textEdit方案总用电量 = new DevExpress.XtraEditors.TextEdit();
            this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
            this.tabbedControlGroup1 = new DevExpress.XtraLayout.TabbedControlGroup();
            this.layoutControlGroup3 = new DevExpress.XtraLayout.LayoutControlGroup();
            this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlGroup5 = new DevExpress.XtraLayout.LayoutControlGroup();
            this.layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem16 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem19 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem20 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem18 = new DevExpress.XtraLayout.LayoutControlItem();
            this.tabPage实时数据 = new DevExpress.XtraTab.XtraTabPage();
            this.gridControl1 = new DevExpress.XtraGrid.GridControl();
            this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
@@ -78,26 +104,25 @@
            this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.tabPage实时数据1 = new DevExpress.XtraTab.XtraTabPage();
             this.gridControl2 = new DevExpress.XtraGrid.GridControl();
            this.gridView2 = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn10 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn11 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn12 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn13 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.repositoryItemMemoEdit6 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.gridColumn14 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.repositoryItemMemoEdit7 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.gridColumn15 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.repositoryItemMemoEdit8 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.gridColumn16 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.repositoryItemMemoEdit9 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.gridColumn17 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.repositoryItemMemoEdit10 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.repositoryItemMemoExEdit2 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoExEdit();
            this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
            this.textEdit2 = new DevExpress.XtraEditors.TextEdit();
            this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
            this.textEdit3 = new DevExpress.XtraEditors.TextEdit();
            this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
            this.textEdit4 = new DevExpress.XtraEditors.TextEdit();
            this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
            this.textEdit5 = new DevExpress.XtraEditors.TextEdit();
            this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
            this.layoutControl1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.gridControl2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoExEdit2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit7)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit8)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit9)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit6)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit10)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.chartControl实时数据)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(xyDiagram1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(xyDiagramPane1)).BeginInit();
@@ -113,19 +138,28 @@
            ((System.ComponentModel.ISupportInitialize)(lineSeriesView4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(series5)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(lineSeriesView5)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit总供水量.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit总电费.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit总用电量.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit千吨水能耗.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit13.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit14.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit12.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit11.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit9.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit方案总电费.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit方案总用电量.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup5)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoExEdit1)).BeginInit();
@@ -134,33 +168,181 @@
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit5)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridControl2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridView2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit6)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit7)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit8)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit9)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit10)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoExEdit2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit2.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit3.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit4.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit5.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
            this.SuspendLayout();
            // 
            // layoutControl1
            // 
            this.layoutControl1.Controls.Add(this.gridControl2);
            this.layoutControl1.Controls.Add(this.chartControl实时数据);
            this.layoutControl1.Controls.Add(this.textEdit总供水量);
            this.layoutControl1.Controls.Add(this.textEdit总电费);
            this.layoutControl1.Controls.Add(this.textEdit总用电量);
            this.layoutControl1.Controls.Add(this.textEdit千吨水能耗);
            this.layoutControl1.Controls.Add(this.textEdit2);
            this.layoutControl1.Controls.Add(this.textEdit1);
            this.layoutControl1.Controls.Add(this.textEdit13);
            this.layoutControl1.Controls.Add(this.textEdit14);
            this.layoutControl1.Controls.Add(this.textEdit5);
            this.layoutControl1.Controls.Add(this.textEdit12);
            this.layoutControl1.Controls.Add(this.textEdit11);
            this.layoutControl1.Controls.Add(this.textEdit3);
            this.layoutControl1.Controls.Add(this.textEdit4);
            this.layoutControl1.Controls.Add(this.textEdit9);
            this.layoutControl1.Controls.Add(this.textEdit方案总电费);
            this.layoutControl1.Controls.Add(this.textEdit方案总用电量);
            this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.layoutControl1.Location = new System.Drawing.Point(0, 0);
            this.layoutControl1.Name = "layoutControl1";
            this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(688, 417, 650, 400);
            this.layoutControl1.Root = this.Root;
            this.layoutControl1.Size = new System.Drawing.Size(1185, 709);
            this.layoutControl1.Size = new System.Drawing.Size(1237, 640);
            this.layoutControl1.TabIndex = 0;
            this.layoutControl1.Text = "layoutControl1";
            //
            // gridControl2
            //
            this.gridControl2.DataSource = this.bindingSource1;
            this.gridControl2.Location = new System.Drawing.Point(15, 129);
            this.gridControl2.MainView = this.gridView2;
            this.gridControl2.Name = "gridControl2";
            this.gridControl2.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
            this.repositoryItemMemoExEdit2,
            this.repositoryItemMemoEdit7,
            this.repositoryItemMemoEdit8,
            this.repositoryItemMemoEdit9,
            this.repositoryItemMemoEdit6,
            this.repositoryItemMemoEdit10});
            this.gridControl2.Size = new System.Drawing.Size(1190, 496);
            this.gridControl2.TabIndex = 12;
            this.gridControl2.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.gridView2});
            this.gridControl2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.gridControl2_MouseDown);
            //
            // gridView2
            //
            this.gridView2.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gridView2.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridView2.AppearancePrint.HeaderPanel.Options.UseTextOptions = true;
            this.gridView2.AppearancePrint.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.gridColumn8,
            this.gridColumn18,
            this.gridColumn19,
            this.gridColumn10,
            this.gridColumn11,
            this.gridColumn12,
            this.gridColumn13});
            this.gridView2.GridControl = this.gridControl2;
            this.gridView2.Name = "gridView2";
            this.gridView2.OptionsBehavior.Editable = false;
            this.gridView2.OptionsView.AllowCellMerge = true;
            this.gridView2.OptionsView.RowAutoHeight = true;
            this.gridView2.OptionsView.ShowGroupPanel = false;
            //
            // gridColumn8
            //
            this.gridColumn8.AppearanceCell.Options.UseTextOptions = true;
            this.gridColumn8.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridColumn8.Caption = "名称";
            this.gridColumn8.FieldName = "Name";
            this.gridColumn8.Name = "gridColumn8";
            this.gridColumn8.Visible = true;
            this.gridColumn8.VisibleIndex = 0;
            this.gridColumn8.Width = 103;
            //
            // gridColumn18
            //
            this.gridColumn18.AppearanceCell.Options.UseTextOptions = true;
            this.gridColumn18.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridColumn18.Caption = "泵台数";
            this.gridColumn18.FieldName = "PumpCount";
            this.gridColumn18.Name = "gridColumn18";
            this.gridColumn18.Visible = true;
            this.gridColumn18.VisibleIndex = 2;
            this.gridColumn18.Width = 137;
            //
            // gridColumn19
            //
            this.gridColumn19.AppearanceCell.Options.UseTextOptions = true;
            this.gridColumn19.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridColumn19.Caption = "开机时间段";
            this.gridColumn19.FieldName = "Time";
            this.gridColumn19.Name = "gridColumn19";
            this.gridColumn19.Visible = true;
            this.gridColumn19.VisibleIndex = 1;
            this.gridColumn19.Width = 229;
            //
            // gridColumn10
            //
            this.gridColumn10.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10.5F);
            this.gridColumn10.AppearanceCell.Options.UseFont = true;
            this.gridColumn10.AppearanceCell.Options.UseTextOptions = true;
            this.gridColumn10.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridColumn10.Caption = "取水总量(万m³)";
            this.gridColumn10.FieldName = "water";
            this.gridColumn10.Name = "gridColumn10";
            this.gridColumn10.Visible = true;
            this.gridColumn10.VisibleIndex = 3;
            this.gridColumn10.Width = 106;
            //
            // gridColumn11
            //
            this.gridColumn11.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10.5F);
            this.gridColumn11.AppearanceCell.Options.UseFont = true;
            this.gridColumn11.AppearanceCell.Options.UseTextOptions = true;
            this.gridColumn11.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridColumn11.Caption = "用电总量(度)";
            this.gridColumn11.FieldName = "Electricity";
            this.gridColumn11.Name = "gridColumn11";
            this.gridColumn11.Visible = true;
            this.gridColumn11.VisibleIndex = 4;
            this.gridColumn11.Width = 97;
            //
            // gridColumn12
            //
            this.gridColumn12.Caption = "电费(元)";
            this.gridColumn12.FieldName = "Electricity";
            this.gridColumn12.Name = "gridColumn12";
            this.gridColumn12.Visible = true;
            this.gridColumn12.VisibleIndex = 5;
            //
            // gridColumn13
            //
            this.gridColumn13.Caption = "千吨水能耗";
            this.gridColumn13.Name = "gridColumn13";
            this.gridColumn13.Visible = true;
            this.gridColumn13.VisibleIndex = 6;
            //
            // repositoryItemMemoExEdit2
            //
            this.repositoryItemMemoExEdit2.AutoHeight = false;
            this.repositoryItemMemoExEdit2.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.repositoryItemMemoExEdit2.Name = "repositoryItemMemoExEdit2";
            //
            // repositoryItemMemoEdit7
            //
            this.repositoryItemMemoEdit7.Name = "repositoryItemMemoEdit7";
            //
            // repositoryItemMemoEdit8
            //
            this.repositoryItemMemoEdit8.Name = "repositoryItemMemoEdit8";
            //
            // repositoryItemMemoEdit9
            //
            this.repositoryItemMemoEdit9.Name = "repositoryItemMemoEdit9";
            //
            // repositoryItemMemoEdit6
            //
            this.repositoryItemMemoEdit6.Name = "repositoryItemMemoEdit6";
            //
            // repositoryItemMemoEdit10
            //
            this.repositoryItemMemoEdit10.Name = "repositoryItemMemoEdit10";
            // 
            // chartControl实时数据
            // 
@@ -243,7 +425,7 @@
            this.chartControl实时数据.Legend.Shadow.Visible = true;
            this.chartControl实时数据.Legend.VerticalIndent = 5;
            this.chartControl实时数据.Legend.Visibility = DevExpress.Utils.DefaultBoolean.True;
            this.chartControl实时数据.Location = new System.Drawing.Point(15, 139);
            this.chartControl实时数据.Location = new System.Drawing.Point(15, 129);
            this.chartControl实时数据.Name = "chartControl实时数据";
            series1.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.DateTime;
            series1.CrosshairLabelPattern = "长江水位 {V} (m)";
@@ -285,56 +467,104 @@
        series3,
        series4,
        series5};
            this.chartControl实时数据.Size = new System.Drawing.Size(1155, 555);
            this.chartControl实时数据.Size = new System.Drawing.Size(1190, 496);
            this.chartControl实时数据.TabIndex = 5;
            // 
            // textEdit总供水量
            // textEdit1
            // 
            this.textEdit总供水量.Location = new System.Drawing.Point(195, 12);
            this.textEdit总供水量.Name = "textEdit总供水量";
            this.textEdit总供水量.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit总供水量.Properties.Appearance.Options.UseFont = true;
            this.textEdit总供水量.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit总供水量.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit总供水量.Size = new System.Drawing.Size(292, 46);
            this.textEdit总供水量.StyleController = this.layoutControl1;
            this.textEdit总供水量.TabIndex = 8;
            this.textEdit1.Location = new System.Drawing.Point(342, 2);
            this.textEdit1.Name = "textEdit1";
            this.textEdit1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit1.Properties.Appearance.Options.UseFont = true;
            this.textEdit1.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit1.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit1.Size = new System.Drawing.Size(66, 46);
            this.textEdit1.StyleController = this.layoutControl1;
            this.textEdit1.TabIndex = 8;
            // 
            // textEdit总电费
            // textEdit13
            // 
            this.textEdit总电费.Location = new System.Drawing.Point(674, 12);
            this.textEdit总电费.Name = "textEdit总电费";
            this.textEdit总电费.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit总电费.Properties.Appearance.Options.UseFont = true;
            this.textEdit总电费.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit总电费.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit总电费.Size = new System.Drawing.Size(499, 46);
            this.textEdit总电费.StyleController = this.layoutControl1;
            this.textEdit总电费.TabIndex = 11;
            this.textEdit13.Location = new System.Drawing.Point(942, 2);
            this.textEdit13.Name = "textEdit13";
            this.textEdit13.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit13.Properties.Appearance.Options.UseFont = true;
            this.textEdit13.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit13.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit13.Size = new System.Drawing.Size(66, 46);
            this.textEdit13.StyleController = this.layoutControl1;
            this.textEdit13.TabIndex = 8;
            // 
            // textEdit总用电量
            // textEdit14
            // 
            this.textEdit总用电量.Location = new System.Drawing.Point(195, 62);
            this.textEdit总用电量.Name = "textEdit总用电量";
            this.textEdit总用电量.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit总用电量.Properties.Appearance.Options.UseFont = true;
            this.textEdit总用电量.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit总用电量.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit总用电量.Size = new System.Drawing.Size(292, 46);
            this.textEdit总用电量.StyleController = this.layoutControl1;
            this.textEdit总用电量.TabIndex = 9;
            this.textEdit14.Location = new System.Drawing.Point(542, 52);
            this.textEdit14.Name = "textEdit14";
            this.textEdit14.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit14.Properties.Appearance.Options.UseFont = true;
            this.textEdit14.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit14.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit14.Size = new System.Drawing.Size(66, 46);
            this.textEdit14.StyleController = this.layoutControl1;
            this.textEdit14.TabIndex = 8;
            // 
            // textEdit千吨水能耗
            // textEdit12
            // 
            this.textEdit千吨水能耗.Location = new System.Drawing.Point(674, 62);
            this.textEdit千吨水能耗.Name = "textEdit千吨水能耗";
            this.textEdit千吨水能耗.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit千吨水能耗.Properties.Appearance.Options.UseFont = true;
            this.textEdit千吨水能耗.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit千吨水能耗.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit千吨水能耗.Size = new System.Drawing.Size(499, 46);
            this.textEdit千吨水能耗.StyleController = this.layoutControl1;
            this.textEdit千吨水能耗.TabIndex = 10;
            this.textEdit12.Location = new System.Drawing.Point(742, 52);
            this.textEdit12.Name = "textEdit12";
            this.textEdit12.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit12.Properties.Appearance.Options.UseFont = true;
            this.textEdit12.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit12.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit12.Size = new System.Drawing.Size(66, 46);
            this.textEdit12.StyleController = this.layoutControl1;
            this.textEdit12.TabIndex = 8;
            //
            // textEdit11
            //
            this.textEdit11.Location = new System.Drawing.Point(542, 2);
            this.textEdit11.Name = "textEdit11";
            this.textEdit11.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit11.Properties.Appearance.Options.UseFont = true;
            this.textEdit11.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit11.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit11.Size = new System.Drawing.Size(66, 46);
            this.textEdit11.StyleController = this.layoutControl1;
            this.textEdit11.TabIndex = 8;
            //
            // textEdit9
            //
            this.textEdit9.Location = new System.Drawing.Point(342, 52);
            this.textEdit9.Name = "textEdit9";
            this.textEdit9.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit9.Properties.Appearance.Options.UseFont = true;
            this.textEdit9.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit9.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit9.Size = new System.Drawing.Size(66, 46);
            this.textEdit9.StyleController = this.layoutControl1;
            this.textEdit9.TabIndex = 8;
            //
            // textEdit方案总电费
            //
            this.textEdit方案总电费.Location = new System.Drawing.Point(142, 2);
            this.textEdit方案总电费.Name = "textEdit方案总电费";
            this.textEdit方案总电费.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit方案总电费.Properties.Appearance.Options.UseFont = true;
            this.textEdit方案总电费.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit方案总电费.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit方案总电费.Size = new System.Drawing.Size(66, 46);
            this.textEdit方案总电费.StyleController = this.layoutControl1;
            this.textEdit方案总电费.TabIndex = 11;
            //
            // textEdit方案总用电量
            //
            this.textEdit方案总用电量.Location = new System.Drawing.Point(142, 52);
            this.textEdit方案总用电量.Name = "textEdit方案总用电量";
            this.textEdit方案总用电量.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit方案总用电量.Properties.Appearance.Options.UseFont = true;
            this.textEdit方案总用电量.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit方案总用电量.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit方案总用电量.Size = new System.Drawing.Size(66, 46);
            this.textEdit方案总用电量.StyleController = this.layoutControl1;
            this.textEdit方案总用电量.TabIndex = 9;
            // 
            // Root
            // 
@@ -342,12 +572,20 @@
            this.Root.GroupBordersVisible = false;
            this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
            this.tabbedControlGroup1,
            this.layoutControlItem1,
            this.layoutControlItem7,
            this.layoutControlItem5,
            this.layoutControlItem6});
            this.layoutControlItem14,
            this.layoutControlItem7,
            this.layoutControlItem4,
            this.layoutControlItem6,
            this.layoutControlItem19,
            this.layoutControlItem16,
            this.layoutControlItem20,
            this.layoutControlItem18,
            this.layoutControlItem1,
            this.layoutControlItem9,
            this.layoutControlItem8});
            this.Root.Name = "Root";
            this.Root.Size = new System.Drawing.Size(1185, 709);
            this.Root.Size = new System.Drawing.Size(1220, 650);
            this.Root.TextVisible = false;
            // 
            // tabbedControlGroup1
@@ -357,7 +595,7 @@
            this.tabbedControlGroup1.Name = "tabbedControlGroup1";
            this.tabbedControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.tabbedControlGroup1.SelectedTabPage = this.layoutControlGroup3;
            this.tabbedControlGroup1.Size = new System.Drawing.Size(1165, 589);
            this.tabbedControlGroup1.Size = new System.Drawing.Size(1200, 530);
            this.tabbedControlGroup1.TabPages.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
            this.layoutControlGroup5,
            this.layoutControlGroup3});
@@ -372,8 +610,17 @@
            this.layoutControlGroup3.Name = "layoutControlGroup3";
            this.layoutControlGroup3.OptionsItemText.TextToControlDistance = 3;
            this.layoutControlGroup3.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup3.Size = new System.Drawing.Size(1159, 559);
            this.layoutControlGroup3.Size = new System.Drawing.Size(1194, 500);
            this.layoutControlGroup3.Text = "运行参数";
            //
            // layoutControlItem2
            //
            this.layoutControlItem2.Control = this.gridControl2;
            this.layoutControlItem2.Location = new System.Drawing.Point(0, 0);
            this.layoutControlItem2.Name = "layoutControlItem2";
            this.layoutControlItem2.Size = new System.Drawing.Size(1194, 500);
            this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem2.TextVisible = false;
            // 
            // layoutControlGroup5
            // 
@@ -383,7 +630,7 @@
            this.layoutControlGroup5.Location = new System.Drawing.Point(0, 0);
            this.layoutControlGroup5.Name = "layoutControlGroup5";
            this.layoutControlGroup5.OptionsItemText.TextToControlDistance = 3;
            this.layoutControlGroup5.Size = new System.Drawing.Size(1159, 559);
            this.layoutControlGroup5.Size = new System.Drawing.Size(1194, 500);
            this.layoutControlGroup5.Text = "实时数据";
            // 
            // layoutControlItem3
@@ -394,71 +641,115 @@
            this.layoutControlItem3.Location = new System.Drawing.Point(0, 0);
            this.layoutControlItem3.MinSize = new System.Drawing.Size(104, 500);
            this.layoutControlItem3.Name = "layoutControlItem3";
            this.layoutControlItem3.Size = new System.Drawing.Size(1159, 559);
            this.layoutControlItem3.Size = new System.Drawing.Size(1194, 500);
            this.layoutControlItem3.SizeConstraintsType = DevExpress.XtraLayout.SizeConstraintsType.Custom;
            this.layoutControlItem3.Text = "实时数据";
            this.layoutControlItem3.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem3.TextVisible = false;
            // 
            // layoutControlItem1
            //
            this.layoutControlItem1.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 24F);
            this.layoutControlItem1.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem1.AppearanceItemCaption.Options.UseTextOptions = true;
            this.layoutControlItem1.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.layoutControlItem1.Control = this.textEdit总供水量;
            this.layoutControlItem1.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
            this.layoutControlItem1.CustomizationFormText = "总取水量:";
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
            this.layoutControlItem1.Name = "layoutControlItem1";
            this.layoutControlItem1.Size = new System.Drawing.Size(479, 50);
            this.layoutControlItem1.Text = "总取水量:";
            this.layoutControlItem1.TextSize = new System.Drawing.Size(171, 39);
            //
            // layoutControlItem7
            //
            this.layoutControlItem7.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 24F);
            this.layoutControlItem7.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem7.AppearanceItemCaption.Options.UseTextOptions = true;
            this.layoutControlItem7.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.layoutControlItem7.Control = this.textEdit总电费;
            this.layoutControlItem7.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
            this.layoutControlItem7.CustomizationFormText = "总电费:";
            this.layoutControlItem7.Location = new System.Drawing.Point(479, 0);
            this.layoutControlItem7.Name = "layoutControlItem7";
            this.layoutControlItem7.Size = new System.Drawing.Size(686, 50);
            this.layoutControlItem7.Text = "总电费:";
            this.layoutControlItem7.TextSize = new System.Drawing.Size(171, 39);
            //
            // layoutControlItem5
            // 
            this.layoutControlItem5.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 24F);
            this.layoutControlItem5.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem5.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem5.AppearanceItemCaption.Options.UseTextOptions = true;
            this.layoutControlItem5.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.layoutControlItem5.Control = this.textEdit总用电量;
            this.layoutControlItem5.Control = this.textEdit方案总用电量;
            this.layoutControlItem5.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
            this.layoutControlItem5.CustomizationFormText = "总用电量:";
            this.layoutControlItem5.Location = new System.Drawing.Point(0, 50);
            this.layoutControlItem5.Name = "layoutControlItem5";
            this.layoutControlItem5.Size = new System.Drawing.Size(479, 50);
            this.layoutControlItem5.Text = "总用电量:";
            this.layoutControlItem5.TextSize = new System.Drawing.Size(171, 39);
            this.layoutControlItem5.Size = new System.Drawing.Size(200, 50);
            this.layoutControlItem5.Text = "方案总用电量:";
            this.layoutControlItem5.TextSize = new System.Drawing.Size(118, 19);
            // 
            // layoutControlItem6
            // layoutControlItem4
            // 
            this.layoutControlItem6.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 24F);
            this.layoutControlItem6.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem6.AppearanceItemCaption.Options.UseTextOptions = true;
            this.layoutControlItem6.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.layoutControlItem6.Control = this.textEdit千吨水能耗;
            this.layoutControlItem6.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
            this.layoutControlItem6.CustomizationFormText = "千吨水能耗:";
            this.layoutControlItem6.Location = new System.Drawing.Point(479, 50);
            this.layoutControlItem6.Name = "layoutControlItem6";
            this.layoutControlItem6.Size = new System.Drawing.Size(686, 50);
            this.layoutControlItem6.Text = "千吨水能耗:";
            this.layoutControlItem6.TextSize = new System.Drawing.Size(171, 39);
            this.layoutControlItem4.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem4.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem4.AppearanceItemCaption.Options.UseTextOptions = true;
            this.layoutControlItem4.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.layoutControlItem4.Control = this.textEdit1;
            this.layoutControlItem4.Location = new System.Drawing.Point(200, 0);
            this.layoutControlItem4.Name = "layoutControlItem4";
            this.layoutControlItem4.Size = new System.Drawing.Size(200, 50);
            this.layoutControlItem4.Text = "实际总电费:";
            this.layoutControlItem4.TextSize = new System.Drawing.Size(118, 19);
            //
            // layoutControlItem14
            //
            this.layoutControlItem14.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem14.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem14.Control = this.textEdit9;
            this.layoutControlItem14.Location = new System.Drawing.Point(200, 50);
            this.layoutControlItem14.Name = "layoutControlItem14";
            this.layoutControlItem14.Size = new System.Drawing.Size(200, 50);
            this.layoutControlItem14.Text = "实际总用电量:";
            this.layoutControlItem14.TextSize = new System.Drawing.Size(118, 19);
            //
            // layoutControlItem7
            //
            this.layoutControlItem7.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem7.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem7.AppearanceItemCaption.Options.UseTextOptions = true;
            this.layoutControlItem7.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.layoutControlItem7.Control = this.textEdit方案总电费;
            this.layoutControlItem7.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
            this.layoutControlItem7.CustomizationFormText = "总电费:";
            this.layoutControlItem7.Location = new System.Drawing.Point(0, 0);
            this.layoutControlItem7.Name = "layoutControlItem7";
            this.layoutControlItem7.Size = new System.Drawing.Size(200, 50);
            this.layoutControlItem7.Text = "方案总电费:";
            this.layoutControlItem7.TextSize = new System.Drawing.Size(118, 19);
            //
            // layoutControlItem16
            //
            this.layoutControlItem16.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem16.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem16.AppearanceItemCaption.Options.UseTextOptions = true;
            this.layoutControlItem16.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.layoutControlItem16.AppearanceItemCaptionDisabled.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem16.AppearanceItemCaptionDisabled.Options.UseFont = true;
            this.layoutControlItem16.Control = this.textEdit11;
            this.layoutControlItem16.Location = new System.Drawing.Point(400, 0);
            this.layoutControlItem16.Name = "layoutControlItem16";
            this.layoutControlItem16.Size = new System.Drawing.Size(200, 50);
            this.layoutControlItem16.Text = "去年总电费:";
            this.layoutControlItem16.TextSize = new System.Drawing.Size(118, 19);
            //
            // layoutControlItem19
            //
            this.layoutControlItem19.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem19.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem19.Control = this.textEdit13;
            this.layoutControlItem19.Location = new System.Drawing.Point(800, 0);
            this.layoutControlItem19.Name = "layoutControlItem19";
            this.layoutControlItem19.Size = new System.Drawing.Size(200, 50);
            this.layoutControlItem19.Text = "去年总取水量:";
            this.layoutControlItem19.TextSize = new System.Drawing.Size(118, 19);
            //
            // layoutControlItem20
            //
            this.layoutControlItem20.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem20.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem20.AppearanceItemCaption.Options.UseTextOptions = true;
            this.layoutControlItem20.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
            this.layoutControlItem20.Control = this.textEdit14;
            this.layoutControlItem20.Location = new System.Drawing.Point(400, 50);
            this.layoutControlItem20.Name = "layoutControlItem20";
            this.layoutControlItem20.Size = new System.Drawing.Size(200, 50);
            this.layoutControlItem20.Text = "去年总用电量:";
            this.layoutControlItem20.TextSize = new System.Drawing.Size(118, 19);
            //
            // layoutControlItem18
            //
            this.layoutControlItem18.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem18.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem18.Control = this.textEdit12;
            this.layoutControlItem18.Location = new System.Drawing.Point(600, 50);
            this.layoutControlItem18.Name = "layoutControlItem18";
            this.layoutControlItem18.Size = new System.Drawing.Size(200, 50);
            this.layoutControlItem18.Text = "去年千吨水能耗:";
            this.layoutControlItem18.TextSize = new System.Drawing.Size(118, 19);
            // 
            // tabPage实时数据
            // 
@@ -610,181 +901,101 @@
            this.tabPage实时数据1.Name = "tabPage实时数据1";
            this.tabPage实时数据1.Size = new System.Drawing.Size(1153, 529);
            // 
             // gridControl2
            // textEdit2
            // 
            this.gridControl2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.gridControl2.Location = new System.Drawing.Point(15, 139);
            this.gridControl2.MainView = this.gridView2;
            this.gridControl2.Name = "gridControl2";
            this.gridControl2.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
            this.repositoryItemMemoExEdit2,
            this.repositoryItemMemoEdit7,
            this.repositoryItemMemoEdit8,
            this.repositoryItemMemoEdit9,
            this.repositoryItemMemoEdit6,
            this.repositoryItemMemoEdit10});
            this.gridControl2.Size = new System.Drawing.Size(1155, 555);
            this.gridControl2.TabIndex = 12;
            this.gridControl2.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.gridView2});
            this.textEdit2.Location = new System.Drawing.Point(1142, 52);
            this.textEdit2.Name = "textEdit2";
            this.textEdit2.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit2.Properties.Appearance.Options.UseFont = true;
            this.textEdit2.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit2.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit2.Size = new System.Drawing.Size(66, 46);
            this.textEdit2.StyleController = this.layoutControl1;
            this.textEdit2.TabIndex = 8;
            // 
            // gridView2
            // layoutControlItem8
            // 
            this.gridView2.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gridView2.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridView2.AppearancePrint.HeaderPanel.Options.UseTextOptions = true;
            this.gridView2.AppearancePrint.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridView2.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.gridColumn8,
            this.gridColumn10,
            this.gridColumn11,
            this.gridColumn12,
            this.gridColumn13,
            this.gridColumn14,
            this.gridColumn15,
            this.gridColumn16,
            this.gridColumn17});
            this.gridView2.GridControl = this.gridControl2;
            this.gridView2.Name = "gridView2";
            this.gridView2.OptionsBehavior.Editable = false;
            this.gridView2.OptionsView.RowAutoHeight = true;
            this.gridView2.OptionsView.ShowGroupPanel = false;
            this.layoutControlItem8.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem8.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem8.Control = this.textEdit2;
            this.layoutControlItem8.Location = new System.Drawing.Point(1000, 50);
            this.layoutControlItem8.Name = "layoutControlItem8";
            this.layoutControlItem8.Size = new System.Drawing.Size(200, 50);
            this.layoutControlItem8.Text = "实际千吨水能耗:";
            this.layoutControlItem8.TextSize = new System.Drawing.Size(118, 19);
            // 
            // gridColumn8
            // textEdit3
            // 
            this.gridColumn8.Caption = "名称";
            this.gridColumn8.Name = "gridColumn8";
            this.gridColumn8.Visible = true;
            this.gridColumn8.VisibleIndex = 0;
            this.textEdit3.Location = new System.Drawing.Point(942, 52);
            this.textEdit3.Name = "textEdit3";
            this.textEdit3.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit3.Properties.Appearance.Options.UseFont = true;
            this.textEdit3.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit3.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit3.Size = new System.Drawing.Size(66, 46);
            this.textEdit3.StyleController = this.layoutControl1;
            this.textEdit3.TabIndex = 8;
            // 
            // gridColumn10
            // layoutControlItem1
            // 
            this.gridColumn10.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10.5F);
            this.gridColumn10.AppearanceCell.Options.UseFont = true;
            this.gridColumn10.AppearanceCell.Options.UseTextOptions = true;
            this.gridColumn10.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridColumn10.Caption = "取水总量(万m³)";
            this.gridColumn10.FieldName = "water";
            this.gridColumn10.Name = "gridColumn10";
            this.gridColumn10.Visible = true;
            this.gridColumn10.VisibleIndex = 1;
            this.gridColumn10.Width = 106;
            this.layoutControlItem1.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem1.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem1.AppearanceItemCaptionDisabled.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem1.AppearanceItemCaptionDisabled.Options.UseFont = true;
            this.layoutControlItem1.Control = this.textEdit3;
            this.layoutControlItem1.Location = new System.Drawing.Point(800, 50);
            this.layoutControlItem1.Name = "layoutControlItem1";
            this.layoutControlItem1.Size = new System.Drawing.Size(200, 50);
            this.layoutControlItem1.Text = "方案千吨水能耗:";
            this.layoutControlItem1.TextSize = new System.Drawing.Size(118, 19);
            // 
            // gridColumn11
            // textEdit4
            // 
            this.gridColumn11.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10.5F);
            this.gridColumn11.AppearanceCell.Options.UseFont = true;
            this.gridColumn11.AppearanceCell.Options.UseTextOptions = true;
            this.gridColumn11.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridColumn11.Caption = "用电总量(度)";
            this.gridColumn11.FieldName = "electricity";
            this.gridColumn11.Name = "gridColumn11";
            this.gridColumn11.Visible = true;
            this.gridColumn11.VisibleIndex = 2;
            this.gridColumn11.Width = 97;
            this.textEdit4.Location = new System.Drawing.Point(742, 2);
            this.textEdit4.Name = "textEdit4";
            this.textEdit4.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit4.Properties.Appearance.Options.UseFont = true;
            this.textEdit4.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit4.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit4.Size = new System.Drawing.Size(66, 46);
            this.textEdit4.StyleController = this.layoutControl1;
            this.textEdit4.TabIndex = 8;
            // 
            // gridColumn12
            // layoutControlItem6
            // 
            this.gridColumn12.Caption = "电费(元)";
            this.gridColumn12.Name = "gridColumn12";
            this.gridColumn12.Visible = true;
            this.gridColumn12.VisibleIndex = 3;
            this.layoutControlItem6.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem6.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem6.AppearanceItemCaptionDisabled.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem6.AppearanceItemCaptionDisabled.Options.UseFont = true;
            this.layoutControlItem6.Control = this.textEdit4;
            this.layoutControlItem6.Location = new System.Drawing.Point(600, 0);
            this.layoutControlItem6.Name = "layoutControlItem6";
            this.layoutControlItem6.Size = new System.Drawing.Size(200, 50);
            this.layoutControlItem6.Text = "方案总取水量:";
            this.layoutControlItem6.TextSize = new System.Drawing.Size(118, 19);
            // 
            // gridColumn13
            // textEdit5
            // 
            this.gridColumn13.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridColumn13.AppearanceCell.Options.UseFont = true;
            this.gridColumn13.Caption = "一号泵";
            this.gridColumn13.ColumnEdit = this.repositoryItemMemoEdit6;
            this.gridColumn13.FieldName = "pump1";
            this.gridColumn13.Name = "gridColumn13";
            this.gridColumn13.Visible = true;
            this.gridColumn13.VisibleIndex = 4;
            this.gridColumn13.Width = 86;
            this.textEdit5.Location = new System.Drawing.Point(1142, 2);
            this.textEdit5.Name = "textEdit5";
            this.textEdit5.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 24F);
            this.textEdit5.Properties.Appearance.Options.UseFont = true;
            this.textEdit5.Properties.Appearance.Options.UseTextOptions = true;
            this.textEdit5.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.textEdit5.Size = new System.Drawing.Size(66, 46);
            this.textEdit5.StyleController = this.layoutControl1;
            this.textEdit5.TabIndex = 8;
            // 
            // repositoryItemMemoEdit6
            // layoutControlItem9
            // 
            this.repositoryItemMemoEdit6.Name = "repositoryItemMemoEdit6";
            //
            // gridColumn14
            //
            this.gridColumn14.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 14.25F);
            this.gridColumn14.AppearanceCell.Options.UseFont = true;
            this.gridColumn14.Caption = "二号泵";
            this.gridColumn14.ColumnEdit = this.repositoryItemMemoEdit7;
            this.gridColumn14.FieldName = "pump2";
            this.gridColumn14.Name = "gridColumn14";
            this.gridColumn14.Visible = true;
            this.gridColumn14.VisibleIndex = 5;
            this.gridColumn14.Width = 86;
            //
            // repositoryItemMemoEdit7
            //
            this.repositoryItemMemoEdit7.Name = "repositoryItemMemoEdit7";
            //
            // gridColumn15
            //
            this.gridColumn15.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 14.25F);
            this.gridColumn15.AppearanceCell.Options.UseFont = true;
            this.gridColumn15.Caption = "三号泵";
            this.gridColumn15.ColumnEdit = this.repositoryItemMemoEdit8;
            this.gridColumn15.FieldName = "pump3";
            this.gridColumn15.Name = "gridColumn15";
            this.gridColumn15.Visible = true;
            this.gridColumn15.VisibleIndex = 6;
            this.gridColumn15.Width = 86;
            //
            // repositoryItemMemoEdit8
            //
            this.repositoryItemMemoEdit8.Name = "repositoryItemMemoEdit8";
            //
            // gridColumn16
            //
            this.gridColumn16.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 14.25F);
            this.gridColumn16.AppearanceCell.Options.UseFont = true;
            this.gridColumn16.Caption = "四号泵";
            this.gridColumn16.ColumnEdit = this.repositoryItemMemoEdit9;
            this.gridColumn16.FieldName = "pump4";
            this.gridColumn16.Name = "gridColumn16";
            this.gridColumn16.Visible = true;
            this.gridColumn16.VisibleIndex = 7;
            this.gridColumn16.Width = 92;
            //
            // repositoryItemMemoEdit9
            //
            this.repositoryItemMemoEdit9.Name = "repositoryItemMemoEdit9";
            //
            // gridColumn17
            //
            this.gridColumn17.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 14.25F);
            this.gridColumn17.AppearanceCell.Options.UseFont = true;
            this.gridColumn17.Caption = "五号泵";
            this.gridColumn17.ColumnEdit = this.repositoryItemMemoEdit10;
            this.gridColumn17.FieldName = "pump5";
            this.gridColumn17.Name = "gridColumn17";
            this.gridColumn17.Visible = true;
            this.gridColumn17.VisibleIndex = 8;
            this.gridColumn17.Width = 111;
            //
            // repositoryItemMemoEdit10
            //
            this.repositoryItemMemoEdit10.Name = "repositoryItemMemoEdit10";
            //
            // repositoryItemMemoExEdit2
            //
            this.repositoryItemMemoExEdit2.AutoHeight = false;
            this.repositoryItemMemoExEdit2.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.repositoryItemMemoExEdit2.Name = "repositoryItemMemoExEdit2";
            //
            // layoutControlItem2
            //
            this.layoutControlItem2.Control = this.gridControl2;
            this.layoutControlItem2.Location = new System.Drawing.Point(0, 0);
            this.layoutControlItem2.Name = "layoutControlItem2";
            this.layoutControlItem2.Size = new System.Drawing.Size(1159, 559);
            this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem2.TextVisible = false;
            this.layoutControlItem9.AppearanceItemCaption.Font = new System.Drawing.Font("Tahoma", 12F);
            this.layoutControlItem9.AppearanceItemCaption.Options.UseFont = true;
            this.layoutControlItem9.Control = this.textEdit5;
            this.layoutControlItem9.Location = new System.Drawing.Point(1000, 0);
            this.layoutControlItem9.Name = "layoutControlItem9";
            this.layoutControlItem9.Size = new System.Drawing.Size(200, 50);
            this.layoutControlItem9.Text = "实际总取水量:";
            this.layoutControlItem9.TextSize = new System.Drawing.Size(118, 19);
            // 
            // ResultChartControl
            // 
@@ -792,9 +1003,18 @@
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.layoutControl1);
            this.Name = "ResultChartControl";
            this.Size = new System.Drawing.Size(1185, 709);
            this.Size = new System.Drawing.Size(1237, 640);
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
            this.layoutControl1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.gridControl2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoExEdit2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit7)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit8)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit9)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit6)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit10)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(xyDiagramPane1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(secondaryAxisY1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(secondaryAxisY2)).EndInit();
@@ -810,19 +1030,28 @@
            ((System.ComponentModel.ISupportInitialize)(lineSeriesView5)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(series5)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.chartControl实时数据)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit总供水量.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit总电费.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit总用电量.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit千吨水能耗.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit1.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit13.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit14.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit12.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit11.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit9.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit方案总电费.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit方案总用电量.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.tabbedControlGroup1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup5)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem16)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem19)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem20)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem18)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoExEdit1)).EndInit();
@@ -831,15 +1060,14 @@
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit5)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridControl2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridView2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit6)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit7)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit8)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit9)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit10)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoExEdit2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit2.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit3.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit4.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.textEdit5.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
            this.ResumeLayout(false);
        }
@@ -867,35 +1095,50 @@
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn7;
        private DevExpress.XtraTab.XtraTabPage tabPage实时数据1;
         private DevExpress.XtraCharts.ChartControl chartControl实时数据;
        private DevExpress.XtraEditors.TextEdit textEdit总供水量;
        private DevExpress.XtraEditors.TextEdit textEdit总电费;
        private DevExpress.XtraEditors.TextEdit textEdit总用电量;
        private DevExpress.XtraEditors.TextEdit textEdit千吨水能耗;
        private DevExpress.XtraEditors.TextEdit textEdit方案总电费;
        private DevExpress.XtraEditors.TextEdit textEdit方案总用电量;
        private DevExpress.XtraLayout.TabbedControlGroup tabbedControlGroup1;
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup3;
        private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup5;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
        private DevExpress.XtraGrid.GridControl gridControl2;
        private DevExpress.XtraGrid.Views.Grid.GridView gridView2;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn8;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn10;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn11;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn12;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn13;
        private DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit repositoryItemMemoEdit6;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn14;
        private DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit repositoryItemMemoEdit7;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn15;
        private DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit repositoryItemMemoEdit8;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn16;
        private DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit repositoryItemMemoEdit9;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn17;
        private DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit repositoryItemMemoEdit10;
        private DevExpress.XtraEditors.Repository.RepositoryItemMemoExEdit repositoryItemMemoExEdit2;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
        private System.Windows.Forms.BindingSource bindingSource1;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn18;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn19;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn13;
        private DevExpress.XtraEditors.TextEdit textEdit1;
        private DevExpress.XtraEditors.TextEdit textEdit11;
        private DevExpress.XtraEditors.TextEdit textEdit9;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem16;
        private DevExpress.XtraEditors.TextEdit textEdit13;
        private DevExpress.XtraEditors.TextEdit textEdit14;
        private DevExpress.XtraEditors.TextEdit textEdit12;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem19;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem20;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem18;
        private DevExpress.XtraEditors.TextEdit textEdit2;
        private DevExpress.XtraEditors.TextEdit textEdit3;
        private DevExpress.XtraEditors.TextEdit textEdit4;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
        private DevExpress.XtraEditors.TextEdit textEdit5;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9;
    }
}
WinFrmUI/IStation.WinFrmUI.Monitor/ResultChartControl.cs
@@ -1,4 +1,8 @@
using DevExpress.XtraEditors;
using DevExpress.XtraGrid.Views.Grid;
using DevExpress.XtraGrid;
using DevExpress.XtraPrinting;
using IStation.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -8,6 +12,7 @@
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.TaskbarClock;
namespace IStation.WinFrmUI.Monitor
{
@@ -17,5 +22,179 @@
        {
            InitializeComponent();
        }
        private class CurrentModel : HistoryDataHelper
        {
            /// <summary>
            /// åç§°
            /// </summary>
            public string Name { get; set; }
            /// <summary>
            /// æ³µå°æ•°
            /// </summary>
            public string PumpCount { get; set; }
            /// <summary>
            /// å¼€æœºæ—¶é—´æ®µ
            /// </summary>
            public string Time { get; set; }
            /// <summary>
            /// ç”µè´¹
            /// </summary>
            public double Electricity { get; set; }
        }
        List<CurrentModel> _currentModel = new List<CurrentModel>();
        /// <summary>
        /// ç»‘定数据
        /// </summary>
        /// <param name="datetime"></param>
        public void SetBindingData(DateTime datetime)
        {
            _currentModel.Clear();
            HistoryDataAPiHelper historyDataHelper = new HistoryDataAPiHelper();
            var result = historyDataHelper.getPumpIsOpen();
            var time = new DateTime(2022, 11, 6);
            foreach (var item in result)
            {
                var currentmodel = new CurrentModel
                {
                    Name = "方案",
                    Time = item.Item1.ToString("HH:mm") + "----" + item.Item2.ToString("HH:mm"),
                    PumpCount = item.Item3.ToString() + "台",
                    water = Math.Round(GetWaterdata(item.Item1, item.Item2), 2),
                    electricity = GetElectrityData(item.Item1, item.Item2),
                    Electricity = electricityPirce(item.Item1, item.Item2, GetElectrityData(item.Item1, item.Item2))
                };
                _currentModel.Add(currentmodel);
            }
            this.bindingSource1.DataSource = _currentModel;
        }
        private double GetWaterdata(DateTime Str, DateTime end)
        {
            HistoryDataAPiHelper historyDataHelper = new HistoryDataAPiHelper();
            var waterData = historyDataHelper.GetWaterData();
            var pump1 = WaterData(waterData.Where(x => x.Tag == "二取水1号主水泵.日累计").ToList(), Str, end);
            var pump2 = WaterData(waterData.Where(x => x.Tag == "二取水2号主水泵.日累计").ToList(), Str, end);
            var pump3 = WaterData(waterData.Where(x => x.Tag == "二取水3号主水泵.日累计").ToList(), Str, end);
            var pump4 = WaterData(waterData.Where(x => x.Tag == "二取水4号主水泵.日累计").ToList(), Str, end);
            var pump5 = WaterData(waterData.Where(x => x.Tag == "二取水5号主水泵.日累计").ToList(), Str, end);
            return pump1 + pump2 + pump3 + pump4 + pump5;
        }
        private double WaterData(List<Model.PumpWater> waterData, DateTime Str, DateTime end)
        {
            double result = 0;
            for (int i = 0; i < waterData.Count; i++)
            {
                if (waterData[i].Values[0].DateTime == Str)
                {
                    double startValue;
                    double endValue;
                    startValue = waterData[i].Values[0].SingleWater;
                    for (int j = i + 1; j < waterData.Count; j++)
                    {
                        if (waterData[j].Values[0].DateTime == end)
                        {
                            endValue = waterData[j].Values[0].SingleWater;
                            result = endValue - startValue;
                            return result;
                        }
                    }
                }
            }
            return result;
        }
        //电费计算
        private double electricityPirce(DateTime startTime, DateTime endTime, double electricity)
        {
            var ElePriceSetting = new BLL.ElecPrice().GetAll().First();
            var MonthList = ElePriceSetting.Settings.MonthList;
            var FindMonth = MonthList.Find(x => x.StartMonth <= startTime.Month && x.EndMonth >= startTime.Month);
            foreach (var item in FindMonth.HourList)
            {
                if (startTime.Hour >= item.StartHour && endTime.Hour <= item.EndHour)
                {
                    return Math.Round(item.Price * electricity, 2);
                }
            }
            return 0;
        }
        private double GetElectrityData(DateTime Str, DateTime end)
        {
            HistoryDataAPiHelper historyDataHelper = new HistoryDataAPiHelper();
            var Ele = historyDataHelper.GetEleData();
            var pump1 = ElectricityData(Ele.Where(x => x.Tag == "_0402010204040193046").ToList(), Str, end);
            var pump2 = ElectricityData(Ele.Where(x => x.Tag == "_0402010204040193047").ToList(), Str, end);
            var pump3 = ElectricityData(Ele.Where(x => x.Tag == "_0402010204012308007").ToList(), Str, end);
            var pump4 = ElectricityData(Ele.Where(x => x.Tag == "_0402010204012408007").ToList(), Str, end);
            var pump5 = ElectricityData(Ele.Where(x => x.Tag == "_0402010204012508007").ToList(), Str, end);
            return Math.Round(pump1 + pump2 + pump3 + pump4 + pump5, 2);
        }
        private double ElectricityData(List<Model.electricity> EleData, DateTime Str, DateTime end)
        {
            double result = 0;
            for (int i = 0; i < EleData.Count; i++)
            {
                if (EleData[i].TotalEle[0].DateTime == Str)
                {
                    double startValue;
                    double endValue;
                    startValue = EleData[i].TotalEle[0].Value;
                    for (int j = i + 1; j < EleData.Count; j++)
                    {
                        if (EleData[j].TotalEle[0].DateTime == end)
                        {
                            endValue = EleData[j].TotalEle[0].Value;
                            result = endValue - startValue;
                            return result;
                        }
                    }
                }
            }
            return result;
        }
        //表格点击事件
        private void gridControl2_MouseDown(object sender, MouseEventArgs e)
        {
            GridView gridView = gridControl2.MainView as GridView;
            if (gridView != null)
            {
                // èŽ·å–é¼ æ ‡æ‰€åœ¨çš„å•å…ƒæ ¼
                DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hitInfo = gridView.CalcHitInfo(e.Location);
                // å¦‚果点击到单元格上
                if (hitInfo.InRowCell)
                {
                    // èŽ·å–ç‚¹å‡»çš„å•å…ƒæ ¼çš„è¡Œå’Œåˆ—
                    int rowHandle = hitInfo.RowHandle;
                    int columnHandle = hitInfo.Column.VisibleIndex;
                    object cellValue = gridView.GetRowCellValue(rowHandle, gridView.Columns[columnHandle]);
                    // å¤„理获取到的单元格数据
                    if (cellValue != null)
                    {
                    }
                }
            }
        }
    }
}
WinFrmUI/IStation.WinFrmUI.Monitor/ResultChartControl.resx
@@ -117,4 +117,7 @@
  <resheader name="writer">
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <metadata name="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>17, 17</value>
  </metadata>
</root>
WinFrmUI/IStation.WinFrmUI.Monitor/SearchHistoryData.cs
@@ -21,11 +21,8 @@
                Modular = eModular.Basic,
                Function = this.PageTitle.Caption
            };
           this.gridView1.SetNormalView();
           this.gridView1.OptionsView.ShowDetailButtons = true;
           this.gridView1.OptionsDetail.ShowDetailTabs = false;
        }
        //初始化
        private void SearchHistoryData_Load(object sender, EventArgs e)
@@ -36,11 +33,18 @@
            listBoxDay.SelectedIndex = DateTime.Today.Day - 1;
        }
        //刷新数据
        private void BtnRefresh_Click(object sender, EventArgs e)
        private void listBoxDay_SelectedIndexChanged(object sender, EventArgs e)
        {
            RefreshByDay();
        }
        private void listBoxDay_CustomItemDisplayText(object sender, DevExpress.XtraEditors.CustomItemDisplayTextEventArgs e)
        {
        }
        private void RefreshList()
        {
@@ -53,12 +57,14 @@
            {
                listBoxDay.Items.Add(i.ToString());
            }
          }
            dict = BLL.AnaPrj.GetExistStatus(year, month);
        }
        Dictionary<int, bool> dict = null;
        private void RefreshByDay()
        {
            var bll = new BLL.PumpRunHelper();
      //      var OnePumpParas=  bll.GetPumpRunParasOneDay(this.StartTimeEidt.DateTime,out string error );
            //      var OnePumpParas=  bll.GetPumpRunParasOneDay(this.StartTimeEidt.DateTime,out string error );
        }
        //年变化
@@ -71,6 +77,35 @@
        {
            RefreshList();
        }
         private void listBoxDay_SelectedIndexChanged_1(object sender, EventArgs e)
        {
            var bll = new BLL.PumpRunHelper();
            if (listBoxDay.SelectedIndex < 0)
                return;
            if (listBoxDay.Items.Count == 0)
                return;
            int year = Convert.ToInt32(spinEditYear.Text);
            int month = Convert.ToInt32(comboBoxMonth.Text);
            int day = listBoxDay.SelectedIndex + 1;
            var OnePumpParas = bll.GetPumpRunParasOneDay(new DateTime(year, month, day), out string error);   //调用运行参数Api
            this.resultChartControl1.SetBindingData(new DateTime(year, month, day));
            var historydata = new HistoryDataAPiHelper();
        }
        private void listBoxDay_CustomItemDisplayText_1(object sender, DevExpress.XtraEditors.CustomItemDisplayTextEventArgs e)
        {
            if (dict == null)
                return;
            if (e.Item == null)
                return;
            if (!dict[e.Index + 1])
            {
                e.DisplayText = string.Format("{0} (无)", e.Value);
            }
        }
    }
     
}
WinFrmUI/IStation.WinFrmUI.Monitor/SearchHistoryData.designer.cs
@@ -28,9 +28,9 @@
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
            this.resultChartControl1 = new IStation.WinFrmUI.Monitor.ResultChartControl();
            this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
            this.gridBand1 = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            this.groupControl1 = new DevExpress.XtraEditors.GroupControl();
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.panel1 = new System.Windows.Forms.Panel();
@@ -39,31 +39,12 @@
            this.comboBoxMonth = new DevExpress.XtraEditors.ComboBoxEdit();
            this.spinEditYear = new DevExpress.XtraEditors.SpinEdit();
            this.listBoxDay = new DevExpress.XtraEditors.ListBoxControl();
            this.gridControl1 = new DevExpress.XtraGrid.GridControl();
            this.HistorybindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn2 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn3 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn9 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.gridColumn4 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.repositoryItemMemoEdit4 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.gridColumn5 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.repositoryItemMemoEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.gridColumn6 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.repositoryItemMemoEdit2 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.gridColumn7 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.repositoryItemMemoEdit3 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.gridColumn8 = new DevExpress.XtraGrid.Columns.GridColumn();
            this.repositoryItemMemoEdit5 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit();
            this.repositoryItemMemoExEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemMemoExEdit();
            this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
            this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
            this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
            this.resultChartControl1 = new IStation.WinFrmUI.Monitor.ResultChartControl();
            this.layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem();
            this.gridBand1 = new DevExpress.XtraGrid.Views.BandedGrid.GridBand();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
            this.layoutControl1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).BeginInit();
            this.groupControl1.SuspendLayout();
            this.tableLayoutPanel1.SuspendLayout();
@@ -71,18 +52,7 @@
            ((System.ComponentModel.ISupportInitialize)(this.comboBoxMonth.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.spinEditYear.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.listBoxDay)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.HistorybindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit5)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoExEdit1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).BeginInit();
            this.SuspendLayout();
            // 
@@ -90,30 +60,40 @@
            // 
            this.layoutControl1.Controls.Add(this.resultChartControl1);
            this.layoutControl1.Controls.Add(this.groupControl1);
            this.layoutControl1.Controls.Add(this.gridControl1);
            this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.layoutControl1.Location = new System.Drawing.Point(0, 0);
            this.layoutControl1.Name = "layoutControl1";
            this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(1158, 176, 650, 400);
            this.layoutControl1.Root = this.Root;
            this.layoutControl1.Size = new System.Drawing.Size(1297, 874);
            this.layoutControl1.Size = new System.Drawing.Size(1563, 931);
            this.layoutControl1.TabIndex = 0;
            this.layoutControl1.Text = "layoutControl1";
            // 
            // resultChartControl1
            // Root
            // 
            this.resultChartControl1.Location = new System.Drawing.Point(190, 12);
            this.resultChartControl1.Name = "resultChartControl1";
            this.resultChartControl1.Size = new System.Drawing.Size(1095, 650);
            this.resultChartControl1.TabIndex = 7;
            this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
            this.Root.GroupBordersVisible = false;
            this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
            this.layoutControlItem2,
            this.layoutControlItem1});
            this.Root.Name = "Root";
            this.Root.Size = new System.Drawing.Size(1563, 931);
            this.Root.TextVisible = false;
            //
            // gridBand1
            //
            this.gridBand1.Caption = "gridBand1";
            this.gridBand1.Name = "gridBand1";
            this.gridBand1.VisibleIndex = -1;
            this.gridBand1.Width = 802;
            // 
            // groupControl1
            // 
            this.groupControl1.Controls.Add(this.tableLayoutPanel1);
            this.groupControl1.Location = new System.Drawing.Point(12, 12);
            this.groupControl1.Name = "groupControl1";
            this.groupControl1.Size = new System.Drawing.Size(174, 850);
            this.groupControl1.TabIndex = 6;
            this.groupControl1.Size = new System.Drawing.Size(200, 907);
            this.groupControl1.TabIndex = 4;
            this.groupControl1.Text = "历史";
            // 
            // tableLayoutPanel1
@@ -129,7 +109,7 @@
            this.tableLayoutPanel1.RowCount = 2;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 87F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.Size = new System.Drawing.Size(170, 825);
            this.tableLayoutPanel1.Size = new System.Drawing.Size(196, 882);
            this.tableLayoutPanel1.TabIndex = 1;
            // 
            // panel1
@@ -141,12 +121,12 @@
            this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel1.Location = new System.Drawing.Point(3, 3);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(164, 81);
            this.panel1.Size = new System.Drawing.Size(190, 81);
            this.panel1.TabIndex = 0;
            // 
            // labelControl2
            // 
            this.labelControl2.Location = new System.Drawing.Point(19, 44);
            this.labelControl2.Location = new System.Drawing.Point(36, 44);
            this.labelControl2.Name = "labelControl2";
            this.labelControl2.Size = new System.Drawing.Size(12, 14);
            this.labelControl2.TabIndex = 3;
@@ -154,7 +134,7 @@
            // 
            // labelControl1
            // 
            this.labelControl1.Location = new System.Drawing.Point(19, 13);
            this.labelControl1.Location = new System.Drawing.Point(36, 13);
            this.labelControl1.Name = "labelControl1";
            this.labelControl1.Size = new System.Drawing.Size(12, 14);
            this.labelControl1.TabIndex = 2;
@@ -163,7 +143,7 @@
            // comboBoxMonth
            // 
            this.comboBoxMonth.EditValue = "1";
            this.comboBoxMonth.Location = new System.Drawing.Point(37, 41);
            this.comboBoxMonth.Location = new System.Drawing.Point(69, 41);
            this.comboBoxMonth.Name = "comboBoxMonth";
            this.comboBoxMonth.Properties.Appearance.Options.UseTextOptions = true;
            this.comboBoxMonth.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
@@ -184,7 +164,6 @@
            "12"});
            this.comboBoxMonth.Size = new System.Drawing.Size(100, 20);
            this.comboBoxMonth.TabIndex = 1;
            this.comboBoxMonth.EditValueChanged += new System.EventHandler(this.comboBoxMonth_EditValueChanged);
            // 
            // spinEditYear
            // 
@@ -193,7 +172,7 @@
            0,
            0,
            0});
            this.spinEditYear.Location = new System.Drawing.Point(37, 10);
            this.spinEditYear.Location = new System.Drawing.Point(69, 10);
            this.spinEditYear.Name = "spinEditYear";
            this.spinEditYear.Properties.Appearance.Options.UseTextOptions = true;
            this.spinEditYear.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
@@ -213,234 +192,41 @@
            0});
            this.spinEditYear.Size = new System.Drawing.Size(100, 20);
            this.spinEditYear.TabIndex = 0;
            this.spinEditYear.EditValueChanged += new System.EventHandler(this.spinEditYear_EditValueChanged);
            // 
            // listBoxDay
            // 
            this.listBoxDay.Dock = System.Windows.Forms.DockStyle.Fill;
            this.listBoxDay.Location = new System.Drawing.Point(3, 90);
            this.listBoxDay.Name = "listBoxDay";
            this.listBoxDay.Size = new System.Drawing.Size(164, 732);
            this.listBoxDay.Size = new System.Drawing.Size(190, 789);
            this.listBoxDay.TabIndex = 1;
            //
            // gridControl1
            //
            this.gridControl1.DataSource = this.HistorybindingSource;
            this.gridControl1.Location = new System.Drawing.Point(190, 666);
            this.gridControl1.MainView = this.gridView1;
            this.gridControl1.Name = "gridControl1";
            this.gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] {
            this.repositoryItemMemoExEdit1,
            this.repositoryItemMemoEdit1,
            this.repositoryItemMemoEdit2,
            this.repositoryItemMemoEdit3,
            this.repositoryItemMemoEdit4,
            this.repositoryItemMemoEdit5});
            this.gridControl1.Size = new System.Drawing.Size(1095, 196);
            this.gridControl1.TabIndex = 4;
            this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
            this.gridView1});
            //
            // gridView1
            //
            this.gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridView1.AppearancePrint.HeaderPanel.Options.UseTextOptions = true;
            this.gridView1.AppearancePrint.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
            this.gridColumn1,
            this.gridColumn2,
            this.gridColumn3,
            this.gridColumn9,
            this.gridColumn4,
            this.gridColumn5,
            this.gridColumn6,
            this.gridColumn7,
            this.gridColumn8});
            this.gridView1.GridControl = this.gridControl1;
            this.gridView1.Name = "gridView1";
            this.gridView1.OptionsBehavior.Editable = false;
            this.gridView1.OptionsView.RowAutoHeight = true;
            this.gridView1.OptionsView.ShowGroupPanel = false;
            //
            // gridColumn1
            //
            this.gridColumn1.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10.5F);
            this.gridColumn1.AppearanceCell.Options.UseFont = true;
            this.gridColumn1.AppearanceCell.Options.UseTextOptions = true;
            this.gridColumn1.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridColumn1.Caption = "日期";
            this.gridColumn1.FieldName = "DateTime";
            this.gridColumn1.Name = "gridColumn1";
            this.gridColumn1.Visible = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn1.Width = 133;
            //
            // gridColumn2
            //
            this.gridColumn2.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10.5F);
            this.gridColumn2.AppearanceCell.Options.UseFont = true;
            this.gridColumn2.AppearanceCell.Options.UseTextOptions = true;
            this.gridColumn2.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridColumn2.Caption = "取水总量(万m³)";
            this.gridColumn2.FieldName = "water";
            this.gridColumn2.Name = "gridColumn2";
            this.gridColumn2.Visible = true;
            this.gridColumn2.VisibleIndex = 1;
            this.gridColumn2.Width = 106;
            //
            // gridColumn3
            //
            this.gridColumn3.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10.5F);
            this.gridColumn3.AppearanceCell.Options.UseFont = true;
            this.gridColumn3.AppearanceCell.Options.UseTextOptions = true;
            this.gridColumn3.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            this.gridColumn3.Caption = "用电总量(度)";
            this.gridColumn3.FieldName = "electricity";
            this.gridColumn3.Name = "gridColumn3";
            this.gridColumn3.Visible = true;
            this.gridColumn3.VisibleIndex = 2;
            this.gridColumn3.Width = 97;
            //
            // gridColumn9
            //
            this.gridColumn9.Caption = "电费(元)";
            this.gridColumn9.Name = "gridColumn9";
            this.gridColumn9.Visible = true;
            this.gridColumn9.VisibleIndex = 3;
            //
            // gridColumn4
            //
            this.gridColumn4.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gridColumn4.AppearanceCell.Options.UseFont = true;
            this.gridColumn4.Caption = "一号泵";
            this.gridColumn4.ColumnEdit = this.repositoryItemMemoEdit4;
            this.gridColumn4.FieldName = "pump1";
            this.gridColumn4.Name = "gridColumn4";
            this.gridColumn4.Visible = true;
            this.gridColumn4.VisibleIndex = 4;
            this.gridColumn4.Width = 86;
            //
            // repositoryItemMemoEdit4
            //
            this.repositoryItemMemoEdit4.Name = "repositoryItemMemoEdit4";
            //
            // gridColumn5
            //
            this.gridColumn5.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 14.25F);
            this.gridColumn5.AppearanceCell.Options.UseFont = true;
            this.gridColumn5.Caption = "二号泵";
            this.gridColumn5.ColumnEdit = this.repositoryItemMemoEdit1;
            this.gridColumn5.FieldName = "pump2";
            this.gridColumn5.Name = "gridColumn5";
            this.gridColumn5.Visible = true;
            this.gridColumn5.VisibleIndex = 5;
            this.gridColumn5.Width = 86;
            //
            // repositoryItemMemoEdit1
            //
            this.repositoryItemMemoEdit1.Name = "repositoryItemMemoEdit1";
            //
            // gridColumn6
            //
            this.gridColumn6.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 14.25F);
            this.gridColumn6.AppearanceCell.Options.UseFont = true;
            this.gridColumn6.Caption = "三号泵";
            this.gridColumn6.ColumnEdit = this.repositoryItemMemoEdit2;
            this.gridColumn6.FieldName = "pump3";
            this.gridColumn6.Name = "gridColumn6";
            this.gridColumn6.Visible = true;
            this.gridColumn6.VisibleIndex = 6;
            this.gridColumn6.Width = 86;
            //
            // repositoryItemMemoEdit2
            //
            this.repositoryItemMemoEdit2.Name = "repositoryItemMemoEdit2";
            //
            // gridColumn7
            //
            this.gridColumn7.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 14.25F);
            this.gridColumn7.AppearanceCell.Options.UseFont = true;
            this.gridColumn7.Caption = "四号泵";
            this.gridColumn7.ColumnEdit = this.repositoryItemMemoEdit3;
            this.gridColumn7.FieldName = "pump4";
            this.gridColumn7.Name = "gridColumn7";
            this.gridColumn7.Visible = true;
            this.gridColumn7.VisibleIndex = 7;
            this.gridColumn7.Width = 92;
            //
            // repositoryItemMemoEdit3
            //
            this.repositoryItemMemoEdit3.Name = "repositoryItemMemoEdit3";
            //
            // gridColumn8
            //
            this.gridColumn8.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 14.25F);
            this.gridColumn8.AppearanceCell.Options.UseFont = true;
            this.gridColumn8.Caption = "五号泵";
            this.gridColumn8.ColumnEdit = this.repositoryItemMemoEdit5;
            this.gridColumn8.FieldName = "pump5";
            this.gridColumn8.Name = "gridColumn8";
            this.gridColumn8.Visible = true;
            this.gridColumn8.VisibleIndex = 8;
            this.gridColumn8.Width = 111;
            //
            // repositoryItemMemoEdit5
            //
            this.repositoryItemMemoEdit5.Name = "repositoryItemMemoEdit5";
            //
            // repositoryItemMemoExEdit1
            //
            this.repositoryItemMemoExEdit1.AutoHeight = false;
            this.repositoryItemMemoExEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
            this.repositoryItemMemoExEdit1.Name = "repositoryItemMemoExEdit1";
            //
            // Root
            //
            this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
            this.Root.GroupBordersVisible = false;
            this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
            this.layoutControlItem1,
            this.layoutControlItem4,
            this.layoutControlItem2});
            this.Root.Name = "Root";
            this.Root.Size = new System.Drawing.Size(1297, 874);
            this.Root.TextVisible = false;
            this.listBoxDay.SelectedIndexChanged += new System.EventHandler(this.listBoxDay_SelectedIndexChanged_1);
            this.listBoxDay.CustomItemDisplayText += new DevExpress.XtraEditors.CustomItemDisplayTextEventHandler(this.listBoxDay_CustomItemDisplayText_1);
            // 
            // layoutControlItem1
            // 
            this.layoutControlItem1.Control = this.gridControl1;
            this.layoutControlItem1.Location = new System.Drawing.Point(178, 654);
            this.layoutControlItem1.Control = this.groupControl1;
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
            this.layoutControlItem1.Name = "layoutControlItem1";
            this.layoutControlItem1.Size = new System.Drawing.Size(1099, 200);
            this.layoutControlItem1.Size = new System.Drawing.Size(204, 911);
            this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem1.TextVisible = false;
            // 
            // layoutControlItem4
            // resultChartControl1
            // 
            this.layoutControlItem4.Control = this.groupControl1;
            this.layoutControlItem4.Location = new System.Drawing.Point(0, 0);
            this.layoutControlItem4.Name = "layoutControlItem4";
            this.layoutControlItem4.Size = new System.Drawing.Size(178, 854);
            this.layoutControlItem4.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem4.TextVisible = false;
            this.resultChartControl1.Location = new System.Drawing.Point(216, 12);
            this.resultChartControl1.Name = "resultChartControl1";
            this.resultChartControl1.Size = new System.Drawing.Size(1335, 907);
            this.resultChartControl1.TabIndex = 5;
            // 
            // layoutControlItem2
            // 
            this.layoutControlItem2.Control = this.resultChartControl1;
            this.layoutControlItem2.Location = new System.Drawing.Point(178, 0);
            this.layoutControlItem2.Location = new System.Drawing.Point(204, 0);
            this.layoutControlItem2.Name = "layoutControlItem2";
            this.layoutControlItem2.Size = new System.Drawing.Size(1099, 654);
            this.layoutControlItem2.Size = new System.Drawing.Size(1339, 911);
            this.layoutControlItem2.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem2.TextVisible = false;
            //
            // gridBand1
            //
            this.gridBand1.Caption = "gridBand1";
            this.gridBand1.Name = "gridBand1";
            this.gridBand1.VisibleIndex = -1;
            this.gridBand1.Width = 802;
            // 
            // SearchHistoryData
            // 
@@ -448,10 +234,11 @@
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.layoutControl1);
            this.Name = "SearchHistoryData";
            this.Size = new System.Drawing.Size(1297, 874);
            this.Size = new System.Drawing.Size(1563, 931);
            this.Load += new System.EventHandler(this.SearchHistoryData_Load);
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
            this.layoutControl1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.groupControl1)).EndInit();
            this.groupControl1.ResumeLayout(false);
            this.tableLayoutPanel1.ResumeLayout(false);
@@ -460,18 +247,7 @@
            ((System.ComponentModel.ISupportInitialize)(this.comboBoxMonth.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.spinEditYear.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.listBoxDay)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.HistorybindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoEdit5)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.repositoryItemMemoExEdit1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem2)).EndInit();
            this.ResumeLayout(false);
@@ -481,26 +257,8 @@
        private DevExpress.XtraLayout.LayoutControl layoutControl1;
        private DevExpress.XtraLayout.LayoutControlGroup Root;
        private DevExpress.XtraGrid.GridControl gridControl1;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
        private System.Windows.Forms.BindingSource HistorybindingSource;
        private DevExpress.XtraGrid.Views.BandedGrid.GridBand gridBand1;
        private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn1;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn2;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn3;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn4;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn5;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn6;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn7;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn8;
        private DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit repositoryItemMemoEdit1;
        private DevExpress.XtraEditors.Repository.RepositoryItemMemoExEdit repositoryItemMemoExEdit1;
        private DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit repositoryItemMemoEdit4;
        private DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit repositoryItemMemoEdit2;
        private DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit repositoryItemMemoEdit3;
        private DevExpress.XtraEditors.Repository.RepositoryItemMemoEdit repositoryItemMemoEdit5;
        private DevExpress.XtraGrid.Columns.GridColumn gridColumn9;
        private ResultChartControl resultChartControl1;
        private DevExpress.XtraEditors.GroupControl groupControl1;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
        private System.Windows.Forms.Panel panel1;
@@ -509,8 +267,7 @@
        private DevExpress.XtraEditors.ComboBoxEdit comboBoxMonth;
        private DevExpress.XtraEditors.SpinEdit spinEditYear;
        private DevExpress.XtraEditors.ListBoxControl listBoxDay;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
        private Monitor.ResultChartControl resultChartControl1;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2;
        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
    }
}
WinFrmUI/IStation.WinFrmUI.Monitor/SearchHistoryData.resx
@@ -117,7 +117,4 @@
  <resheader name="writer">
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <metadata name="HistorybindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    <value>17, 17</value>
  </metadata>
</root>