|
@@ -29,7 +29,7 @@
|
|
|
private void InitializeComponent()
|
|
|
{
|
|
|
components = new System.ComponentModel.Container();
|
|
|
- button4 = new Button();
|
|
|
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
|
|
pictureBox1 = new PictureBox();
|
|
|
nowTimer = new System.Windows.Forms.Timer(components);
|
|
|
uploadTimer = new System.Windows.Forms.Timer(components);
|
|
@@ -37,26 +37,77 @@
|
|
|
lblTime = new Label();
|
|
|
btnSetting = new Button();
|
|
|
btnConnectCamera = new Button();
|
|
|
- button2 = new Button();
|
|
|
- button3 = new Button();
|
|
|
+ panel1 = new Panel();
|
|
|
+ pictureBox7 = new PictureBox();
|
|
|
+ panel2 = new Panel();
|
|
|
+ panel11 = new Panel();
|
|
|
+ lblCurrentElectricity = new Label();
|
|
|
+ lblCurrentWaterP = new Label();
|
|
|
+ label6 = new Label();
|
|
|
+ label5 = new Label();
|
|
|
+ pictureBox3 = new PictureBox();
|
|
|
+ pictureBox2 = new PictureBox();
|
|
|
+ label4 = new Label();
|
|
|
+ panel8 = new Panel();
|
|
|
+ panel9 = new Panel();
|
|
|
+ lblTotalElectricity = new Label();
|
|
|
+ lblTotalWater = new Label();
|
|
|
+ lblWashCount = new Label();
|
|
|
+ label7 = new Label();
|
|
|
+ label9 = new Label();
|
|
|
+ pictureBox6 = new PictureBox();
|
|
|
+ label8 = new Label();
|
|
|
+ pictureBox4 = new PictureBox();
|
|
|
+ pictureBox5 = new PictureBox();
|
|
|
+ label3 = new Label();
|
|
|
+ panel6 = new Panel();
|
|
|
+ panel7 = new Panel();
|
|
|
+ label2 = new Label();
|
|
|
+ panel5 = new Panel();
|
|
|
+ panel4 = new Panel();
|
|
|
+ lblError = new Label();
|
|
|
+ label1 = new Label();
|
|
|
+ panel3 = new Panel();
|
|
|
+ panel10 = new Panel();
|
|
|
+ dataGridView1 = new DataGridView();
|
|
|
+ colCarNum = new DataGridViewTextBoxColumn();
|
|
|
+ colStartTime = new DataGridViewTextBoxColumn();
|
|
|
+ colEndTime = new DataGridViewTextBoxColumn();
|
|
|
+ colWashTime = new DataGridViewTextBoxColumn();
|
|
|
+ colDryTime = new DataGridViewTextBoxColumn();
|
|
|
+ colTotalWater = new DataGridViewTextBoxColumn();
|
|
|
+ colTotalElectricity = new DataGridViewTextBoxColumn();
|
|
|
+ colWaterPressure = new DataGridViewTextBoxColumn();
|
|
|
+ panel12 = new Panel();
|
|
|
+ label12 = new Label();
|
|
|
+ lblStatus = new Label();
|
|
|
+ label11 = new Label();
|
|
|
+ label13 = new Label();
|
|
|
+ label10 = new Label();
|
|
|
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
|
|
|
+ panel1.SuspendLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)pictureBox7).BeginInit();
|
|
|
+ panel2.SuspendLayout();
|
|
|
+ panel11.SuspendLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)pictureBox3).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)pictureBox2).BeginInit();
|
|
|
+ panel9.SuspendLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)pictureBox6).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)pictureBox4).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)pictureBox5).BeginInit();
|
|
|
+ panel7.SuspendLayout();
|
|
|
+ panel4.SuspendLayout();
|
|
|
+ panel3.SuspendLayout();
|
|
|
+ panel10.SuspendLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit();
|
|
|
SuspendLayout();
|
|
|
//
|
|
|
- // button4
|
|
|
- //
|
|
|
- button4.Location = new Point(199, 55);
|
|
|
- button4.Name = "button4";
|
|
|
- button4.Size = new Size(75, 23);
|
|
|
- button4.TabIndex = 5;
|
|
|
- button4.Text = "button4";
|
|
|
- button4.UseVisualStyleBackColor = true;
|
|
|
- button4.Click += button4_Click;
|
|
|
- //
|
|
|
// pictureBox1
|
|
|
//
|
|
|
- pictureBox1.Location = new Point(690, 131);
|
|
|
+ pictureBox1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ pictureBox1.Location = new Point(29, 53);
|
|
|
pictureBox1.Name = "pictureBox1";
|
|
|
- pictureBox1.Size = new Size(365, 463);
|
|
|
+ pictureBox1.Size = new Size(811, 286);
|
|
|
pictureBox1.TabIndex = 6;
|
|
|
pictureBox1.TabStop = false;
|
|
|
//
|
|
@@ -79,76 +130,529 @@
|
|
|
lblTime.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
|
lblTime.AutoSize = true;
|
|
|
lblTime.Font = new Font("Microsoft YaHei UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
|
|
|
- lblTime.Location = new Point(871, 25);
|
|
|
+ lblTime.Location = new Point(1003, 9);
|
|
|
lblTime.Name = "lblTime";
|
|
|
- lblTime.Size = new Size(203, 21);
|
|
|
+ lblTime.Size = new Size(124, 21);
|
|
|
lblTime.TabIndex = 7;
|
|
|
- lblTime.Text = "0000年 0月 00日 00:00:00";
|
|
|
+ lblTime.Text = "0月 00日 00:00";
|
|
|
//
|
|
|
// btnSetting
|
|
|
//
|
|
|
btnSetting.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
|
- btnSetting.Location = new Point(815, 26);
|
|
|
+ btnSetting.FlatAppearance.BorderSize = 0;
|
|
|
+ btnSetting.FlatAppearance.MouseOverBackColor = Color.WhiteSmoke;
|
|
|
+ btnSetting.FlatStyle = FlatStyle.Flat;
|
|
|
+ btnSetting.Image = (Image)resources.GetObject("btnSetting.Image");
|
|
|
+ btnSetting.Location = new Point(1146, 7);
|
|
|
btnSetting.Name = "btnSetting";
|
|
|
- btnSetting.Size = new Size(50, 23);
|
|
|
+ btnSetting.Size = new Size(24, 24);
|
|
|
btnSetting.TabIndex = 8;
|
|
|
- btnSetting.Text = "配置";
|
|
|
btnSetting.UseVisualStyleBackColor = true;
|
|
|
btnSetting.Click += btnSetting_Click;
|
|
|
//
|
|
|
// btnConnectCamera
|
|
|
//
|
|
|
- btnConnectCamera.Location = new Point(975, 102);
|
|
|
+ btnConnectCamera.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
|
+ btnConnectCamera.FlatAppearance.BorderSize = 0;
|
|
|
+ btnConnectCamera.FlatStyle = FlatStyle.Flat;
|
|
|
+ btnConnectCamera.Image = (Image)resources.GetObject("btnConnectCamera.Image");
|
|
|
+ btnConnectCamera.Location = new Point(846, 59);
|
|
|
btnConnectCamera.Name = "btnConnectCamera";
|
|
|
- btnConnectCamera.Size = new Size(80, 23);
|
|
|
+ btnConnectCamera.Size = new Size(24, 24);
|
|
|
btnConnectCamera.TabIndex = 0;
|
|
|
- btnConnectCamera.Text = "重连摄像头";
|
|
|
btnConnectCamera.UseVisualStyleBackColor = true;
|
|
|
- btnConnectCamera.Click += button1_Click;
|
|
|
+ btnConnectCamera.Click += btnConnectCamera_Click;
|
|
|
+ //
|
|
|
+ // panel1
|
|
|
+ //
|
|
|
+ panel1.Controls.Add(lblTime);
|
|
|
+ panel1.Controls.Add(btnSetting);
|
|
|
+ panel1.Controls.Add(pictureBox7);
|
|
|
+ panel1.Dock = DockStyle.Top;
|
|
|
+ panel1.Location = new Point(0, 0);
|
|
|
+ panel1.Name = "panel1";
|
|
|
+ panel1.Size = new Size(1193, 48);
|
|
|
+ panel1.TabIndex = 9;
|
|
|
+ //
|
|
|
+ // pictureBox7
|
|
|
+ //
|
|
|
+ pictureBox7.Anchor = AnchorStyles.None;
|
|
|
+ pictureBox7.Location = new Point(541, 4);
|
|
|
+ pictureBox7.Name = "pictureBox7";
|
|
|
+ pictureBox7.Size = new Size(111, 40);
|
|
|
+ pictureBox7.TabIndex = 9;
|
|
|
+ pictureBox7.TabStop = false;
|
|
|
+ //
|
|
|
+ // panel2
|
|
|
+ //
|
|
|
+ panel2.Controls.Add(panel11);
|
|
|
+ panel2.Controls.Add(panel8);
|
|
|
+ panel2.Controls.Add(panel9);
|
|
|
+ panel2.Controls.Add(panel6);
|
|
|
+ panel2.Controls.Add(panel7);
|
|
|
+ panel2.Controls.Add(panel5);
|
|
|
+ panel2.Controls.Add(panel4);
|
|
|
+ panel2.Dock = DockStyle.Right;
|
|
|
+ panel2.Location = new Point(931, 48);
|
|
|
+ panel2.Name = "panel2";
|
|
|
+ panel2.Padding = new Padding(16);
|
|
|
+ panel2.Size = new Size(262, 624);
|
|
|
+ panel2.TabIndex = 10;
|
|
|
+ //
|
|
|
+ // panel11
|
|
|
+ //
|
|
|
+ panel11.BackColor = Color.WhiteSmoke;
|
|
|
+ panel11.Controls.Add(lblCurrentElectricity);
|
|
|
+ panel11.Controls.Add(lblCurrentWaterP);
|
|
|
+ panel11.Controls.Add(label6);
|
|
|
+ panel11.Controls.Add(label5);
|
|
|
+ panel11.Controls.Add(pictureBox3);
|
|
|
+ panel11.Controls.Add(pictureBox2);
|
|
|
+ panel11.Controls.Add(label4);
|
|
|
+ panel11.Dock = DockStyle.Top;
|
|
|
+ panel11.Location = new Point(16, 390);
|
|
|
+ panel11.Name = "panel11";
|
|
|
+ panel11.Size = new Size(230, 111);
|
|
|
+ panel11.TabIndex = 6;
|
|
|
+ //
|
|
|
+ // lblCurrentElectricity
|
|
|
+ //
|
|
|
+ lblCurrentElectricity.AutoSize = true;
|
|
|
+ lblCurrentElectricity.Location = new Point(130, 74);
|
|
|
+ lblCurrentElectricity.Name = "lblCurrentElectricity";
|
|
|
+ lblCurrentElectricity.Size = new Size(20, 17);
|
|
|
+ lblCurrentElectricity.TabIndex = 9;
|
|
|
+ lblCurrentElectricity.Text = "无";
|
|
|
+ //
|
|
|
+ // lblCurrentWaterP
|
|
|
+ //
|
|
|
+ lblCurrentWaterP.AutoSize = true;
|
|
|
+ lblCurrentWaterP.Location = new Point(130, 45);
|
|
|
+ lblCurrentWaterP.Name = "lblCurrentWaterP";
|
|
|
+ lblCurrentWaterP.Size = new Size(20, 17);
|
|
|
+ lblCurrentWaterP.TabIndex = 9;
|
|
|
+ lblCurrentWaterP.Text = "无";
|
|
|
+ //
|
|
|
+ // label6
|
|
|
+ //
|
|
|
+ label6.AutoSize = true;
|
|
|
+ label6.Location = new Point(40, 45);
|
|
|
+ label6.Name = "label6";
|
|
|
+ label6.Size = new Size(68, 17);
|
|
|
+ label6.TabIndex = 2;
|
|
|
+ label6.Text = "当前压力值";
|
|
|
+ //
|
|
|
+ // label5
|
|
|
+ //
|
|
|
+ label5.AutoSize = true;
|
|
|
+ label5.Location = new Point(40, 74);
|
|
|
+ label5.Name = "label5";
|
|
|
+ label5.Size = new Size(68, 17);
|
|
|
+ label5.TabIndex = 2;
|
|
|
+ label5.Text = "当前用电量";
|
|
|
+ //
|
|
|
+ // pictureBox3
|
|
|
+ //
|
|
|
+ pictureBox3.Image = (Image)resources.GetObject("pictureBox3.Image");
|
|
|
+ pictureBox3.Location = new Point(14, 72);
|
|
|
+ pictureBox3.Name = "pictureBox3";
|
|
|
+ pictureBox3.Size = new Size(20, 20);
|
|
|
+ pictureBox3.TabIndex = 1;
|
|
|
+ pictureBox3.TabStop = false;
|
|
|
+ //
|
|
|
+ // pictureBox2
|
|
|
+ //
|
|
|
+ pictureBox2.Image = (Image)resources.GetObject("pictureBox2.Image");
|
|
|
+ pictureBox2.Location = new Point(14, 42);
|
|
|
+ pictureBox2.Name = "pictureBox2";
|
|
|
+ pictureBox2.Size = new Size(20, 20);
|
|
|
+ pictureBox2.TabIndex = 1;
|
|
|
+ pictureBox2.TabStop = false;
|
|
|
+ //
|
|
|
+ // label4
|
|
|
+ //
|
|
|
+ label4.AutoSize = true;
|
|
|
+ label4.Font = new Font("Microsoft YaHei UI", 10F, FontStyle.Bold, GraphicsUnit.Point);
|
|
|
+ label4.Location = new Point(10, 15);
|
|
|
+ label4.Name = "label4";
|
|
|
+ label4.Size = new Size(51, 19);
|
|
|
+ label4.TabIndex = 0;
|
|
|
+ label4.Text = "传感器";
|
|
|
+ //
|
|
|
+ // panel8
|
|
|
+ //
|
|
|
+ panel8.Dock = DockStyle.Top;
|
|
|
+ panel8.Location = new Point(16, 370);
|
|
|
+ panel8.Name = "panel8";
|
|
|
+ panel8.Size = new Size(230, 20);
|
|
|
+ panel8.TabIndex = 5;
|
|
|
+ //
|
|
|
+ // panel9
|
|
|
+ //
|
|
|
+ panel9.BackColor = Color.WhiteSmoke;
|
|
|
+ panel9.Controls.Add(lblTotalElectricity);
|
|
|
+ panel9.Controls.Add(lblTotalWater);
|
|
|
+ panel9.Controls.Add(lblWashCount);
|
|
|
+ panel9.Controls.Add(label7);
|
|
|
+ panel9.Controls.Add(label9);
|
|
|
+ panel9.Controls.Add(pictureBox6);
|
|
|
+ panel9.Controls.Add(label8);
|
|
|
+ panel9.Controls.Add(pictureBox4);
|
|
|
+ panel9.Controls.Add(pictureBox5);
|
|
|
+ panel9.Controls.Add(label3);
|
|
|
+ panel9.Dock = DockStyle.Top;
|
|
|
+ panel9.Location = new Point(16, 230);
|
|
|
+ panel9.Name = "panel9";
|
|
|
+ panel9.Size = new Size(230, 140);
|
|
|
+ panel9.TabIndex = 4;
|
|
|
+ //
|
|
|
+ // lblTotalElectricity
|
|
|
+ //
|
|
|
+ lblTotalElectricity.AutoSize = true;
|
|
|
+ lblTotalElectricity.Location = new Point(130, 109);
|
|
|
+ lblTotalElectricity.Name = "lblTotalElectricity";
|
|
|
+ lblTotalElectricity.Size = new Size(20, 17);
|
|
|
+ lblTotalElectricity.TabIndex = 9;
|
|
|
+ lblTotalElectricity.Text = "无";
|
|
|
+ //
|
|
|
+ // lblTotalWater
|
|
|
+ //
|
|
|
+ lblTotalWater.AutoSize = true;
|
|
|
+ lblTotalWater.Location = new Point(130, 79);
|
|
|
+ lblTotalWater.Name = "lblTotalWater";
|
|
|
+ lblTotalWater.Size = new Size(20, 17);
|
|
|
+ lblTotalWater.TabIndex = 9;
|
|
|
+ lblTotalWater.Text = "无";
|
|
|
+ //
|
|
|
+ // lblWashCount
|
|
|
+ //
|
|
|
+ lblWashCount.AutoSize = true;
|
|
|
+ lblWashCount.Location = new Point(130, 49);
|
|
|
+ lblWashCount.Name = "lblWashCount";
|
|
|
+ lblWashCount.Size = new Size(20, 17);
|
|
|
+ lblWashCount.TabIndex = 9;
|
|
|
+ lblWashCount.Text = "无";
|
|
|
+ //
|
|
|
+ // label7
|
|
|
+ //
|
|
|
+ label7.AutoSize = true;
|
|
|
+ label7.Location = new Point(40, 49);
|
|
|
+ label7.Name = "label7";
|
|
|
+ label7.Size = new Size(56, 17);
|
|
|
+ label7.TabIndex = 5;
|
|
|
+ label7.Text = "累计洗车";
|
|
|
+ //
|
|
|
+ // label9
|
|
|
+ //
|
|
|
+ label9.AutoSize = true;
|
|
|
+ label9.Location = new Point(40, 109);
|
|
|
+ label9.Name = "label9";
|
|
|
+ label9.Size = new Size(68, 17);
|
|
|
+ label9.TabIndex = 6;
|
|
|
+ label9.Text = "累计用电量";
|
|
|
+ //
|
|
|
+ // pictureBox6
|
|
|
+ //
|
|
|
+ pictureBox6.Image = (Image)resources.GetObject("pictureBox6.Image");
|
|
|
+ pictureBox6.Location = new Point(14, 107);
|
|
|
+ pictureBox6.Name = "pictureBox6";
|
|
|
+ pictureBox6.Size = new Size(20, 20);
|
|
|
+ pictureBox6.TabIndex = 3;
|
|
|
+ pictureBox6.TabStop = false;
|
|
|
+ //
|
|
|
+ // label8
|
|
|
+ //
|
|
|
+ label8.AutoSize = true;
|
|
|
+ label8.Location = new Point(40, 79);
|
|
|
+ label8.Name = "label8";
|
|
|
+ label8.Size = new Size(68, 17);
|
|
|
+ label8.TabIndex = 6;
|
|
|
+ label8.Text = "累计用水量";
|
|
|
+ //
|
|
|
+ // pictureBox4
|
|
|
+ //
|
|
|
+ pictureBox4.Image = (Image)resources.GetObject("pictureBox4.Image");
|
|
|
+ pictureBox4.Location = new Point(14, 77);
|
|
|
+ pictureBox4.Name = "pictureBox4";
|
|
|
+ pictureBox4.Size = new Size(20, 20);
|
|
|
+ pictureBox4.TabIndex = 3;
|
|
|
+ pictureBox4.TabStop = false;
|
|
|
+ //
|
|
|
+ // pictureBox5
|
|
|
+ //
|
|
|
+ pictureBox5.Image = (Image)resources.GetObject("pictureBox5.Image");
|
|
|
+ pictureBox5.Location = new Point(14, 47);
|
|
|
+ pictureBox5.Name = "pictureBox5";
|
|
|
+ pictureBox5.Size = new Size(20, 20);
|
|
|
+ pictureBox5.TabIndex = 4;
|
|
|
+ pictureBox5.TabStop = false;
|
|
|
+ //
|
|
|
+ // label3
|
|
|
+ //
|
|
|
+ label3.AutoSize = true;
|
|
|
+ label3.Font = new Font("Microsoft YaHei UI", 10F, FontStyle.Bold, GraphicsUnit.Point);
|
|
|
+ label3.Location = new Point(10, 15);
|
|
|
+ label3.Name = "label3";
|
|
|
+ label3.Size = new Size(37, 19);
|
|
|
+ label3.TabIndex = 0;
|
|
|
+ label3.Text = "统计";
|
|
|
+ //
|
|
|
+ // panel6
|
|
|
+ //
|
|
|
+ panel6.Dock = DockStyle.Top;
|
|
|
+ panel6.Location = new Point(16, 210);
|
|
|
+ panel6.Name = "panel6";
|
|
|
+ panel6.Size = new Size(230, 20);
|
|
|
+ panel6.TabIndex = 3;
|
|
|
+ //
|
|
|
+ // panel7
|
|
|
+ //
|
|
|
+ panel7.BackColor = Color.WhiteSmoke;
|
|
|
+ panel7.Controls.Add(label2);
|
|
|
+ panel7.Dock = DockStyle.Top;
|
|
|
+ panel7.Location = new Point(16, 95);
|
|
|
+ panel7.Name = "panel7";
|
|
|
+ panel7.Size = new Size(230, 115);
|
|
|
+ panel7.TabIndex = 2;
|
|
|
+ //
|
|
|
+ // label2
|
|
|
+ //
|
|
|
+ label2.AutoSize = true;
|
|
|
+ label2.Font = new Font("Microsoft YaHei UI", 10F, FontStyle.Bold, GraphicsUnit.Point);
|
|
|
+ label2.Location = new Point(10, 15);
|
|
|
+ label2.Name = "label2";
|
|
|
+ label2.Size = new Size(65, 19);
|
|
|
+ label2.TabIndex = 0;
|
|
|
+ label2.Text = "安防监控";
|
|
|
+ //
|
|
|
+ // panel5
|
|
|
+ //
|
|
|
+ panel5.Dock = DockStyle.Top;
|
|
|
+ panel5.Location = new Point(16, 75);
|
|
|
+ panel5.Name = "panel5";
|
|
|
+ panel5.Size = new Size(230, 20);
|
|
|
+ panel5.TabIndex = 1;
|
|
|
+ //
|
|
|
+ // panel4
|
|
|
+ //
|
|
|
+ panel4.BackColor = Color.WhiteSmoke;
|
|
|
+ panel4.Controls.Add(lblError);
|
|
|
+ panel4.Controls.Add(label1);
|
|
|
+ panel4.Dock = DockStyle.Top;
|
|
|
+ panel4.Location = new Point(16, 16);
|
|
|
+ panel4.Name = "panel4";
|
|
|
+ panel4.Size = new Size(230, 59);
|
|
|
+ panel4.TabIndex = 0;
|
|
|
+ //
|
|
|
+ // lblError
|
|
|
+ //
|
|
|
+ lblError.AutoSize = true;
|
|
|
+ lblError.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
|
|
+ lblError.ForeColor = Color.Red;
|
|
|
+ lblError.Location = new Point(58, 22);
|
|
|
+ lblError.Name = "lblError";
|
|
|
+ lblError.Size = new Size(20, 17);
|
|
|
+ lblError.TabIndex = 1;
|
|
|
+ lblError.Text = "无";
|
|
|
+ //
|
|
|
+ // label1
|
|
|
+ //
|
|
|
+ label1.AutoSize = true;
|
|
|
+ label1.Font = new Font("Microsoft YaHei UI", 10F, FontStyle.Bold, GraphicsUnit.Point);
|
|
|
+ label1.Location = new Point(10, 20);
|
|
|
+ label1.Name = "label1";
|
|
|
+ label1.Size = new Size(37, 19);
|
|
|
+ label1.TabIndex = 0;
|
|
|
+ label1.Text = "故障";
|
|
|
+ //
|
|
|
+ // panel3
|
|
|
+ //
|
|
|
+ panel3.Controls.Add(panel10);
|
|
|
+ panel3.Dock = DockStyle.Fill;
|
|
|
+ panel3.Location = new Point(0, 48);
|
|
|
+ panel3.Name = "panel3";
|
|
|
+ panel3.Padding = new Padding(16);
|
|
|
+ panel3.Size = new Size(931, 624);
|
|
|
+ panel3.TabIndex = 0;
|
|
|
+ //
|
|
|
+ // panel10
|
|
|
+ //
|
|
|
+ panel10.BackColor = Color.WhiteSmoke;
|
|
|
+ panel10.Controls.Add(dataGridView1);
|
|
|
+ panel10.Controls.Add(panel12);
|
|
|
+ panel10.Controls.Add(label12);
|
|
|
+ panel10.Controls.Add(lblStatus);
|
|
|
+ panel10.Controls.Add(label11);
|
|
|
+ panel10.Controls.Add(label13);
|
|
|
+ panel10.Controls.Add(label10);
|
|
|
+ panel10.Controls.Add(pictureBox1);
|
|
|
+ panel10.Controls.Add(btnConnectCamera);
|
|
|
+ panel10.Dock = DockStyle.Fill;
|
|
|
+ panel10.Location = new Point(16, 16);
|
|
|
+ panel10.Name = "panel10";
|
|
|
+ panel10.Size = new Size(899, 592);
|
|
|
+ panel10.TabIndex = 7;
|
|
|
+ //
|
|
|
+ // dataGridView1
|
|
|
+ //
|
|
|
+ dataGridView1.AllowUserToAddRows = false;
|
|
|
+ dataGridView1.AllowUserToDeleteRows = false;
|
|
|
+ dataGridView1.AllowUserToResizeRows = false;
|
|
|
+ dataGridView1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
|
+ dataGridView1.Columns.AddRange(new DataGridViewColumn[] { colCarNum, colStartTime, colEndTime, colWashTime, colDryTime, colTotalWater, colTotalElectricity, colWaterPressure });
|
|
|
+ dataGridView1.Location = new Point(29, 383);
|
|
|
+ dataGridView1.Name = "dataGridView1";
|
|
|
+ dataGridView1.RowTemplate.Height = 25;
|
|
|
+ dataGridView1.Size = new Size(843, 196);
|
|
|
+ dataGridView1.TabIndex = 8;
|
|
|
+ //
|
|
|
+ // colCarNum
|
|
|
+ //
|
|
|
+ colCarNum.DataPropertyName = "CarNum";
|
|
|
+ colCarNum.HeaderText = "车牌号";
|
|
|
+ colCarNum.Name = "colCarNum";
|
|
|
+ //
|
|
|
+ // colStartTime
|
|
|
+ //
|
|
|
+ colStartTime.DataPropertyName = "StartTime";
|
|
|
+ colStartTime.HeaderText = "开始时间";
|
|
|
+ colStartTime.Name = "colStartTime";
|
|
|
+ //
|
|
|
+ // colEndTime
|
|
|
+ //
|
|
|
+ colEndTime.DataPropertyName = "EndTime";
|
|
|
+ colEndTime.HeaderText = "结束时间";
|
|
|
+ colEndTime.Name = "colEndTime";
|
|
|
+ //
|
|
|
+ // colWashTime
|
|
|
+ //
|
|
|
+ colWashTime.DataPropertyName = "WashTime";
|
|
|
+ colWashTime.HeaderText = "洗车时长";
|
|
|
+ colWashTime.Name = "colWashTime";
|
|
|
+ //
|
|
|
+ // colDryTime
|
|
|
+ //
|
|
|
+ colDryTime.DataPropertyName = "DryTime";
|
|
|
+ colDryTime.HeaderText = "风干时长";
|
|
|
+ colDryTime.Name = "colDryTime";
|
|
|
+ //
|
|
|
+ // colTotalWater
|
|
|
+ //
|
|
|
+ colTotalWater.DataPropertyName = "TotalWater";
|
|
|
+ colTotalWater.HeaderText = "用水量";
|
|
|
+ colTotalWater.Name = "colTotalWater";
|
|
|
+ //
|
|
|
+ // colTotalElectricity
|
|
|
+ //
|
|
|
+ colTotalElectricity.DataPropertyName = "TotalElectricity";
|
|
|
+ colTotalElectricity.HeaderText = "用电量";
|
|
|
+ colTotalElectricity.Name = "colTotalElectricity";
|
|
|
+ //
|
|
|
+ // colWaterPressure
|
|
|
+ //
|
|
|
+ colWaterPressure.DataPropertyName = "WaterPressure";
|
|
|
+ colWaterPressure.HeaderText = "水压";
|
|
|
+ colWaterPressure.Name = "colWaterPressure";
|
|
|
+ //
|
|
|
+ // panel12
|
|
|
+ //
|
|
|
+ panel12.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
+ panel12.BackColor = Color.FromArgb(64, 64, 64);
|
|
|
+ panel12.Location = new Point(29, 372);
|
|
|
+ panel12.Name = "panel12";
|
|
|
+ panel12.Size = new Size(843, 5);
|
|
|
+ panel12.TabIndex = 7;
|
|
|
+ //
|
|
|
+ // label12
|
|
|
+ //
|
|
|
+ label12.AutoSize = true;
|
|
|
+ label12.Font = new Font("Microsoft YaHei UI", 10F, FontStyle.Bold, GraphicsUnit.Point);
|
|
|
+ label12.Location = new Point(454, 20);
|
|
|
+ label12.Name = "label12";
|
|
|
+ label12.Size = new Size(45, 19);
|
|
|
+ label12.TabIndex = 0;
|
|
|
+ label12.Text = "状态: ";
|
|
|
+ //
|
|
|
+ // lblStatus
|
|
|
+ //
|
|
|
+ lblStatus.AutoSize = true;
|
|
|
+ lblStatus.Location = new Point(500, 22);
|
|
|
+ lblStatus.Name = "lblStatus";
|
|
|
+ lblStatus.Size = new Size(20, 17);
|
|
|
+ lblStatus.TabIndex = 9;
|
|
|
+ lblStatus.Text = "无";
|
|
|
+ //
|
|
|
+ // label11
|
|
|
+ //
|
|
|
+ label11.AutoSize = true;
|
|
|
+ label11.Font = new Font("Microsoft YaHei UI", 10F, FontStyle.Bold, GraphicsUnit.Point);
|
|
|
+ label11.Location = new Point(245, 20);
|
|
|
+ label11.Name = "label11";
|
|
|
+ label11.Size = new Size(45, 19);
|
|
|
+ label11.TabIndex = 0;
|
|
|
+ label11.Text = "车辆: ";
|
|
|
//
|
|
|
- // button2
|
|
|
+ // label13
|
|
|
//
|
|
|
- button2.Location = new Point(23, 55);
|
|
|
- button2.Name = "button2";
|
|
|
- button2.Size = new Size(75, 23);
|
|
|
- button2.TabIndex = 3;
|
|
|
- button2.Text = "button2";
|
|
|
- button2.UseVisualStyleBackColor = true;
|
|
|
- button2.Click += button2_Click;
|
|
|
+ label13.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
|
+ label13.AutoSize = true;
|
|
|
+ label13.Font = new Font("Microsoft YaHei UI", 10F, FontStyle.Bold, GraphicsUnit.Point);
|
|
|
+ label13.Location = new Point(29, 347);
|
|
|
+ label13.Name = "label13";
|
|
|
+ label13.Size = new Size(65, 19);
|
|
|
+ label13.TabIndex = 0;
|
|
|
+ label13.Text = "工作记录";
|
|
|
//
|
|
|
- // button3
|
|
|
+ // label10
|
|
|
//
|
|
|
- button3.Location = new Point(104, 55);
|
|
|
- button3.Name = "button3";
|
|
|
- button3.Size = new Size(75, 23);
|
|
|
- button3.TabIndex = 4;
|
|
|
- button3.Text = "button3";
|
|
|
- button3.UseVisualStyleBackColor = true;
|
|
|
- button3.Click += button3_Click;
|
|
|
+ label10.AutoSize = true;
|
|
|
+ label10.Font = new Font("Microsoft YaHei UI", 10F, FontStyle.Bold, GraphicsUnit.Point);
|
|
|
+ label10.Location = new Point(29, 20);
|
|
|
+ label10.Name = "label10";
|
|
|
+ label10.Size = new Size(45, 19);
|
|
|
+ label10.TabIndex = 0;
|
|
|
+ label10.Text = "编号: ";
|
|
|
//
|
|
|
// MainForm
|
|
|
//
|
|
|
AutoScaleDimensions = new SizeF(7F, 17F);
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
|
- ClientSize = new Size(1086, 662);
|
|
|
- Controls.Add(btnSetting);
|
|
|
- Controls.Add(lblTime);
|
|
|
- Controls.Add(pictureBox1);
|
|
|
- Controls.Add(button4);
|
|
|
- Controls.Add(button3);
|
|
|
- Controls.Add(button2);
|
|
|
- Controls.Add(btnConnectCamera);
|
|
|
+ BackColor = Color.White;
|
|
|
+ ClientSize = new Size(1193, 672);
|
|
|
+ Controls.Add(panel3);
|
|
|
+ Controls.Add(panel2);
|
|
|
+ Controls.Add(panel1);
|
|
|
Name = "MainForm";
|
|
|
ShowIcon = false;
|
|
|
Text = "Form1";
|
|
|
Load += MainForm_Load;
|
|
|
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
|
|
|
+ panel1.ResumeLayout(false);
|
|
|
+ panel1.PerformLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)pictureBox7).EndInit();
|
|
|
+ panel2.ResumeLayout(false);
|
|
|
+ panel11.ResumeLayout(false);
|
|
|
+ panel11.PerformLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)pictureBox3).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)pictureBox2).EndInit();
|
|
|
+ panel9.ResumeLayout(false);
|
|
|
+ panel9.PerformLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)pictureBox6).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)pictureBox4).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)pictureBox5).EndInit();
|
|
|
+ panel7.ResumeLayout(false);
|
|
|
+ panel7.PerformLayout();
|
|
|
+ panel4.ResumeLayout(false);
|
|
|
+ panel4.PerformLayout();
|
|
|
+ panel3.ResumeLayout(false);
|
|
|
+ panel10.ResumeLayout(false);
|
|
|
+ panel10.PerformLayout();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)dataGridView1).EndInit();
|
|
|
ResumeLayout(false);
|
|
|
- PerformLayout();
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
- private Button button4;
|
|
|
private PictureBox pictureBox1;
|
|
|
private System.Windows.Forms.Timer nowTimer;
|
|
|
private System.Windows.Forms.Timer uploadTimer;
|
|
@@ -156,7 +660,52 @@
|
|
|
private Label lblTime;
|
|
|
private Button btnSetting;
|
|
|
private Button btnConnectCamera;
|
|
|
- private Button button2;
|
|
|
- private Button button3;
|
|
|
+ private Panel panel1;
|
|
|
+ private Panel panel2;
|
|
|
+ private Panel panel3;
|
|
|
+ private Panel panel5;
|
|
|
+ private Panel panel4;
|
|
|
+ private Label label1;
|
|
|
+ private Panel panel11;
|
|
|
+ private Label label4;
|
|
|
+ private Panel panel8;
|
|
|
+ private Panel panel9;
|
|
|
+ private Label label3;
|
|
|
+ private Panel panel6;
|
|
|
+ private Panel panel7;
|
|
|
+ private Label label2;
|
|
|
+ private PictureBox pictureBox3;
|
|
|
+ private PictureBox pictureBox2;
|
|
|
+ private Label label6;
|
|
|
+ private Label label5;
|
|
|
+ private Label label7;
|
|
|
+ private Label label9;
|
|
|
+ private PictureBox pictureBox6;
|
|
|
+ private Label label8;
|
|
|
+ private PictureBox pictureBox4;
|
|
|
+ private PictureBox pictureBox5;
|
|
|
+ private Panel panel10;
|
|
|
+ private Label label12;
|
|
|
+ private Label label11;
|
|
|
+ private Label label10;
|
|
|
+ private Panel panel12;
|
|
|
+ private Label label13;
|
|
|
+ private PictureBox pictureBox7;
|
|
|
+ private DataGridView dataGridView1;
|
|
|
+ private DataGridViewTextBoxColumn colCarNum;
|
|
|
+ private DataGridViewTextBoxColumn colStartTime;
|
|
|
+ private DataGridViewTextBoxColumn colEndTime;
|
|
|
+ private DataGridViewTextBoxColumn colWashTime;
|
|
|
+ private DataGridViewTextBoxColumn colDryTime;
|
|
|
+ private DataGridViewTextBoxColumn colTotalWater;
|
|
|
+ private DataGridViewTextBoxColumn colTotalElectricity;
|
|
|
+ private DataGridViewTextBoxColumn colWaterPressure;
|
|
|
+ private Label lblError;
|
|
|
+ private Label lblStatus;
|
|
|
+ private Label lblTotalElectricity;
|
|
|
+ private Label lblTotalWater;
|
|
|
+ private Label lblWashCount;
|
|
|
+ private Label lblCurrentElectricity;
|
|
|
+ private Label lblCurrentWaterP;
|
|
|
}
|
|
|
}
|