更改大部分页面,更改各个扫码逻辑

This commit is contained in:
bnala committed 2025-03-24 23:35:51 +08:00
1 parent 2bd24f5316
commit 1670395816
34 files changed
+2420 -1425

No files matched your search

+382
View File
@@ -0,0 +1,382 @@
using System;
using System.Windows.Forms;
using WindowsFormsApp1.server;
namespace WindowsFormsApp1
{
partial class ScanForm_DZ
{
/// <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();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.button3 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.确认 = new System.Windows.Forms.Button();
this.取消 = new System.Windows.Forms.Button();
this.端子2结果 = new System.Windows.Forms.Label();
this.端子3结果 = new System.Windows.Forms.Label();
this.端子1 = new System.Windows.Forms.Label();
this.端子2 = new System.Windows.Forms.Label();
this.端子3 = new System.Windows.Forms.Label();
this.端子1结果 = new System.Windows.Forms.Label();
this.请扫描条码 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.端子1校验 = new System.Windows.Forms.Label();
this.端子2校验 = new System.Windows.Forms.Label();
this.端子3校验 = new System.Windows.Forms.Label();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.groupBox1.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.tableLayoutPanel1);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.groupBox1.Size = new System.Drawing.Size(1647, 704);
this.groupBox1.TabIndex = 5;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "端子扫码";
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 9;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 5F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 5F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 15F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 10F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 5F));
this.tableLayoutPanel1.Controls.Add(this.button3, 7, 4);
this.tableLayoutPanel1.Controls.Add(this.button2, 7, 3);
this.tableLayoutPanel1.Controls.Add(this.button1, 7, 2);
this.tableLayoutPanel1.Controls.Add(this.确认, 1, 6);
this.tableLayoutPanel1.Controls.Add(this.取消, 6, 6);
this.tableLayoutPanel1.Controls.Add(this.端子2结果, 6, 3);
this.tableLayoutPanel1.Controls.Add(this.端子3结果, 6, 4);
this.tableLayoutPanel1.Controls.Add(this.端子1, 3, 2);
this.tableLayoutPanel1.Controls.Add(this.端子2, 3, 3);
this.tableLayoutPanel1.Controls.Add(this.端子3, 3, 4);
this.tableLayoutPanel1.Controls.Add(this.端子1结果, 6, 2);
this.tableLayoutPanel1.Controls.Add(this.请扫描条码, 2, 1);
this.tableLayoutPanel1.Controls.Add(this.label6, 1, 2);
this.tableLayoutPanel1.Controls.Add(this.label7, 1, 3);
this.tableLayoutPanel1.Controls.Add(this.label8, 1, 4);
this.tableLayoutPanel1.Controls.Add(this.端子1校验, 5, 2);
this.tableLayoutPanel1.Controls.Add(this.端子2校验, 5, 3);
this.tableLayoutPanel1.Controls.Add(this.端子3校验, 5, 4);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(6, 37);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 8;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 5F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 17F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 17F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 17F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 17F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 5F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 17F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 5F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1635, 662);
this.tableLayoutPanel1.TabIndex = 0;
//
// button3
//
this.button3.Dock = System.Windows.Forms.DockStyle.Fill;
this.button3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button3.Location = new System.Drawing.Point(1390, 372);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(157, 106);
this.button3.TabIndex = 14;
this.button3.Text = "清空条码";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button2
//
this.button2.Dock = System.Windows.Forms.DockStyle.Fill;
this.button2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button2.Location = new System.Drawing.Point(1390, 260);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(157, 106);
this.button2.TabIndex = 13;
this.button2.Text = "清空条码";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click_1);
//
// button1
//
this.button1.Dock = System.Windows.Forms.DockStyle.Fill;
this.button1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(1390, 148);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(157, 106);
this.button1.TabIndex = 12;
this.button1.Text = "清空条码";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click_1);
//
// 确认
//
this.确认.Dock = System.Windows.Forms.DockStyle.Fill;
this.确认.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.确认.Location = new System.Drawing.Point(84, 517);
this.确认.Name = "确认";
this.确认.Size = new System.Drawing.Size(321, 106);
this.确认.TabIndex = 2;
this.确认.Text = "确认";
this.确认.UseVisualStyleBackColor = true;
this.确认.Click += new System.EventHandler(this.button1_Click);
//
// 取消
//
this.tableLayoutPanel1.SetColumnSpan(this.取消, 2);
this.取消.Dock = System.Windows.Forms.DockStyle.Fill;
this.取消.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.取消.Location = new System.Drawing.Point(1227, 517);
this.取消.Name = "取消";
this.取消.Size = new System.Drawing.Size(320, 106);
this.取消.TabIndex = 3;
this.取消.Text = "取消";
this.取消.UseVisualStyleBackColor = true;
this.取消.Click += new System.EventHandler(this.button2_Click);
//
// 端子2结果
//
this.端子2结果.Anchor = System.Windows.Forms.AnchorStyles.None;
this.端子2结果.AutoSize = true;
this.端子2结果.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.端子2结果.Location = new System.Drawing.Point(1274, 292);
this.端子2结果.Name = "端子2结果";
this.端子2结果.Size = new System.Drawing.Size(62, 42);
this.端子2结果.TabIndex = 7;
this.端子2结果.Text = "NG";
//
// 端子3结果
//
this.端子3结果.Anchor = System.Windows.Forms.AnchorStyles.None;
this.端子3结果.AutoSize = true;
this.端子3结果.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.端子3结果.Location = new System.Drawing.Point(1274, 404);
this.端子3结果.Name = "端子3结果";
this.端子3结果.Size = new System.Drawing.Size(62, 42);
this.端子3结果.TabIndex = 8;
this.端子3结果.Text = "OK";
//
// 端子1
//
this.端子1.Anchor = System.Windows.Forms.AnchorStyles.None;
this.端子1.AutoSize = true;
this.tableLayoutPanel1.SetColumnSpan(this.端子1, 2);
this.端子1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.端子1.Location = new System.Drawing.Point(645, 180);
this.端子1.Name = "端子1";
this.端子1.Size = new System.Drawing.Size(260, 42);
this.端子1.TabIndex = 1;
this.端子1.Text = "12112312312";
//
// 端子2
//
this.端子2.Anchor = System.Windows.Forms.AnchorStyles.None;
this.端子2.AutoSize = true;
this.tableLayoutPanel1.SetColumnSpan(this.端子2, 2);
this.端子2.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.端子2.Location = new System.Drawing.Point(645, 292);
this.端子2.Name = "端子2";
this.端子2.Size = new System.Drawing.Size(260, 42);
this.端子2.TabIndex = 6;
this.端子2.Text = "12112312312";
//
// 端子3
//
this.端子3.Anchor = System.Windows.Forms.AnchorStyles.None;
this.端子3.AutoSize = true;
this.tableLayoutPanel1.SetColumnSpan(this.端子3, 2);
this.端子3.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.端子3.Location = new System.Drawing.Point(645, 404);
this.端子3.Name = "端子3";
this.端子3.Size = new System.Drawing.Size(260, 42);
this.端子3.TabIndex = 5;
this.端子3.Text = "12112312312";
//
// 端子1结果
//
this.端子1结果.Anchor = System.Windows.Forms.AnchorStyles.None;
this.端子1结果.AutoSize = true;
this.端子1结果.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.端子1结果.Location = new System.Drawing.Point(1274, 180);
this.端子1结果.Name = "端子1结果";
this.端子1结果.Size = new System.Drawing.Size(62, 42);
this.端子1结果.TabIndex = 4;
this.端子1结果.Text = "OK";
//
// 请扫描条码
//
this.请扫描条码.Anchor = System.Windows.Forms.AnchorStyles.None;
this.请扫描条码.AutoSize = true;
this.tableLayoutPanel1.SetColumnSpan(this.请扫描条码, 3);
this.请扫描条码.Font = new System.Drawing.Font("宋体", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.请扫描条码.ForeColor = System.Drawing.Color.Red;
this.请扫描条码.Location = new System.Drawing.Point(508, 61);
this.请扫描条码.Name = "请扫描条码";
this.请扫描条码.Size = new System.Drawing.Size(452, 56);
this.请扫描条码.TabIndex = 0;
this.请扫描条码.Text = "请扫描端子条码:";
//
// label6
//
this.label6.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.Location = new System.Drawing.Point(160, 180);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(169, 42);
this.label6.TabIndex = 9;
this.label6.Text = "端子1:";
//
// label7
//
this.label7.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.Location = new System.Drawing.Point(160, 292);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(169, 42);
this.label7.TabIndex = 10;
this.label7.Text = "端子2:";
//
// label8
//
this.label8.Anchor = System.Windows.Forms.AnchorStyles.None;
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.Location = new System.Drawing.Point(160, 404);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(169, 42);
this.label8.TabIndex = 11;
this.label8.Text = "端子3:";
//
// 端子1校验
//
this.端子1校验.Anchor = System.Windows.Forms.AnchorStyles.None;
this.端子1校验.AutoSize = true;
this.端子1校验.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.端子1校验.Location = new System.Drawing.Point(1111, 180);
this.端子1校验.Name = "端子1校验";
this.端子1校验.Size = new System.Drawing.Size(62, 42);
this.端子1校验.TabIndex = 15;
this.端子1校验.Text = "OK";
//
// 端子2校验
//
this.端子2校验.Anchor = System.Windows.Forms.AnchorStyles.None;
this.端子2校验.AutoSize = true;
this.端子2校验.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.端子2校验.Location = new System.Drawing.Point(1111, 292);
this.端子2校验.Name = "端子2校验";
this.端子2校验.Size = new System.Drawing.Size(62, 42);
this.端子2校验.TabIndex = 16;
this.端子2校验.Text = "NG";
//
// 端子3校验
//
this.端子3校验.Anchor = System.Windows.Forms.AnchorStyles.None;
this.端子3校验.AutoSize = true;
this.端子3校验.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.端子3校验.Location = new System.Drawing.Point(1111, 404);
this.端子3校验.Name = "端子3校验";
this.端子3校验.Size = new System.Drawing.Size(62, 42);
this.端子3校验.TabIndex = 17;
this.端子3校验.Text = "OK";
//
// timer1
//
this.timer1.Enabled = true;
this.timer1.Interval = 800;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// ScanForm_DZ
//
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1647, 704);
this.Controls.Add(this.groupBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "ScanForm_DZ";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "扫码界面";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ScanForm_FormClosing);
this.groupBox1.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.ResumeLayout(false);
}
private void ScanForm_FormClosing(object sender, FormClosingEventArgs e)
{
FormHelp.RemoveAllEventHandlers(Init.ScanPort, "DataReceived");
}
#endregion
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Label 请扫描条码;
private System.Windows.Forms.Label 端子1;
private System.Windows.Forms.Button 确认;
private System.Windows.Forms.Button 取消;
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Label 端子2结果;
private System.Windows.Forms.Label 端子3结果;
private System.Windows.Forms.Label 端子2;
private System.Windows.Forms.Label 端子3;
private System.Windows.Forms.Label 端子1结果;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label 端子1校验;
private System.Windows.Forms.Label 端子2校验;
private System.Windows.Forms.Label 端子3校验;
}
}