|
|
using static System.Net.Mime.MediaTypeNames;
|
|
|
using System.Drawing.Printing;
|
|
|
using System.Windows.Forms;
|
|
|
using System.Xml.Linq;
|
|
|
|
|
|
namespace WinFormStarter;
|
|
|
|
|
|
partial class Form1
|
|
|
{
|
|
|
/// <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()
|
|
|
{
|
|
|
button1 = new Button();
|
|
|
btnCmd113 = new Button();
|
|
|
lstRecvFrameInfo = new ListBox();
|
|
|
groupBox16 = new GroupBox();
|
|
|
btnCmd1021 = new Button();
|
|
|
btnCmd1011 = new Button();
|
|
|
btnCmd1009 = new Button();
|
|
|
btnCmd1005 = new Button();
|
|
|
btnCmd1001 = new Button();
|
|
|
btnCmd1003 = new Button();
|
|
|
btnCmd1007 = new Button();
|
|
|
groupBox15 = new GroupBox();
|
|
|
btnCmd421 = new Button();
|
|
|
btnCmd401 = new Button();
|
|
|
groupBox14 = new GroupBox();
|
|
|
btnCmd301 = new Button();
|
|
|
btnCmd303 = new Button();
|
|
|
groupBox13 = new GroupBox();
|
|
|
btnCmd221 = new Button();
|
|
|
btnCmd209 = new Button();
|
|
|
btnCmd205 = new Button();
|
|
|
btnCmd201 = new Button();
|
|
|
btnCmd203 = new Button();
|
|
|
btnCmd207 = new Button();
|
|
|
groupBox7 = new GroupBox();
|
|
|
btnCmd1401 = new Button();
|
|
|
btnCmd1406 = new Button();
|
|
|
groupBox6 = new GroupBox();
|
|
|
btnCmd1301 = new Button();
|
|
|
groupBox4 = new GroupBox();
|
|
|
btnCmd1105 = new Button();
|
|
|
btnCmd1101 = new Button();
|
|
|
btnCmd1103 = new Button();
|
|
|
btnCmd1107 = new Button();
|
|
|
groupBox9 = new GroupBox();
|
|
|
groupBox3 = new GroupBox();
|
|
|
lstBoxConnect = new ListBox();
|
|
|
label3 = new Label();
|
|
|
txtDestAddr = new TextBox();
|
|
|
label2 = new Label();
|
|
|
txtChargePort = new TextBox();
|
|
|
BtnCloseConnect = new Button();
|
|
|
BtnChrg01Connect = new Button();
|
|
|
groupBox5 = new GroupBox();
|
|
|
lstSendFrameInfo = new ListBox();
|
|
|
groupBox8 = new GroupBox();
|
|
|
btnCmd7 = new Button();
|
|
|
btnCmd3 = new Button();
|
|
|
btnCmd1 = new Button();
|
|
|
btnCmd5 = new Button();
|
|
|
groupBox2 = new GroupBox();
|
|
|
groupBox11 = new GroupBox();
|
|
|
btnCmd111 = new Button();
|
|
|
btnCmd109 = new Button();
|
|
|
btnCmd107 = new Button();
|
|
|
btnCmd105 = new Button();
|
|
|
btnCmd103 = new Button();
|
|
|
btnCmd101 = new Button();
|
|
|
groupBox10 = new GroupBox();
|
|
|
btnCmd1506 = new Button();
|
|
|
btnCmd1504 = new Button();
|
|
|
btnCmd1502 = new Button();
|
|
|
groupBox16.SuspendLayout();
|
|
|
groupBox15.SuspendLayout();
|
|
|
groupBox14.SuspendLayout();
|
|
|
groupBox13.SuspendLayout();
|
|
|
groupBox7.SuspendLayout();
|
|
|
groupBox6.SuspendLayout();
|
|
|
groupBox4.SuspendLayout();
|
|
|
groupBox9.SuspendLayout();
|
|
|
groupBox3.SuspendLayout();
|
|
|
groupBox5.SuspendLayout();
|
|
|
groupBox8.SuspendLayout();
|
|
|
groupBox2.SuspendLayout();
|
|
|
groupBox11.SuspendLayout();
|
|
|
groupBox10.SuspendLayout();
|
|
|
SuspendLayout();
|
|
|
//
|
|
|
// button1
|
|
|
//
|
|
|
button1.Location = new Point(1085, 0);
|
|
|
button1.Margin = new Padding(2, 1, 2, 1);
|
|
|
button1.Name = "button1";
|
|
|
button1.Size = new Size(100, 28);
|
|
|
button1.TabIndex = 0;
|
|
|
button1.Text = "button1";
|
|
|
button1.UseVisualStyleBackColor = true;
|
|
|
button1.Click += button1_Click;
|
|
|
//
|
|
|
// btnCmd113
|
|
|
//
|
|
|
btnCmd113.Location = new Point(870, 26);
|
|
|
btnCmd113.Name = "btnCmd113";
|
|
|
btnCmd113.Size = new Size(115, 37);
|
|
|
btnCmd113.TabIndex = 136;
|
|
|
btnCmd113.Text = "113-查充电时段";
|
|
|
btnCmd113.UseVisualStyleBackColor = true;
|
|
|
btnCmd113.Click += btnCmd113_Click;
|
|
|
//
|
|
|
// lstRecvFrameInfo
|
|
|
//
|
|
|
lstRecvFrameInfo.Anchor = AnchorStyles.None;
|
|
|
lstRecvFrameInfo.FormattingEnabled = true;
|
|
|
lstRecvFrameInfo.ItemHeight = 20;
|
|
|
lstRecvFrameInfo.Location = new Point(8, 28);
|
|
|
lstRecvFrameInfo.Margin = new Padding(5);
|
|
|
lstRecvFrameInfo.Name = "lstRecvFrameInfo";
|
|
|
lstRecvFrameInfo.Size = new Size(1115, 124);
|
|
|
lstRecvFrameInfo.TabIndex = 145;
|
|
|
//
|
|
|
// groupBox16
|
|
|
//
|
|
|
groupBox16.Controls.Add(btnCmd1021);
|
|
|
groupBox16.Controls.Add(btnCmd1011);
|
|
|
groupBox16.Controls.Add(btnCmd1009);
|
|
|
groupBox16.Controls.Add(btnCmd1005);
|
|
|
groupBox16.Controls.Add(btnCmd1001);
|
|
|
groupBox16.Controls.Add(btnCmd1003);
|
|
|
groupBox16.Controls.Add(btnCmd1007);
|
|
|
groupBox16.Location = new Point(9, 351);
|
|
|
groupBox16.Name = "groupBox16";
|
|
|
groupBox16.Size = new Size(1007, 75);
|
|
|
groupBox16.TabIndex = 154;
|
|
|
groupBox16.TabStop = false;
|
|
|
groupBox16.Text = "升级命令";
|
|
|
//
|
|
|
// btnCmd1021
|
|
|
//
|
|
|
btnCmd1021.Location = new Point(870, 26);
|
|
|
btnCmd1021.Name = "btnCmd1021";
|
|
|
btnCmd1021.Size = new Size(115, 37);
|
|
|
btnCmd1021.TabIndex = 124;
|
|
|
btnCmd1021.Text = "1021-升级命令";
|
|
|
btnCmd1021.UseVisualStyleBackColor = true;
|
|
|
btnCmd1021.Click += btnCmd1021_Click;
|
|
|
//
|
|
|
// btnCmd1011
|
|
|
//
|
|
|
btnCmd1011.Location = new Point(726, 26);
|
|
|
btnCmd1011.Name = "btnCmd1011";
|
|
|
btnCmd1011.Size = new Size(115, 37);
|
|
|
btnCmd1011.TabIndex = 123;
|
|
|
btnCmd1011.Text = "1011-重启指令";
|
|
|
btnCmd1011.UseVisualStyleBackColor = true;
|
|
|
btnCmd1011.Click += btnCmd1011_Click;
|
|
|
//
|
|
|
// btnCmd1009
|
|
|
//
|
|
|
btnCmd1009.Location = new Point(582, 26);
|
|
|
btnCmd1009.Name = "btnCmd1009";
|
|
|
btnCmd1009.Size = new Size(115, 37);
|
|
|
btnCmd1009.TabIndex = 122;
|
|
|
btnCmd1009.Text = "1009-数据结束";
|
|
|
btnCmd1009.UseVisualStyleBackColor = true;
|
|
|
btnCmd1009.Click += btnCmd1009_Click;
|
|
|
//
|
|
|
// btnCmd1005
|
|
|
//
|
|
|
btnCmd1005.Location = new Point(294, 26);
|
|
|
btnCmd1005.Name = "btnCmd1005";
|
|
|
btnCmd1005.Size = new Size(115, 37);
|
|
|
btnCmd1005.TabIndex = 120;
|
|
|
btnCmd1005.Text = "1005-文件大小";
|
|
|
btnCmd1005.UseVisualStyleBackColor = true;
|
|
|
btnCmd1005.Click += btnCmd1005_Click;
|
|
|
//
|
|
|
// btnCmd1001
|
|
|
//
|
|
|
btnCmd1001.Location = new Point(6, 26);
|
|
|
btnCmd1001.Name = "btnCmd1001";
|
|
|
btnCmd1001.Size = new Size(115, 37);
|
|
|
btnCmd1001.TabIndex = 118;
|
|
|
btnCmd1001.Text = "1001-擦除指令";
|
|
|
btnCmd1001.UseVisualStyleBackColor = true;
|
|
|
btnCmd1001.Click += btnCmd1001_Click;
|
|
|
//
|
|
|
// btnCmd1003
|
|
|
//
|
|
|
btnCmd1003.Location = new Point(147, 26);
|
|
|
btnCmd1003.Name = "btnCmd1003";
|
|
|
btnCmd1003.Size = new Size(115, 37);
|
|
|
btnCmd1003.TabIndex = 119;
|
|
|
btnCmd1003.Text = "1003-升级文件";
|
|
|
btnCmd1003.UseVisualStyleBackColor = true;
|
|
|
btnCmd1003.Click += btnCmd1003_Click;
|
|
|
//
|
|
|
// btnCmd1007
|
|
|
//
|
|
|
btnCmd1007.Location = new Point(438, 26);
|
|
|
btnCmd1007.Name = "btnCmd1007";
|
|
|
btnCmd1007.Size = new Size(115, 37);
|
|
|
btnCmd1007.TabIndex = 121;
|
|
|
btnCmd1007.Text = "1007-文件数据";
|
|
|
btnCmd1007.UseVisualStyleBackColor = true;
|
|
|
btnCmd1007.Click += btnCmd1007_Click;
|
|
|
//
|
|
|
// groupBox15
|
|
|
//
|
|
|
groupBox15.Controls.Add(btnCmd421);
|
|
|
groupBox15.Controls.Add(btnCmd401);
|
|
|
groupBox15.Location = new Point(588, 98);
|
|
|
groupBox15.Name = "groupBox15";
|
|
|
groupBox15.Size = new Size(271, 75);
|
|
|
groupBox15.TabIndex = 155;
|
|
|
groupBox15.TabStop = false;
|
|
|
groupBox15.Text = "历史数据";
|
|
|
//
|
|
|
// btnCmd421
|
|
|
//
|
|
|
btnCmd421.Location = new Point(140, 26);
|
|
|
btnCmd421.Name = "btnCmd421";
|
|
|
btnCmd421.Size = new Size(115, 37);
|
|
|
btnCmd421.TabIndex = 123;
|
|
|
btnCmd421.Text = "421-历史充电";
|
|
|
btnCmd421.UseVisualStyleBackColor = true;
|
|
|
btnCmd421.Click += btnCmd421_Click;
|
|
|
//
|
|
|
// btnCmd401
|
|
|
//
|
|
|
btnCmd401.Location = new Point(6, 26);
|
|
|
btnCmd401.Name = "btnCmd401";
|
|
|
btnCmd401.Size = new Size(115, 37);
|
|
|
btnCmd401.TabIndex = 122;
|
|
|
btnCmd401.Text = "401-历史充电";
|
|
|
btnCmd401.UseVisualStyleBackColor = true;
|
|
|
btnCmd401.Click += btnCmd401_Click;
|
|
|
//
|
|
|
// groupBox14
|
|
|
//
|
|
|
groupBox14.Controls.Add(btnCmd301);
|
|
|
groupBox14.Controls.Add(btnCmd303);
|
|
|
groupBox14.Location = new Point(878, 270);
|
|
|
groupBox14.Name = "groupBox14";
|
|
|
groupBox14.Size = new Size(273, 75);
|
|
|
groupBox14.TabIndex = 156;
|
|
|
groupBox14.TabStop = false;
|
|
|
groupBox14.Text = "直流充电桩BMS信息数据(预留)";
|
|
|
//
|
|
|
// btnCmd301
|
|
|
//
|
|
|
btnCmd301.Location = new Point(6, 26);
|
|
|
btnCmd301.Name = "btnCmd301";
|
|
|
btnCmd301.Size = new Size(115, 37);
|
|
|
btnCmd301.TabIndex = 118;
|
|
|
btnCmd301.Text = "301-上报BMS";
|
|
|
btnCmd301.UseVisualStyleBackColor = true;
|
|
|
btnCmd301.Click += btnCmd301_Click;
|
|
|
//
|
|
|
// btnCmd303
|
|
|
//
|
|
|
btnCmd303.Location = new Point(140, 26);
|
|
|
btnCmd303.Name = "btnCmd303";
|
|
|
btnCmd303.Size = new Size(115, 37);
|
|
|
btnCmd303.TabIndex = 119;
|
|
|
btnCmd303.Text = "303-上报BMS";
|
|
|
btnCmd303.UseVisualStyleBackColor = true;
|
|
|
btnCmd303.Click += btnCmd303_Click;
|
|
|
//
|
|
|
// groupBox13
|
|
|
//
|
|
|
groupBox13.Controls.Add(btnCmd221);
|
|
|
groupBox13.Controls.Add(btnCmd209);
|
|
|
groupBox13.Controls.Add(btnCmd205);
|
|
|
groupBox13.Controls.Add(btnCmd201);
|
|
|
groupBox13.Controls.Add(btnCmd203);
|
|
|
groupBox13.Controls.Add(btnCmd207);
|
|
|
groupBox13.Location = new Point(9, 270);
|
|
|
groupBox13.Name = "groupBox13";
|
|
|
groupBox13.Size = new Size(858, 75);
|
|
|
groupBox13.TabIndex = 151;
|
|
|
groupBox13.TabStop = false;
|
|
|
groupBox13.Text = "充电信息数据";
|
|
|
//
|
|
|
// btnCmd221
|
|
|
//
|
|
|
btnCmd221.Location = new Point(147, 26);
|
|
|
btnCmd221.Name = "btnCmd221";
|
|
|
btnCmd221.Size = new Size(115, 37);
|
|
|
btnCmd221.TabIndex = 123;
|
|
|
btnCmd221.Text = "221-充电信息";
|
|
|
btnCmd221.UseVisualStyleBackColor = true;
|
|
|
btnCmd221.Click += btnCmd221_Click;
|
|
|
//
|
|
|
// btnCmd209
|
|
|
//
|
|
|
btnCmd209.Location = new Point(726, 26);
|
|
|
btnCmd209.Name = "btnCmd209";
|
|
|
btnCmd209.Size = new Size(115, 37);
|
|
|
btnCmd209.TabIndex = 122;
|
|
|
btnCmd209.Text = "209-充电结果";
|
|
|
btnCmd209.UseVisualStyleBackColor = true;
|
|
|
btnCmd209.Click += btnCmd209_Click;
|
|
|
//
|
|
|
// btnCmd205
|
|
|
//
|
|
|
btnCmd205.Location = new Point(438, 26);
|
|
|
btnCmd205.Name = "btnCmd205";
|
|
|
btnCmd205.Size = new Size(115, 37);
|
|
|
btnCmd205.TabIndex = 120;
|
|
|
btnCmd205.Text = "205-电密码验证";
|
|
|
btnCmd205.UseVisualStyleBackColor = true;
|
|
|
btnCmd205.Click += btnCmd205_Click;
|
|
|
//
|
|
|
// btnCmd201
|
|
|
//
|
|
|
btnCmd201.Location = new Point(6, 26);
|
|
|
btnCmd201.Name = "btnCmd201";
|
|
|
btnCmd201.Size = new Size(115, 37);
|
|
|
btnCmd201.TabIndex = 118;
|
|
|
btnCmd201.Text = "201-充电信息";
|
|
|
btnCmd201.UseVisualStyleBackColor = true;
|
|
|
btnCmd201.Click += btnCmd201_Click;
|
|
|
//
|
|
|
// btnCmd203
|
|
|
//
|
|
|
btnCmd203.Location = new Point(294, 26);
|
|
|
btnCmd203.Name = "btnCmd203";
|
|
|
btnCmd203.Size = new Size(115, 37);
|
|
|
btnCmd203.TabIndex = 119;
|
|
|
btnCmd203.Text = "203-应答账户查询";
|
|
|
btnCmd203.UseVisualStyleBackColor = true;
|
|
|
btnCmd203.Click += btnCmd203_Click;
|
|
|
//
|
|
|
// btnCmd207
|
|
|
//
|
|
|
btnCmd207.Location = new Point(582, 26);
|
|
|
btnCmd207.Name = "btnCmd207";
|
|
|
btnCmd207.Size = new Size(115, 37);
|
|
|
btnCmd207.TabIndex = 121;
|
|
|
btnCmd207.Text = "207-请求充电";
|
|
|
btnCmd207.UseVisualStyleBackColor = true;
|
|
|
btnCmd207.Click += btnCmd207_Click;
|
|
|
//
|
|
|
// groupBox7
|
|
|
//
|
|
|
groupBox7.Controls.Add(btnCmd1401);
|
|
|
groupBox7.Controls.Add(btnCmd1406);
|
|
|
groupBox7.Location = new Point(735, 439);
|
|
|
groupBox7.Name = "groupBox7";
|
|
|
groupBox7.Size = new Size(281, 75);
|
|
|
groupBox7.TabIndex = 152;
|
|
|
groupBox7.TabStop = false;
|
|
|
groupBox7.Text = "FTP远程升级、FTP日志上传";
|
|
|
//
|
|
|
// btnCmd1401
|
|
|
//
|
|
|
btnCmd1401.Location = new Point(6, 26);
|
|
|
btnCmd1401.Name = "btnCmd1401";
|
|
|
btnCmd1401.Size = new Size(115, 37);
|
|
|
btnCmd1401.TabIndex = 123;
|
|
|
btnCmd1401.Text = "1401-远程升级";
|
|
|
btnCmd1401.UseVisualStyleBackColor = true;
|
|
|
btnCmd1401.Click += btnCmd1401_Click;
|
|
|
//
|
|
|
// btnCmd1406
|
|
|
//
|
|
|
btnCmd1406.Location = new Point(144, 26);
|
|
|
btnCmd1406.Name = "btnCmd1406";
|
|
|
btnCmd1406.Size = new Size(115, 37);
|
|
|
btnCmd1406.TabIndex = 124;
|
|
|
btnCmd1406.Text = "1406-日志信息";
|
|
|
btnCmd1406.UseVisualStyleBackColor = true;
|
|
|
btnCmd1406.Click += btnCmd1406_Click;
|
|
|
//
|
|
|
// groupBox6
|
|
|
//
|
|
|
groupBox6.Controls.Add(btnCmd1301);
|
|
|
groupBox6.Location = new Point(584, 439);
|
|
|
groupBox6.Name = "groupBox6";
|
|
|
groupBox6.Size = new Size(130, 75);
|
|
|
groupBox6.TabIndex = 153;
|
|
|
groupBox6.TabStop = false;
|
|
|
groupBox6.Text = "白名单报文";
|
|
|
//
|
|
|
// btnCmd1301
|
|
|
//
|
|
|
btnCmd1301.Location = new Point(6, 26);
|
|
|
btnCmd1301.Name = "btnCmd1301";
|
|
|
btnCmd1301.Size = new Size(115, 37);
|
|
|
btnCmd1301.TabIndex = 122;
|
|
|
btnCmd1301.Text = "1301-白名单";
|
|
|
btnCmd1301.UseVisualStyleBackColor = true;
|
|
|
btnCmd1301.Click += btnCmd1301_Click;
|
|
|
//
|
|
|
// groupBox4
|
|
|
//
|
|
|
groupBox4.Controls.Add(btnCmd1105);
|
|
|
groupBox4.Controls.Add(btnCmd1101);
|
|
|
groupBox4.Controls.Add(btnCmd1103);
|
|
|
groupBox4.Controls.Add(btnCmd1107);
|
|
|
groupBox4.Location = new Point(7, 439);
|
|
|
groupBox4.Name = "groupBox4";
|
|
|
groupBox4.Size = new Size(562, 75);
|
|
|
groupBox4.TabIndex = 150;
|
|
|
groupBox4.TabStop = false;
|
|
|
groupBox4.Text = "与计费策略相关的指令";
|
|
|
//
|
|
|
// btnCmd1105
|
|
|
//
|
|
|
btnCmd1105.Location = new Point(294, 26);
|
|
|
btnCmd1105.Name = "btnCmd1105";
|
|
|
btnCmd1105.Size = new Size(115, 37);
|
|
|
btnCmd1105.TabIndex = 120;
|
|
|
btnCmd1105.Text = "1105-设置分时";
|
|
|
btnCmd1105.UseVisualStyleBackColor = true;
|
|
|
btnCmd1105.Click += btnCmd1105_Click;
|
|
|
//
|
|
|
// btnCmd1101
|
|
|
//
|
|
|
btnCmd1101.Location = new Point(6, 26);
|
|
|
btnCmd1101.Name = "btnCmd1101";
|
|
|
btnCmd1101.Size = new Size(115, 37);
|
|
|
btnCmd1101.TabIndex = 118;
|
|
|
btnCmd1101.Text = "1101-查询计价";
|
|
|
btnCmd1101.UseVisualStyleBackColor = true;
|
|
|
btnCmd1101.Click += btnCmd1101_Click;
|
|
|
//
|
|
|
// btnCmd1103
|
|
|
//
|
|
|
btnCmd1103.Location = new Point(149, 26);
|
|
|
btnCmd1103.Name = "btnCmd1103";
|
|
|
btnCmd1103.Size = new Size(115, 37);
|
|
|
btnCmd1103.TabIndex = 119;
|
|
|
btnCmd1103.Text = "1103-设置计价";
|
|
|
btnCmd1103.UseVisualStyleBackColor = true;
|
|
|
btnCmd1103.Click += btnCmd1103_Click;
|
|
|
//
|
|
|
// btnCmd1107
|
|
|
//
|
|
|
btnCmd1107.Location = new Point(439, 26);
|
|
|
btnCmd1107.Name = "btnCmd1107";
|
|
|
btnCmd1107.Size = new Size(115, 37);
|
|
|
btnCmd1107.TabIndex = 121;
|
|
|
btnCmd1107.Text = "1107-查询分时";
|
|
|
btnCmd1107.UseVisualStyleBackColor = true;
|
|
|
btnCmd1107.Click += btnCmd1107_Click;
|
|
|
//
|
|
|
// groupBox9
|
|
|
//
|
|
|
groupBox9.Controls.Add(groupBox3);
|
|
|
groupBox9.Controls.Add(groupBox15);
|
|
|
groupBox9.Location = new Point(5, 12);
|
|
|
groupBox9.Name = "groupBox9";
|
|
|
groupBox9.Size = new Size(1076, 98);
|
|
|
groupBox9.TabIndex = 149;
|
|
|
groupBox9.TabStop = false;
|
|
|
groupBox9.Text = "站控发送指令";
|
|
|
//
|
|
|
// groupBox3
|
|
|
//
|
|
|
groupBox3.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
groupBox3.Controls.Add(lstBoxConnect);
|
|
|
groupBox3.Controls.Add(label3);
|
|
|
groupBox3.Controls.Add(txtDestAddr);
|
|
|
groupBox3.Controls.Add(label2);
|
|
|
groupBox3.Controls.Add(txtChargePort);
|
|
|
groupBox3.Controls.Add(BtnCloseConnect);
|
|
|
groupBox3.Controls.Add(BtnChrg01Connect);
|
|
|
groupBox3.Font = new Font("微软雅黑", 9F, FontStyle.Regular, GraphicsUnit.Point);
|
|
|
groupBox3.Location = new Point(12, 27);
|
|
|
groupBox3.Margin = new Padding(5);
|
|
|
groupBox3.Name = "groupBox3";
|
|
|
groupBox3.Padding = new Padding(5);
|
|
|
groupBox3.Size = new Size(1056, 63);
|
|
|
groupBox3.TabIndex = 80;
|
|
|
groupBox3.TabStop = false;
|
|
|
groupBox3.Text = "充电机连接";
|
|
|
//
|
|
|
// lstBoxConnect
|
|
|
//
|
|
|
lstBoxConnect.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
lstBoxConnect.FormattingEnabled = true;
|
|
|
lstBoxConnect.ItemHeight = 20;
|
|
|
lstBoxConnect.Location = new Point(707, 24);
|
|
|
lstBoxConnect.Margin = new Padding(5);
|
|
|
lstBoxConnect.Name = "lstBoxConnect";
|
|
|
lstBoxConnect.Size = new Size(339, 24);
|
|
|
lstBoxConnect.TabIndex = 71;
|
|
|
//
|
|
|
// label3
|
|
|
//
|
|
|
label3.AutoSize = true;
|
|
|
label3.Location = new Point(150, 33);
|
|
|
label3.Name = "label3";
|
|
|
label3.Size = new Size(94, 20);
|
|
|
label3.TabIndex = 20;
|
|
|
label3.Text = "DestAddr:";
|
|
|
//
|
|
|
// txtDestAddr
|
|
|
//
|
|
|
txtDestAddr.Location = new Point(246, 24);
|
|
|
txtDestAddr.Name = "txtDestAddr";
|
|
|
txtDestAddr.Size = new Size(130, 27);
|
|
|
txtDestAddr.TabIndex = 19;
|
|
|
txtDestAddr.Text = "1";
|
|
|
//
|
|
|
// label2
|
|
|
//
|
|
|
label2.AutoSize = true;
|
|
|
label2.Location = new Point(13, 31);
|
|
|
label2.Name = "label2";
|
|
|
label2.Size = new Size(55, 20);
|
|
|
label2.TabIndex = 18;
|
|
|
label2.Text = "Port:";
|
|
|
//
|
|
|
// txtChargePort
|
|
|
//
|
|
|
txtChargePort.Location = new Point(74, 27);
|
|
|
txtChargePort.Name = "txtChargePort";
|
|
|
txtChargePort.Size = new Size(72, 27);
|
|
|
txtChargePort.TabIndex = 17;
|
|
|
txtChargePort.Text = "502";
|
|
|
//
|
|
|
// BtnCloseConnect
|
|
|
//
|
|
|
BtnCloseConnect.Location = new Point(528, 16);
|
|
|
BtnCloseConnect.Margin = new Padding(5);
|
|
|
BtnCloseConnect.Name = "BtnCloseConnect";
|
|
|
BtnCloseConnect.Size = new Size(130, 37);
|
|
|
BtnCloseConnect.TabIndex = 14;
|
|
|
BtnCloseConnect.Text = "关闭服务";
|
|
|
BtnCloseConnect.UseVisualStyleBackColor = true;
|
|
|
BtnCloseConnect.Click += BtnCloseConnect_Click;
|
|
|
//
|
|
|
// BtnChrg01Connect
|
|
|
//
|
|
|
BtnChrg01Connect.Location = new Point(384, 16);
|
|
|
BtnChrg01Connect.Margin = new Padding(5);
|
|
|
BtnChrg01Connect.Name = "BtnChrg01Connect";
|
|
|
BtnChrg01Connect.Size = new Size(130, 37);
|
|
|
BtnChrg01Connect.TabIndex = 8;
|
|
|
BtnChrg01Connect.Text = "启动服务";
|
|
|
BtnChrg01Connect.UseVisualStyleBackColor = true;
|
|
|
BtnChrg01Connect.Click += BtnChrg01Connect_Click;
|
|
|
//
|
|
|
// groupBox5
|
|
|
//
|
|
|
groupBox5.Controls.Add(lstSendFrameInfo);
|
|
|
groupBox5.Font = new Font("微软雅黑", 9F, FontStyle.Regular, GraphicsUnit.Point);
|
|
|
groupBox5.Location = new Point(9, 595);
|
|
|
groupBox5.Margin = new Padding(5);
|
|
|
groupBox5.Name = "groupBox5";
|
|
|
groupBox5.Padding = new Padding(5);
|
|
|
groupBox5.Size = new Size(1154, 172);
|
|
|
groupBox5.TabIndex = 147;
|
|
|
groupBox5.TabStop = false;
|
|
|
groupBox5.Text = "发送数据帧信息";
|
|
|
//
|
|
|
// lstSendFrameInfo
|
|
|
//
|
|
|
lstSendFrameInfo.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
|
lstSendFrameInfo.FormattingEnabled = true;
|
|
|
lstSendFrameInfo.ItemHeight = 20;
|
|
|
lstSendFrameInfo.Location = new Point(14, 30);
|
|
|
lstSendFrameInfo.Margin = new Padding(5);
|
|
|
lstSendFrameInfo.Name = "lstSendFrameInfo";
|
|
|
lstSendFrameInfo.Size = new Size(1115, 124);
|
|
|
lstSendFrameInfo.TabIndex = 73;
|
|
|
//
|
|
|
// groupBox8
|
|
|
//
|
|
|
groupBox8.Controls.Add(btnCmd7);
|
|
|
groupBox8.Controls.Add(btnCmd3);
|
|
|
groupBox8.Controls.Add(btnCmd1);
|
|
|
groupBox8.Controls.Add(btnCmd5);
|
|
|
groupBox8.Location = new Point(7, 116);
|
|
|
groupBox8.Name = "groupBox8";
|
|
|
groupBox8.Size = new Size(580, 70);
|
|
|
groupBox8.TabIndex = 148;
|
|
|
groupBox8.TabStop = false;
|
|
|
groupBox8.Text = "设置/查询工作参数和命令";
|
|
|
//
|
|
|
// btnCmd7
|
|
|
//
|
|
|
btnCmd7.Location = new Point(440, 19);
|
|
|
btnCmd7.Name = "btnCmd7";
|
|
|
btnCmd7.Size = new Size(115, 37);
|
|
|
btnCmd7.TabIndex = 123;
|
|
|
btnCmd7.Text = "7-开启充电";
|
|
|
btnCmd7.UseVisualStyleBackColor = true;
|
|
|
btnCmd7.Click += btnCmd7_Click;
|
|
|
//
|
|
|
// btnCmd3
|
|
|
//
|
|
|
btnCmd3.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
|
|
|
btnCmd3.Location = new Point(149, 17);
|
|
|
btnCmd3.Margin = new Padding(5);
|
|
|
btnCmd3.Name = "btnCmd3";
|
|
|
btnCmd3.Size = new Size(115, 37);
|
|
|
btnCmd3.TabIndex = 91;
|
|
|
btnCmd3.Text = "3-字符型";
|
|
|
btnCmd3.UseVisualStyleBackColor = true;
|
|
|
btnCmd3.Click += btnCmd3_Click;
|
|
|
//
|
|
|
// btnCmd1
|
|
|
//
|
|
|
btnCmd1.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
|
|
|
btnCmd1.Location = new Point(8, 17);
|
|
|
btnCmd1.Margin = new Padding(5);
|
|
|
btnCmd1.Name = "btnCmd1";
|
|
|
btnCmd1.Size = new Size(115, 37);
|
|
|
btnCmd1.TabIndex = 90;
|
|
|
btnCmd1.Text = "1-整形工作";
|
|
|
btnCmd1.UseVisualStyleBackColor = true;
|
|
|
btnCmd1.Click += btnCmd1_Click;
|
|
|
//
|
|
|
// btnCmd5
|
|
|
//
|
|
|
btnCmd5.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
|
|
|
btnCmd5.Location = new Point(296, 17);
|
|
|
btnCmd5.Margin = new Padding(5);
|
|
|
btnCmd5.Name = "btnCmd5";
|
|
|
btnCmd5.Size = new Size(115, 37);
|
|
|
btnCmd5.TabIndex = 92;
|
|
|
btnCmd5.Text = "5-控制命令";
|
|
|
btnCmd5.UseVisualStyleBackColor = true;
|
|
|
btnCmd5.Click += btnCmd5_Click;
|
|
|
//
|
|
|
// groupBox2
|
|
|
//
|
|
|
groupBox2.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left;
|
|
|
groupBox2.Controls.Add(lstRecvFrameInfo);
|
|
|
groupBox2.Font = new Font("微软雅黑", 9F, FontStyle.Regular, GraphicsUnit.Point);
|
|
|
groupBox2.Location = new Point(9, 767);
|
|
|
groupBox2.Margin = new Padding(5);
|
|
|
groupBox2.Name = "groupBox2";
|
|
|
groupBox2.Padding = new Padding(5);
|
|
|
groupBox2.Size = new Size(1148, 162);
|
|
|
groupBox2.TabIndex = 146;
|
|
|
groupBox2.TabStop = false;
|
|
|
groupBox2.Text = "接收数据帧信息";
|
|
|
//
|
|
|
// groupBox11
|
|
|
//
|
|
|
groupBox11.Controls.Add(btnCmd113);
|
|
|
groupBox11.Controls.Add(btnCmd111);
|
|
|
groupBox11.Controls.Add(btnCmd109);
|
|
|
groupBox11.Controls.Add(btnCmd107);
|
|
|
groupBox11.Controls.Add(btnCmd105);
|
|
|
groupBox11.Controls.Add(btnCmd103);
|
|
|
groupBox11.Controls.Add(btnCmd101);
|
|
|
groupBox11.Location = new Point(9, 191);
|
|
|
groupBox11.Name = "groupBox11";
|
|
|
groupBox11.Size = new Size(992, 73);
|
|
|
groupBox11.TabIndex = 158;
|
|
|
groupBox11.TabStop = false;
|
|
|
groupBox11.Text = "主动上传数据";
|
|
|
//
|
|
|
// btnCmd111
|
|
|
//
|
|
|
btnCmd111.Location = new Point(726, 26);
|
|
|
btnCmd111.Name = "btnCmd111";
|
|
|
btnCmd111.Size = new Size(115, 37);
|
|
|
btnCmd111.TabIndex = 142;
|
|
|
btnCmd111.Text = "111-答充上报";
|
|
|
btnCmd111.UseVisualStyleBackColor = true;
|
|
|
btnCmd111.Click += btnCmd111_Click;
|
|
|
//
|
|
|
// btnCmd109
|
|
|
//
|
|
|
btnCmd109.Location = new Point(588, 26);
|
|
|
btnCmd109.Name = "btnCmd109";
|
|
|
btnCmd109.Size = new Size(115, 37);
|
|
|
btnCmd109.TabIndex = 141;
|
|
|
btnCmd109.Text = "109-答充启动";
|
|
|
btnCmd109.UseVisualStyleBackColor = true;
|
|
|
btnCmd109.Click += btnCmd109_Click;
|
|
|
//
|
|
|
// btnCmd107
|
|
|
//
|
|
|
btnCmd107.Location = new Point(440, 26);
|
|
|
btnCmd107.Name = "btnCmd107";
|
|
|
btnCmd107.Size = new Size(115, 37);
|
|
|
btnCmd107.TabIndex = 140;
|
|
|
btnCmd107.Text = "107-答充告警";
|
|
|
btnCmd107.UseVisualStyleBackColor = true;
|
|
|
btnCmd107.Click += btnCmd107_Click;
|
|
|
//
|
|
|
// btnCmd105
|
|
|
//
|
|
|
btnCmd105.Location = new Point(296, 26);
|
|
|
btnCmd105.Name = "btnCmd105";
|
|
|
btnCmd105.Size = new Size(115, 37);
|
|
|
btnCmd105.TabIndex = 139;
|
|
|
btnCmd105.Text = "105-答充签到";
|
|
|
btnCmd105.UseVisualStyleBackColor = true;
|
|
|
btnCmd105.Click += btnCmd105_Click;
|
|
|
//
|
|
|
// btnCmd103
|
|
|
//
|
|
|
btnCmd103.Location = new Point(149, 26);
|
|
|
btnCmd103.Name = "btnCmd103";
|
|
|
btnCmd103.Size = new Size(115, 37);
|
|
|
btnCmd103.TabIndex = 138;
|
|
|
btnCmd103.Text = "103-应答状态";
|
|
|
btnCmd103.UseVisualStyleBackColor = true;
|
|
|
btnCmd103.Click += btnCmd103_Click;
|
|
|
//
|
|
|
// btnCmd101
|
|
|
//
|
|
|
btnCmd101.Location = new Point(11, 26);
|
|
|
btnCmd101.Name = "btnCmd101";
|
|
|
btnCmd101.Size = new Size(115, 37);
|
|
|
btnCmd101.TabIndex = 137;
|
|
|
btnCmd101.Text = "101-应答心跳";
|
|
|
btnCmd101.UseVisualStyleBackColor = true;
|
|
|
btnCmd101.Click += btnCmd101_Click;
|
|
|
//
|
|
|
// groupBox10
|
|
|
//
|
|
|
groupBox10.Controls.Add(btnCmd1506);
|
|
|
groupBox10.Controls.Add(btnCmd1504);
|
|
|
groupBox10.Controls.Add(btnCmd1502);
|
|
|
groupBox10.Location = new Point(9, 522);
|
|
|
groupBox10.Name = "groupBox10";
|
|
|
groupBox10.Size = new Size(426, 65);
|
|
|
groupBox10.TabIndex = 159;
|
|
|
groupBox10.TabStop = false;
|
|
|
groupBox10.Text = "协议方式日志上传";
|
|
|
//
|
|
|
// btnCmd1506
|
|
|
//
|
|
|
btnCmd1506.Location = new Point(292, 22);
|
|
|
btnCmd1506.Name = "btnCmd1506";
|
|
|
btnCmd1506.Size = new Size(115, 37);
|
|
|
btnCmd1506.TabIndex = 124;
|
|
|
btnCmd1506.Text = "1506-接收完成";
|
|
|
btnCmd1506.UseVisualStyleBackColor = true;
|
|
|
btnCmd1506.Click += btnCmd1506_Click;
|
|
|
//
|
|
|
// btnCmd1504
|
|
|
//
|
|
|
btnCmd1504.Location = new Point(147, 22);
|
|
|
btnCmd1504.Name = "btnCmd1504";
|
|
|
btnCmd1504.Size = new Size(115, 37);
|
|
|
btnCmd1504.TabIndex = 123;
|
|
|
btnCmd1504.Text = "1504-应答上传";
|
|
|
btnCmd1504.UseVisualStyleBackColor = true;
|
|
|
btnCmd1504.Click += btnCmd1504_Click;
|
|
|
//
|
|
|
// btnCmd1502
|
|
|
//
|
|
|
btnCmd1502.Location = new Point(6, 22);
|
|
|
btnCmd1502.Name = "btnCmd1502";
|
|
|
btnCmd1502.Size = new Size(115, 37);
|
|
|
btnCmd1502.TabIndex = 122;
|
|
|
btnCmd1502.Text = "1502-允许上传";
|
|
|
btnCmd1502.UseVisualStyleBackColor = true;
|
|
|
btnCmd1502.Click += btnCmd1502_Click;
|
|
|
//
|
|
|
// Form1
|
|
|
//
|
|
|
AutoScaleDimensions = new SizeF(9F, 20F);
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
|
ClientSize = new Size(1186, 943);
|
|
|
Controls.Add(groupBox10);
|
|
|
Controls.Add(groupBox11);
|
|
|
Controls.Add(groupBox16);
|
|
|
Controls.Add(groupBox14);
|
|
|
Controls.Add(groupBox13);
|
|
|
Controls.Add(groupBox7);
|
|
|
Controls.Add(groupBox6);
|
|
|
Controls.Add(groupBox4);
|
|
|
Controls.Add(groupBox9);
|
|
|
Controls.Add(groupBox5);
|
|
|
Controls.Add(groupBox8);
|
|
|
Controls.Add(groupBox2);
|
|
|
Controls.Add(button1);
|
|
|
Margin = new Padding(2, 1, 2, 1);
|
|
|
Name = "Form1";
|
|
|
Text = "换电平台";
|
|
|
Load += FrmChargeResult_Load;
|
|
|
groupBox16.ResumeLayout(false);
|
|
|
groupBox15.ResumeLayout(false);
|
|
|
groupBox14.ResumeLayout(false);
|
|
|
groupBox13.ResumeLayout(false);
|
|
|
groupBox7.ResumeLayout(false);
|
|
|
groupBox6.ResumeLayout(false);
|
|
|
groupBox4.ResumeLayout(false);
|
|
|
groupBox9.ResumeLayout(false);
|
|
|
groupBox3.ResumeLayout(false);
|
|
|
groupBox3.PerformLayout();
|
|
|
groupBox5.ResumeLayout(false);
|
|
|
groupBox8.ResumeLayout(false);
|
|
|
groupBox2.ResumeLayout(false);
|
|
|
groupBox11.ResumeLayout(false);
|
|
|
groupBox10.ResumeLayout(false);
|
|
|
ResumeLayout(false);
|
|
|
}
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
private Button button1;
|
|
|
private Button btnCmd113;
|
|
|
private ListBox lstRecvFrameInfo;
|
|
|
private GroupBox groupBox16;
|
|
|
private Button btnCmd1021;
|
|
|
private Button btnCmd1011;
|
|
|
private Button btnCmd1009;
|
|
|
private Button btnCmd1005;
|
|
|
private Button btnCmd1001;
|
|
|
private Button btnCmd1003;
|
|
|
private Button btnCmd1007;
|
|
|
private GroupBox groupBox15;
|
|
|
private Button btnCmd421;
|
|
|
private Button btnCmd401;
|
|
|
private GroupBox groupBox14;
|
|
|
private Button btnCmd301;
|
|
|
private Button btnCmd303;
|
|
|
private GroupBox groupBox13;
|
|
|
private Button btnCmd221;
|
|
|
private Button btnCmd209;
|
|
|
private Button btnCmd205;
|
|
|
private Button btnCmd201;
|
|
|
private Button btnCmd203;
|
|
|
private Button btnCmd207;
|
|
|
private GroupBox groupBox7;
|
|
|
private Button btnCmd1401;
|
|
|
private Button btnCmd1406;
|
|
|
private GroupBox groupBox6;
|
|
|
private Button btnCmd1301;
|
|
|
private GroupBox groupBox4;
|
|
|
private Button btnCmd1105;
|
|
|
private Button btnCmd1101;
|
|
|
private Button btnCmd1103;
|
|
|
private Button btnCmd1107;
|
|
|
private GroupBox groupBox9;
|
|
|
private GroupBox groupBox3;
|
|
|
private Label label3;
|
|
|
private TextBox txtDestAddr;
|
|
|
private Label label2;
|
|
|
private TextBox txtChargePort;
|
|
|
private Button BtnCloseConnect;
|
|
|
private Button BtnChrg01Connect;
|
|
|
private ListBox lstBoxConnect;
|
|
|
private GroupBox groupBox5;
|
|
|
private ListBox lstSendFrameInfo;
|
|
|
private GroupBox groupBox8;
|
|
|
private Button btnCmd7;
|
|
|
private Button btnCmd3;
|
|
|
private Button btnCmd1;
|
|
|
private Button btnCmd5;
|
|
|
private GroupBox groupBox2;
|
|
|
private GroupBox groupBox11;
|
|
|
private Button btnCmd111;
|
|
|
private Button btnCmd109;
|
|
|
private Button btnCmd107;
|
|
|
private Button btnCmd105;
|
|
|
private Button btnCmd103;
|
|
|
private Button btnCmd101;
|
|
|
private GroupBox groupBox10;
|
|
|
private Button btnCmd1506;
|
|
|
private Button btnCmd1504;
|
|
|
private Button btnCmd1502;
|
|
|
}
|