From 3e18a012d0b565058b3c493eaa3fb5f5957c12a9 Mon Sep 17 00:00:00 2001
From: yibo <361071264@qq.com>
Date: Sat, 9 Sep 2017 15:58:06 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
BWP.WinFormControl/UTabControl.cs | 55 +-
QualityAndOrder/QualityAndOrder.csproj | 3 +
QualityAndOrder/QualityOrderForm.Designer.cs | 989 +++++++++++--------
QualityAndOrder/QualityOrderForm.cs | 216 +++-
QualityAndOrder/QualityOrderForm.resx | 62 +-
QualityAndOrder/QualityOrderFormForTab2.cs | 49 +
6 files changed, 912 insertions(+), 462 deletions(-)
create mode 100644 QualityAndOrder/QualityOrderFormForTab2.cs
diff --git a/BWP.WinFormControl/UTabControl.cs b/BWP.WinFormControl/UTabControl.cs
index 3440616..e4c3f6a 100644
--- a/BWP.WinFormControl/UTabControl.cs
+++ b/BWP.WinFormControl/UTabControl.cs
@@ -13,22 +13,24 @@ namespace BWP.WinFormControl
{
public class UTabControl : TabControl
{
- Image tabBackground;
- Form parent;
+ //Image tabBackground;
+ //Form parent;
Font textFont = new Font("宋体", 15);
Font TextFont { get { return textFont; } set { textFont = value; } }
+ public bool FromRightFlow { get; set; }
+
#region Initiates
public UTabControl()
{
setStyles();
- tabBackground = new Bitmap(this.GetType(), "TabButtonBackground.bmp");
+ //tabBackground = new Bitmap(this.GetType(), "TabButtonBackground.bmp");
this.Dock = System.Windows.Forms.DockStyle.Fill;
- this.ItemSize = new System.Drawing.Size(150, 50);
+ //this.ItemSize = new System.Drawing.Size(150, 50);
this.Location = new System.Drawing.Point(0, 0);
this.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
@@ -73,49 +75,50 @@ namespace BWP.WinFormControl
// setLowBound(e.Control);
//}
- protected override void OnSelected(TabControlEventArgs e)
- {
- parent.Text = e.TabPage.Text;
- }
+ //protected override void OnSelected(TabControlEventArgs e)
+ //{
+ // parent.Text = e.TabPage.Text;
+ //}
- protected override void OnParentChanged(EventArgs e)
- {
- if (parent == null)
- parent = this.FindForm();
- if (this.TabPages.Count != 0)
- parent.Text = this.TabPages[0].Text;
- }
+ //protected override void OnParentChanged(EventArgs e)
+ //{
+ // if (parent == null)
+ // parent = this.FindForm();
+ // if (this.TabPages.Count != 0)
+ // parent.Text = this.TabPages[0].Text;
+ //}
#endregion
#region Paint Override
protected override void OnPaint(PaintEventArgs e)
{
- e.Graphics.TextRenderingHint
- = TextRenderingHint.AntiAlias;
+ //e.Graphics.TextRenderingHint = TextRenderingHint.AntiAlias;
for (int i = 0; i < this.TabCount; i++)
{
var rectangle = this.GetTabRect(i);
+ var textBrush = SystemBrushes.ControlText;
if (this.SelectedIndex == i)
{
- e.Graphics.FillPath(new System.Drawing.SolidBrush(Color.White), GetPath(rectangle));
+ textBrush = new System.Drawing.SolidBrush(Color.FromArgb(255, 255, 255));
+ e.Graphics.FillPath(new System.Drawing.SolidBrush(Color.FromArgb(66, 163, 218)), GetPath(rectangle));
}
- //e.Graphics.DrawImage(tabBackground, rectangle);
+ //e.Graphics.DrawImage(tabBackground, rectangle);
SizeF textSize
= e.Graphics.MeasureString(this.TabPages[i].Text, this.TextFont);
- e.Graphics.DrawString(
- this.TabPages[i].Text,
- this.TextFont,
- SystemBrushes.ControlLightLight,
- rectangle.X + (rectangle.Width - textSize.Width) / 2 + 1,
- rectangle.Y + (rectangle.Height - textSize.Height) / 2 + 1);
+ //e.Graphics.DrawString(
+ // this.TabPages[i].Text,
+ // this.TextFont,
+ // SystemBrushes.ControlLightLight,
+ // rectangle.X + (rectangle.Width - textSize.Width) / 2 + 1,
+ // rectangle.Y + (rectangle.Height - textSize.Height) / 2 + 1);
e.Graphics.DrawString(
this.TabPages[i].Text,
this.TextFont,
- SystemBrushes.ControlText,
+ textBrush,
rectangle.X + (rectangle.Width - textSize.Width) / 2,
rectangle.Y + (rectangle.Height - textSize.Height) / 2);
}
diff --git a/QualityAndOrder/QualityAndOrder.csproj b/QualityAndOrder/QualityAndOrder.csproj
index edaec61..d7d5a84 100644
--- a/QualityAndOrder/QualityAndOrder.csproj
+++ b/QualityAndOrder/QualityAndOrder.csproj
@@ -52,6 +52,9 @@
QualityOrderForm.cs
+
+ Form
+
diff --git a/QualityAndOrder/QualityOrderForm.Designer.cs b/QualityAndOrder/QualityOrderForm.Designer.cs
index 6691c37..e060c5e 100644
--- a/QualityAndOrder/QualityOrderForm.Designer.cs
+++ b/QualityAndOrder/QualityOrderForm.Designer.cs
@@ -28,21 +28,46 @@
///
private void InitializeComponent()
{
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
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 dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = 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.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
this.uTabControl1 = new BWP.WinFormControl.UTabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
- this.tabPage2 = new System.Windows.Forms.TabPage();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.uTabControl2 = new BWP.WinFormControl.UTabControl();
+ this.tabPage3 = new System.Windows.Forms.TabPage();
+ this.sanctionGrid = new BWP.WinFormControl.UDataGridView();
+ this.S_Sanction_ID1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.S_AbnormalItem_ID1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.S_AbnormalItem_Name1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.S_Number1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.S_Sanction_ID2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.S_AbnormalItem_ID2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.S_AbnormalItem_Name2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.S_Number2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.S_Sanction_ID3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.S_AbnormalItem_ID3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.S_AbnormalItem_Name3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.S_Number3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.tabPage4 = new System.Windows.Forms.TabPage();
+ this.housePanel = new System.Windows.Forms.TabControl();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label2 = new System.Windows.Forms.Label();
+ this.hogGradePanel = new System.Windows.Forms.FlowLayoutPanel();
+ this.closeBtn = new System.Windows.Forms.Button();
+ this.commitBtn = new System.Windows.Forms.Button();
+ this.numberBox = new System.Windows.Forms.TextBox();
+ this.label1 = new System.Windows.Forms.Label();
+ this.keyBoardPanel = new System.Windows.Forms.FlowLayoutPanel();
this.uDataGridView1 = new BWP.WinFormControl.UDataGridView();
this.W_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.W_B3ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -52,48 +77,41 @@
this.syncBtn = new System.Windows.Forms.Button();
this.testTimeInput = new BWP.WinFormControl.UDatePicker();
this.label20 = new System.Windows.Forms.Label();
- this.keyBoardPanel = new System.Windows.Forms.FlowLayoutPanel();
- this.label1 = new System.Windows.Forms.Label();
- this.numberBox = new System.Windows.Forms.TextBox();
- this.hogGradePanel = new System.Windows.Forms.FlowLayoutPanel();
- this.commitBtn = new System.Windows.Forms.Button();
- this.label2 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.closeBtn = new System.Windows.Forms.Button();
- this.housePanel = new System.Windows.Forms.FlowLayoutPanel();
- this.uDataGridView2 = new BWP.WinFormControl.UDataGridView();
- this.S_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.S_B3ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.S_Sanction_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.S_AbnormalItem_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.S_AbnormalItem_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.S_Number = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.uDataGridView3 = new BWP.WinFormControl.UDataGridView();
- 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.button1 = new System.Windows.Forms.Button();
- this.uDatePicker1 = new BWP.WinFormControl.UDatePicker();
- this.label4 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.uDataGridView4 = new BWP.WinFormControl.UDataGridView();
- this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.tabPage2 = new System.Windows.Forms.TabPage();
+ this.tab2KeyPanel = new System.Windows.Forms.FlowLayoutPanel();
+ this.closeBtn2 = new System.Windows.Forms.Button();
this.label6 = new System.Windows.Forms.Label();
- this.button2 = new System.Windows.Forms.Button();
- this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
+ this.label5 = new System.Windows.Forms.Label();
+ this.preOrderGrid = new BWP.WinFormControl.UDataGridView();
+ this.P_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.P_Supplier_Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.P_HouseNames = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.P_Number = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.P_AlreadyNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.P_LastNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.P_WeightTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.R_OKBtn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.orderGrid = new BWP.WinFormControl.UDataGridView();
+ this.O_ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.O_Order = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.O_Number = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.O_HouseNames = new System.Windows.Forms.DataGridViewTextBoxColumn();
+ this.O_OKBtn = new System.Windows.Forms.DataGridViewButtonColumn();
+ this.O_HurryBtn = new System.Windows.Forms.DataGridViewButtonColumn();
+ this.tab2SyncBtn = new System.Windows.Forms.Button();
+ this.tab2DateSelect = new BWP.WinFormControl.UDatePicker();
+ this.label4 = new System.Windows.Forms.Label();
this.uTabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
- this.tabPage2.SuspendLayout();
+ this.panel1.SuspendLayout();
+ this.uTabControl2.SuspendLayout();
+ this.tabPage3.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.sanctionGrid)).BeginInit();
+ this.tabPage4.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.uDataGridView2)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.uDataGridView3)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.uDataGridView4)).BeginInit();
+ this.tabPage2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.preOrderGrid)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.orderGrid)).BeginInit();
this.SuspendLayout();
//
// uTabControl1
@@ -101,6 +119,7 @@
this.uTabControl1.Controls.Add(this.tabPage1);
this.uTabControl1.Controls.Add(this.tabPage2);
this.uTabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.uTabControl1.FromRightFlow = false;
this.uTabControl1.ItemSize = new System.Drawing.Size(150, 50);
this.uTabControl1.Location = new System.Drawing.Point(0, 0);
this.uTabControl1.Name = "uTabControl1";
@@ -111,7 +130,7 @@
//
// tabPage1
//
- this.tabPage1.Controls.Add(this.uDataGridView2);
+ this.tabPage1.Controls.Add(this.panel1);
this.tabPage1.Controls.Add(this.label3);
this.tabPage1.Controls.Add(this.label2);
this.tabPage1.Controls.Add(this.hogGradePanel);
@@ -119,7 +138,6 @@
this.tabPage1.Controls.Add(this.commitBtn);
this.tabPage1.Controls.Add(this.numberBox);
this.tabPage1.Controls.Add(this.label1);
- this.tabPage1.Controls.Add(this.housePanel);
this.tabPage1.Controls.Add(this.keyBoardPanel);
this.tabPage1.Controls.Add(this.uDataGridView1);
this.tabPage1.Controls.Add(this.syncBtn);
@@ -133,24 +151,269 @@
this.tabPage1.Text = "验质分圈";
this.tabPage1.UseVisualStyleBackColor = true;
//
- // tabPage2
+ // panel1
+ //
+ this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel1.Controls.Add(this.uTabControl2);
+ this.panel1.Location = new System.Drawing.Point(514, 161);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(733, 596);
+ this.panel1.TabIndex = 44;
+ //
+ // uTabControl2
+ //
+ this.uTabControl2.Controls.Add(this.tabPage3);
+ this.uTabControl2.Controls.Add(this.tabPage4);
+ this.uTabControl2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.uTabControl2.FromRightFlow = false;
+ this.uTabControl2.ItemSize = new System.Drawing.Size(140, 40);
+ this.uTabControl2.Location = new System.Drawing.Point(0, 0);
+ this.uTabControl2.Name = "uTabControl2";
+ this.uTabControl2.SelectedIndex = 0;
+ this.uTabControl2.Size = new System.Drawing.Size(731, 594);
+ this.uTabControl2.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
+ this.uTabControl2.TabIndex = 0;
+ //
+ // tabPage3
+ //
+ this.tabPage3.Controls.Add(this.sanctionGrid);
+ this.tabPage3.Location = new System.Drawing.Point(4, 44);
+ this.tabPage3.Name = "tabPage3";
+ this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
+ this.tabPage3.Size = new System.Drawing.Size(723, 546);
+ this.tabPage3.TabIndex = 0;
+ this.tabPage3.Text = "验质";
+ this.tabPage3.UseVisualStyleBackColor = true;
+ //
+ // sanctionGrid
+ //
+ this.sanctionGrid.AllowUserToAddRows = false;
+ this.sanctionGrid.AllowUserToDeleteRows = false;
+ this.sanctionGrid.AllowUserToResizeColumns = false;
+ this.sanctionGrid.AllowUserToResizeRows = false;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+ this.sanctionGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ this.sanctionGrid.BackgroundColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F);
+ dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.sanctionGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+ this.sanctionGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.sanctionGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.S_Sanction_ID1,
+ this.S_AbnormalItem_ID1,
+ this.S_AbnormalItem_Name1,
+ this.S_Number1,
+ this.S_Sanction_ID2,
+ this.S_AbnormalItem_ID2,
+ this.S_AbnormalItem_Name2,
+ this.S_Number2,
+ this.S_Sanction_ID3,
+ this.S_AbnormalItem_ID3,
+ this.S_AbnormalItem_Name3,
+ this.S_Number3});
+ this.sanctionGrid.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.sanctionGrid.Location = new System.Drawing.Point(3, 3);
+ this.sanctionGrid.MultiSelect = false;
+ this.sanctionGrid.Name = "sanctionGrid";
+ this.sanctionGrid.RowHeadersVisible = false;
+ dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
+ this.sanctionGrid.RowsDefaultCellStyle = dataGridViewCellStyle3;
+ this.sanctionGrid.RowTemplate.DefaultCellStyle.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.sanctionGrid.RowTemplate.Height = 50;
+ this.sanctionGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
+ this.sanctionGrid.Size = new System.Drawing.Size(717, 540);
+ this.sanctionGrid.TabIndex = 43;
//
- this.tabPage2.Controls.Add(this.flowLayoutPanel1);
- this.tabPage2.Controls.Add(this.button2);
- this.tabPage2.Controls.Add(this.label6);
- this.tabPage2.Controls.Add(this.label5);
- this.tabPage2.Controls.Add(this.uDataGridView4);
- this.tabPage2.Controls.Add(this.uDataGridView3);
- this.tabPage2.Controls.Add(this.button1);
- this.tabPage2.Controls.Add(this.uDatePicker1);
- this.tabPage2.Controls.Add(this.label4);
- this.tabPage2.Location = new System.Drawing.Point(4, 54);
- this.tabPage2.Name = "tabPage2";
- this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
- this.tabPage2.Size = new System.Drawing.Size(1268, 815);
- this.tabPage2.TabIndex = 1;
- this.tabPage2.Text = "排宰顺序";
- this.tabPage2.UseVisualStyleBackColor = true;
+ // S_Sanction_ID1
+ //
+ this.S_Sanction_ID1.DataPropertyName = "Sanction_ID1";
+ this.S_Sanction_ID1.HeaderText = "Sanction_ID1";
+ this.S_Sanction_ID1.Name = "S_Sanction_ID1";
+ this.S_Sanction_ID1.Visible = false;
+ //
+ // S_AbnormalItem_ID1
+ //
+ this.S_AbnormalItem_ID1.DataPropertyName = "AbnormalItem_ID1";
+ this.S_AbnormalItem_ID1.HeaderText = "AbnormalItem_ID1";
+ this.S_AbnormalItem_ID1.Name = "S_AbnormalItem_ID1";
+ this.S_AbnormalItem_ID1.Visible = false;
+ //
+ // S_AbnormalItem_Name1
+ //
+ this.S_AbnormalItem_Name1.DataPropertyName = "AbnormalItem_Name1";
+ this.S_AbnormalItem_Name1.HeaderText = "异常项";
+ this.S_AbnormalItem_Name1.Name = "S_AbnormalItem_Name1";
+ this.S_AbnormalItem_Name1.ReadOnly = true;
+ //
+ // S_Number1
+ //
+ this.S_Number1.DataPropertyName = "Number1";
+ this.S_Number1.HeaderText = "头数";
+ this.S_Number1.Name = "S_Number1";
+ this.S_Number1.Width = 135;
+ //
+ // S_Sanction_ID2
+ //
+ this.S_Sanction_ID2.DataPropertyName = "Sanction_ID2";
+ this.S_Sanction_ID2.HeaderText = "Sanction_ID2";
+ this.S_Sanction_ID2.Name = "S_Sanction_ID2";
+ this.S_Sanction_ID2.Visible = false;
+ //
+ // S_AbnormalItem_ID2
+ //
+ this.S_AbnormalItem_ID2.DataPropertyName = "AbnormalItem_ID2";
+ this.S_AbnormalItem_ID2.HeaderText = "AbnormalItem_ID2";
+ this.S_AbnormalItem_ID2.Name = "S_AbnormalItem_ID2";
+ this.S_AbnormalItem_ID2.Visible = false;
+ //
+ // S_AbnormalItem_Name2
+ //
+ this.S_AbnormalItem_Name2.DataPropertyName = "AbnormalItem_Name2";
+ this.S_AbnormalItem_Name2.HeaderText = "异常项";
+ this.S_AbnormalItem_Name2.Name = "S_AbnormalItem_Name2";
+ this.S_AbnormalItem_Name2.ReadOnly = true;
+ //
+ // S_Number2
+ //
+ this.S_Number2.DataPropertyName = "Number2";
+ this.S_Number2.HeaderText = "头数";
+ this.S_Number2.Name = "S_Number2";
+ this.S_Number2.Width = 135;
+ //
+ // S_Sanction_ID3
+ //
+ this.S_Sanction_ID3.DataPropertyName = "Sanction_ID3";
+ this.S_Sanction_ID3.HeaderText = "Sanction_ID3";
+ this.S_Sanction_ID3.Name = "S_Sanction_ID3";
+ this.S_Sanction_ID3.Visible = false;
+ //
+ // S_AbnormalItem_ID3
+ //
+ this.S_AbnormalItem_ID3.DataPropertyName = "AbnormalItem_ID3";
+ this.S_AbnormalItem_ID3.HeaderText = "AbnormalItem_ID3";
+ this.S_AbnormalItem_ID3.Name = "S_AbnormalItem_ID3";
+ this.S_AbnormalItem_ID3.Visible = false;
+ //
+ // S_AbnormalItem_Name3
+ //
+ this.S_AbnormalItem_Name3.DataPropertyName = "AbnormalItem_Name3";
+ this.S_AbnormalItem_Name3.HeaderText = "异常项";
+ this.S_AbnormalItem_Name3.Name = "S_AbnormalItem_Name3";
+ this.S_AbnormalItem_Name3.ReadOnly = true;
+ //
+ // S_Number3
+ //
+ this.S_Number3.DataPropertyName = "Number3";
+ this.S_Number3.HeaderText = "头数";
+ this.S_Number3.Name = "S_Number3";
+ this.S_Number3.Width = 135;
+ //
+ // tabPage4
+ //
+ this.tabPage4.Controls.Add(this.housePanel);
+ this.tabPage4.Location = new System.Drawing.Point(4, 44);
+ this.tabPage4.Name = "tabPage4";
+ this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
+ this.tabPage4.Size = new System.Drawing.Size(723, 546);
+ this.tabPage4.TabIndex = 1;
+ this.tabPage4.Text = "圈舍";
+ this.tabPage4.UseVisualStyleBackColor = true;
+ //
+ // housePanel
+ //
+ this.housePanel.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.housePanel.Font = new System.Drawing.Font("宋体", 15F);
+ this.housePanel.ItemSize = new System.Drawing.Size(96, 40);
+ this.housePanel.Location = new System.Drawing.Point(3, 3);
+ this.housePanel.Name = "housePanel";
+ this.housePanel.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
+ this.housePanel.RightToLeftLayout = true;
+ this.housePanel.SelectedIndex = 0;
+ this.housePanel.Size = new System.Drawing.Size(717, 540);
+ this.housePanel.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
+ this.housePanel.TabIndex = 0;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Font = new System.Drawing.Font("宋体", 15F);
+ this.label3.ForeColor = System.Drawing.Color.Red;
+ this.label3.Location = new System.Drawing.Point(838, 24);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(39, 20);
+ this.label3.TabIndex = 42;
+ this.label3.Text = "100";
+ //
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Font = new System.Drawing.Font("宋体", 15F);
+ this.label2.Location = new System.Drawing.Point(723, 24);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(109, 20);
+ this.label2.TabIndex = 41;
+ this.label2.Text = "已收头数:";
+ //
+ // hogGradePanel
+ //
+ this.hogGradePanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.hogGradePanel.Location = new System.Drawing.Point(514, 77);
+ this.hogGradePanel.Name = "hogGradePanel";
+ this.hogGradePanel.Size = new System.Drawing.Size(733, 73);
+ this.hogGradePanel.TabIndex = 37;
+ //
+ // closeBtn
+ //
+ this.closeBtn.Font = new System.Drawing.Font("宋体", 15F);
+ this.closeBtn.Location = new System.Drawing.Point(1153, 9);
+ this.closeBtn.Name = "closeBtn";
+ this.closeBtn.Size = new System.Drawing.Size(94, 56);
+ this.closeBtn.TabIndex = 40;
+ this.closeBtn.Text = "关闭";
+ this.closeBtn.UseVisualStyleBackColor = true;
+ this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click);
+ //
+ // commitBtn
+ //
+ this.commitBtn.Font = new System.Drawing.Font("宋体", 15F);
+ this.commitBtn.Location = new System.Drawing.Point(1036, 9);
+ this.commitBtn.Name = "commitBtn";
+ this.commitBtn.Size = new System.Drawing.Size(94, 56);
+ this.commitBtn.TabIndex = 40;
+ this.commitBtn.Text = "提交";
+ this.commitBtn.UseVisualStyleBackColor = true;
+ //
+ // numberBox
+ //
+ this.numberBox.Font = new System.Drawing.Font("宋体", 15F);
+ this.numberBox.Location = new System.Drawing.Point(585, 21);
+ this.numberBox.Name = "numberBox";
+ this.numberBox.Size = new System.Drawing.Size(108, 30);
+ this.numberBox.TabIndex = 39;
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Font = new System.Drawing.Font("宋体", 15F);
+ this.label1.Location = new System.Drawing.Point(510, 24);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(69, 20);
+ this.label1.TabIndex = 38;
+ this.label1.Text = "头数:";
+ //
+ // keyBoardPanel
+ //
+ this.keyBoardPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.keyBoardPanel.Location = new System.Drawing.Point(25, 515);
+ this.keyBoardPanel.Name = "keyBoardPanel";
+ this.keyBoardPanel.Padding = new System.Windows.Forms.Padding(25, 0, 0, 0);
+ this.keyBoardPanel.Size = new System.Drawing.Size(452, 241);
+ this.keyBoardPanel.TabIndex = 37;
//
// uDataGridView1
//
@@ -184,7 +447,7 @@
this.uDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle6;
this.uDataGridView1.RowTemplate.Height = 23;
this.uDataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.uDataGridView1.Size = new System.Drawing.Size(452, 365);
+ this.uDataGridView1.Size = new System.Drawing.Size(452, 401);
this.uDataGridView1.TabIndex = 34;
//
// W_ID
@@ -254,177 +517,173 @@
this.label20.TabIndex = 31;
this.label20.Text = "日期:";
//
- // keyBoardPanel
- //
- this.keyBoardPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.keyBoardPanel.Location = new System.Drawing.Point(25, 472);
- this.keyBoardPanel.Name = "keyBoardPanel";
- this.keyBoardPanel.Padding = new System.Windows.Forms.Padding(25, 0, 0, 0);
- this.keyBoardPanel.Size = new System.Drawing.Size(452, 241);
- this.keyBoardPanel.TabIndex = 37;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Font = new System.Drawing.Font("宋体", 15F);
- this.label1.Location = new System.Drawing.Point(510, 24);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(69, 20);
- this.label1.TabIndex = 38;
- this.label1.Text = "头数:";
+ // tabPage2
//
- // numberBox
+ this.tabPage2.Controls.Add(this.tab2KeyPanel);
+ this.tabPage2.Controls.Add(this.closeBtn2);
+ this.tabPage2.Controls.Add(this.label6);
+ this.tabPage2.Controls.Add(this.label5);
+ this.tabPage2.Controls.Add(this.preOrderGrid);
+ this.tabPage2.Controls.Add(this.orderGrid);
+ this.tabPage2.Controls.Add(this.tab2SyncBtn);
+ this.tabPage2.Controls.Add(this.tab2DateSelect);
+ this.tabPage2.Controls.Add(this.label4);
+ this.tabPage2.Location = new System.Drawing.Point(4, 54);
+ this.tabPage2.Name = "tabPage2";
+ this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
+ this.tabPage2.Size = new System.Drawing.Size(1268, 815);
+ this.tabPage2.TabIndex = 1;
+ this.tabPage2.Text = "排宰顺序";
+ this.tabPage2.UseVisualStyleBackColor = true;
//
- this.numberBox.Font = new System.Drawing.Font("宋体", 15F);
- this.numberBox.Location = new System.Drawing.Point(585, 21);
- this.numberBox.Name = "numberBox";
- this.numberBox.Size = new System.Drawing.Size(108, 30);
- this.numberBox.TabIndex = 39;
+ // tab2KeyPanel
//
- // hogGradePanel
+ this.tab2KeyPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.tab2KeyPanel.Location = new System.Drawing.Point(25, 515);
+ this.tab2KeyPanel.Name = "tab2KeyPanel";
+ this.tab2KeyPanel.Padding = new System.Windows.Forms.Padding(25, 0, 0, 0);
+ this.tab2KeyPanel.Size = new System.Drawing.Size(452, 241);
+ this.tab2KeyPanel.TabIndex = 43;
//
- this.hogGradePanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.hogGradePanel.Location = new System.Drawing.Point(514, 77);
- this.hogGradePanel.Name = "hogGradePanel";
- this.hogGradePanel.Size = new System.Drawing.Size(733, 73);
- this.hogGradePanel.TabIndex = 37;
+ // closeBtn2
//
- // commitBtn
+ this.closeBtn2.Font = new System.Drawing.Font("宋体", 15F);
+ this.closeBtn2.Location = new System.Drawing.Point(1153, 9);
+ this.closeBtn2.Name = "closeBtn2";
+ this.closeBtn2.Size = new System.Drawing.Size(94, 56);
+ this.closeBtn2.TabIndex = 41;
+ this.closeBtn2.Text = "关闭";
+ this.closeBtn2.UseVisualStyleBackColor = true;
+ this.closeBtn2.Click += new System.EventHandler(this.closeBtn_Click);
//
- this.commitBtn.Font = new System.Drawing.Font("宋体", 15F);
- this.commitBtn.Location = new System.Drawing.Point(1036, 9);
- this.commitBtn.Name = "commitBtn";
- this.commitBtn.Size = new System.Drawing.Size(94, 56);
- this.commitBtn.TabIndex = 40;
- this.commitBtn.Text = "提交";
- this.commitBtn.UseVisualStyleBackColor = true;
- //
- // label2
+ // label6
//
- this.label2.AutoSize = true;
- this.label2.Font = new System.Drawing.Font("宋体", 15F);
- this.label2.Location = new System.Drawing.Point(723, 24);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(109, 20);
- this.label2.TabIndex = 41;
- this.label2.Text = "已收头数:";
+ this.label6.AutoSize = true;
+ this.label6.Font = new System.Drawing.Font("宋体", 15F);
+ this.label6.ForeColor = System.Drawing.Color.Red;
+ this.label6.Location = new System.Drawing.Point(529, 61);
+ this.label6.Name = "label6";
+ this.label6.Size = new System.Drawing.Size(89, 20);
+ this.label6.TabIndex = 39;
+ this.label6.Text = "待宰明细";
//
- // label3
+ // label5
//
- this.label3.AutoSize = true;
- this.label3.Font = new System.Drawing.Font("宋体", 15F);
- this.label3.ForeColor = System.Drawing.Color.Red;
- this.label3.Location = new System.Drawing.Point(838, 24);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(39, 20);
- this.label3.TabIndex = 42;
- this.label3.Text = "100";
+ this.label5.AutoSize = true;
+ this.label5.Font = new System.Drawing.Font("宋体", 15F);
+ this.label5.ForeColor = System.Drawing.Color.Red;
+ this.label5.Location = new System.Drawing.Point(23, 61);
+ this.label5.Name = "label5";
+ this.label5.Size = new System.Drawing.Size(89, 20);
+ this.label5.TabIndex = 39;
+ this.label5.Text = "排宰明细";
//
- // closeBtn
+ // preOrderGrid
//
- this.closeBtn.Font = new System.Drawing.Font("宋体", 15F);
- this.closeBtn.Location = new System.Drawing.Point(1153, 9);
- this.closeBtn.Name = "closeBtn";
- this.closeBtn.Size = new System.Drawing.Size(94, 56);
- this.closeBtn.TabIndex = 40;
- this.closeBtn.Text = "关闭";
- this.closeBtn.UseVisualStyleBackColor = true;
+ this.preOrderGrid.AllowUserToAddRows = false;
+ this.preOrderGrid.AllowUserToDeleteRows = false;
+ this.preOrderGrid.AllowUserToResizeColumns = false;
+ this.preOrderGrid.AllowUserToResizeRows = false;
+ dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+ this.preOrderGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
+ this.preOrderGrid.BackgroundColor = System.Drawing.Color.White;
+ dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 12F);
+ dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.preOrderGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
+ this.preOrderGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.preOrderGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.P_ID,
+ this.P_Supplier_Name,
+ this.P_HouseNames,
+ this.P_Number,
+ this.P_AlreadyNumber,
+ this.P_LastNumber,
+ this.P_WeightTime,
+ this.R_OKBtn});
+ this.preOrderGrid.Location = new System.Drawing.Point(533, 93);
+ this.preOrderGrid.MultiSelect = false;
+ this.preOrderGrid.Name = "preOrderGrid";
+ this.preOrderGrid.ReadOnly = true;
+ this.preOrderGrid.RowHeadersVisible = false;
+ dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
+ this.preOrderGrid.RowsDefaultCellStyle = dataGridViewCellStyle9;
+ this.preOrderGrid.RowTemplate.Height = 23;
+ this.preOrderGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.preOrderGrid.Size = new System.Drawing.Size(714, 663);
+ this.preOrderGrid.TabIndex = 38;
//
- // housePanel
+ // P_ID
//
- this.housePanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.housePanel.Location = new System.Drawing.Point(514, 182);
- this.housePanel.Name = "housePanel";
- this.housePanel.Size = new System.Drawing.Size(349, 531);
- this.housePanel.TabIndex = 37;
+ this.P_ID.DataPropertyName = "ID";
+ this.P_ID.HeaderText = "ID";
+ this.P_ID.Name = "P_ID";
+ this.P_ID.ReadOnly = true;
+ this.P_ID.Visible = false;
//
- // uDataGridView2
+ // P_Supplier_Name
//
- this.uDataGridView2.AllowUserToAddRows = false;
- this.uDataGridView2.AllowUserToDeleteRows = false;
- this.uDataGridView2.AllowUserToResizeColumns = false;
- this.uDataGridView2.AllowUserToResizeRows = false;
- dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.uDataGridView2.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
- this.uDataGridView2.BackgroundColor = System.Drawing.Color.White;
- dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F);
- dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.uDataGridView2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
- this.uDataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.uDataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.S_ID,
- this.S_B3ID,
- this.S_Sanction_ID,
- this.S_AbnormalItem_ID,
- this.S_AbnormalItem_Name,
- this.S_Number});
- this.uDataGridView2.Location = new System.Drawing.Point(898, 182);
- this.uDataGridView2.MultiSelect = false;
- this.uDataGridView2.Name = "uDataGridView2";
- this.uDataGridView2.RowHeadersVisible = false;
- dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
- this.uDataGridView2.RowsDefaultCellStyle = dataGridViewCellStyle3;
- this.uDataGridView2.RowTemplate.Height = 23;
- this.uDataGridView2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.uDataGridView2.Size = new System.Drawing.Size(349, 531);
- this.uDataGridView2.TabIndex = 43;
+ this.P_Supplier_Name.DataPropertyName = "Supplier_Name";
+ this.P_Supplier_Name.HeaderText = "供应商";
+ this.P_Supplier_Name.Name = "P_Supplier_Name";
+ this.P_Supplier_Name.ReadOnly = true;
//
- // S_ID
+ // P_HouseNames
//
- this.S_ID.DataPropertyName = "ID";
- this.S_ID.HeaderText = "ID";
- this.S_ID.Name = "S_ID";
- this.S_ID.Visible = false;
+ this.P_HouseNames.DataPropertyName = "HouseNames";
+ this.P_HouseNames.HeaderText = "圈舍";
+ this.P_HouseNames.Name = "P_HouseNames";
+ this.P_HouseNames.ReadOnly = true;
//
- // S_B3ID
+ // P_Number
//
- this.S_B3ID.DataPropertyName = "B3ID";
- this.S_B3ID.HeaderText = "B3ID";
- this.S_B3ID.Name = "S_B3ID";
- this.S_B3ID.Visible = false;
+ this.P_Number.DataPropertyName = "Number";
+ this.P_Number.HeaderText = "过磅头数";
+ this.P_Number.Name = "P_Number";
+ this.P_Number.ReadOnly = true;
+ this.P_Number.Width = 95;
//
- // S_Sanction_ID
+ // P_AlreadyNumber
//
- this.S_Sanction_ID.DataPropertyName = "Sanction_ID";
- this.S_Sanction_ID.HeaderText = "Sanction_ID";
- this.S_Sanction_ID.Name = "S_Sanction_ID";
- this.S_Sanction_ID.Visible = false;
+ this.P_AlreadyNumber.HeaderText = "已排头数";
+ this.P_AlreadyNumber.Name = "P_AlreadyNumber";
+ this.P_AlreadyNumber.ReadOnly = true;
+ this.P_AlreadyNumber.Width = 95;
//
- // S_AbnormalItem_ID
+ // P_LastNumber
//
- this.S_AbnormalItem_ID.DataPropertyName = "AbnormalItem_ID";
- this.S_AbnormalItem_ID.HeaderText = "AbnormalItem_ID";
- this.S_AbnormalItem_ID.Name = "S_AbnormalItem_ID";
- this.S_AbnormalItem_ID.Visible = false;
+ this.P_LastNumber.HeaderText = "剩余头数";
+ this.P_LastNumber.Name = "P_LastNumber";
+ this.P_LastNumber.ReadOnly = true;
+ this.P_LastNumber.Width = 95;
//
- // S_AbnormalItem_Name
+ // P_WeightTime
//
- this.S_AbnormalItem_Name.DataPropertyName = "AbnormalItem_Name";
- this.S_AbnormalItem_Name.HeaderText = "异常项";
- this.S_AbnormalItem_Name.Name = "S_AbnormalItem_Name";
- this.S_AbnormalItem_Name.Width = 140;
+ this.P_WeightTime.HeaderText = "过磅时间";
+ this.P_WeightTime.Name = "P_WeightTime";
+ this.P_WeightTime.ReadOnly = true;
+ this.P_WeightTime.Width = 130;
//
- // S_Number
+ // R_OKBtn
//
- this.S_Number.DataPropertyName = "Number";
- this.S_Number.HeaderText = "头数";
- this.S_Number.Name = "S_Number";
- this.S_Number.Width = 200;
+ this.R_OKBtn.HeaderText = "排宰";
+ this.R_OKBtn.Name = "R_OKBtn";
+ this.R_OKBtn.ReadOnly = true;
+ this.R_OKBtn.Width = 90;
//
- // uDataGridView3
+ // orderGrid
//
- this.uDataGridView3.AllowUserToAddRows = false;
- this.uDataGridView3.AllowUserToDeleteRows = false;
- this.uDataGridView3.AllowUserToResizeColumns = false;
- this.uDataGridView3.AllowUserToResizeRows = false;
+ this.orderGrid.AllowUserToAddRows = false;
+ this.orderGrid.AllowUserToDeleteRows = false;
+ this.orderGrid.AllowUserToResizeColumns = false;
+ this.orderGrid.AllowUserToResizeRows = false;
dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.uDataGridView3.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle10;
- this.uDataGridView3.BackgroundColor = System.Drawing.Color.White;
+ this.orderGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle10;
+ this.orderGrid.BackgroundColor = System.Drawing.Color.White;
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle11.Font = new System.Drawing.Font("宋体", 12F);
@@ -432,81 +691,90 @@
dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.uDataGridView3.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
- this.uDataGridView3.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.uDataGridView3.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.dataGridViewTextBoxColumn1,
- this.dataGridViewTextBoxColumn2,
- this.dataGridViewTextBoxColumn3,
- this.dataGridViewTextBoxColumn4,
- this.dataGridViewTextBoxColumn5});
- this.uDataGridView3.Location = new System.Drawing.Point(25, 93);
- this.uDataGridView3.MultiSelect = false;
- this.uDataGridView3.Name = "uDataGridView3";
- this.uDataGridView3.RowHeadersVisible = false;
+ this.orderGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
+ this.orderGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ this.orderGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+ this.O_ID,
+ this.O_Order,
+ this.O_Number,
+ this.O_HouseNames,
+ this.O_OKBtn,
+ this.O_HurryBtn});
+ this.orderGrid.Location = new System.Drawing.Point(25, 93);
+ this.orderGrid.MultiSelect = false;
+ this.orderGrid.Name = "orderGrid";
+ this.orderGrid.RowHeadersVisible = false;
dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
- this.uDataGridView3.RowsDefaultCellStyle = dataGridViewCellStyle12;
- this.uDataGridView3.RowTemplate.Height = 23;
- this.uDataGridView3.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.uDataGridView3.Size = new System.Drawing.Size(454, 437);
- this.uDataGridView3.TabIndex = 38;
+ this.orderGrid.RowsDefaultCellStyle = dataGridViewCellStyle12;
+ this.orderGrid.RowTemplate.Height = 23;
+ this.orderGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+ this.orderGrid.Size = new System.Drawing.Size(454, 387);
+ this.orderGrid.TabIndex = 38;
+ //
+ // O_ID
//
- // dataGridViewTextBoxColumn1
+ this.O_ID.DataPropertyName = "ID";
+ this.O_ID.HeaderText = "ID";
+ this.O_ID.Name = "O_ID";
+ this.O_ID.Visible = false;
//
- this.dataGridViewTextBoxColumn1.DataPropertyName = "ID";
- this.dataGridViewTextBoxColumn1.HeaderText = "ID";
- this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
- this.dataGridViewTextBoxColumn1.Visible = false;
+ // O_Order
//
- // dataGridViewTextBoxColumn2
+ this.O_Order.DataPropertyName = "Order";
+ this.O_Order.HeaderText = "屠宰顺序";
+ this.O_Order.Name = "O_Order";
+ this.O_Order.ReadOnly = true;
+ this.O_Order.Width = 95;
//
- this.dataGridViewTextBoxColumn2.DataPropertyName = "B3ID";
- this.dataGridViewTextBoxColumn2.HeaderText = "过磅单号";
- this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
+ // O_Number
//
- // dataGridViewTextBoxColumn3
+ this.O_Number.DataPropertyName = "Number";
+ this.O_Number.HeaderText = "头数";
+ this.O_Number.Name = "O_Number";
+ this.O_Number.Width = 70;
//
- this.dataGridViewTextBoxColumn3.DataPropertyName = "Supplier_Name";
- this.dataGridViewTextBoxColumn3.HeaderText = "供应商";
- this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
- this.dataGridViewTextBoxColumn3.Width = 120;
+ // O_HouseNames
//
- // dataGridViewTextBoxColumn4
+ this.O_HouseNames.DataPropertyName = "HouseNames";
+ this.O_HouseNames.HeaderText = "圈舍";
+ this.O_HouseNames.Name = "O_HouseNames";
+ this.O_HouseNames.ReadOnly = true;
//
- this.dataGridViewTextBoxColumn4.DataPropertyName = "Number";
- this.dataGridViewTextBoxColumn4.HeaderText = "头数";
- this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
+ // O_OKBtn
//
- // dataGridViewTextBoxColumn5
+ this.O_OKBtn.HeaderText = "确定";
+ this.O_OKBtn.Name = "O_OKBtn";
+ this.O_OKBtn.Width = 90;
//
- this.dataGridViewTextBoxColumn5.DataPropertyName = "HouseNames";
- this.dataGridViewTextBoxColumn5.HeaderText = "圈舍";
- this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
- this.dataGridViewTextBoxColumn5.Width = 120;
+ // O_HurryBtn
//
- // button1
+ this.O_HurryBtn.HeaderText = "急宰";
+ this.O_HurryBtn.Name = "O_HurryBtn";
+ this.O_HurryBtn.Width = 90;
//
- this.button1.Font = new System.Drawing.Font("宋体", 15F);
- this.button1.Location = new System.Drawing.Point(294, 9);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(94, 56);
- this.button1.TabIndex = 37;
- this.button1.Text = "同步";
- this.button1.UseVisualStyleBackColor = true;
+ // tab2SyncBtn
//
- // uDatePicker1
+ this.tab2SyncBtn.Font = new System.Drawing.Font("宋体", 15F);
+ this.tab2SyncBtn.Location = new System.Drawing.Point(233, 9);
+ this.tab2SyncBtn.Name = "tab2SyncBtn";
+ this.tab2SyncBtn.Size = new System.Drawing.Size(94, 56);
+ this.tab2SyncBtn.TabIndex = 37;
+ this.tab2SyncBtn.Text = "同步";
+ this.tab2SyncBtn.UseVisualStyleBackColor = true;
//
- this.uDatePicker1.BackColor = System.Drawing.Color.White;
- this.uDatePicker1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.uDatePicker1.Date = new System.DateTime(2017, 9, 8, 0, 0, 0, 0);
- this.uDatePicker1.Font = new System.Drawing.Font("宋体", 15F);
- this.uDatePicker1.Location = new System.Drawing.Point(131, 19);
- this.uDatePicker1.Name = "uDatePicker1";
- this.uDatePicker1.Size = new System.Drawing.Size(135, 30);
- this.uDatePicker1.TabIndex = 36;
- this.uDatePicker1.Text = "2017/09/08";
- this.uDatePicker1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.uDatePicker1.Type = BWP.WinFormControl.DateTimeType.Date;
+ // tab2DateSelect
+ //
+ this.tab2DateSelect.BackColor = System.Drawing.Color.White;
+ this.tab2DateSelect.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.tab2DateSelect.Date = new System.DateTime(2017, 9, 8, 0, 0, 0, 0);
+ this.tab2DateSelect.Font = new System.Drawing.Font("宋体", 15F);
+ this.tab2DateSelect.Location = new System.Drawing.Point(80, 19);
+ this.tab2DateSelect.Name = "tab2DateSelect";
+ this.tab2DateSelect.Size = new System.Drawing.Size(135, 30);
+ this.tab2DateSelect.TabIndex = 36;
+ this.tab2DateSelect.Text = "2017/09/08";
+ this.tab2DateSelect.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.tab2DateSelect.Type = BWP.WinFormControl.DateTimeType.Date;
//
// label4
//
@@ -514,118 +782,9 @@
this.label4.Font = new System.Drawing.Font("宋体", 14F);
this.label4.Location = new System.Drawing.Point(21, 25);
this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(104, 19);
+ this.label4.Size = new System.Drawing.Size(66, 19);
this.label4.TabIndex = 35;
- this.label4.Text = "宰杀日期:";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Font = new System.Drawing.Font("宋体", 15F);
- this.label5.ForeColor = System.Drawing.Color.Red;
- this.label5.Location = new System.Drawing.Point(23, 61);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(89, 20);
- this.label5.TabIndex = 39;
- this.label5.Text = "排宰明细";
- //
- // uDataGridView4
- //
- this.uDataGridView4.AllowUserToAddRows = false;
- this.uDataGridView4.AllowUserToDeleteRows = false;
- this.uDataGridView4.AllowUserToResizeColumns = false;
- this.uDataGridView4.AllowUserToResizeRows = false;
- dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
- this.uDataGridView4.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
- this.uDataGridView4.BackgroundColor = System.Drawing.Color.White;
- dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 12F);
- dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.uDataGridView4.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
- this.uDataGridView4.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.uDataGridView4.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.dataGridViewTextBoxColumn6,
- this.dataGridViewTextBoxColumn7,
- this.dataGridViewTextBoxColumn8,
- this.dataGridViewTextBoxColumn9,
- this.dataGridViewTextBoxColumn10});
- this.uDataGridView4.Location = new System.Drawing.Point(533, 93);
- this.uDataGridView4.MultiSelect = false;
- this.uDataGridView4.Name = "uDataGridView4";
- this.uDataGridView4.RowHeadersVisible = false;
- dataGridViewCellStyle9.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218)))));
- this.uDataGridView4.RowsDefaultCellStyle = dataGridViewCellStyle9;
- this.uDataGridView4.RowTemplate.Height = 23;
- this.uDataGridView4.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
- this.uDataGridView4.Size = new System.Drawing.Size(714, 437);
- this.uDataGridView4.TabIndex = 38;
- //
- // dataGridViewTextBoxColumn6
- //
- this.dataGridViewTextBoxColumn6.DataPropertyName = "ID";
- this.dataGridViewTextBoxColumn6.HeaderText = "ID";
- this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
- this.dataGridViewTextBoxColumn6.Visible = false;
- //
- // dataGridViewTextBoxColumn7
- //
- this.dataGridViewTextBoxColumn7.DataPropertyName = "B3ID";
- this.dataGridViewTextBoxColumn7.HeaderText = "过磅单号";
- this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
- //
- // dataGridViewTextBoxColumn8
- //
- this.dataGridViewTextBoxColumn8.DataPropertyName = "Supplier_Name";
- this.dataGridViewTextBoxColumn8.HeaderText = "供应商";
- this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
- this.dataGridViewTextBoxColumn8.Width = 120;
- //
- // dataGridViewTextBoxColumn9
- //
- this.dataGridViewTextBoxColumn9.DataPropertyName = "Number";
- this.dataGridViewTextBoxColumn9.HeaderText = "头数";
- this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
- //
- // dataGridViewTextBoxColumn10
- //
- this.dataGridViewTextBoxColumn10.DataPropertyName = "HouseNames";
- this.dataGridViewTextBoxColumn10.HeaderText = "圈舍";
- this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
- this.dataGridViewTextBoxColumn10.Width = 120;
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Font = new System.Drawing.Font("宋体", 15F);
- this.label6.ForeColor = System.Drawing.Color.Red;
- this.label6.Location = new System.Drawing.Point(529, 61);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(89, 20);
- this.label6.TabIndex = 39;
- this.label6.Text = "待宰明细";
- //
- // button2
- //
- this.button2.Font = new System.Drawing.Font("宋体", 15F);
- this.button2.Location = new System.Drawing.Point(1153, 9);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(94, 56);
- this.button2.TabIndex = 41;
- this.button2.Text = "关闭";
- this.button2.UseVisualStyleBackColor = true;
- //
- // flowLayoutPanel1
- //
- this.flowLayoutPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.flowLayoutPanel1.Location = new System.Drawing.Point(27, 562);
- this.flowLayoutPanel1.Name = "flowLayoutPanel1";
- this.flowLayoutPanel1.Padding = new System.Windows.Forms.Padding(25, 0, 0, 0);
- this.flowLayoutPanel1.Size = new System.Drawing.Size(452, 241);
- this.flowLayoutPanel1.TabIndex = 43;
+ this.label4.Text = "日期:";
//
// QualityOrderForm
//
@@ -637,16 +796,20 @@
this.MaximizeBox = false;
this.Name = "QualityOrderForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
- this.Text = "排宰顺序";
+ this.Text = "验质分圈";
this.uTabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
+ this.panel1.ResumeLayout(false);
+ this.uTabControl2.ResumeLayout(false);
+ this.tabPage3.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.sanctionGrid)).EndInit();
+ this.tabPage4.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit();
this.tabPage2.ResumeLayout(false);
this.tabPage2.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.uDataGridView1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.uDataGridView2)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.uDataGridView3)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.uDataGridView4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.preOrderGrid)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.orderGrid)).EndInit();
this.ResumeLayout(false);
}
@@ -673,33 +836,47 @@
private System.Windows.Forms.FlowLayoutPanel hogGradePanel;
private System.Windows.Forms.Button closeBtn;
private System.Windows.Forms.Button commitBtn;
- private System.Windows.Forms.FlowLayoutPanel housePanel;
- private BWP.WinFormControl.UDataGridView uDataGridView2;
- private System.Windows.Forms.DataGridViewTextBoxColumn S_ID;
- private System.Windows.Forms.DataGridViewTextBoxColumn S_B3ID;
- private System.Windows.Forms.DataGridViewTextBoxColumn S_Sanction_ID;
- private System.Windows.Forms.DataGridViewTextBoxColumn S_AbnormalItem_ID;
- private System.Windows.Forms.DataGridViewTextBoxColumn S_AbnormalItem_Name;
- private System.Windows.Forms.DataGridViewTextBoxColumn S_Number;
+ private BWP.WinFormControl.UDataGridView sanctionGrid;
private System.Windows.Forms.Label label5;
- private BWP.WinFormControl.UDataGridView uDataGridView3;
- 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.Button button1;
- private BWP.WinFormControl.UDatePicker uDatePicker1;
+ private BWP.WinFormControl.UDataGridView orderGrid;
+ private System.Windows.Forms.Button tab2SyncBtn;
+ private BWP.WinFormControl.UDatePicker tab2DateSelect;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label6;
- private BWP.WinFormControl.UDataGridView uDataGridView4;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
- private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;
- private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
- private System.Windows.Forms.Button button2;
+ private BWP.WinFormControl.UDataGridView preOrderGrid;
+ private System.Windows.Forms.FlowLayoutPanel tab2KeyPanel;
+ private System.Windows.Forms.Button closeBtn2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn P_ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn P_Supplier_Name;
+ private System.Windows.Forms.DataGridViewTextBoxColumn P_HouseNames;
+ private System.Windows.Forms.DataGridViewTextBoxColumn P_Number;
+ private System.Windows.Forms.DataGridViewTextBoxColumn P_AlreadyNumber;
+ private System.Windows.Forms.DataGridViewTextBoxColumn P_LastNumber;
+ private System.Windows.Forms.DataGridViewTextBoxColumn P_WeightTime;
+ private System.Windows.Forms.DataGridViewTextBoxColumn R_OKBtn;
+ private System.Windows.Forms.DataGridViewTextBoxColumn O_ID;
+ private System.Windows.Forms.DataGridViewTextBoxColumn O_Order;
+ private System.Windows.Forms.DataGridViewTextBoxColumn O_Number;
+ private System.Windows.Forms.DataGridViewTextBoxColumn O_HouseNames;
+ private System.Windows.Forms.DataGridViewButtonColumn O_OKBtn;
+ private System.Windows.Forms.DataGridViewButtonColumn O_HurryBtn;
+ private System.Windows.Forms.Panel panel1;
+ private BWP.WinFormControl.UTabControl uTabControl2;
+ private System.Windows.Forms.TabPage tabPage3;
+ private System.Windows.Forms.TabPage tabPage4;
+ private System.Windows.Forms.DataGridViewTextBoxColumn S_Sanction_ID1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn S_AbnormalItem_ID1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn S_AbnormalItem_Name1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn S_Number1;
+ private System.Windows.Forms.DataGridViewTextBoxColumn S_Sanction_ID2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn S_AbnormalItem_ID2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn S_AbnormalItem_Name2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn S_Number2;
+ private System.Windows.Forms.DataGridViewTextBoxColumn S_Sanction_ID3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn S_AbnormalItem_ID3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn S_AbnormalItem_Name3;
+ private System.Windows.Forms.DataGridViewTextBoxColumn S_Number3;
+ private System.Windows.Forms.TabControl housePanel;
diff --git a/QualityAndOrder/QualityOrderForm.cs b/QualityAndOrder/QualityOrderForm.cs
index 7ac36ef..25c45fe 100644
--- a/QualityAndOrder/QualityOrderForm.cs
+++ b/QualityAndOrder/QualityOrderForm.cs
@@ -28,21 +28,29 @@ namespace QualityAndOrder
#endregion
List> hogGradeList;
- List> houseList;
- List> sanctionList;
-
+ List houseList;
+ List sanctionList;
public QualityOrderForm()
{
InitializeComponent();
+ this.uTabControl1.Selected += (sender, e) =>
+ {
+ this.Text = e.TabPage.Text;
+ };
+ sanctionGrid.AutoGenerateColumns = false;
hogGradeList = BaseInfoRpcUtil.GetBaseInfoEntity("GetHogGradeList");
- houseList = BaseInfoRpcUtil.GetBaseInfoEntity("GetLiveColonyHouseList");
- sanctionList = BaseInfoRpcUtil.GetSanctionList();
- AddKeyPad();
+ houseList = HouseSplitEntity.Init(BaseInfoRpcUtil.GetBaseInfoEntity("GetLiveColonyHouseList"));
+ sanctionList = SanctionSplit3Part.Init(BaseInfoRpcUtil.GetSanctionList());
+ AddKeyPadForTab1();
AddHogGradeBtn();
+ BindSanctionGrid();
+
AddHouseBtn();
+
+ AddKeyPadForTab2();
}
- private void AddKeyPad()
+ private void AddKeyPadForTab1()
{
for (var i = 1; i < 10; i++)
{
@@ -81,7 +89,7 @@ namespace QualityAndOrder
{
foreach (var item in hogGradeList)
{
- var btn = new Button() { Name = "_" + item.Item1, Tag = item.Item1, Text = item.Item2, Size = new Size(80, 60), TextAlign = ContentAlignment.MiddleCenter, Margin = new Padding { Left = 20,Top=5 }, Font = new Font("宋体", 15) };
+ var btn = new Button() { Name = "_" + item.Item1, Tag = item.Item1, Text = item.Item2, Size = new Size(80, 60), TextAlign = ContentAlignment.MiddleCenter, Margin = new Padding { Left = 20, Top = 5 }, Font = new Font("宋体", 15) };
btn.Click += (sender, e) =>
{
numberBox.Text = btn.Tag.ToString();
@@ -90,17 +98,197 @@ namespace QualityAndOrder
}
}
+ private void BindSanctionGrid()
+ {
+ sanctionGrid.DataSource = sanctionList;
+ sanctionGrid.Refresh();
+ }
+
+ List