五丰称屠宰重客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

442 lines
22 KiB

using System.Drawing;
using System.Threading;
namespace B3ButcherWeightClient {
partial class Main {
/// <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) {
_timer.Dispose();
_mainProcessIsRun = false;
this._manualResetEvent.Set();
Thread.Sleep(500);
if (_serialPort.IsOpen) { // 关闭串口
_serialPort.Close();
_serialPort.Dispose();
}
if (disposing && (components != null)) {
components.Dispose();
}
base.Dispose(disposing);
if (_parentForm != null) {
_parentForm.Dispose();
}
}
#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();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main));
this.lblDisplay = new System.Windows.Forms.Label();
this.dataGridView = new System.Windows.Forms.DataGridView();
this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Sequence = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.JdColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DataTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.LevelID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.subColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Weight = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.DeleteDetail = new System.Windows.Forms.DataGridViewButtonColumn();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.button1 = new System.Windows.Forms.Button();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.txtBatch = new System.Windows.Forms.TextBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.tbxSequence = new System.Windows.Forms.TextBox();
this.subWeightTextBox = new System.Windows.Forms.TextBox();
this.jdTextBox = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.lblNumber = new System.Windows.Forms.Label();
this.saveButton = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this._serialPort = new System.IO.Ports.SerialPort(this.components);
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.SuspendLayout();
//
// lblDisplay
//
this.lblDisplay.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblDisplay.BackColor = System.Drawing.Color.Black;
this.lblDisplay.Font = new System.Drawing.Font("宋体", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblDisplay.ForeColor = System.Drawing.Color.LimeGreen;
this.lblDisplay.Location = new System.Drawing.Point(3, 3);
this.lblDisplay.Name = "lblDisplay";
this.lblDisplay.Size = new System.Drawing.Size(410, 64);
this.lblDisplay.TabIndex = 3;
this.lblDisplay.Text = "display";
this.lblDisplay.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// dataGridView
//
this.dataGridView.AllowUserToAddRows = false;
this.dataGridView.AllowUserToDeleteRows = false;
this.dataGridView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.dataGridView.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ID,
this.Sequence,
this.JdColumn,
this.,
this.DataTime,
this.LevelID,
this.subColumn,
this.Weight,
this.DeleteDetail});
this.dataGridView.Location = new System.Drawing.Point(3, 70);
this.dataGridView.Name = "dataGridView";
this.dataGridView.ReadOnly = true;
this.dataGridView.RowTemplate.Height = 23;
this.dataGridView.Size = new System.Drawing.Size(716, 675);
this.dataGridView.TabIndex = 4;
this.dataGridView.TabStop = false;
this.dataGridView.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridViewCellContentClick);
this.dataGridView.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dataGridView_CellMouseDoubleClick);
//
// ID
//
this.ID.DataPropertyName = "ID";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
this.ID.DefaultCellStyle = dataGridViewCellStyle2;
this.ID.FillWeight = 0.8F;
this.ID.HeaderText = "ID";
this.ID.Name = "ID";
this.ID.ReadOnly = true;
this.ID.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// Sequence
//
this.Sequence.DataPropertyName = "Sequence";
this.Sequence.FillWeight = 0.7901235F;
this.Sequence.HeaderText = "顺序号";
this.Sequence.Name = "Sequence";
this.Sequence.ReadOnly = true;
//
// JdColumn
//
this.JdColumn.DataPropertyName = "PhaseCode";
this.JdColumn.FillWeight = 0.7901235F;
this.JdColumn.HeaderText = "阶段号";
this.JdColumn.Name = "JdColumn";
this.JdColumn.ReadOnly = true;
this.JdColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// 批号
//
this..DataPropertyName = "GoodsBatchName";
this..FillWeight = 0.7901235F;
this..HeaderText = "批号";
this..Name = "批号";
this..ReadOnly = true;
//
// DataTime
//
this.DataTime.DataPropertyName = "DateTime";
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle3.Format = "yyyy-MM-dd HH:mm:ss";
this.DataTime.DefaultCellStyle = dataGridViewCellStyle3;
this.DataTime.FillWeight = 0.7901235F;
this.DataTime.HeaderText = "时间";
this.DataTime.Name = "DataTime";
this.DataTime.ReadOnly = true;
this.DataTime.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// LevelID
//
this.LevelID.DataPropertyName = "Livestock_Name";
this.LevelID.FillWeight = 0.7901235F;
this.LevelID.HeaderText = "级别";
this.LevelID.Name = "LevelID";
this.LevelID.ReadOnly = true;
this.LevelID.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.LevelID.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// subColumn
//
this.subColumn.DataPropertyName = "SubWeight";
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle4.Format = "0.00";
this.subColumn.DefaultCellStyle = dataGridViewCellStyle4;
this.subColumn.FillWeight = 0.7901235F;
this.subColumn.HeaderText = "扣重";
this.subColumn.MinimumWidth = 50;
this.subColumn.Name = "subColumn";
this.subColumn.ReadOnly = true;
this.subColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// Weight
//
this.Weight.DataPropertyName = "Weight";
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
dataGridViewCellStyle5.Format = "0.00";
this.Weight.DefaultCellStyle = dataGridViewCellStyle5;
this.Weight.FillWeight = 1F;
this.Weight.HeaderText = "重量";
this.Weight.Name = "Weight";
this.Weight.ReadOnly = true;
this.Weight.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
//
// DeleteDetail
//
this.DeleteDetail.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
this.DeleteDetail.FillWeight = 1F;
this.DeleteDetail.HeaderText = "删除";
this.DeleteDetail.Name = "DeleteDetail";
this.DeleteDetail.ReadOnly = true;
this.DeleteDetail.Text = "删除";
this.DeleteDetail.UseColumnTextForButtonValue = true;
this.DeleteDetail.Width = 35;
//
// splitContainer1
//
this.splitContainer1.BackColor = System.Drawing.Color.LightGray;
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.BackColor = System.Drawing.Color.White;
this.splitContainer1.Panel1.Controls.Add(this.button1);
this.splitContainer1.Panel1.Controls.Add(this.lblDisplay);
this.splitContainer1.Panel1.Controls.Add(this.dataGridView);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.BackColor = System.Drawing.Color.White;
this.splitContainer1.Panel2.Controls.Add(this.pictureBox1);
this.splitContainer1.Panel2.Controls.Add(this.txtBatch);
this.splitContainer1.Panel2.Controls.Add(this.pictureBox2);
this.splitContainer1.Panel2.Controls.Add(this.tbxSequence);
this.splitContainer1.Panel2.Controls.Add(this.subWeightTextBox);
this.splitContainer1.Panel2.Controls.Add(this.jdTextBox);
this.splitContainer1.Panel2.Controls.Add(this.label2);
this.splitContainer1.Panel2.Controls.Add(this.label3);
this.splitContainer1.Panel2.Controls.Add(this.label1);
this.splitContainer1.Panel2.Controls.Add(this.lblNumber);
this.splitContainer1.Panel2.Controls.Add(this.saveButton);
this.splitContainer1.Panel2.Controls.Add(this.panel1);
this.splitContainer1.Size = new System.Drawing.Size(1387, 748);
this.splitContainer1.SplitterDistance = 722;
this.splitContainer1.TabIndex = 6;
//
// button1
//
this.button1.Font = new System.Drawing.Font("宋体", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(520, 3);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(167, 58);
this.button1.TabIndex = 5;
this.button1.Text = "查询";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(741, 8);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(34, 29);
this.pictureBox1.TabIndex = 18;
this.pictureBox1.TabStop = false;
this.pictureBox1.Visible = false;
this.pictureBox1.Click += new System.EventHandler(this.pictureBox2_Click);
//
// txtBatch
//
this.txtBatch.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBatch.Location = new System.Drawing.Point(262, 69);
this.txtBatch.Name = "txtBatch";
this.txtBatch.Size = new System.Drawing.Size(119, 29);
this.txtBatch.TabIndex = 11;
//
// pictureBox2
//
this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
this.pictureBox2.Location = new System.Drawing.Point(654, 3);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(34, 29);
this.pictureBox2.TabIndex = 18;
this.pictureBox2.TabStop = false;
this.pictureBox2.Visible = false;
this.pictureBox2.Click += new System.EventHandler(this.pictureBox2_Click);
//
// tbxSequence
//
this.tbxSequence.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.tbxSequence.Location = new System.Drawing.Point(79, 70);
this.tbxSequence.Name = "tbxSequence";
this.tbxSequence.ReadOnly = true;
this.tbxSequence.Size = new System.Drawing.Size(122, 29);
this.tbxSequence.TabIndex = 11;
//
// subWeightTextBox
//
this.subWeightTextBox.Font = new System.Drawing.Font("宋体", 42F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.subWeightTextBox.Location = new System.Drawing.Point(259, 8);
this.subWeightTextBox.Multiline = true;
this.subWeightTextBox.Name = "subWeightTextBox";
this.subWeightTextBox.Size = new System.Drawing.Size(122, 43);
this.subWeightTextBox.TabIndex = 8;
this.subWeightTextBox.Visible = false;
//
// jdTextBox
//
this.jdTextBox.Font = new System.Drawing.Font("宋体", 42F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.jdTextBox.Location = new System.Drawing.Point(79, 8);
this.jdTextBox.Multiline = true;
this.jdTextBox.Name = "jdTextBox";
this.jdTextBox.Size = new System.Drawing.Size(122, 43);
this.jdTextBox.TabIndex = 8;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(207, 9);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(59, 20);
this.label2.TabIndex = 12;
this.label2.Text = "扣重:";
this.label2.Visible = false;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(209, 72);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(59, 20);
this.label3.TabIndex = 12;
this.label3.Text = "批号:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(6, 18);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(79, 20);
this.label1.TabIndex = 12;
this.label1.Text = "标识号:";
//
// lblNumber
//
this.lblNumber.AutoSize = true;
this.lblNumber.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNumber.Location = new System.Drawing.Point(6, 72);
this.lblNumber.Name = "lblNumber";
this.lblNumber.Size = new System.Drawing.Size(79, 20);
this.lblNumber.TabIndex = 12;
this.lblNumber.Text = "顺序号:";
//
// saveButton
//
this.saveButton.Font = new System.Drawing.Font("宋体", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.saveButton.Location = new System.Drawing.Point(402, 3);
this.saveButton.Name = "saveButton";
this.saveButton.Size = new System.Drawing.Size(167, 58);
this.saveButton.TabIndex = 7;
this.saveButton.Text = "添 加";
this.saveButton.UseVisualStyleBackColor = true;
this.saveButton.Click += new System.EventHandler(this.saveButton_Click);
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Location = new System.Drawing.Point(3, 105);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(655, 640);
this.panel1.TabIndex = 6;
//
// Main
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1387, 748);
this.Controls.Add(this.splitContainer1);
this.Name = "Main";
this.Text = "青花瓷称重客户端";
this.Load += new System.EventHandler(this.Main_Load);
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
this.splitContainer1.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label lblDisplay;
private System.Windows.Forms.DataGridView dataGridView;
private System.Windows.Forms.SplitContainer splitContainer1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button saveButton;
private System.Windows.Forms.TextBox jdTextBox;
private System.Windows.Forms.TextBox tbxSequence;
private System.Windows.Forms.Label lblNumber;
private System.Windows.Forms.Label label1;
private System.IO.Ports.SerialPort _serialPort;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox subWeightTextBox;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.DataGridViewTextBoxColumn ID;
private System.Windows.Forms.DataGridViewTextBoxColumn Sequence;
private System.Windows.Forms.DataGridViewTextBoxColumn JdColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn ;
private System.Windows.Forms.DataGridViewTextBoxColumn DataTime;
private System.Windows.Forms.DataGridViewTextBoxColumn LevelID;
private System.Windows.Forms.DataGridViewTextBoxColumn subColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn Weight;
private System.Windows.Forms.DataGridViewButtonColumn DeleteDetail;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.TextBox txtBatch;
}
}