|
|
|
|
|
|
|
|
|
namespace YD10测试机
|
|
|
|
|
{
|
|
|
|
|
partial class Form1
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 必需的设计器变量。
|
|
|
|
|
/// </summary>
|
|
|
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 清理所有正在使用的资源。
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
|
|
|
|
protected override void Dispose(bool disposing)
|
|
|
|
|
{
|
|
|
|
|
if (disposing && (components != null))
|
|
|
|
|
{
|
|
|
|
|
components.Dispose();
|
|
|
|
|
}
|
|
|
|
|
base.Dispose(disposing);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region Windows 窗体设计器生成的代码
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设计器支持所需的方法 - 不要修改
|
|
|
|
|
/// 使用代码编辑器修改此方法的内容。
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void InitializeComponent()
|
|
|
|
|
{
|
|
|
|
|
this.components = new System.ComponentModel.Container();
|
|
|
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
|
|
|
|
this.txtStatus = new System.Windows.Forms.Label();
|
|
|
|
|
this.btnOpen_usb = new System.Windows.Forms.Button();
|
|
|
|
|
this.cmbPort = new System.Windows.Forms.ComboBox();
|
|
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
|
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
|
|
|
|
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
|
|
|
|
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.dataGridView2 = new System.Windows.Forms.DataGridView();
|
|
|
|
|
this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
|
|
this.comboBox2 = new System.Windows.Forms.ComboBox();
|
|
|
|
|
this.label8 = new System.Windows.Forms.Label();
|
|
|
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
|
|
|
this.comboBox1 = new System.Windows.Forms.ComboBox();
|
|
|
|
|
this.checkBox2 = new System.Windows.Forms.CheckBox();
|
|
|
|
|
this.printDocument1 = new System.Drawing.Printing.PrintDocument();
|
|
|
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
|
|
|
this.timer2 = new System.Windows.Forms.Timer(this.components);
|
|
|
|
|
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
|
|
|
|
this.参考信息设置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
|
|
this.打印较准页ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
|
|
this.手动打印ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
|
|
this.车型设置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
|
|
this.yD10ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
|
|
this.yD07KToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
|
|
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
|
|
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
|
|
|
this.label6 = new System.Windows.Forms.Label();
|
|
|
|
|
this.textBox2 = new System.Windows.Forms.TextBox();
|
|
|
|
|
this.checkBox3 = new System.Windows.Forms.CheckBox();
|
|
|
|
|
this.label7 = new System.Windows.Forms.Label();
|
|
|
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
|
|
|
this.textBox3 = new System.Windows.Forms.TextBox();
|
|
|
|
|
this.label9 = new System.Windows.Forms.Label();
|
|
|
|
|
this.label10 = new System.Windows.Forms.Label();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
|
|
|
|
|
this.menuStrip1.SuspendLayout();
|
|
|
|
|
this.SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// txtStatus
|
|
|
|
|
//
|
|
|
|
|
this.txtStatus.AutoSize = true;
|
|
|
|
|
this.txtStatus.Location = new System.Drawing.Point(60, 83);
|
|
|
|
|
this.txtStatus.Name = "txtStatus";
|
|
|
|
|
this.txtStatus.Size = new System.Drawing.Size(0, 12);
|
|
|
|
|
this.txtStatus.TabIndex = 12;
|
|
|
|
|
//
|
|
|
|
|
// btnOpen_usb
|
|
|
|
|
//
|
|
|
|
|
this.btnOpen_usb.Location = new System.Drawing.Point(148, 48);
|
|
|
|
|
this.btnOpen_usb.Name = "btnOpen_usb";
|
|
|
|
|
this.btnOpen_usb.Size = new System.Drawing.Size(64, 21);
|
|
|
|
|
this.btnOpen_usb.TabIndex = 11;
|
|
|
|
|
this.btnOpen_usb.Text = "打开";
|
|
|
|
|
this.btnOpen_usb.UseVisualStyleBackColor = true;
|
|
|
|
|
this.btnOpen_usb.Click += new System.EventHandler(this.btnOpen_usb_Click);
|
|
|
|
|
//
|
|
|
|
|
// cmbPort
|
|
|
|
|
//
|
|
|
|
|
this.cmbPort.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
|
|
this.cmbPort.FormattingEnabled = true;
|
|
|
|
|
this.cmbPort.Location = new System.Drawing.Point(60, 46);
|
|
|
|
|
this.cmbPort.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
|
|
|
|
this.cmbPort.Name = "cmbPort";
|
|
|
|
|
this.cmbPort.Size = new System.Drawing.Size(83, 24);
|
|
|
|
|
this.cmbPort.TabIndex = 10;
|
|
|
|
|
this.cmbPort.DropDown += new System.EventHandler(this.cmbPort_DropDown);
|
|
|
|
|
//
|
|
|
|
|
// label1
|
|
|
|
|
//
|
|
|
|
|
this.label1.AutoSize = true;
|
|
|
|
|
this.label1.Font = new System.Drawing.Font("宋体", 10.18868F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
|
|
this.label1.Location = new System.Drawing.Point(18, 53);
|
|
|
|
|
this.label1.Name = "label1";
|
|
|
|
|
this.label1.Size = new System.Drawing.Size(42, 14);
|
|
|
|
|
this.label1.TabIndex = 9;
|
|
|
|
|
this.label1.Text = "端口:";
|
|
|
|
|
//
|
|
|
|
|
// timer1
|
|
|
|
|
//
|
|
|
|
|
this.timer1.Enabled = true;
|
|
|
|
|
this.timer1.Interval = 500;
|
|
|
|
|
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
|
|
|
|
//
|
|
|
|
|
// dataGridView1
|
|
|
|
|
//
|
|
|
|
|
this.dataGridView1.AllowUserToAddRows = false;
|
|
|
|
|
this.dataGridView1.AllowUserToResizeRows = false;
|
|
|
|
|
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
|
|
|
|
|
this.dataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
|
|
|
|
|
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
|
|
|
|
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
|
|
|
this.Column1,
|
|
|
|
|
this.Column2,
|
|
|
|
|
this.Column3});
|
|
|
|
|
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
|
|
|
dataGridViewCellStyle1.BackColor = System.Drawing.Color.White;
|
|
|
|
|
dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
|
|
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
|
|
|
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
|
|
|
|
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
|
|
|
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
|
|
|
|
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle1;
|
|
|
|
|
this.dataGridView1.EnableHeadersVisualStyles = false;
|
|
|
|
|
this.dataGridView1.Location = new System.Drawing.Point(21, 152);
|
|
|
|
|
this.dataGridView1.Name = "dataGridView1";
|
|
|
|
|
this.dataGridView1.RowHeadersVisible = false;
|
|
|
|
|
this.dataGridView1.RowHeadersWidth = 45;
|
|
|
|
|
this.dataGridView1.RowTemplate.Height = 19;
|
|
|
|
|
this.dataGridView1.Size = new System.Drawing.Size(316, 524);
|
|
|
|
|
this.dataGridView1.TabIndex = 13;
|
|
|
|
|
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
|
|
|
|
|
//
|
|
|
|
|
// Column1
|
|
|
|
|
//
|
|
|
|
|
this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.Column1.FillWeight = 50F;
|
|
|
|
|
this.Column1.HeaderText = "测试项";
|
|
|
|
|
this.Column1.MinimumWidth = 2;
|
|
|
|
|
this.Column1.Name = "Column1";
|
|
|
|
|
this.Column1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
|
|
|
|
//
|
|
|
|
|
// Column2
|
|
|
|
|
//
|
|
|
|
|
this.Column2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.Column2.FillWeight = 50F;
|
|
|
|
|
this.Column2.HeaderText = "数据";
|
|
|
|
|
this.Column2.MinimumWidth = 2;
|
|
|
|
|
this.Column2.Name = "Column2";
|
|
|
|
|
//
|
|
|
|
|
// Column3
|
|
|
|
|
//
|
|
|
|
|
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.Column3.FillWeight = 20F;
|
|
|
|
|
this.Column3.HeaderText = "结果";
|
|
|
|
|
this.Column3.MinimumWidth = 2;
|
|
|
|
|
this.Column3.Name = "Column3";
|
|
|
|
|
//
|
|
|
|
|
// Column4
|
|
|
|
|
//
|
|
|
|
|
this.Column4.HeaderText = "Column4";
|
|
|
|
|
this.Column4.Name = "Column4";
|
|
|
|
|
//
|
|
|
|
|
// dataGridViewTextBoxColumn1
|
|
|
|
|
//
|
|
|
|
|
this.dataGridViewTextBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.dataGridViewTextBoxColumn1.FillWeight = 46.30047F;
|
|
|
|
|
this.dataGridViewTextBoxColumn1.HeaderText = "序号";
|
|
|
|
|
this.dataGridViewTextBoxColumn1.MinimumWidth = 6;
|
|
|
|
|
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
|
|
|
|
|
//
|
|
|
|
|
// dataGridViewTextBoxColumn2
|
|
|
|
|
//
|
|
|
|
|
this.dataGridViewTextBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.dataGridViewTextBoxColumn2.FillWeight = 95.09346F;
|
|
|
|
|
this.dataGridViewTextBoxColumn2.HeaderText = "测试项";
|
|
|
|
|
this.dataGridViewTextBoxColumn2.MinimumWidth = 6;
|
|
|
|
|
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
|
|
|
|
|
//
|
|
|
|
|
// dataGridViewTextBoxColumn3
|
|
|
|
|
//
|
|
|
|
|
this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.dataGridViewTextBoxColumn3.FillWeight = 173.0446F;
|
|
|
|
|
this.dataGridViewTextBoxColumn3.HeaderText = "测试值";
|
|
|
|
|
this.dataGridViewTextBoxColumn3.MinimumWidth = 6;
|
|
|
|
|
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
|
|
|
|
|
//
|
|
|
|
|
// dataGridViewTextBoxColumn4
|
|
|
|
|
//
|
|
|
|
|
this.dataGridViewTextBoxColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.dataGridViewTextBoxColumn4.FillWeight = 85.5615F;
|
|
|
|
|
this.dataGridViewTextBoxColumn4.HeaderText = "结果";
|
|
|
|
|
this.dataGridViewTextBoxColumn4.MinimumWidth = 6;
|
|
|
|
|
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
|
|
|
|
|
//
|
|
|
|
|
// dataGridViewTextBoxColumn5
|
|
|
|
|
//
|
|
|
|
|
this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.dataGridViewTextBoxColumn5.FillWeight = 46.30047F;
|
|
|
|
|
this.dataGridViewTextBoxColumn5.HeaderText = "序号";
|
|
|
|
|
this.dataGridViewTextBoxColumn5.MinimumWidth = 6;
|
|
|
|
|
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
|
|
|
|
|
//
|
|
|
|
|
// dataGridViewTextBoxColumn6
|
|
|
|
|
//
|
|
|
|
|
this.dataGridViewTextBoxColumn6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.dataGridViewTextBoxColumn6.FillWeight = 95.09346F;
|
|
|
|
|
this.dataGridViewTextBoxColumn6.HeaderText = "测试项";
|
|
|
|
|
this.dataGridViewTextBoxColumn6.MinimumWidth = 6;
|
|
|
|
|
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
|
|
|
|
|
//
|
|
|
|
|
// dataGridViewTextBoxColumn7
|
|
|
|
|
//
|
|
|
|
|
this.dataGridViewTextBoxColumn7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.dataGridViewTextBoxColumn7.FillWeight = 173.0446F;
|
|
|
|
|
this.dataGridViewTextBoxColumn7.HeaderText = "测试值";
|
|
|
|
|
this.dataGridViewTextBoxColumn7.MinimumWidth = 6;
|
|
|
|
|
this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
|
|
|
|
|
//
|
|
|
|
|
// dataGridViewTextBoxColumn8
|
|
|
|
|
//
|
|
|
|
|
this.dataGridViewTextBoxColumn8.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.dataGridViewTextBoxColumn8.FillWeight = 85.5615F;
|
|
|
|
|
this.dataGridViewTextBoxColumn8.HeaderText = "结果";
|
|
|
|
|
this.dataGridViewTextBoxColumn8.MinimumWidth = 6;
|
|
|
|
|
this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
|
|
|
|
|
//
|
|
|
|
|
// dataGridView2
|
|
|
|
|
//
|
|
|
|
|
this.dataGridView2.AllowUserToAddRows = false;
|
|
|
|
|
this.dataGridView2.AllowUserToResizeRows = false;
|
|
|
|
|
this.dataGridView2.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
|
|
|
|
|
this.dataGridView2.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
|
|
|
|
|
this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
|
|
|
|
this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
|
|
|
this.dataGridViewTextBoxColumn9,
|
|
|
|
|
this.dataGridViewTextBoxColumn10,
|
|
|
|
|
this.dataGridViewTextBoxColumn11});
|
|
|
|
|
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
|
|
|
dataGridViewCellStyle2.BackColor = System.Drawing.Color.White;
|
|
|
|
|
dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
|
|
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
|
|
|
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
|
|
|
|
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
|
|
|
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
|
|
|
|
this.dataGridView2.DefaultCellStyle = dataGridViewCellStyle2;
|
|
|
|
|
this.dataGridView2.EnableHeadersVisualStyles = false;
|
|
|
|
|
this.dataGridView2.Location = new System.Drawing.Point(372, 153);
|
|
|
|
|
this.dataGridView2.Name = "dataGridView2";
|
|
|
|
|
this.dataGridView2.RowHeadersVisible = false;
|
|
|
|
|
this.dataGridView2.RowHeadersWidth = 45;
|
|
|
|
|
this.dataGridView2.RowTemplate.Height = 21;
|
|
|
|
|
this.dataGridView2.Size = new System.Drawing.Size(375, 397);
|
|
|
|
|
this.dataGridView2.TabIndex = 14;
|
|
|
|
|
this.dataGridView2.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView2_CellValueChanged);
|
|
|
|
|
//
|
|
|
|
|
// dataGridViewTextBoxColumn9
|
|
|
|
|
//
|
|
|
|
|
this.dataGridViewTextBoxColumn9.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.dataGridViewTextBoxColumn9.FillWeight = 50F;
|
|
|
|
|
this.dataGridViewTextBoxColumn9.HeaderText = "测试项";
|
|
|
|
|
this.dataGridViewTextBoxColumn9.MinimumWidth = 2;
|
|
|
|
|
this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
|
|
|
|
|
this.dataGridViewTextBoxColumn9.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
|
|
|
|
//
|
|
|
|
|
// dataGridViewTextBoxColumn10
|
|
|
|
|
//
|
|
|
|
|
this.dataGridViewTextBoxColumn10.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.dataGridViewTextBoxColumn10.FillWeight = 50F;
|
|
|
|
|
this.dataGridViewTextBoxColumn10.HeaderText = "数据";
|
|
|
|
|
this.dataGridViewTextBoxColumn10.MinimumWidth = 2;
|
|
|
|
|
this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
|
|
|
|
|
//
|
|
|
|
|
// dataGridViewTextBoxColumn11
|
|
|
|
|
//
|
|
|
|
|
this.dataGridViewTextBoxColumn11.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
this.dataGridViewTextBoxColumn11.FillWeight = 20F;
|
|
|
|
|
this.dataGridViewTextBoxColumn11.HeaderText = "结果";
|
|
|
|
|
this.dataGridViewTextBoxColumn11.MinimumWidth = 2;
|
|
|
|
|
this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
|
|
|
|
|
//
|
|
|
|
|
// comboBox2
|
|
|
|
|
//
|
|
|
|
|
this.comboBox2.FormattingEnabled = true;
|
|
|
|
|
this.comboBox2.Items.AddRange(new object[] {
|
|
|
|
|
"1",
|
|
|
|
|
"2",
|
|
|
|
|
"3"});
|
|
|
|
|
this.comboBox2.Location = new System.Drawing.Point(518, 127);
|
|
|
|
|
this.comboBox2.Name = "comboBox2";
|
|
|
|
|
this.comboBox2.Size = new System.Drawing.Size(40, 20);
|
|
|
|
|
this.comboBox2.TabIndex = 53;
|
|
|
|
|
//
|
|
|
|
|
// label8
|
|
|
|
|
//
|
|
|
|
|
this.label8.AutoSize = true;
|
|
|
|
|
this.label8.Location = new System.Drawing.Point(484, 131);
|
|
|
|
|
this.label8.Name = "label8";
|
|
|
|
|
this.label8.Size = new System.Drawing.Size(35, 12);
|
|
|
|
|
this.label8.TabIndex = 52;
|
|
|
|
|
this.label8.Text = "张数:";
|
|
|
|
|
//
|
|
|
|
|
// label4
|
|
|
|
|
//
|
|
|
|
|
this.label4.AutoSize = true;
|
|
|
|
|
this.label4.Location = new System.Drawing.Point(325, 131);
|
|
|
|
|
this.label4.Name = "label4";
|
|
|
|
|
this.label4.Size = new System.Drawing.Size(47, 12);
|
|
|
|
|
this.label4.TabIndex = 51;
|
|
|
|
|
this.label4.Text = "打印机:";
|
|
|
|
|
//
|
|
|
|
|
// comboBox1
|
|
|
|
|
//
|
|
|
|
|
this.comboBox1.FormattingEnabled = true;
|
|
|
|
|
this.comboBox1.Location = new System.Drawing.Point(378, 127);
|
|
|
|
|
this.comboBox1.Name = "comboBox1";
|
|
|
|
|
this.comboBox1.Size = new System.Drawing.Size(102, 20);
|
|
|
|
|
this.comboBox1.TabIndex = 50;
|
|
|
|
|
//
|
|
|
|
|
// checkBox2
|
|
|
|
|
//
|
|
|
|
|
this.checkBox2.AutoSize = true;
|
|
|
|
|
this.checkBox2.Checked = true;
|
|
|
|
|
this.checkBox2.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
|
|
|
this.checkBox2.Location = new System.Drawing.Point(486, 111);
|
|
|
|
|
this.checkBox2.Name = "checkBox2";
|
|
|
|
|
this.checkBox2.Size = new System.Drawing.Size(72, 16);
|
|
|
|
|
this.checkBox2.TabIndex = 49;
|
|
|
|
|
this.checkBox2.Text = "自动打印";
|
|
|
|
|
this.checkBox2.UseVisualStyleBackColor = true;
|
|
|
|
|
//
|
|
|
|
|
// printDocument1
|
|
|
|
|
//
|
|
|
|
|
this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage);
|
|
|
|
|
//
|
|
|
|
|
// label2
|
|
|
|
|
//
|
|
|
|
|
this.label2.BackColor = System.Drawing.Color.DarkGray;
|
|
|
|
|
this.label2.Font = new System.Drawing.Font("宋体", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
|
|
this.label2.Location = new System.Drawing.Point(372, 559);
|
|
|
|
|
this.label2.Name = "label2";
|
|
|
|
|
this.label2.Size = new System.Drawing.Size(375, 117);
|
|
|
|
|
this.label2.TabIndex = 55;
|
|
|
|
|
this.label2.Text = "等待测试";
|
|
|
|
|
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
|
|
|
//
|
|
|
|
|
// timer2
|
|
|
|
|
//
|
|
|
|
|
this.timer2.Enabled = true;
|
|
|
|
|
this.timer2.Interval = 50;
|
|
|
|
|
this.timer2.Tick += new System.EventHandler(this.timer2_Tick);
|
|
|
|
|
//
|
|
|
|
|
// menuStrip1
|
|
|
|
|
//
|
|
|
|
|
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
|
|
|
this.参考信息设置ToolStripMenuItem,
|
|
|
|
|
this.打印较准页ToolStripMenuItem,
|
|
|
|
|
this.手动打印ToolStripMenuItem,
|
|
|
|
|
this.车型设置ToolStripMenuItem});
|
|
|
|
|
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
|
|
|
|
this.menuStrip1.Name = "menuStrip1";
|
|
|
|
|
this.menuStrip1.Size = new System.Drawing.Size(759, 28);
|
|
|
|
|
this.menuStrip1.TabIndex = 57;
|
|
|
|
|
this.menuStrip1.Text = "menuStrip1";
|
|
|
|
|
//
|
|
|
|
|
// 参考信息设置ToolStripMenuItem
|
|
|
|
|
//
|
|
|
|
|
this.参考信息设置ToolStripMenuItem.BackColor = System.Drawing.SystemColors.Control;
|
|
|
|
|
this.参考信息设置ToolStripMenuItem.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
|
|
this.参考信息设置ToolStripMenuItem.Name = "参考信息设置ToolStripMenuItem";
|
|
|
|
|
this.参考信息设置ToolStripMenuItem.Size = new System.Drawing.Size(105, 24);
|
|
|
|
|
this.参考信息设置ToolStripMenuItem.Text = "参考信息设置";
|
|
|
|
|
this.参考信息设置ToolStripMenuItem.Click += new System.EventHandler(this.标定信息设置ToolStripMenuItem_Click);
|
|
|
|
|
//
|
|
|
|
|
// 打印较准页ToolStripMenuItem
|
|
|
|
|
//
|
|
|
|
|
this.打印较准页ToolStripMenuItem.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
|
|
this.打印较准页ToolStripMenuItem.Name = "打印较准页ToolStripMenuItem";
|
|
|
|
|
this.打印较准页ToolStripMenuItem.Size = new System.Drawing.Size(91, 24);
|
|
|
|
|
this.打印较准页ToolStripMenuItem.Text = "打印较准页";
|
|
|
|
|
this.打印较准页ToolStripMenuItem.Click += new System.EventHandler(this.打印较准页ToolStripMenuItem_Click);
|
|
|
|
|
//
|
|
|
|
|
// 手动打印ToolStripMenuItem
|
|
|
|
|
//
|
|
|
|
|
this.手动打印ToolStripMenuItem.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
|
|
this.手动打印ToolStripMenuItem.Name = "手动打印ToolStripMenuItem";
|
|
|
|
|
this.手动打印ToolStripMenuItem.Size = new System.Drawing.Size(77, 24);
|
|
|
|
|
this.手动打印ToolStripMenuItem.Text = "手动打印";
|
|
|
|
|
this.手动打印ToolStripMenuItem.Click += new System.EventHandler(this.手动打印ToolStripMenuItem_Click);
|
|
|
|
|
//
|
|
|
|
|
// 车型设置ToolStripMenuItem
|
|
|
|
|
//
|
|
|
|
|
this.车型设置ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
|
|
|
this.yD10ToolStripMenuItem,
|
|
|
|
|
this.yD07KToolStripMenuItem});
|
|
|
|
|
this.车型设置ToolStripMenuItem.Font = new System.Drawing.Font("Microsoft YaHei UI", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
|
|
this.车型设置ToolStripMenuItem.Name = "车型设置ToolStripMenuItem";
|
|
|
|
|
this.车型设置ToolStripMenuItem.Size = new System.Drawing.Size(77, 24);
|
|
|
|
|
this.车型设置ToolStripMenuItem.Text = "车型设置";
|
|
|
|
|
//
|
|
|
|
|
// yD10ToolStripMenuItem
|
|
|
|
|
//
|
|
|
|
|
this.yD10ToolStripMenuItem.Name = "yD10ToolStripMenuItem";
|
|
|
|
|
this.yD10ToolStripMenuItem.Size = new System.Drawing.Size(122, 24);
|
|
|
|
|
this.yD10ToolStripMenuItem.Text = "YD10";
|
|
|
|
|
this.yD10ToolStripMenuItem.Click += new System.EventHandler(this.yD10ToolStripMenuItem_Click);
|
|
|
|
|
//
|
|
|
|
|
// yD07KToolStripMenuItem
|
|
|
|
|
//
|
|
|
|
|
this.yD07KToolStripMenuItem.Name = "yD07KToolStripMenuItem";
|
|
|
|
|
this.yD07KToolStripMenuItem.Size = new System.Drawing.Size(122, 24);
|
|
|
|
|
this.yD07KToolStripMenuItem.Text = "YD07K";
|
|
|
|
|
this.yD07KToolStripMenuItem.Click += new System.EventHandler(this.yD07KToolStripMenuItem_Click);
|
|
|
|
|
//
|
|
|
|
|
// textBox1
|
|
|
|
|
//
|
|
|
|
|
this.textBox1.Location = new System.Drawing.Point(306, 28);
|
|
|
|
|
this.textBox1.Name = "textBox1";
|
|
|
|
|
this.textBox1.Size = new System.Drawing.Size(355, 21);
|
|
|
|
|
this.textBox1.TabIndex = 59;
|
|
|
|
|
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
|
|
|
|
|
//
|
|
|
|
|
// label5
|
|
|
|
|
//
|
|
|
|
|
this.label5.AutoSize = true;
|
|
|
|
|
this.label5.Location = new System.Drawing.Point(661, 35);
|
|
|
|
|
this.label5.Name = "label5";
|
|
|
|
|
this.label5.Size = new System.Drawing.Size(0, 12);
|
|
|
|
|
this.label5.TabIndex = 60;
|
|
|
|
|
//
|
|
|
|
|
// label6
|
|
|
|
|
//
|
|
|
|
|
this.label6.AutoSize = true;
|
|
|
|
|
this.label6.Location = new System.Drawing.Point(243, 61);
|
|
|
|
|
this.label6.Name = "label6";
|
|
|
|
|
this.label6.Size = new System.Drawing.Size(59, 12);
|
|
|
|
|
this.label6.TabIndex = 61;
|
|
|
|
|
this.label6.Text = "号码校验:";
|
|
|
|
|
//
|
|
|
|
|
// textBox2
|
|
|
|
|
//
|
|
|
|
|
this.textBox2.Location = new System.Drawing.Point(306, 58);
|
|
|
|
|
this.textBox2.Name = "textBox2";
|
|
|
|
|
this.textBox2.Size = new System.Drawing.Size(355, 21);
|
|
|
|
|
this.textBox2.TabIndex = 62;
|
|
|
|
|
this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
|
|
|
|
|
//
|
|
|
|
|
// checkBox3
|
|
|
|
|
//
|
|
|
|
|
this.checkBox3.AutoSize = true;
|
|
|
|
|
this.checkBox3.Checked = true;
|
|
|
|
|
this.checkBox3.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
|
|
|
this.checkBox3.Location = new System.Drawing.Point(242, 108);
|
|
|
|
|
this.checkBox3.Name = "checkBox3";
|
|
|
|
|
this.checkBox3.Size = new System.Drawing.Size(72, 16);
|
|
|
|
|
this.checkBox3.TabIndex = 63;
|
|
|
|
|
this.checkBox3.Text = "号码校验";
|
|
|
|
|
this.checkBox3.UseVisualStyleBackColor = true;
|
|
|
|
|
this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_CheckedChanged);
|
|
|
|
|
//
|
|
|
|
|
// label7
|
|
|
|
|
//
|
|
|
|
|
this.label7.AutoSize = true;
|
|
|
|
|
this.label7.Location = new System.Drawing.Point(661, 66);
|
|
|
|
|
this.label7.Name = "label7";
|
|
|
|
|
this.label7.Size = new System.Drawing.Size(0, 12);
|
|
|
|
|
this.label7.TabIndex = 64;
|
|
|
|
|
//
|
|
|
|
|
// label3
|
|
|
|
|
//
|
|
|
|
|
this.label3.Location = new System.Drawing.Point(243, 28);
|
|
|
|
|
this.label3.Name = "label3";
|
|
|
|
|
this.label3.Size = new System.Drawing.Size(59, 26);
|
|
|
|
|
this.label3.TabIndex = 65;
|
|
|
|
|
this.label3.Text = "标定信息:产前标签";
|
|
|
|
|
//
|
|
|
|
|
// textBox3
|
|
|
|
|
//
|
|
|
|
|
this.textBox3.Location = new System.Drawing.Point(306, 85);
|
|
|
|
|
this.textBox3.Name = "textBox3";
|
|
|
|
|
this.textBox3.Size = new System.Drawing.Size(355, 21);
|
|
|
|
|
this.textBox3.TabIndex = 67;
|
|
|
|
|
this.textBox3.TextChanged += new System.EventHandler(this.textBox3_TextChanged);
|
|
|
|
|
//
|
|
|
|
|
// label9
|
|
|
|
|
//
|
|
|
|
|
this.label9.AutoSize = true;
|
|
|
|
|
this.label9.Location = new System.Drawing.Point(259, 88);
|
|
|
|
|
this.label9.Name = "label9";
|
|
|
|
|
this.label9.Size = new System.Drawing.Size(23, 12);
|
|
|
|
|
this.label9.TabIndex = 66;
|
|
|
|
|
this.label9.Text = "SN:";
|
|
|
|
|
//
|
|
|
|
|
// label10
|
|
|
|
|
//
|
|
|
|
|
this.label10.AutoSize = true;
|
|
|
|
|
this.label10.Location = new System.Drawing.Point(661, 94);
|
|
|
|
|
this.label10.Name = "label10";
|
|
|
|
|
this.label10.Size = new System.Drawing.Size(0, 12);
|
|
|
|
|
this.label10.TabIndex = 68;
|
|
|
|
|
//
|
|
|
|
|
// Form1
|
|
|
|
|
//
|
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
|
|
this.ClientSize = new System.Drawing.Size(759, 688);
|
|
|
|
|
this.Controls.Add(this.label10);
|
|
|
|
|
this.Controls.Add(this.textBox3);
|
|
|
|
|
this.Controls.Add(this.label9);
|
|
|
|
|
this.Controls.Add(this.label3);
|
|
|
|
|
this.Controls.Add(this.label7);
|
|
|
|
|
this.Controls.Add(this.checkBox3);
|
|
|
|
|
this.Controls.Add(this.textBox2);
|
|
|
|
|
this.Controls.Add(this.label6);
|
|
|
|
|
this.Controls.Add(this.label5);
|
|
|
|
|
this.Controls.Add(this.textBox1);
|
|
|
|
|
this.Controls.Add(this.label2);
|
|
|
|
|
this.Controls.Add(this.comboBox2);
|
|
|
|
|
this.Controls.Add(this.label8);
|
|
|
|
|
this.Controls.Add(this.label4);
|
|
|
|
|
this.Controls.Add(this.comboBox1);
|
|
|
|
|
this.Controls.Add(this.checkBox2);
|
|
|
|
|
this.Controls.Add(this.dataGridView2);
|
|
|
|
|
this.Controls.Add(this.dataGridView1);
|
|
|
|
|
this.Controls.Add(this.txtStatus);
|
|
|
|
|
this.Controls.Add(this.btnOpen_usb);
|
|
|
|
|
this.Controls.Add(this.cmbPort);
|
|
|
|
|
this.Controls.Add(this.label1);
|
|
|
|
|
this.Controls.Add(this.menuStrip1);
|
|
|
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
|
|
|
this.Name = "Form1";
|
|
|
|
|
this.Text = "YD10上位机测试V2.1";
|
|
|
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
|
|
|
|
|
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed);
|
|
|
|
|
this.Load += new System.EventHandler(this.Form1_Load);
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
|
|
|
|
|
this.menuStrip1.ResumeLayout(false);
|
|
|
|
|
this.menuStrip1.PerformLayout();
|
|
|
|
|
this.ResumeLayout(false);
|
|
|
|
|
this.PerformLayout();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private System.Windows.Forms.Label txtStatus;
|
|
|
|
|
private System.Windows.Forms.Button btnOpen_usb;
|
|
|
|
|
private System.Windows.Forms.ComboBox cmbPort;
|
|
|
|
|
private System.Windows.Forms.Label label1;
|
|
|
|
|
private System.Windows.Forms.Timer timer1;
|
|
|
|
|
private System.Windows.Forms.DataGridView dataGridView1;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
|
|
|
|
|
private System.Windows.Forms.DataGridView dataGridView2;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
|
|
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn11;
|
|
|
|
|
private System.Windows.Forms.ComboBox comboBox2;
|
|
|
|
|
private System.Windows.Forms.Label label8;
|
|
|
|
|
private System.Windows.Forms.Label label4;
|
|
|
|
|
private System.Windows.Forms.ComboBox comboBox1;
|
|
|
|
|
private System.Windows.Forms.CheckBox checkBox2;
|
|
|
|
|
private System.Drawing.Printing.PrintDocument printDocument1;
|
|
|
|
|
private System.Windows.Forms.Label label2;
|
|
|
|
|
private System.Windows.Forms.Timer timer2;
|
|
|
|
|
private System.Windows.Forms.MenuStrip menuStrip1;
|
|
|
|
|
private System.Windows.Forms.ToolStripMenuItem 参考信息设置ToolStripMenuItem;
|
|
|
|
|
private System.Windows.Forms.ToolStripMenuItem 打印较准页ToolStripMenuItem;
|
|
|
|
|
private System.Windows.Forms.TextBox textBox1;
|
|
|
|
|
private System.Windows.Forms.Label label5;
|
|
|
|
|
private System.Windows.Forms.Label label6;
|
|
|
|
|
private System.Windows.Forms.TextBox textBox2;
|
|
|
|
|
private System.Windows.Forms.CheckBox checkBox3;
|
|
|
|
|
private System.Windows.Forms.Label label7;
|
|
|
|
|
private System.Windows.Forms.ToolStripMenuItem 手动打印ToolStripMenuItem;
|
|
|
|
|
private System.Windows.Forms.Label label3;
|
|
|
|
|
private System.Windows.Forms.ToolStripMenuItem 车型设置ToolStripMenuItem;
|
|
|
|
|
private System.Windows.Forms.ToolStripMenuItem yD10ToolStripMenuItem;
|
|
|
|
|
private System.Windows.Forms.ToolStripMenuItem yD07KToolStripMenuItem;
|
|
|
|
|
private System.Windows.Forms.TextBox textBox3;
|
|
|
|
|
private System.Windows.Forms.Label label9;
|
|
|
|
|
private System.Windows.Forms.Label label10;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|