|
|
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.DmoID = 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.button3 = new System.Windows.Forms.Button();
|
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
|
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
|
|
this.setButton = new System.Windows.Forms.Button();
|
|
|
this.textBoxEndTime = new System.Windows.Forms.TextBox();
|
|
|
this.button2 = new System.Windows.Forms.Button();
|
|
|
this.pictureBox2 = new System.Windows.Forms.PictureBox();
|
|
|
this.textBoxBeginTime = new System.Windows.Forms.TextBox();
|
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
|
this.label6 = new System.Windows.Forms.Label();
|
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
|
this.jdTextBox = new System.Windows.Forms.TextBox();
|
|
|
this.batchComboBox = new System.Windows.Forms.ComboBox();
|
|
|
this.saveButton = new System.Windows.Forms.Button();
|
|
|
this.tbxSequence = new System.Windows.Forms.TextBox();
|
|
|
this.lblNumber = new System.Windows.Forms.Label();
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
|
this.numberTextBox = new System.Windows.Forms.TextBox();
|
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
|
this.subWeightTextBox = new System.Windows.Forms.TextBox();
|
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
|
|
this.panel1 = new System.Windows.Forms.Panel();
|
|
|
this.monthCalendar = new System.Windows.Forms.MonthCalendar();
|
|
|
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();
|
|
|
this.groupBox2.SuspendLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
|
|
|
this.groupBox1.SuspendLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
|
|
this.panel1.SuspendLayout();
|
|
|
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, 0);
|
|
|
this.lblDisplay.Name = "lblDisplay";
|
|
|
this.lblDisplay.Size = new System.Drawing.Size(291, 64);
|
|
|
this.lblDisplay.TabIndex = 3;
|
|
|
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.DmoID,
|
|
|
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(583, 695);
|
|
|
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;
|
|
|
//
|
|
|
// DmoID
|
|
|
//
|
|
|
this.DmoID.DataPropertyName = "DmoID";
|
|
|
this.DmoID.HeaderText = ".";
|
|
|
this.DmoID.Name = "DmoID";
|
|
|
this.DmoID.ReadOnly = true;
|
|
|
this.DmoID.Visible = false;
|
|
|
//
|
|
|
// 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.button3);
|
|
|
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.groupBox2);
|
|
|
this.splitContainer1.Panel2.Controls.Add(this.groupBox1);
|
|
|
this.splitContainer1.Panel2.Controls.Add(this.pictureBox1);
|
|
|
this.splitContainer1.Panel2.Controls.Add(this.panel1);
|
|
|
this.splitContainer1.Size = new System.Drawing.Size(1184, 768);
|
|
|
this.splitContainer1.SplitterDistance = 589;
|
|
|
this.splitContainer1.TabIndex = 6;
|
|
|
//
|
|
|
// button3
|
|
|
//
|
|
|
this.button3.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.button3.Location = new System.Drawing.Point(446, 5);
|
|
|
this.button3.Name = "button3";
|
|
|
this.button3.Size = new System.Drawing.Size(140, 58);
|
|
|
this.button3.TabIndex = 22;
|
|
|
this.button3.Text = "退 出";
|
|
|
this.button3.UseVisualStyleBackColor = true;
|
|
|
this.button3.Click += new System.EventHandler(this.button3_Click);
|
|
|
//
|
|
|
// button1
|
|
|
//
|
|
|
this.button1.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.button1.Location = new System.Drawing.Point(300, 3);
|
|
|
this.button1.Name = "button1";
|
|
|
this.button1.Size = new System.Drawing.Size(140, 58);
|
|
|
this.button1.TabIndex = 5;
|
|
|
this.button1.Text = "查询";
|
|
|
this.button1.UseVisualStyleBackColor = true;
|
|
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
|
|
//
|
|
|
// groupBox2
|
|
|
//
|
|
|
this.groupBox2.Controls.Add(this.setButton);
|
|
|
this.groupBox2.Controls.Add(this.textBoxEndTime);
|
|
|
this.groupBox2.Controls.Add(this.button2);
|
|
|
this.groupBox2.Controls.Add(this.pictureBox2);
|
|
|
this.groupBox2.Controls.Add(this.textBoxBeginTime);
|
|
|
this.groupBox2.Controls.Add(this.label5);
|
|
|
this.groupBox2.Controls.Add(this.label6);
|
|
|
this.groupBox2.Location = new System.Drawing.Point(3, 105);
|
|
|
this.groupBox2.Name = "groupBox2";
|
|
|
this.groupBox2.Size = new System.Drawing.Size(585, 97);
|
|
|
this.groupBox2.TabIndex = 0;
|
|
|
this.groupBox2.TabStop = false;
|
|
|
this.groupBox2.Text = "创建单据";
|
|
|
//
|
|
|
// setButton
|
|
|
//
|
|
|
this.setButton.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.setButton.Location = new System.Drawing.Point(425, 13);
|
|
|
this.setButton.Name = "setButton";
|
|
|
this.setButton.Size = new System.Drawing.Size(154, 37);
|
|
|
this.setButton.TabIndex = 19;
|
|
|
this.setButton.Text = "设置单据默认值";
|
|
|
this.setButton.UseVisualStyleBackColor = true;
|
|
|
this.setButton.Click += new System.EventHandler(this.setButton_Click);
|
|
|
//
|
|
|
// textBoxEndTime
|
|
|
//
|
|
|
this.textBoxEndTime.Font = new System.Drawing.Font("宋体", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.textBoxEndTime.Location = new System.Drawing.Point(275, 54);
|
|
|
this.textBoxEndTime.MaxLength = 20;
|
|
|
this.textBoxEndTime.Multiline = true;
|
|
|
this.textBoxEndTime.Name = "textBoxEndTime";
|
|
|
this.textBoxEndTime.Size = new System.Drawing.Size(124, 30);
|
|
|
this.textBoxEndTime.TabIndex = 13;
|
|
|
this.textBoxEndTime.TabStop = false;
|
|
|
this.textBoxEndTime.DoubleClick += new System.EventHandler(this.textBoxEndTime_DoubleClick);
|
|
|
//
|
|
|
// button2
|
|
|
//
|
|
|
this.button2.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.button2.Location = new System.Drawing.Point(425, 54);
|
|
|
this.button2.Name = "button2";
|
|
|
this.button2.Size = new System.Drawing.Size(154, 37);
|
|
|
this.button2.TabIndex = 21;
|
|
|
this.button2.Text = "创建白条领料单";
|
|
|
this.button2.UseVisualStyleBackColor = true;
|
|
|
this.button2.Click += new System.EventHandler(this.button2_Click);
|
|
|
//
|
|
|
// pictureBox2
|
|
|
//
|
|
|
this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
|
|
|
this.pictureBox2.Location = new System.Drawing.Point(10, 20);
|
|
|
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);
|
|
|
//
|
|
|
// textBoxBeginTime
|
|
|
//
|
|
|
this.textBoxBeginTime.Font = new System.Drawing.Font("宋体", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.textBoxBeginTime.Location = new System.Drawing.Point(110, 53);
|
|
|
this.textBoxBeginTime.MaxLength = 20;
|
|
|
this.textBoxBeginTime.Multiline = true;
|
|
|
this.textBoxBeginTime.Name = "textBoxBeginTime";
|
|
|
this.textBoxBeginTime.Size = new System.Drawing.Size(124, 30);
|
|
|
this.textBoxBeginTime.TabIndex = 14;
|
|
|
this.textBoxBeginTime.TabStop = false;
|
|
|
this.textBoxBeginTime.DoubleClick += new System.EventHandler(this.textBoxBeginTime_DoubleClick);
|
|
|
//
|
|
|
// label5
|
|
|
//
|
|
|
this.label5.AutoSize = true;
|
|
|
this.label5.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.label5.Location = new System.Drawing.Point(240, 62);
|
|
|
this.label5.Name = "label5";
|
|
|
this.label5.Size = new System.Drawing.Size(29, 20);
|
|
|
this.label5.TabIndex = 11;
|
|
|
this.label5.Text = "->";
|
|
|
//
|
|
|
// label6
|
|
|
//
|
|
|
this.label6.AutoSize = true;
|
|
|
this.label6.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.label6.Location = new System.Drawing.Point(9, 64);
|
|
|
this.label6.Name = "label6";
|
|
|
this.label6.Size = new System.Drawing.Size(95, 19);
|
|
|
this.label6.TabIndex = 12;
|
|
|
this.label6.Text = "记录范围:";
|
|
|
//
|
|
|
// groupBox1
|
|
|
//
|
|
|
this.groupBox1.Controls.Add(this.jdTextBox);
|
|
|
this.groupBox1.Controls.Add(this.batchComboBox);
|
|
|
this.groupBox1.Controls.Add(this.saveButton);
|
|
|
this.groupBox1.Controls.Add(this.tbxSequence);
|
|
|
this.groupBox1.Controls.Add(this.lblNumber);
|
|
|
this.groupBox1.Controls.Add(this.label1);
|
|
|
this.groupBox1.Controls.Add(this.label3);
|
|
|
this.groupBox1.Controls.Add(this.numberTextBox);
|
|
|
this.groupBox1.Controls.Add(this.label2);
|
|
|
this.groupBox1.Controls.Add(this.subWeightTextBox);
|
|
|
this.groupBox1.Controls.Add(this.label4);
|
|
|
this.groupBox1.Location = new System.Drawing.Point(3, 6);
|
|
|
this.groupBox1.Name = "groupBox1";
|
|
|
this.groupBox1.Size = new System.Drawing.Size(585, 93);
|
|
|
this.groupBox1.TabIndex = 0;
|
|
|
this.groupBox1.TabStop = false;
|
|
|
this.groupBox1.Text = "称重";
|
|
|
//
|
|
|
// jdTextBox
|
|
|
//
|
|
|
this.jdTextBox.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.jdTextBox.Location = new System.Drawing.Point(81, 12);
|
|
|
this.jdTextBox.Multiline = true;
|
|
|
this.jdTextBox.Name = "jdTextBox";
|
|
|
this.jdTextBox.Size = new System.Drawing.Size(129, 30);
|
|
|
this.jdTextBox.TabIndex = 8;
|
|
|
//
|
|
|
// batchComboBox
|
|
|
//
|
|
|
this.batchComboBox.AllowDrop = true;
|
|
|
this.batchComboBox.DropDownHeight = 120;
|
|
|
this.batchComboBox.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.batchComboBox.FormattingEnabled = true;
|
|
|
this.batchComboBox.IntegralHeight = false;
|
|
|
this.batchComboBox.Location = new System.Drawing.Point(81, 55);
|
|
|
this.batchComboBox.Name = "batchComboBox";
|
|
|
this.batchComboBox.Size = new System.Drawing.Size(129, 24);
|
|
|
this.batchComboBox.TabIndex = 20;
|
|
|
this.batchComboBox.TextUpdate += new System.EventHandler(this.batchComboBox_TextUpdate);
|
|
|
//
|
|
|
// saveButton
|
|
|
//
|
|
|
this.saveButton.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.saveButton.Location = new System.Drawing.Point(425, 49);
|
|
|
this.saveButton.Name = "saveButton";
|
|
|
this.saveButton.Size = new System.Drawing.Size(154, 37);
|
|
|
this.saveButton.TabIndex = 7;
|
|
|
this.saveButton.Text = "读 入";
|
|
|
this.saveButton.UseVisualStyleBackColor = true;
|
|
|
this.saveButton.Click += new System.EventHandler(this.saveButton_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(466, 12);
|
|
|
this.tbxSequence.Name = "tbxSequence";
|
|
|
this.tbxSequence.ReadOnly = true;
|
|
|
this.tbxSequence.Size = new System.Drawing.Size(110, 29);
|
|
|
this.tbxSequence.TabIndex = 11;
|
|
|
//
|
|
|
// 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(381, 17);
|
|
|
this.lblNumber.Name = "lblNumber";
|
|
|
this.lblNumber.Size = new System.Drawing.Size(79, 20);
|
|
|
this.lblNumber.TabIndex = 12;
|
|
|
this.lblNumber.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, 22);
|
|
|
this.label1.Name = "label1";
|
|
|
this.label1.Size = new System.Drawing.Size(79, 20);
|
|
|
this.label1.TabIndex = 12;
|
|
|
this.label1.Text = "标识号:";
|
|
|
//
|
|
|
// 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(6, 59);
|
|
|
this.label3.Name = "label3";
|
|
|
this.label3.Size = new System.Drawing.Size(59, 20);
|
|
|
this.label3.TabIndex = 12;
|
|
|
this.label3.Text = "批号:";
|
|
|
//
|
|
|
// numberTextBox
|
|
|
//
|
|
|
this.numberTextBox.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.numberTextBox.Location = new System.Drawing.Point(282, 49);
|
|
|
this.numberTextBox.Multiline = true;
|
|
|
this.numberTextBox.Name = "numberTextBox";
|
|
|
this.numberTextBox.Size = new System.Drawing.Size(87, 30);
|
|
|
this.numberTextBox.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(216, 22);
|
|
|
this.label2.Name = "label2";
|
|
|
this.label2.Size = new System.Drawing.Size(59, 20);
|
|
|
this.label2.TabIndex = 12;
|
|
|
this.label2.Text = "扣重:";
|
|
|
//
|
|
|
// subWeightTextBox
|
|
|
//
|
|
|
this.subWeightTextBox.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.subWeightTextBox.Location = new System.Drawing.Point(282, 12);
|
|
|
this.subWeightTextBox.Multiline = true;
|
|
|
this.subWeightTextBox.Name = "subWeightTextBox";
|
|
|
this.subWeightTextBox.Size = new System.Drawing.Size(87, 30);
|
|
|
this.subWeightTextBox.TabIndex = 8;
|
|
|
//
|
|
|
// label4
|
|
|
//
|
|
|
this.label4.AutoSize = true;
|
|
|
this.label4.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
this.label4.Location = new System.Drawing.Point(217, 59);
|
|
|
this.label4.Name = "label4";
|
|
|
this.label4.Size = new System.Drawing.Size(59, 20);
|
|
|
this.label4.TabIndex = 12;
|
|
|
this.label4.Text = "头数:";
|
|
|
//
|
|
|
// 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);
|
|
|
//
|
|
|
// panel1
|
|
|
//
|
|
|
this.panel1.AutoScroll = true;
|
|
|
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
|
this.panel1.Controls.Add(this.monthCalendar);
|
|
|
this.panel1.Location = new System.Drawing.Point(3, 208);
|
|
|
this.panel1.Name = "panel1";
|
|
|
this.panel1.Size = new System.Drawing.Size(585, 557);
|
|
|
this.panel1.TabIndex = 6;
|
|
|
//
|
|
|
// monthCalendar
|
|
|
//
|
|
|
this.monthCalendar.Location = new System.Drawing.Point(138, -1);
|
|
|
this.monthCalendar.Name = "monthCalendar";
|
|
|
this.monthCalendar.TabIndex = 7;
|
|
|
this.monthCalendar.DateChanged += new System.Windows.Forms.DateRangeEventHandler(this.monthCalendar_DateSelected);
|
|
|
//
|
|
|
// Main
|
|
|
//
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
this.ClientSize = new System.Drawing.Size(1184, 768);
|
|
|
this.ControlBox = false;
|
|
|
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);
|
|
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
|
|
this.splitContainer1.ResumeLayout(false);
|
|
|
this.groupBox2.ResumeLayout(false);
|
|
|
this.groupBox2.PerformLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
|
|
|
this.groupBox1.ResumeLayout(false);
|
|
|
this.groupBox1.PerformLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
|
|
this.panel1.ResumeLayout(false);
|
|
|
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.PictureBox pictureBox1;
|
|
|
private System.Windows.Forms.TextBox numberTextBox;
|
|
|
private System.Windows.Forms.Label label4;
|
|
|
private System.Windows.Forms.ComboBox batchComboBox;
|
|
|
private System.Windows.Forms.Button setButton;
|
|
|
private System.Windows.Forms.Button button2;
|
|
|
private System.Windows.Forms.GroupBox groupBox2;
|
|
|
private System.Windows.Forms.GroupBox groupBox1;
|
|
|
private System.Windows.Forms.TextBox textBoxEndTime;
|
|
|
private System.Windows.Forms.TextBox textBoxBeginTime;
|
|
|
private System.Windows.Forms.Label label5;
|
|
|
private System.Windows.Forms.Label label6;
|
|
|
private System.Windows.Forms.MonthCalendar monthCalendar;
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn ID;
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn DmoID;
|
|
|
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.Button button3;
|
|
|
}
|
|
|
}
|