功能介绍:该页面是对辽河油田公司海城支线燃气运输压力和温度变化实时展示,导航栏是该支线一些子功能。该项目主要是C#的窗体程序,下面简单介绍该板块的代码组成:
页面的主要控件:
namespace SHJKXT
{
partial class Form_Main_Hczx
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form_Main_Hczx));
DevExpress.XtraCharts.XYDiagram xyDiagram1 = new DevExpress.XtraCharts.XYDiagram();
DevExpress.XtraCharts.Series series1 = new DevExpress.XtraCharts.Series();
DevExpress.XtraCharts.LineSeriesView lineSeriesView1 = new DevExpress.XtraCharts.LineSeriesView();
DevExpress.XtraCharts.Series series2 = new DevExpress.XtraCharts.Series();
DevExpress.XtraCharts.LineSeriesView lineSeriesView2 = new DevExpress.XtraCharts.LineSeriesView();
DevExpress.XtraCharts.ChartTitle chartTitle1 = new DevExpress.XtraCharts.ChartTitle();
DevExpress.XtraCharts.XYDiagram xyDiagram2 = new DevExpress.XtraCharts.XYDiagram();
DevExpress.XtraCharts.Series series3 = new DevExpress.XtraCharts.Series();
DevExpress.XtraCharts.LineSeriesView lineSeriesView3 = new DevExpress.XtraCharts.LineSeriesView();
DevExpress.XtraCharts.ChartTitle chartTitle2 = new DevExpress.XtraCharts.ChartTitle();
DevExpress.XtraCharts.XYDiagram xyDiagram3 = new DevExpress.XtraCharts.XYDiagram();
DevExpress.XtraCharts.Series series4 = new DevExpress.XtraCharts.Series();
DevExpress.XtraCharts.LineSeriesView lineSeriesView4 = new DevExpress.XtraCharts.LineSeriesView();
DevExpress.XtraCharts.Series series5 = new DevExpress.XtraCharts.Series();
DevExpress.XtraCharts.LineSeriesView lineSeriesView5 = new DevExpress.XtraCharts.LineSeriesView();
DevExpress.XtraCharts.ChartTitle chartTitle3 = new DevExpress.XtraCharts.ChartTitle();
DevExpress.XtraCharts.XYDiagram xyDiagram4 = new DevExpress.XtraCharts.XYDiagram();
DevExpress.XtraCharts.Series series6 = new DevExpress.XtraCharts.Series();
DevExpress.XtraCharts.LineSeriesView lineSeriesView6 = new DevExpress.XtraCharts.LineSeriesView();
DevExpress.XtraCharts.ChartTitle chartTitle4 = new DevExpress.XtraCharts.ChartTitle();
DevExpress.XtraCharts.XYDiagram xyDiagram5 = new DevExpress.XtraCharts.XYDiagram();
DevExpress.XtraCharts.Series series7 = new DevExpress.XtraCharts.Series();
DevExpress.XtraCharts.LineSeriesView lineSeriesView7 = new DevExpress.XtraCharts.LineSeriesView();
DevExpress.XtraCharts.ChartTitle chartTitle5 = new DevExpress.XtraCharts.ChartTitle();
this.panel6 = new System.Windows.Forms.Panel();
this.GW_YLZS2_Chart = new DevExpress.XtraCharts.ChartControl();
this.label2 = new System.Windows.Forms.Label();
this.panel9 = new System.Windows.Forms.Panel();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.panel8 = new System.Windows.Forms.Panel();
this.GW_WDZS_Chart = new DevExpress.XtraCharts.ChartControl();
this.label4 = new System.Windows.Forms.Label();
this.User_Zym = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.panel5 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.sjtjtb_toolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.sjtjbb_toolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.ssyjfx_toolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.czlxxx_ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.GW_YLZS1_Chart = new DevExpress.XtraCharts.ChartControl();
this.panel3 = new System.Windows.Forms.Panel();
this.GW_WDZS1_Chart = new DevExpress.XtraCharts.ChartControl();
this.timer2 = new System.Windows.Forms.Timer(this.components);
this.timer3 = new System.Windows.Forms.Timer(this.components);
this.panel7 = new System.Windows.Forms.Panel();
this.GW_WDZS2_Chart = new DevExpress.XtraCharts.ChartControl();
this.panel6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.GW_YLZS2_Chart)).BeginInit();
((System.ComponentModel.ISupportInitialize)(xyDiagram1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(series1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(series2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView2)).BeginInit();
this.panel9.SuspendLayout();
this.panel8.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.GW_WDZS_Chart)).BeginInit();
((System.ComponentModel.ISupportInitialize)(xyDiagram2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(series3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView3)).BeginInit();
this.panel4.SuspendLayout();
this.menuStrip1.SuspendLayout();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.GW_YLZS1_Chart)).BeginInit();
((System.ComponentModel.ISupportInitialize)(xyDiagram3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(series4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(series5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView5)).BeginInit();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.GW_WDZS1_Chart)).BeginInit();
((System.ComponentModel.ISupportInitialize)(xyDiagram4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(series6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView6)).BeginInit();
this.panel7.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.GW_WDZS2_Chart)).BeginInit();
((System.ComponentModel.ISupportInitialize)(xyDiagram5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(series7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView7)).BeginInit();
this.SuspendLayout();
//
// panel6
//
this.panel6.BackColor = System.Drawing.Color.Transparent;
this.panel6.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel6.BackgroundImage")));
this.panel6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel6.Controls.Add(this.GW_YLZS2_Chart);
this.panel6.Location = new System.Drawing.Point(722, 140);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(427, 223);
this.panel6.TabIndex = 33;
//
// GW_YLZS2_Chart
//
this.GW_YLZS2_Chart.AppearanceNameSerializable = "Light";
this.GW_YLZS2_Chart.BackColor = System.Drawing.Color.Transparent;
this.GW_YLZS2_Chart.BackImage.Stretch = true;
this.GW_YLZS2_Chart.BorderOptions.Visibility = DevExpress.Utils.DefaultBoolean.False;
xyDiagram1.AxisX.Label.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram1.AxisX.Title.Alignment = System.Drawing.StringAlignment.Far;
xyDiagram1.AxisX.Title.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.False;
xyDiagram1.AxisX.Title.Font = new System.Drawing.Font("宋体", 9F);
xyDiagram1.AxisX.Title.Text = "日期";
xyDiagram1.AxisX.Title.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram1.AxisX.Title.Visibility = DevExpress.Utils.DefaultBoolean.True;
xyDiagram1.AxisX.VisibleInPanesSerializable = "-1";
xyDiagram1.AxisY.Label.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram1.AxisY.Title.Alignment = System.Drawing.StringAlignment.Far;
xyDiagram1.AxisY.Title.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.False;
xyDiagram1.AxisY.Title.Font = new System.Drawing.Font("宋体", 9F);
xyDiagram1.AxisY.Title.Text = "压力Mpa";
xyDiagram1.AxisY.Title.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram1.AxisY.Title.Visibility = DevExpress.Utils.DefaultBoolean.True;
xyDiagram1.AxisY.VisibleInPanesSerializable = "-1";
xyDiagram1.AxisY.VisualRange.Auto = false;
xyDiagram1.AxisY.VisualRange.MaxValueSerializable = "4";
xyDiagram1.AxisY.VisualRange.MinValueSerializable = "0";
xyDiagram1.AxisY.WholeRange.Auto = false;
xyDiagram1.AxisY.WholeRange.MaxValueSerializable = "4";
xyDiagram1.AxisY.WholeRange.MinValueSerializable = "0";
xyDiagram1.DefaultPane.BackColor = System.Drawing.Color.Transparent;
xyDiagram1.DefaultPane.BackImage.Stretch = true;
this.GW_YLZS2_Chart.Diagram = xyDiagram1;
this.GW_YLZS2_Chart.Legend.BackColor = System.Drawing.Color.Transparent;
this.GW_YLZS2_Chart.Legend.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(176)))), ((int)(((byte)(240)))));
this.GW_YLZS2_Chart.Legend.Border.Visibility = DevExpress.Utils.DefaultBoolean.True;
this.GW_YLZS2_Chart.Legend.Font = new System.Drawing.Font("微软雅黑", 8F);
this.GW_YLZS2_Chart.Legend.MarkerMode = DevExpress.XtraCharts.LegendMarkerMode.None;
this.GW_YLZS2_Chart.Legend.Name = "Default Legend";
this.GW_YLZS2_Chart.Legend.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.GW_YLZS2_Chart.Location = new System.Drawing.Point(13, 6);
this.GW_YLZS2_Chart.Name = "GW_YLZS2_Chart";
this.GW_YLZS2_Chart.PaletteBaseColorNumber = 1;
this.GW_YLZS2_Chart.PaletteName = "Northern Lights";
series1.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.Qualitative;
series1.Name = "PT-1201";
series1.View = lineSeriesView1;
series2.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.Qualitative;
series2.Name = "PT-1301";
series2.View = lineSeriesView2;
this.GW_YLZS2_Chart.SeriesSerializable = new DevExpress.XtraCharts.Series[] {
series1,
series2};
this.GW_YLZS2_Chart.Size = new System.Drawing.Size(413, 214);
this.GW_YLZS2_Chart.TabIndex = 13;
chartTitle1.Font = new System.Drawing.Font("微软雅黑", 11F);
chartTitle1.Text = "PT-12(3)01压力走势";
chartTitle1.TextColor = System.Drawing.Color.White;
this.GW_YLZS2_Chart.Titles.AddRange(new DevExpress.XtraCharts.ChartTitle[] {
chartTitle1});
//
// label2
//
this.label2.Font = new System.Drawing.Font("宋体", 8F);
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(60, 6);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(133, 19);
this.label2.TabIndex = 9;
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// panel9
//
this.panel9.BackColor = System.Drawing.Color.Transparent;
this.panel9.BackgroundImage = global::SHJKXT.Properties.Resources.ly容器1;
this.panel9.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel9.Controls.Add(this.label6);
this.panel9.Controls.Add(this.label5);
this.panel9.Location = new System.Drawing.Point(855, 80);
this.panel9.Name = "panel9";
this.panel9.Size = new System.Drawing.Size(292, 41);
this.panel9.TabIndex = 36;
//
// label6
//
this.label6.BackColor = System.Drawing.Color.Transparent;
this.label6.Font = new System.Drawing.Font("微软雅黑", 11F);
this.label6.ForeColor = System.Drawing.Color.White;
this.label6.Location = new System.Drawing.Point(26, 8);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(90, 25);
this.label6.TabIndex = 6;
this.label6.Text = "北京时间:";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label5
//
this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.Font = new System.Drawing.Font("Times New Roman", 12F);
this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
this.label5.Location = new System.Drawing.Point(112, 7);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(177, 26);
this.label5.TabIndex = 5;
this.label5.Text = "2021-10-17 17:02:30";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label3
//
this.label3.Font = new System.Drawing.Font("宋体", 9F);
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(3, 6);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(78, 19);
this.label3.TabIndex = 8;
this.label3.Text = "登录时间:";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// panel8
//
this.panel8.BackColor = System.Drawing.Color.Transparent;
this.panel8.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel8.BackgroundImage")));
this.panel8.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel8.Controls.Add(this.GW_WDZS_Chart);
this.panel8.Location = new System.Drawing.Point(397, 386);
this.panel8.Name = "panel8";
this.panel8.Size = new System.Drawing.Size(360, 223);
this.panel8.TabIndex = 35;
//
// GW_WDZS_Chart
//
this.GW_WDZS_Chart.AppearanceNameSerializable = "Light";
this.GW_WDZS_Chart.BackColor = System.Drawing.Color.Transparent;
this.GW_WDZS_Chart.BackImage.Stretch = true;
this.GW_WDZS_Chart.BorderOptions.Visibility = DevExpress.Utils.DefaultBoolean.False;
xyDiagram2.AxisX.Label.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram2.AxisX.Title.Alignment = System.Drawing.StringAlignment.Far;
xyDiagram2.AxisX.Title.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.False;
xyDiagram2.AxisX.Title.Font = new System.Drawing.Font("宋体", 9F);
xyDiagram2.AxisX.Title.Text = "日期";
xyDiagram2.AxisX.Title.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram2.AxisX.Title.Visibility = DevExpress.Utils.DefaultBoolean.True;
xyDiagram2.AxisX.VisibleInPanesSerializable = "-1";
xyDiagram2.AxisY.Label.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram2.AxisY.Title.Alignment = System.Drawing.StringAlignment.Far;
xyDiagram2.AxisY.Title.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.False;
xyDiagram2.AxisY.Title.Font = new System.Drawing.Font("宋体", 9F);
xyDiagram2.AxisY.Title.Text = "温度℃";
xyDiagram2.AxisY.Title.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram2.AxisY.Title.Visibility = DevExpress.Utils.DefaultBoolean.True;
xyDiagram2.AxisY.VisibleInPanesSerializable = "-1";
xyDiagram2.AxisY.VisualRange.Auto = false;
xyDiagram2.AxisY.VisualRange.MaxValueSerializable = "40";
xyDiagram2.AxisY.VisualRange.MinValueSerializable = "0";
xyDiagram2.AxisY.WholeRange.Auto = false;
xyDiagram2.AxisY.WholeRange.MaxValueSerializable = "400000";
xyDiagram2.AxisY.WholeRange.MinValueSerializable = "0";
xyDiagram2.DefaultPane.BackColor = System.Drawing.Color.Transparent;
xyDiagram2.DefaultPane.BackImage.Stretch = true;
this.GW_WDZS_Chart.Diagram = xyDiagram2;
this.GW_WDZS_Chart.Legend.BackColor = System.Drawing.Color.Transparent;
this.GW_WDZS_Chart.Legend.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(176)))), ((int)(((byte)(240)))));
this.GW_WDZS_Chart.Legend.Border.Visibility = DevExpress.Utils.DefaultBoolean.True;
this.GW_WDZS_Chart.Legend.Font = new System.Drawing.Font("微软雅黑", 8F);
this.GW_WDZS_Chart.Legend.MarkerMode = DevExpress.XtraCharts.LegendMarkerMode.None;
this.GW_WDZS_Chart.Legend.Name = "Default Legend";
this.GW_WDZS_Chart.Legend.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.GW_WDZS_Chart.Location = new System.Drawing.Point(18, 2);
this.GW_WDZS_Chart.Name = "GW_WDZS_Chart";
this.GW_WDZS_Chart.PaletteBaseColorNumber = 1;
this.GW_WDZS_Chart.PaletteName = "Northern Lights";
series3.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.Qualitative;
series3.Name = "TT-1101";
series3.View = lineSeriesView3;
this.GW_WDZS_Chart.SeriesSerializable = new DevExpress.XtraCharts.Series[] {
series3};
this.GW_WDZS_Chart.Size = new System.Drawing.Size(339, 214);
this.GW_WDZS_Chart.TabIndex = 11;
chartTitle2.Font = new System.Drawing.Font("微软雅黑", 11F);
chartTitle2.Text = "TT-1101温度走势";
chartTitle2.TextColor = System.Drawing.Color.White;
this.GW_WDZS_Chart.Titles.AddRange(new DevExpress.XtraCharts.ChartTitle[] {
chartTitle2});
//
// label4
//
this.label4.Font = new System.Drawing.Font("宋体", 9F);
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Location = new System.Drawing.Point(531, 6);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(235, 19);
this.label4.TabIndex = 7;
this.label4.Text = "登录燃气管道运行全局实时监控系统!";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// User_Zym
//
this.User_Zym.Font = new System.Drawing.Font("Times New Roman", 9F);
this.User_Zym.ForeColor = System.Drawing.Color.White;
this.User_Zym.Location = new System.Drawing.Point(498, 6);
this.User_Zym.Name = "User_Zym";
this.User_Zym.Size = new System.Drawing.Size(48, 19);
this.User_Zym.TabIndex = 6;
this.User_Zym.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label8
//
this.label8.Font = new System.Drawing.Font("宋体", 9F);
this.label8.ForeColor = System.Drawing.Color.White;
this.label8.Location = new System.Drawing.Point(448, 6);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(63, 19);
this.label8.TabIndex = 5;
this.label8.Text = "欢迎用户";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// panel5
//
this.panel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(14)))), ((int)(((byte)(77)))));
this.panel5.BackgroundImage = global::SHJKXT.Properties.Resources.ly地球;
this.panel5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.panel5.Location = new System.Drawing.Point(446, 140);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(259, 223);
this.panel5.TabIndex = 32;
//
// panel4
//
this.panel4.BackColor = System.Drawing.Color.Transparent;
this.panel4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel4.Controls.Add(this.label2);
this.panel4.Controls.Add(this.label3);
this.panel4.Controls.Add(this.label4);
this.panel4.Controls.Add(this.User_Zym);
this.panel4.Controls.Add(this.label8);
this.panel4.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel4.Location = new System.Drawing.Point(0, 625);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(1163, 30);
this.panel4.TabIndex = 31;
//
// timer1
//
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// menuStrip1
//
this.menuStrip1.AutoSize = false;
this.menuStrip1.BackColor = System.Drawing.Color.Transparent;
this.menuStrip1.Dock = System.Windows.Forms.DockStyle.None;
this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.sjtjtb_toolStripMenuItem,
this.sjtjbb_toolStripMenuItem,
this.ssyjfx_toolStripMenuItem,
this.czlxxx_ToolStripMenuItem});
this.menuStrip1.Location = new System.Drawing.Point(3, 55);
this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(718, 32);
this.menuStrip1.TabIndex = 27;
this.menuStrip1.Text = "menuStrip1";
//
// sjtjtb_toolStripMenuItem
//
this.sjtjtb_toolStripMenuItem.BackgroundImage = global::SHJKXT.Properties.Resources.ly容器1;
this.sjtjtb_toolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.sjtjtb_toolStripMenuItem.Font = new System.Drawing.Font("微软雅黑", 11F);
this.sjtjtb_toolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.sjtjtb_toolStripMenuItem.Name = "sjtjtb_toolStripMenuItem";
this.sjtjtb_toolStripMenuItem.Size = new System.Drawing.Size(126, 28);
this.sjtjtb_toolStripMenuItem.Text = "数据统计与图表";
this.sjtjtb_toolStripMenuItem.Click += new System.EventHandler(this.sjtjtb_toolStripMenuItem_Click);
//
// sjtjbb_toolStripMenuItem
//
this.sjtjbb_toolStripMenuItem.BackgroundImage = global::SHJKXT.Properties.Resources.ly容器1;
this.sjtjbb_toolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.sjtjbb_toolStripMenuItem.Font = new System.Drawing.Font("微软雅黑", 11F);
this.sjtjbb_toolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.sjtjbb_toolStripMenuItem.Name = "sjtjbb_toolStripMenuItem";
this.sjtjbb_toolStripMenuItem.Size = new System.Drawing.Size(111, 28);
this.sjtjbb_toolStripMenuItem.Text = "实时数据展示";
this.sjtjbb_toolStripMenuItem.Click += new System.EventHandler(this.sjtjbb_toolStripMenuItem_Click);
//
// ssyjfx_toolStripMenuItem
//
this.ssyjfx_toolStripMenuItem.BackColor = System.Drawing.Color.Transparent;
this.ssyjfx_toolStripMenuItem.BackgroundImage = global::SHJKXT.Properties.Resources.ly容器1;
this.ssyjfx_toolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.ssyjfx_toolStripMenuItem.Font = new System.Drawing.Font("微软雅黑", 11F);
this.ssyjfx_toolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.ssyjfx_toolStripMenuItem.Name = "ssyjfx_toolStripMenuItem";
this.ssyjfx_toolStripMenuItem.Size = new System.Drawing.Size(111, 28);
this.ssyjfx_toolStripMenuItem.Text = "实时预警分析";
this.ssyjfx_toolStripMenuItem.Click += new System.EventHandler(this.ssyjfx_toolStripMenuItem_Click);
//
// czlxxx_ToolStripMenuItem
//
this.czlxxx_ToolStripMenuItem.BackgroundImage = global::SHJKXT.Properties.Resources.ly容器1;
this.czlxxx_ToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.czlxxx_ToolStripMenuItem.Font = new System.Drawing.Font("微软雅黑", 11F);
this.czlxxx_ToolStripMenuItem.ForeColor = System.Drawing.Color.White;
this.czlxxx_ToolStripMenuItem.Name = "czlxxx_ToolStripMenuItem";
this.czlxxx_ToolStripMenuItem.Size = new System.Drawing.Size(141, 28);
this.czlxxx_ToolStripMenuItem.Text = "海城支线联系信息";
this.czlxxx_ToolStripMenuItem.Click += new System.EventHandler(this.czlxxx_ToolStripMenuItem_Click);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Transparent;
this.panel1.BackgroundImage = global::SHJKXT.Properties.Resources.ly顶部;
this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel1.Controls.Add(this.label1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1163, 62);
this.panel1.TabIndex = 28;
//
// label1
//
this.label1.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold);
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
this.label1.Location = new System.Drawing.Point(488, 6);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(190, 24);
this.label1.TabIndex = 21;
this.label1.Text = "海城支线实时监控";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.Transparent;
this.panel2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel2.BackgroundImage")));
this.panel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel2.Controls.Add(this.GW_YLZS1_Chart);
this.panel2.Location = new System.Drawing.Point(12, 136);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(417, 223);
this.panel2.TabIndex = 29;
//
// GW_YLZS1_Chart
//
this.GW_YLZS1_Chart.AppearanceNameSerializable = "Light";
this.GW_YLZS1_Chart.BackColor = System.Drawing.Color.Transparent;
this.GW_YLZS1_Chart.BackImage.Stretch = true;
this.GW_YLZS1_Chart.BorderOptions.Visibility = DevExpress.Utils.DefaultBoolean.False;
xyDiagram3.AxisX.Label.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram3.AxisX.Title.Alignment = System.Drawing.StringAlignment.Far;
xyDiagram3.AxisX.Title.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.False;
xyDiagram3.AxisX.Title.Font = new System.Drawing.Font("宋体", 9F);
xyDiagram3.AxisX.Title.Text = "日期";
xyDiagram3.AxisX.Title.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram3.AxisX.Title.Visibility = DevExpress.Utils.DefaultBoolean.True;
xyDiagram3.AxisX.VisibleInPanesSerializable = "-1";
xyDiagram3.AxisY.Label.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram3.AxisY.Title.Alignment = System.Drawing.StringAlignment.Far;
xyDiagram3.AxisY.Title.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.False;
xyDiagram3.AxisY.Title.Font = new System.Drawing.Font("宋体", 9F);
xyDiagram3.AxisY.Title.Text = "压力Mpa";
xyDiagram3.AxisY.Title.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram3.AxisY.Title.Visibility = DevExpress.Utils.DefaultBoolean.True;
xyDiagram3.AxisY.VisibleInPanesSerializable = "-1";
xyDiagram3.AxisY.VisualRange.Auto = false;
xyDiagram3.AxisY.VisualRange.MaxValueSerializable = "4";
xyDiagram3.AxisY.VisualRange.MinValueSerializable = "-1";
xyDiagram3.AxisY.WholeRange.Auto = false;
xyDiagram3.AxisY.WholeRange.MaxValueSerializable = "4";
xyDiagram3.AxisY.WholeRange.MinValueSerializable = "-1";
xyDiagram3.DefaultPane.BackColor = System.Drawing.Color.Transparent;
xyDiagram3.DefaultPane.BackImage.Stretch = true;
this.GW_YLZS1_Chart.Diagram = xyDiagram3;
this.GW_YLZS1_Chart.Legend.BackColor = System.Drawing.Color.Transparent;
this.GW_YLZS1_Chart.Legend.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(176)))), ((int)(((byte)(240)))));
this.GW_YLZS1_Chart.Legend.Border.Visibility = DevExpress.Utils.DefaultBoolean.True;
this.GW_YLZS1_Chart.Legend.Font = new System.Drawing.Font("微软雅黑", 8F);
this.GW_YLZS1_Chart.Legend.MarkerMode = DevExpress.XtraCharts.LegendMarkerMode.None;
this.GW_YLZS1_Chart.Legend.Name = "Default Legend";
this.GW_YLZS1_Chart.Legend.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.GW_YLZS1_Chart.Location = new System.Drawing.Point(10, 4);
this.GW_YLZS1_Chart.Name = "GW_YLZS1_Chart";
this.GW_YLZS1_Chart.PaletteBaseColorNumber = 1;
this.GW_YLZS1_Chart.PaletteName = "Northern Lights";
series4.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.Qualitative;
series4.Name = "PT-1101";
series4.View = lineSeriesView4;
series5.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.Qualitative;
series5.Name = "PT-1102";
series5.View = lineSeriesView5;
this.GW_YLZS1_Chart.SeriesSerializable = new DevExpress.XtraCharts.Series[] {
series4,
series5};
this.GW_YLZS1_Chart.Size = new System.Drawing.Size(404, 214);
this.GW_YLZS1_Chart.TabIndex = 12;
chartTitle3.Font = new System.Drawing.Font("微软雅黑", 11F);
chartTitle3.Text = "PT-1101(2)压力走势";
chartTitle3.TextColor = System.Drawing.Color.White;
this.GW_YLZS1_Chart.Titles.AddRange(new DevExpress.XtraCharts.ChartTitle[] {
chartTitle3});
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.Transparent;
this.panel3.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel3.BackgroundImage")));
this.panel3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel3.Controls.Add(this.GW_WDZS1_Chart);
this.panel3.Location = new System.Drawing.Point(12, 386);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(360, 223);
this.panel3.TabIndex = 21;
//
// GW_WDZS1_Chart
//
this.GW_WDZS1_Chart.AppearanceNameSerializable = "Light";
this.GW_WDZS1_Chart.BackColor = System.Drawing.Color.Transparent;
this.GW_WDZS1_Chart.BackImage.Stretch = true;
this.GW_WDZS1_Chart.BorderOptions.Visibility = DevExpress.Utils.DefaultBoolean.False;
xyDiagram4.AxisX.Label.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram4.AxisX.Title.Alignment = System.Drawing.StringAlignment.Far;
xyDiagram4.AxisX.Title.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.False;
xyDiagram4.AxisX.Title.Font = new System.Drawing.Font("宋体", 9F);
xyDiagram4.AxisX.Title.Text = "日期";
xyDiagram4.AxisX.Title.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram4.AxisX.Title.Visibility = DevExpress.Utils.DefaultBoolean.True;
xyDiagram4.AxisX.VisibleInPanesSerializable = "-1";
xyDiagram4.AxisY.Label.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram4.AxisY.Title.Alignment = System.Drawing.StringAlignment.Far;
xyDiagram4.AxisY.Title.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.False;
xyDiagram4.AxisY.Title.Font = new System.Drawing.Font("宋体", 9F);
xyDiagram4.AxisY.Title.Text = "温度℃";
xyDiagram4.AxisY.Title.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram4.AxisY.Title.Visibility = DevExpress.Utils.DefaultBoolean.True;
xyDiagram4.AxisY.VisibleInPanesSerializable = "-1";
xyDiagram4.AxisY.VisualRange.Auto = false;
xyDiagram4.AxisY.VisualRange.MaxValueSerializable = "40";
xyDiagram4.AxisY.VisualRange.MinValueSerializable = "0";
xyDiagram4.AxisY.WholeRange.Auto = false;
xyDiagram4.AxisY.WholeRange.MaxValueSerializable = "400000";
xyDiagram4.AxisY.WholeRange.MinValueSerializable = "0";
xyDiagram4.DefaultPane.BackColor = System.Drawing.Color.Transparent;
xyDiagram4.DefaultPane.BackImage.Stretch = true;
this.GW_WDZS1_Chart.Diagram = xyDiagram4;
this.GW_WDZS1_Chart.Legend.BackColor = System.Drawing.Color.Transparent;
this.GW_WDZS1_Chart.Legend.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(176)))), ((int)(((byte)(240)))));
this.GW_WDZS1_Chart.Legend.Border.Visibility = DevExpress.Utils.DefaultBoolean.True;
this.GW_WDZS1_Chart.Legend.Font = new System.Drawing.Font("微软雅黑", 8F);
this.GW_WDZS1_Chart.Legend.MarkerMode = DevExpress.XtraCharts.LegendMarkerMode.None;
this.GW_WDZS1_Chart.Legend.Name = "Default Legend";
this.GW_WDZS1_Chart.Legend.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.GW_WDZS1_Chart.Location = new System.Drawing.Point(8, 11);
this.GW_WDZS1_Chart.Name = "GW_WDZS1_Chart";
this.GW_WDZS1_Chart.PaletteBaseColorNumber = 1;
this.GW_WDZS1_Chart.PaletteName = "Northern Lights";
series6.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.Qualitative;
series6.Name = "TT-1201";
series6.View = lineSeriesView6;
this.GW_WDZS1_Chart.SeriesSerializable = new DevExpress.XtraCharts.Series[] {
series6};
this.GW_WDZS1_Chart.Size = new System.Drawing.Size(349, 212);
this.GW_WDZS1_Chart.TabIndex = 12;
chartTitle4.Font = new System.Drawing.Font("微软雅黑", 11F);
chartTitle4.Text = "TT-1201温度走势";
chartTitle4.TextColor = System.Drawing.Color.White;
this.GW_WDZS1_Chart.Titles.AddRange(new DevExpress.XtraCharts.ChartTitle[] {
chartTitle4});
//
// timer2
//
this.timer2.Tick += new System.EventHandler(this.timer2_Tick);
//
// panel7
//
this.panel7.BackColor = System.Drawing.Color.Transparent;
this.panel7.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("panel7.BackgroundImage")));
this.panel7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel7.Controls.Add(this.GW_WDZS2_Chart);
this.panel7.Location = new System.Drawing.Point(784, 388);
this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(360, 223);
this.panel7.TabIndex = 22;
//
// GW_WDZS2_Chart
//
this.GW_WDZS2_Chart.AppearanceNameSerializable = "Light";
this.GW_WDZS2_Chart.BackColor = System.Drawing.Color.Transparent;
this.GW_WDZS2_Chart.BackImage.Stretch = true;
this.GW_WDZS2_Chart.BorderOptions.Visibility = DevExpress.Utils.DefaultBoolean.False;
xyDiagram5.AxisX.Label.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram5.AxisX.Title.Alignment = System.Drawing.StringAlignment.Far;
xyDiagram5.AxisX.Title.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.False;
xyDiagram5.AxisX.Title.Font = new System.Drawing.Font("宋体", 9F);
xyDiagram5.AxisX.Title.Text = "日期";
xyDiagram5.AxisX.Title.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram5.AxisX.Title.Visibility = DevExpress.Utils.DefaultBoolean.True;
xyDiagram5.AxisX.VisibleInPanesSerializable = "-1";
xyDiagram5.AxisY.Label.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram5.AxisY.Title.Alignment = System.Drawing.StringAlignment.Far;
xyDiagram5.AxisY.Title.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.False;
xyDiagram5.AxisY.Title.Font = new System.Drawing.Font("宋体", 9F);
xyDiagram5.AxisY.Title.Text = "温度℃";
xyDiagram5.AxisY.Title.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
xyDiagram5.AxisY.Title.Visibility = DevExpress.Utils.DefaultBoolean.True;
xyDiagram5.AxisY.VisibleInPanesSerializable = "-1";
xyDiagram5.AxisY.VisualRange.Auto = false;
xyDiagram5.AxisY.VisualRange.MaxValueSerializable = "40";
xyDiagram5.AxisY.VisualRange.MinValueSerializable = "0";
xyDiagram5.AxisY.WholeRange.Auto = false;
xyDiagram5.AxisY.WholeRange.MaxValueSerializable = "400000";
xyDiagram5.AxisY.WholeRange.MinValueSerializable = "0";
xyDiagram5.DefaultPane.BackColor = System.Drawing.Color.Transparent;
xyDiagram5.DefaultPane.BackImage.Stretch = true;
this.GW_WDZS2_Chart.Diagram = xyDiagram5;
this.GW_WDZS2_Chart.Legend.BackColor = System.Drawing.Color.Transparent;
this.GW_WDZS2_Chart.Legend.Border.Color = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(176)))), ((int)(((byte)(240)))));
this.GW_WDZS2_Chart.Legend.Border.Visibility = DevExpress.Utils.DefaultBoolean.True;
this.GW_WDZS2_Chart.Legend.Font = new System.Drawing.Font("微软雅黑", 8F);
this.GW_WDZS2_Chart.Legend.MarkerMode = DevExpress.XtraCharts.LegendMarkerMode.None;
this.GW_WDZS2_Chart.Legend.Name = "Default Legend";
this.GW_WDZS2_Chart.Legend.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
this.GW_WDZS2_Chart.Location = new System.Drawing.Point(6, 9);
this.GW_WDZS2_Chart.Name = "GW_WDZS2_Chart";
this.GW_WDZS2_Chart.PaletteBaseColorNumber = 1;
this.GW_WDZS2_Chart.PaletteName = "Northern Lights";
series7.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.Qualitative;
series7.Name = "TT-1301";
series7.View = lineSeriesView7;
this.GW_WDZS2_Chart.SeriesSerializable = new DevExpress.XtraCharts.Series[] {
series7};
this.GW_WDZS2_Chart.Size = new System.Drawing.Size(351, 214);
this.GW_WDZS2_Chart.TabIndex = 12;
chartTitle5.Font = new System.Drawing.Font("微软雅黑", 11F);
chartTitle5.Text = "TT-1301温度走势";
chartTitle5.TextColor = System.Drawing.Color.White;
this.GW_WDZS2_Chart.Titles.AddRange(new DevExpress.XtraCharts.ChartTitle[] {
chartTitle5});
//
// Form_Main_Hczx
//
this.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(14)))), ((int)(((byte)(77)))));
this.Appearance.Options.UseBackColor = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1163, 655);
this.Controls.Add(this.panel7);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel6);
this.Controls.Add(this.panel9);
this.Controls.Add(this.panel8);
this.Controls.Add(this.panel5);
this.Controls.Add(this.panel4);
this.Controls.Add(this.menuStrip1);
this.Controls.Add(this.panel1);
this.Controls.Add(this.panel2);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.LookAndFeel.SkinName = "Office 2010 Blue";
this.LookAndFeel.UseDefaultLookAndFeel = false;
this.Name = "Form_Main_Hczx";
this.Text = "海城支线主页面";
this.Resize += new System.EventHandler(this.Form_Main_Hczx_Resize);
this.panel6.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(xyDiagram1)).EndInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView1)).EndInit();
((System.ComponentModel.ISupportInitialize)(series1)).EndInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView2)).EndInit();
((System.ComponentModel.ISupportInitialize)(series2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.GW_YLZS2_Chart)).EndInit();
this.panel9.ResumeLayout(false);
this.panel8.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(xyDiagram2)).EndInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView3)).EndInit();
((System.ComponentModel.ISupportInitialize)(series3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.GW_WDZS_Chart)).EndInit();
this.panel4.ResumeLayout(false);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(xyDiagram3)).EndInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView4)).EndInit();
((System.ComponentModel.ISupportInitialize)(series4)).EndInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView5)).EndInit();
((System.ComponentModel.ISupportInitialize)(series5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.GW_YLZS1_Chart)).EndInit();
this.panel3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(xyDiagram4)).EndInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView6)).EndInit();
((System.ComponentModel.ISupportInitialize)(series6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.GW_WDZS1_Chart)).EndInit();
this.panel7.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(xyDiagram5)).EndInit();
((System.ComponentModel.ISupportInitialize)(lineSeriesView7)).EndInit();
((System.ComponentModel.ISupportInitialize)(series7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.GW_WDZS2_Chart)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Panel panel9;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Panel panel8;
private DevExpress.XtraCharts.ChartControl GW_WDZS_Chart;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label User_Zym;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem sjtjtb_toolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem sjtjbb_toolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem ssyjfx_toolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem czlxxx_ToolStripMenuItem;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Timer timer2;
private System.Windows.Forms.Timer timer3;
private System.Windows.Forms.Panel panel7;
private DevExpress.XtraCharts.ChartControl GW_YLZS1_Chart;
private DevExpress.XtraCharts.ChartControl GW_YLZS2_Chart;
private DevExpress.XtraCharts.ChartControl GW_WDZS1_Chart;
private DevExpress.XtraCharts.ChartControl GW_WDZS2_Chart;
}
}
从数据库调用数据:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraCharts;
namespace SHJKXT
{
public partial class Form_Main_Hczx : DevExpress.XtraEditors.XtraForm
{
CommonClass.FormResize frs = new CommonClass.FormResize();
CommonClass.Sjtjtb_QueryData sjtjtb_QueryData = new CommonClass.Sjtjtb_QueryData();
float X, Y;
string USER_ID;
public Form_Main_Hczx(string uSER_ID)
{
InitializeComponent();
USER_ID=uSER_ID;
JL_ZLJLL1_Bind();
JL_ZLJLL2_Bind();
JL_ZLJLL3_Bind();
JL_ZLJLL4_Bind();
JL_ZLJLL5_Bind();
label2.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");//登录时间
timer1.Start();
#region //窗体自适应设置
this.Resize += new EventHandler(Form_Main_Hczx_Resize);
X = this.Width;//赋值初始窗体宽度
Y = this.Height;//赋值初始窗体高度
frs.setTag(this);
#endregion
}
#region<--menuStrip对应的点击事件-->
private void sjssjk_toolStripMenuItem_Click(object sender, EventArgs e)
{
Forms.HczxForms.Page_Hc_Sjtjbb_Zym page_Hc_Sjssjk_Zym = new Forms.HczxForms.Page_Hc_Sjtjbb_Zym(USER_ID);
page_Hc_Sjssjk_Zym.Show();
}
//海城支线数据统计报表
private void sjtjbb_toolStripMenuItem_Click(object sender, EventArgs e)
{
Forms.HczxForms.Page_Hc_Sjtjbb_Zym page_Hc_Sjtjbb_Zym = new Forms.HczxForms.Page_Hc_Sjtjbb_Zym(USER_ID);
page_Hc_Sjtjbb_Zym.Show();
}
//海城支线数据统计图表
private void sjtjtb_toolStripMenuItem_Click(object sender, EventArgs e)
{
Forms.HczxForms.Page_Hc_Sjtjtb_Zym page_Hc_Sjtjtb_Zym = new Forms.HczxForms.Page_Hc_Sjtjtb_Zym(USER_ID);
page_Hc_Sjtjtb_Zym.Show();
}
//海城支线数据场站联系信息
private void czlxxx_ToolStripMenuItem_Click(object sender, EventArgs e)
{
Forms.HczxForms.Forms_Czlxxx.Page_Hc_Czlxxx page_Hc_Czlxxx = new Forms.HczxForms.Forms_Czlxxx.Page_Hc_Czlxxx();
page_Hc_Czlxxx.Show();
}
#endregion
#region<-- 感王输入站温度和压力进行查询-->
//对PT1101和1102压力查询
public void JL_ZLJLL1_Bind()
{
Series sl1 = this.GW_YLZS1_Chart.Series[0];//采用向导设计的图表系列1;;;不采用的是先进行定义
Series sl2 = this.GW_YLZS1_Chart.Series[1];
string sql1 = "select b._VALUE,CONVERT(varchar(12),b._TIMESTAMP,108) as _TIMESTAMP from (select top 5 Cast(_VALUE as float) * 1000 as _VALUE, _TIMESTAMP from[T_GW_HCFSZ_JCZ] where _NUMERICID = '1'order by _TIMESTAMP desc) b order by b._TIMESTAMP asc";
string sql2 = "select b._VALUE,CONVERT(varchar(12),b._TIMESTAMP,108) as _TIMESTAMP from (select top 5 Cast(_VALUE as float) * 1000 as _VALUE, _TIMESTAMP from[T_GW_HCFSZ_JCZ] where _NUMERICID = '2'order by _TIMESTAMP desc) b order by b._TIMESTAMP asc";
sjtjtb_QueryData.Query_Data(sql1, sl1);
sjtjtb_QueryData.Query_Data(sql2, sl2);
}
public void JL_ZLJLL2_Bind()
{
Series sl1 = this.GW_YLZS2_Chart.Series[0];//采用向导设计的图表系列1;;;不采用的是先进行定义
Series sl2 = this.GW_YLZS2_Chart.Series[1];
string sql1 = "select b._VALUE,CONVERT(varchar(12),b._TIMESTAMP,108) as _TIMESTAMP from (select top 5 Cast(_VALUE as float) * 1000 as _VALUE, _TIMESTAMP from[T_GW_HCFSZ_JCZ] where _NUMERICID = '4'order by _TIMESTAMP desc) b order by b._TIMESTAMP asc";
string sql2 = "select b._VALUE,CONVERT(varchar(12),b._TIMESTAMP,108) as _TIMESTAMP from (select top 5 Cast(_VALUE as float) * 1000 as _VALUE, _TIMESTAMP from[T_GW_HCFSZ_JCZ] where _NUMERICID = '6'order by _TIMESTAMP desc) b order by b._TIMESTAMP asc";
sjtjtb_QueryData.Query_Data(sql1, sl1);
sjtjtb_QueryData.Query_Data(sql2, sl2);
}
public void JL_ZLJLL3_Bind()
{
Series sl1 = this.GW_WDZS_Chart.Series[0];//采用向导设计的图表系列1;;;不采用的是先进行定义
//Series sl2 = this.GW_WDZS_Chart.Series[1];
//Series sl3 = this.GW_WDZS_Chart.Series[2];
string sql1 = "select b._VALUE,CONVERT(varchar(12),b._TIMESTAMP,108) as _TIMESTAMP from (select top 5 Cast(_VALUE as float) * 1000 as _VALUE, _TIMESTAMP from[T_GW_HCFSZ_JCZ] where _NUMERICID = '3'order by _TIMESTAMP desc) b order by b._TIMESTAMP asc";
// string sql2 = "select b._VALUE,CONVERT(varchar(12),b._TIMESTAMP,108) as _TIMESTAMP from (select top 5 Cast(_VALUE as float) * 1000 as _VALUE, _TIMESTAMP from[T_GW_HCFSZ_JCZ] where _NUMERICID = '5'order by _TIMESTAMP desc) b order by b._TIMESTAMP asc";
//string sql3 = "select b._VALUE,CONVERT(varchar(12),b._TIMESTAMP,108) as _TIMESTAMP from (select top 5 Cast(_VALUE as float) * 1000 as _VALUE, _TIMESTAMP from[T_GW_HCFSZ_JCZ] where _NUMERICID = '7'order by _TIMESTAMP desc) b order by b._TIMESTAMP asc";
sjtjtb_QueryData.Query_Data(sql1, sl1);
//sjtjtb_QueryData.Query_Data(sql2, sl2);
//sjtjtb_QueryData.Query_Data(sql3, sl3);
}
public void JL_ZLJLL4_Bind()
{
Series sl2 = this.GW_WDZS1_Chart.Series[0];
string sql2 = "select b._VALUE,CONVERT(varchar(12),b._TIMESTAMP,108) as _TIMESTAMP from (select top 5 Cast(_VALUE as float) * 1000 as _VALUE, _TIMESTAMP from[T_GW_HCFSZ_JCZ] where _NUMERICID = '5'order by _TIMESTAMP desc) b order by b._TIMESTAMP asc";
sjtjtb_QueryData.Query_Data(sql2, sl2);
}
public void JL_ZLJLL5_Bind()
{
Series sl3 = this.GW_WDZS2_Chart.Series[0];
string sql3 = "select b._VALUE,CONVERT(varchar(12),b._TIMESTAMP,108) as _TIMESTAMP from (select top 5 Cast(_VALUE as float) * 1000 as _VALUE, _TIMESTAMP from[T_GW_HCFSZ_JCZ] where _NUMERICID = '7'order by _TIMESTAMP desc) b order by b._TIMESTAMP asc";
sjtjtb_QueryData.Query_Data(sql3, sl3);
}
#endregion
#region<--时间设置-->
private void timer1_Tick(object sender, EventArgs e)
{
label5.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
}
#endregion
#region<-- 自适应函数-->
private void Form_Main_Hczx_Resize(object sender, EventArgs e)
{
float newX = this.Width / X;//获取当前宽度与初始宽度的比例
float newY = this.Height / Y;//获取当前高度与初始高度的比例
frs.setControls(newX, newY, this);
}
#endregion
#region<-- 跳转到感王预警分析总页面-->
//海城支线预警分析总页面
private void ssyjfx_toolStripMenuItem_Click(object sender, EventArgs e)
{
Forms.HczxForms.Page_Gw_Yjfx_Zym page_Gw_Yjfx_Zym = new Forms.HczxForms.Page_Gw_Yjfx_Zym(USER_ID);
page_Gw_Yjfx_Zym.Show();
}
#endregion
#region<--实时展示-->
private void timer2_Tick(object sender, EventArgs e)
{
JL_ZLJLL1_Bind();
JL_ZLJLL2_Bind();
JL_ZLJLL3_Bind();
JL_ZLJLL4_Bind();
JL_ZLJLL5_Bind();
}
#endregion
}
}
CommonClass文件夹主要是实现对查询数据库类的封装,Data_Model是对所用数据库的封装,该项目我们所使用的是Sqlserver。
页面展示: