|
|
|
@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace HighWayIot.Winform.MainForm
|
|
|
|
|
{
|
|
|
|
|
partial class MainForm
|
|
|
|
|
{
|
|
|
|
|
/// <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()
|
|
|
|
|
{
|
|
|
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
|
|
|
|
this.StartWeightButon = new System.Windows.Forms.Button();
|
|
|
|
|
this.UploadResultButton = new System.Windows.Forms.Button();
|
|
|
|
|
this.LogBox = new System.Windows.Forms.ListBox();
|
|
|
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
|
|
this.WeightResultTextBox = new System.Windows.Forms.TextBox();
|
|
|
|
|
this.WeightCountComboBox = new System.Windows.Forms.ComboBox();
|
|
|
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
|
|
|
this.RollNumberTextBox = new System.Windows.Forms.TextBox();
|
|
|
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
|
|
|
this.TestButton = new System.Windows.Forms.Button();
|
|
|
|
|
this.ReadTestButton = new System.Windows.Forms.Button();
|
|
|
|
|
this.CutTestButton = new System.Windows.Forms.Button();
|
|
|
|
|
this.WriteInTestButton = new System.Windows.Forms.Button();
|
|
|
|
|
this.groupBox1.SuspendLayout();
|
|
|
|
|
this.SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// StartWeightButon
|
|
|
|
|
//
|
|
|
|
|
this.StartWeightButon.Font = new System.Drawing.Font("宋体", 12F);
|
|
|
|
|
this.StartWeightButon.Location = new System.Drawing.Point(108, 333);
|
|
|
|
|
this.StartWeightButon.Name = "StartWeightButon";
|
|
|
|
|
this.StartWeightButon.Size = new System.Drawing.Size(93, 46);
|
|
|
|
|
this.StartWeightButon.TabIndex = 0;
|
|
|
|
|
this.StartWeightButon.Text = "开始称重";
|
|
|
|
|
this.StartWeightButon.UseVisualStyleBackColor = true;
|
|
|
|
|
//
|
|
|
|
|
// UploadResultButton
|
|
|
|
|
//
|
|
|
|
|
this.UploadResultButton.Font = new System.Drawing.Font("宋体", 12F);
|
|
|
|
|
this.UploadResultButton.Location = new System.Drawing.Point(253, 333);
|
|
|
|
|
this.UploadResultButton.Name = "UploadResultButton";
|
|
|
|
|
this.UploadResultButton.Size = new System.Drawing.Size(93, 46);
|
|
|
|
|
this.UploadResultButton.TabIndex = 1;
|
|
|
|
|
this.UploadResultButton.Text = "上传结果";
|
|
|
|
|
this.UploadResultButton.UseVisualStyleBackColor = true;
|
|
|
|
|
//
|
|
|
|
|
// LogBox
|
|
|
|
|
//
|
|
|
|
|
this.LogBox.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
|
|
this.LogBox.FormattingEnabled = true;
|
|
|
|
|
this.LogBox.ItemHeight = 12;
|
|
|
|
|
this.LogBox.Location = new System.Drawing.Point(3, 17);
|
|
|
|
|
this.LogBox.Name = "LogBox";
|
|
|
|
|
this.LogBox.Size = new System.Drawing.Size(466, 363);
|
|
|
|
|
this.LogBox.TabIndex = 2;
|
|
|
|
|
//
|
|
|
|
|
// groupBox1
|
|
|
|
|
//
|
|
|
|
|
this.groupBox1.Controls.Add(this.LogBox);
|
|
|
|
|
this.groupBox1.Location = new System.Drawing.Point(466, 12);
|
|
|
|
|
this.groupBox1.Name = "groupBox1";
|
|
|
|
|
this.groupBox1.Size = new System.Drawing.Size(472, 383);
|
|
|
|
|
this.groupBox1.TabIndex = 3;
|
|
|
|
|
this.groupBox1.TabStop = false;
|
|
|
|
|
this.groupBox1.Text = "称量结果";
|
|
|
|
|
//
|
|
|
|
|
// label1
|
|
|
|
|
//
|
|
|
|
|
this.label1.AutoSize = true;
|
|
|
|
|
this.label1.Font = new System.Drawing.Font("宋体", 12F);
|
|
|
|
|
this.label1.Location = new System.Drawing.Point(114, 292);
|
|
|
|
|
this.label1.Name = "label1";
|
|
|
|
|
this.label1.Size = new System.Drawing.Size(71, 16);
|
|
|
|
|
this.label1.TabIndex = 4;
|
|
|
|
|
this.label1.Text = "称量结果";
|
|
|
|
|
//
|
|
|
|
|
// WeightResultTextBox
|
|
|
|
|
//
|
|
|
|
|
this.WeightResultTextBox.Font = new System.Drawing.Font("宋体", 12F);
|
|
|
|
|
this.WeightResultTextBox.Location = new System.Drawing.Point(191, 288);
|
|
|
|
|
this.WeightResultTextBox.Name = "WeightResultTextBox";
|
|
|
|
|
this.WeightResultTextBox.Size = new System.Drawing.Size(145, 26);
|
|
|
|
|
this.WeightResultTextBox.TabIndex = 5;
|
|
|
|
|
//
|
|
|
|
|
// WeightCountComboBox
|
|
|
|
|
//
|
|
|
|
|
this.WeightCountComboBox.Font = new System.Drawing.Font("宋体", 12F);
|
|
|
|
|
this.WeightCountComboBox.FormattingEnabled = true;
|
|
|
|
|
this.WeightCountComboBox.Location = new System.Drawing.Point(191, 219);
|
|
|
|
|
this.WeightCountComboBox.Name = "WeightCountComboBox";
|
|
|
|
|
this.WeightCountComboBox.Size = new System.Drawing.Size(145, 24);
|
|
|
|
|
this.WeightCountComboBox.TabIndex = 6;
|
|
|
|
|
//
|
|
|
|
|
// label2
|
|
|
|
|
//
|
|
|
|
|
this.label2.AutoSize = true;
|
|
|
|
|
this.label2.Font = new System.Drawing.Font("宋体", 12F);
|
|
|
|
|
this.label2.Location = new System.Drawing.Point(114, 222);
|
|
|
|
|
this.label2.Name = "label2";
|
|
|
|
|
this.label2.Size = new System.Drawing.Size(71, 16);
|
|
|
|
|
this.label2.TabIndex = 7;
|
|
|
|
|
this.label2.Text = "称量片数";
|
|
|
|
|
//
|
|
|
|
|
// RollNumberTextBox
|
|
|
|
|
//
|
|
|
|
|
this.RollNumberTextBox.Font = new System.Drawing.Font("宋体", 12F);
|
|
|
|
|
this.RollNumberTextBox.Location = new System.Drawing.Point(132, 61);
|
|
|
|
|
this.RollNumberTextBox.Name = "RollNumberTextBox";
|
|
|
|
|
this.RollNumberTextBox.Size = new System.Drawing.Size(257, 26);
|
|
|
|
|
this.RollNumberTextBox.TabIndex = 9;
|
|
|
|
|
//
|
|
|
|
|
// label3
|
|
|
|
|
//
|
|
|
|
|
this.label3.AutoSize = true;
|
|
|
|
|
this.label3.Font = new System.Drawing.Font("宋体", 12F);
|
|
|
|
|
this.label3.Location = new System.Drawing.Point(71, 65);
|
|
|
|
|
this.label3.Name = "label3";
|
|
|
|
|
this.label3.Size = new System.Drawing.Size(55, 16);
|
|
|
|
|
this.label3.TabIndex = 8;
|
|
|
|
|
this.label3.Text = "膜卷号";
|
|
|
|
|
//
|
|
|
|
|
// TestButton
|
|
|
|
|
//
|
|
|
|
|
this.TestButton.Font = new System.Drawing.Font("宋体", 12F);
|
|
|
|
|
this.TestButton.Location = new System.Drawing.Point(9, 333);
|
|
|
|
|
this.TestButton.Name = "TestButton";
|
|
|
|
|
this.TestButton.Size = new System.Drawing.Size(93, 46);
|
|
|
|
|
this.TestButton.TabIndex = 10;
|
|
|
|
|
this.TestButton.Text = "测试按钮";
|
|
|
|
|
this.TestButton.UseVisualStyleBackColor = true;
|
|
|
|
|
this.TestButton.Click += new System.EventHandler(this.TestButton_Click);
|
|
|
|
|
//
|
|
|
|
|
// ReadTestButton
|
|
|
|
|
//
|
|
|
|
|
this.ReadTestButton.Font = new System.Drawing.Font("宋体", 12F);
|
|
|
|
|
this.ReadTestButton.Location = new System.Drawing.Point(352, 333);
|
|
|
|
|
this.ReadTestButton.Name = "ReadTestButton";
|
|
|
|
|
this.ReadTestButton.Size = new System.Drawing.Size(93, 46);
|
|
|
|
|
this.ReadTestButton.TabIndex = 11;
|
|
|
|
|
this.ReadTestButton.Text = "读取测试";
|
|
|
|
|
this.ReadTestButton.UseVisualStyleBackColor = true;
|
|
|
|
|
this.ReadTestButton.Click += new System.EventHandler(this.ReadTestButton_Click);
|
|
|
|
|
//
|
|
|
|
|
// CutTestButton
|
|
|
|
|
//
|
|
|
|
|
this.CutTestButton.Font = new System.Drawing.Font("宋体", 12F);
|
|
|
|
|
this.CutTestButton.Location = new System.Drawing.Point(352, 281);
|
|
|
|
|
this.CutTestButton.Name = "CutTestButton";
|
|
|
|
|
this.CutTestButton.Size = new System.Drawing.Size(93, 46);
|
|
|
|
|
this.CutTestButton.TabIndex = 12;
|
|
|
|
|
this.CutTestButton.Text = "剪切测试";
|
|
|
|
|
this.CutTestButton.UseVisualStyleBackColor = true;
|
|
|
|
|
this.CutTestButton.Click += new System.EventHandler(this.CutTestButton_Click);
|
|
|
|
|
//
|
|
|
|
|
// WriteInTestButton
|
|
|
|
|
//
|
|
|
|
|
this.WriteInTestButton.Font = new System.Drawing.Font("宋体", 12F);
|
|
|
|
|
this.WriteInTestButton.Location = new System.Drawing.Point(352, 229);
|
|
|
|
|
this.WriteInTestButton.Name = "WriteInTestButton";
|
|
|
|
|
this.WriteInTestButton.Size = new System.Drawing.Size(93, 46);
|
|
|
|
|
this.WriteInTestButton.TabIndex = 13;
|
|
|
|
|
this.WriteInTestButton.Text = "写入测试";
|
|
|
|
|
this.WriteInTestButton.UseVisualStyleBackColor = true;
|
|
|
|
|
this.WriteInTestButton.Click += new System.EventHandler(this.WriteInTestButton_Click);
|
|
|
|
|
//
|
|
|
|
|
// MainForm
|
|
|
|
|
//
|
|
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
|
|
this.ClientSize = new System.Drawing.Size(950, 403);
|
|
|
|
|
this.Controls.Add(this.WriteInTestButton);
|
|
|
|
|
this.Controls.Add(this.CutTestButton);
|
|
|
|
|
this.Controls.Add(this.ReadTestButton);
|
|
|
|
|
this.Controls.Add(this.TestButton);
|
|
|
|
|
this.Controls.Add(this.RollNumberTextBox);
|
|
|
|
|
this.Controls.Add(this.label3);
|
|
|
|
|
this.Controls.Add(this.label2);
|
|
|
|
|
this.Controls.Add(this.WeightCountComboBox);
|
|
|
|
|
this.Controls.Add(this.WeightResultTextBox);
|
|
|
|
|
this.Controls.Add(this.label1);
|
|
|
|
|
this.Controls.Add(this.groupBox1);
|
|
|
|
|
this.Controls.Add(this.UploadResultButton);
|
|
|
|
|
this.Controls.Add(this.StartWeightButon);
|
|
|
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
|
|
|
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
|
|
|
|
this.Name = "MainForm";
|
|
|
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
|
|
|
this.Text = "基材重量上传";
|
|
|
|
|
this.Load += new System.EventHandler(this.LoginForm_Load);
|
|
|
|
|
this.groupBox1.ResumeLayout(false);
|
|
|
|
|
this.ResumeLayout(false);
|
|
|
|
|
this.PerformLayout();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private Button StartWeightButon;
|
|
|
|
|
private Button UploadResultButton;
|
|
|
|
|
private GroupBox groupBox1;
|
|
|
|
|
private Label label1;
|
|
|
|
|
private TextBox WeightResultTextBox;
|
|
|
|
|
private ComboBox WeightCountComboBox;
|
|
|
|
|
private Label label2;
|
|
|
|
|
private TextBox RollNumberTextBox;
|
|
|
|
|
private Label label3;
|
|
|
|
|
private Button TestButton;
|
|
|
|
|
private ListBox LogBox;
|
|
|
|
|
private Button ReadTestButton;
|
|
|
|
|
private Button CutTestButton;
|
|
|
|
|
private Button WriteInTestButton;
|
|
|
|
|
}
|
|
|
|
|
}
|