From c1c31c04dc71d97b523c3861ea516739d36b8b51 Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Mon, 7 Jun 2021 21:37:59 +0800 Subject: [PATCH] =?UTF-8?q?.=E5=8A=A0=E7=BC=93=E5=AD=98=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ButcherFactory.BO/BaseInfo/ClientGoodsSet.cs | 6 +- ButcherFactory.BO/BaseInfo/Goods.cs | 3 + ButcherFactory.BO/Bill/SegmentProduction.cs | 6 +- ButcherFactory.BO/Bill/TotalCode.cs | 5 +- .../LocalBL/FormClientGoodsSetBL.cs | 4 +- .../LocalBL/SegmentProductionBL.cs | 51 +- .../SegmentProductionAutoForm.Designer.cs | 1129 +++++++++-------- .../SegmentProductionAutoForm.cs | 173 ++- 8 files changed, 751 insertions(+), 626 deletions(-) diff --git a/ButcherFactory.BO/BaseInfo/ClientGoodsSet.cs b/ButcherFactory.BO/BaseInfo/ClientGoodsSet.cs index 97a7741..6e5ddec 100644 --- a/ButcherFactory.BO/BaseInfo/ClientGoodsSet.cs +++ b/ButcherFactory.BO/BaseInfo/ClientGoodsSet.cs @@ -51,7 +51,11 @@ namespace ButcherFactory.BO [ReferenceTo(typeof(Goods), "EachNumber")] [Join("Goods_ID", "ID")] - public int? EachNumber { get; set; } + public int? EachNumber { get; set; } + + [ReferenceTo(typeof(Goods), "NoTotalCode")] + [Join("Goods_ID", "ID")] + public bool? NoTotalCode { get; set; } public decimal? StandardWeight { get; set; } diff --git a/ButcherFactory.BO/BaseInfo/Goods.cs b/ButcherFactory.BO/BaseInfo/Goods.cs index 9854f71..5e84e90 100644 --- a/ButcherFactory.BO/BaseInfo/Goods.cs +++ b/ButcherFactory.BO/BaseInfo/Goods.cs @@ -26,5 +26,8 @@ namespace ButcherFactory.BO public string ShotPrintName { get; set; } public int? EachNumber { get; set; } + + [DbColumn(DefaultValue = 0)] + public bool NoTotalCode { get; set; } } } diff --git a/ButcherFactory.BO/Bill/SegmentProduction.cs b/ButcherFactory.BO/Bill/SegmentProduction.cs index 66e1720..021b25a 100644 --- a/ButcherFactory.BO/Bill/SegmentProduction.cs +++ b/ButcherFactory.BO/Bill/SegmentProduction.cs @@ -61,7 +61,11 @@ namespace ButcherFactory.BO [ReferenceTo(typeof(Goods), "GoodsType")] [Join("Goods_ID", "ID")] - public short? GoodsType { get; set; } + public short? GoodsType { get; set; } + + [ReferenceTo(typeof(Goods), "NoTotalCode")] + [Join("Goods_ID", "ID")] + public bool? NoTotalCode { get; set; } public long? GroupID { get; set; } diff --git a/ButcherFactory.BO/Bill/TotalCode.cs b/ButcherFactory.BO/Bill/TotalCode.cs index 357eee9..1ec553f 100644 --- a/ButcherFactory.BO/Bill/TotalCode.cs +++ b/ButcherFactory.BO/Bill/TotalCode.cs @@ -18,7 +18,10 @@ namespace ButcherFactory.BO public short GoodsType { get { return _goodsType; } set { _goodsType = value; } - } + } + + [DbColumn(DefaultValue = 0)] + public bool NoTotalCode { get; set; } [NonDmoProperty] public string ShortCode diff --git a/ButcherFactory.BO/LocalBL/FormClientGoodsSetBL.cs b/ButcherFactory.BO/LocalBL/FormClientGoodsSetBL.cs index ad6ff3c..245b5af 100644 --- a/ButcherFactory.BO/LocalBL/FormClientGoodsSetBL.cs +++ b/ButcherFactory.BO/LocalBL/FormClientGoodsSetBL.cs @@ -71,7 +71,8 @@ namespace ButcherFactory.BO.LocalBL query.Columns.Add(DQSelectColumn.Field("StandardPic", detail)); query.Columns.Add(DQSelectColumn.Field("MainUnit", detail)); query.Columns.Add(DQSelectColumn.Field("ShotPrintName", detail)); - query.Columns.Add(DQSelectColumn.Field("EachNumber", detail)); + query.Columns.Add(DQSelectColumn.Field("EachNumber", detail)); + query.Columns.Add(DQSelectColumn.Field("NoTotalCode", detail)); query.OrderBy.Expressions.Add(DQOrderByExpression.Create(main, "ID")); query.OrderBy.Expressions.Add(DQOrderByExpression.Create(detail, "ID")); @@ -97,6 +98,7 @@ namespace ButcherFactory.BO.LocalBL entity.MainUnit = (string)reader[10]; entity.ShotPrintName = (string)reader[11]; entity.EachNumber = (int?)reader[12]; + entity.NoTotalCode = (bool)reader[13]; if (result.ContainsKey(key)) result[key].Add(entity); else diff --git a/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs b/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs index 76a75f1..cb09521 100644 --- a/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs +++ b/ButcherFactory.BO/LocalBL/SegmentProductionBL.cs @@ -80,7 +80,51 @@ namespace ButcherFactory.BO.LocalBL return list; } - public static BindingList GetInStoreList() + public static TotalCode InitStayTotalCode() + { + TotalCode entity = null; + var date = DateTime.Now; + using (var session = DmoSession.New()) + { + var tuple = GetStayTotalCode(date, session); + if (tuple == null) + { + entity = new TotalCode(); + entity.UserID = AppContext.Worker.ID; + entity.GoodsType = 1; + entity.NoTotalCode = true; + entity.RowIndex = 1; + // 年月日+2位机器号 + entity.BarCode = string.Format("{0:yyyyMMdd}{1}", date, AppContext.ConnectInfo.ClientCode); + session.Insert(entity); + session.Commit(); + } + else + { + entity = new TotalCode(); + entity.ID = tuple.Item1; + entity.BarCode = tuple.Item2; + entity.GoodsType = 1; + entity.NoTotalCode = true; + } + + } + return entity; + } + + static Tuple GetStayTotalCode(DateTime date, IDmoSession session) + { + var query = new DQueryDom(new JoinAlias("_main", typeof(TotalCode))); + query.Columns.Add(DQSelectColumn.Field("ID")); + query.Columns.Add(DQSelectColumn.Field("BarCode")); + query.Where.Conditions.Add(DQCondition.EQ("GoodsType", 1)); + query.Where.Conditions.Add(DQCondition.EQ("NoTotalCode", 1)); + query.Where.Conditions.Add(DQCondition.GreaterThanOrEqual("CreateTime", date.Date)); + query.Where.Conditions.Add(DQCondition.LessThan("CreateTime", date.Date.AddDays(1))); + return query.EExecuteScalar(session); + } + + public static BindingList GetInStoreList() { var query = new DQueryDom(new JoinAlias(typeof(SegmentProduction))); @@ -112,10 +156,12 @@ namespace ButcherFactory.BO.LocalBL query.Columns.Add(DQSelectColumn.Field("RowIndex")); query.Columns.Add(DQSelectColumn.Field("BarCode")); query.Columns.Add(DQSelectColumn.Field("GoodsType")); + query.Columns.Add(DQSelectColumn.Field("NoTotalCode")); query.Where.Conditions.Add(DQCondition.GreaterThanOrEqual("CreateTime", date.Date)); query.Where.Conditions.Add(DQCondition.LessThan("CreateTime", date.Date.AddDays(1))); query.Where.Conditions.Add(DQCondition.And( DQCondition.EQ("Delete", false) )); query.OrderBy.Expressions.Add(DQOrderByExpression.Create("GoodsType")); + query.OrderBy.Expressions.Add(DQOrderByExpression.Create("NoTotalCode", true)); query.OrderBy.Expressions.Add(DQOrderByExpression.Create("ID",true)); var list = new BindingList(); using (var session = DmoSession.New()) @@ -128,7 +174,8 @@ namespace ButcherFactory.BO.LocalBL entity.ID = (long)reader[0]; entity.RowIndex = (int?)reader[1]; entity.BarCode = (string)reader[2]; - entity.GoodsType = (short)reader[3]; + entity.GoodsType = (short)reader[3]; + entity.NoTotalCode = (bool)reader[4]; list.Add(entity); } } diff --git a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.Designer.cs b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.Designer.cs index d8e5336..c0cc4b0 100644 --- a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.Designer.cs +++ b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.Designer.cs @@ -28,580 +28,581 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = 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(); - this.uLabel3 = new WinFormControl.ULabel(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.taskDataGrid = new WinFormControl.UDataGridView(); - this.T_Item = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.T_Need = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.T_Done = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.T_Last = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.GoodsLabel = new WinFormControl.ULabel(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.colorButton3 = new ButcherFactory.Controls.ColorButton(); - this.numberInput = new System.Windows.Forms.TextBox(); - this.label2 = new System.Windows.Forms.Label(); - this.statisticNumberBox = new System.Windows.Forms.TextBox(); - this.label1 = new System.Windows.Forms.Label(); - this.logBtn = new ButcherFactory.Controls.ColorButton(); - this.msglbl = new System.Windows.Forms.Label(); - this.closeBtn = new ButcherFactory.Controls.ColorButton(); - this.uWeightControl1 = new ButcherFactory.Controls.WeightControl(); - this.barPrintCheck = new System.Windows.Forms.CheckBox(); - this.uTimerLabel1 = new WinFormControl.UTimerLabel(); - this.productBatchSelect = new System.Windows.Forms.ComboBox(); - this.workUnitSelect = new System.Windows.Forms.ComboBox(); - this.uLabel1 = new WinFormControl.ULabel(); - this.uLabel2 = new WinFormControl.ULabel(); - this.netStateWatch1 = new WinFormControl.NetStateWatch(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.goodsSetBtn = new ButcherFactory.Controls.ColorButton(); - this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); - this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); - this.colorButton2 = new ButcherFactory.Controls.ColorButton(); - this.viewTaskBtn = new ButcherFactory.Controls.ColorButton(); - this.colorButton1 = new ButcherFactory.Controls.ColorButton(); - this.deleteBtn = new ButcherFactory.Controls.ColorButton(); - this.rePrintBtn = new ButcherFactory.Controls.ColorButton(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel(); - this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel(); - this.groupBox2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.taskDataGrid)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - this.groupBox1.SuspendLayout(); - this.SuspendLayout(); - // - // uLabel3 - // - this.uLabel3.AutoSize = true; - this.uLabel3.BackColor = System.Drawing.Color.White; - this.uLabel3.Font = new System.Drawing.Font("宋体", 12F); - this.uLabel3.Location = new System.Drawing.Point(8, 0); - this.uLabel3.Name = "uLabel3"; - this.uLabel3.Size = new System.Drawing.Size(72, 16); - this.uLabel3.TabIndex = 1; - this.uLabel3.Text = "生产历史"; - // - // groupBox2 - // - this.groupBox2.Controls.Add(this.taskDataGrid); - this.groupBox2.Location = new System.Drawing.Point(3, 3); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Padding = new System.Windows.Forms.Padding(5); - this.groupBox2.Size = new System.Drawing.Size(452, 120); - this.groupBox2.TabIndex = 4; - this.groupBox2.TabStop = false; - // - // taskDataGrid - // - this.taskDataGrid.AllowUserToAddRows = false; - this.taskDataGrid.AllowUserToDeleteRows = false; - this.taskDataGrid.AllowUserToResizeColumns = false; - this.taskDataGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.taskDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.taskDataGrid.BackgroundColor = System.Drawing.Color.White; - this.taskDataGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.taskDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.taskDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.taskDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = 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(); + this.uLabel3 = new WinFormControl.ULabel(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.taskDataGrid = new WinFormControl.UDataGridView(); + this.T_Item = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.T_Need = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.T_Done = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.T_Last = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.GoodsLabel = new WinFormControl.ULabel(); + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.numberInput = new System.Windows.Forms.TextBox(); + this.label2 = new System.Windows.Forms.Label(); + this.statisticNumberBox = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.msglbl = new System.Windows.Forms.Label(); + this.barPrintCheck = new System.Windows.Forms.CheckBox(); + this.uTimerLabel1 = new WinFormControl.UTimerLabel(); + this.productBatchSelect = new System.Windows.Forms.ComboBox(); + this.workUnitSelect = new System.Windows.Forms.ComboBox(); + this.uLabel1 = new WinFormControl.ULabel(); + this.uLabel2 = new WinFormControl.ULabel(); + this.netStateWatch1 = new WinFormControl.NetStateWatch(); + this.splitContainer2 = new System.Windows.Forms.SplitContainer(); + this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); + this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.flowLayoutPanel4 = new System.Windows.Forms.FlowLayoutPanel(); + this.flowLayoutPanel3 = new System.Windows.Forms.FlowLayoutPanel(); + this.colorButton3 = new ButcherFactory.Controls.ColorButton(); + this.logBtn = new ButcherFactory.Controls.ColorButton(); + this.closeBtn = new ButcherFactory.Controls.ColorButton(); + this.uWeightControl1 = new ButcherFactory.Controls.WeightControl(); + this.goodsSetBtn = new ButcherFactory.Controls.ColorButton(); + this.colorButton2 = new ButcherFactory.Controls.ColorButton(); + this.viewTaskBtn = new ButcherFactory.Controls.ColorButton(); + this.colorButton1 = new ButcherFactory.Controls.ColorButton(); + this.deleteBtn = new ButcherFactory.Controls.ColorButton(); + this.rePrintBtn = new ButcherFactory.Controls.ColorButton(); + this.groupBox2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.taskDataGrid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); + this.splitContainer2.Panel1.SuspendLayout(); + this.splitContainer2.Panel2.SuspendLayout(); + this.splitContainer2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // uLabel3 + // + this.uLabel3.AutoSize = true; + this.uLabel3.BackColor = System.Drawing.Color.White; + this.uLabel3.Font = new System.Drawing.Font("宋体", 12F); + this.uLabel3.Location = new System.Drawing.Point(8, 0); + this.uLabel3.Name = "uLabel3"; + this.uLabel3.Size = new System.Drawing.Size(72, 16); + this.uLabel3.TabIndex = 1; + this.uLabel3.Text = "生产历史"; + // + // groupBox2 + // + this.groupBox2.Controls.Add(this.taskDataGrid); + this.groupBox2.Location = new System.Drawing.Point(3, 3); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Padding = new System.Windows.Forms.Padding(5); + this.groupBox2.Size = new System.Drawing.Size(452, 120); + this.groupBox2.TabIndex = 4; + this.groupBox2.TabStop = false; + // + // taskDataGrid + // + this.taskDataGrid.AllowUserToAddRows = false; + this.taskDataGrid.AllowUserToDeleteRows = false; + this.taskDataGrid.AllowUserToResizeColumns = false; + this.taskDataGrid.AllowUserToResizeRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); + this.taskDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.taskDataGrid.BackgroundColor = System.Drawing.Color.White; + this.taskDataGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 12F); + dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.taskDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.taskDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.taskDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.T_Item, this.T_Need, this.T_Done, this.T_Last}); - this.taskDataGrid.Dock = System.Windows.Forms.DockStyle.Fill; - this.taskDataGrid.Location = new System.Drawing.Point(5, 19); - this.taskDataGrid.MultiSelect = false; - this.taskDataGrid.Name = "taskDataGrid"; - this.taskDataGrid.ReadOnly = true; - this.taskDataGrid.RowHeadersVisible = false; - dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.taskDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle6; - this.taskDataGrid.RowTemplate.Height = 23; - this.taskDataGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.taskDataGrid.Size = new System.Drawing.Size(442, 96); - this.taskDataGrid.TabIndex = 2; - // - // T_Item - // - this.T_Item.DataPropertyName = "Item"; - this.T_Item.HeaderText = "项目"; - this.T_Item.Name = "T_Item"; - this.T_Item.ReadOnly = true; - // - // T_Need - // - this.T_Need.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.T_Need.DataPropertyName = "Need"; - dataGridViewCellStyle3.Format = "#0.######"; - this.T_Need.DefaultCellStyle = dataGridViewCellStyle3; - this.T_Need.HeaderText = "订货"; - this.T_Need.Name = "T_Need"; - this.T_Need.ReadOnly = true; - // - // T_Done - // - this.T_Done.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.T_Done.DataPropertyName = "Done"; - dataGridViewCellStyle4.Format = "#0.######"; - this.T_Done.DefaultCellStyle = dataGridViewCellStyle4; - this.T_Done.HeaderText = "完工"; - this.T_Done.Name = "T_Done"; - this.T_Done.ReadOnly = true; - // - // T_Last - // - this.T_Last.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.T_Last.DataPropertyName = "Last"; - dataGridViewCellStyle5.Format = "#0.######"; - this.T_Last.DefaultCellStyle = dataGridViewCellStyle5; - this.T_Last.HeaderText = "剩余"; - this.T_Last.Name = "T_Last"; - this.T_Last.ReadOnly = true; - // - // GoodsLabel - // - this.GoodsLabel.AutoSize = true; - this.GoodsLabel.BackColor = System.Drawing.Color.White; - this.GoodsLabel.Font = new System.Drawing.Font("宋体", 12F); - this.GoodsLabel.ForeColor = System.Drawing.Color.Blue; - this.GoodsLabel.Location = new System.Drawing.Point(144, 178); - this.GoodsLabel.Name = "GoodsLabel"; - this.GoodsLabel.Size = new System.Drawing.Size(72, 16); - this.GoodsLabel.TabIndex = 1; - this.GoodsLabel.Text = "存货名称"; - // - // splitContainer1 - // - this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; - this.splitContainer1.IsSplitterFixed = true; - this.splitContainer1.Location = new System.Drawing.Point(0, 0); - this.splitContainer1.Name = "splitContainer1"; - this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; - // - // splitContainer1.Panel1 - // - this.splitContainer1.Panel1.Controls.Add(this.colorButton3); - this.splitContainer1.Panel1.Controls.Add(this.numberInput); - this.splitContainer1.Panel1.Controls.Add(this.label2); - this.splitContainer1.Panel1.Controls.Add(this.statisticNumberBox); - this.splitContainer1.Panel1.Controls.Add(this.label1); - this.splitContainer1.Panel1.Controls.Add(this.logBtn); - this.splitContainer1.Panel1.Controls.Add(this.msglbl); - this.splitContainer1.Panel1.Controls.Add(this.closeBtn); - this.splitContainer1.Panel1.Controls.Add(this.uWeightControl1); - this.splitContainer1.Panel1.Controls.Add(this.barPrintCheck); - this.splitContainer1.Panel1.Controls.Add(this.uTimerLabel1); - this.splitContainer1.Panel1.Controls.Add(this.productBatchSelect); - this.splitContainer1.Panel1.Controls.Add(this.workUnitSelect); - this.splitContainer1.Panel1.Controls.Add(this.uLabel1); - this.splitContainer1.Panel1.Controls.Add(this.uLabel2); - this.splitContainer1.Panel1.Controls.Add(this.netStateWatch1); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); - this.splitContainer1.Size = new System.Drawing.Size(1226, 704); - this.splitContainer1.SplitterDistance = 87; - this.splitContainer1.TabIndex = 1; - // - // colorButton3 - // - this.colorButton3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.colorButton3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); - this.colorButton3.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.colorButton3.ForeColor = System.Drawing.Color.White; - this.colorButton3.Location = new System.Drawing.Point(567, 4); - this.colorButton3.Name = "colorButton3"; - this.colorButton3.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); - this.colorButton3.Size = new System.Drawing.Size(101, 41); - this.colorButton3.TabIndex = 30; - this.colorButton3.Text = "手工上传"; - this.colorButton3.UseVisualStyleBackColor = false; - this.colorButton3.Click += new System.EventHandler(this.colorButton3_Click); - // - // numberInput - // - this.numberInput.Font = new System.Drawing.Font("宋体", 15F); - this.numberInput.Location = new System.Drawing.Point(680, 47); - this.numberInput.Name = "numberInput"; - this.numberInput.Size = new System.Drawing.Size(115, 30); - this.numberInput.TabIndex = 29; - this.numberInput.Text = "1"; - this.numberInput.MouseClick += new System.Windows.Forms.MouseEventHandler(this.numberInput_MouseClick); - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Font = new System.Drawing.Font("宋体", 15F); - this.label2.Location = new System.Drawing.Point(623, 51); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(69, 20); - this.label2.TabIndex = 28; - this.label2.Text = "数量:"; - // - // statisticNumberBox - // - this.statisticNumberBox.Font = new System.Drawing.Font("宋体", 15F); - this.statisticNumberBox.Location = new System.Drawing.Point(502, 47); - this.statisticNumberBox.Name = "statisticNumberBox"; - this.statisticNumberBox.Size = new System.Drawing.Size(115, 30); - this.statisticNumberBox.TabIndex = 27; - this.statisticNumberBox.MouseClick += new System.Windows.Forms.MouseEventHandler(this.StatisticNumberBox_MouseClick); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("宋体", 15F); - this.label1.Location = new System.Drawing.Point(400, 51); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(109, 20); - this.label1.TabIndex = 26; - this.label1.Text = "统计数量:"; - // - // logBtn - // - this.logBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.logBtn.BackColor = System.Drawing.Color.CadetBlue; - this.logBtn.Font = new System.Drawing.Font("宋体", 15F); - this.logBtn.ForeColor = System.Drawing.Color.White; - this.logBtn.Location = new System.Drawing.Point(680, 4); - this.logBtn.Name = "logBtn"; - this.logBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); - this.logBtn.Size = new System.Drawing.Size(101, 41); - this.logBtn.TabIndex = 25; - this.logBtn.Text = "日志"; - this.logBtn.UseVisualStyleBackColor = false; - this.logBtn.Click += new System.EventHandler(this.logBtn_Click); - // - // msglbl - // - this.msglbl.AutoSize = true; - this.msglbl.ForeColor = System.Drawing.Color.Red; - this.msglbl.Location = new System.Drawing.Point(388, 11); - this.msglbl.Name = "msglbl"; - this.msglbl.Size = new System.Drawing.Size(101, 12); - this.msglbl.TabIndex = 24; - this.msglbl.Text = "正在获取基础信息"; - // - // closeBtn - // - this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.closeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25))))); - this.closeBtn.Font = new System.Drawing.Font("宋体", 15F); - this.closeBtn.ForeColor = System.Drawing.Color.White; - this.closeBtn.Location = new System.Drawing.Point(1109, 7); - this.closeBtn.Name = "closeBtn"; - this.closeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); - this.closeBtn.Size = new System.Drawing.Size(111, 41); - this.closeBtn.TabIndex = 18; - this.closeBtn.Text = "关闭"; - this.closeBtn.UseVisualStyleBackColor = false; - this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); - // - // uWeightControl1 - // - this.uWeightControl1.BackColor = System.Drawing.Color.Transparent; - this.uWeightControl1.Location = new System.Drawing.Point(12, 7); - this.uWeightControl1.Name = "uWeightControl1"; - this.uWeightControl1.Size = new System.Drawing.Size(262, 74); - this.uWeightControl1.TabIndex = 17; - this.uWeightControl1.WeightFalg = null; - // - // barPrintCheck - // - this.barPrintCheck.AutoSize = true; - this.barPrintCheck.Font = new System.Drawing.Font("宋体", 15F); - this.barPrintCheck.Location = new System.Drawing.Point(292, 50); - this.barPrintCheck.Name = "barPrintCheck"; - this.barPrintCheck.Size = new System.Drawing.Size(108, 24); - this.barPrintCheck.TabIndex = 16; - this.barPrintCheck.Text = "启用打码"; - this.barPrintCheck.UseVisualStyleBackColor = true; - // - // uTimerLabel1 - // - this.uTimerLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uTimerLabel1.AutoSize = true; - this.uTimerLabel1.BackColor = System.Drawing.Color.Transparent; - this.uTimerLabel1.Font = new System.Drawing.Font("黑体", 12F); - this.uTimerLabel1.Format = "M月d日 H:mm:ss"; - this.uTimerLabel1.Location = new System.Drawing.Point(1084, 53); - this.uTimerLabel1.Name = "uTimerLabel1"; - this.uTimerLabel1.Size = new System.Drawing.Size(136, 16); - this.uTimerLabel1.TabIndex = 14; - this.uTimerLabel1.Text = "4月21日 16:32:19"; - // - // productBatchSelect - // - this.productBatchSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.productBatchSelect.Font = new System.Drawing.Font("宋体", 15F); - this.productBatchSelect.FormattingEnabled = true; - this.productBatchSelect.Location = new System.Drawing.Point(903, 47); - this.productBatchSelect.Name = "productBatchSelect"; - this.productBatchSelect.Size = new System.Drawing.Size(170, 28); - this.productBatchSelect.TabIndex = 11; - // - // workUnitSelect - // - this.workUnitSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.workUnitSelect.Font = new System.Drawing.Font("宋体", 15F); - this.workUnitSelect.FormattingEnabled = true; - this.workUnitSelect.Location = new System.Drawing.Point(903, 11); - this.workUnitSelect.Name = "workUnitSelect"; - this.workUnitSelect.Size = new System.Drawing.Size(170, 28); - this.workUnitSelect.TabIndex = 10; - // - // uLabel1 - // - this.uLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uLabel1.AutoSize = true; - this.uLabel1.BackColor = System.Drawing.Color.Transparent; - this.uLabel1.Font = new System.Drawing.Font("宋体", 15F); - this.uLabel1.Location = new System.Drawing.Point(802, 14); - this.uLabel1.Name = "uLabel1"; - this.uLabel1.Size = new System.Drawing.Size(109, 20); - this.uLabel1.TabIndex = 12; - this.uLabel1.Text = "工作单元:"; - // - // uLabel2 - // - this.uLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uLabel2.AutoSize = true; - this.uLabel2.BackColor = System.Drawing.Color.Transparent; - this.uLabel2.Font = new System.Drawing.Font("宋体", 15F); - this.uLabel2.Location = new System.Drawing.Point(802, 50); - this.uLabel2.Name = "uLabel2"; - this.uLabel2.Size = new System.Drawing.Size(109, 20); - this.uLabel2.TabIndex = 13; - this.uLabel2.Text = "生产批次:"; - // - // netStateWatch1 - // - this.netStateWatch1.BackColor = System.Drawing.Color.Transparent; - this.netStateWatch1.Location = new System.Drawing.Point(292, 2); - this.netStateWatch1.Name = "netStateWatch1"; - this.netStateWatch1.Size = new System.Drawing.Size(90, 39); - this.netStateWatch1.TabIndex = 1; - // - // splitContainer2 - // - this.splitContainer2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; - this.splitContainer2.Location = new System.Drawing.Point(0, 0); - this.splitContainer2.Name = "splitContainer2"; - // - // splitContainer2.Panel1 - // - this.splitContainer2.Panel1.Controls.Add(this.goodsSetBtn); - this.splitContainer2.Panel1.Controls.Add(this.flowLayoutPanel2); - this.splitContainer2.Panel1.Controls.Add(this.flowLayoutPanel1); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.Controls.Add(this.colorButton2); - this.splitContainer2.Panel2.Controls.Add(this.viewTaskBtn); - this.splitContainer2.Panel2.Controls.Add(this.GoodsLabel); - this.splitContainer2.Panel2.Controls.Add(this.colorButton1); - this.splitContainer2.Panel2.Controls.Add(this.deleteBtn); - this.splitContainer2.Panel2.Controls.Add(this.rePrintBtn); - this.splitContainer2.Panel2.Controls.Add(this.groupBox1); - this.splitContainer2.Panel2.Controls.Add(this.groupBox2); - this.splitContainer2.Size = new System.Drawing.Size(1226, 613); - this.splitContainer2.SplitterDistance = 761; - this.splitContainer2.TabIndex = 0; - // - // goodsSetBtn - // - this.goodsSetBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.goodsSetBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); - this.goodsSetBtn.Font = new System.Drawing.Font("宋体", 15F); - this.goodsSetBtn.ForeColor = System.Drawing.Color.White; - this.goodsSetBtn.Location = new System.Drawing.Point(645, 3); - this.goodsSetBtn.Name = "goodsSetBtn"; - this.goodsSetBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); - this.goodsSetBtn.Size = new System.Drawing.Size(111, 62); - this.goodsSetBtn.TabIndex = 19; - this.goodsSetBtn.Text = "产品设置"; - this.goodsSetBtn.UseVisualStyleBackColor = false; - this.goodsSetBtn.Click += new System.EventHandler(this.goodsSetBtn_Click); - // - // flowLayoutPanel2 - // - this.flowLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.taskDataGrid.Dock = System.Windows.Forms.DockStyle.Fill; + this.taskDataGrid.Location = new System.Drawing.Point(5, 19); + this.taskDataGrid.MultiSelect = false; + this.taskDataGrid.Name = "taskDataGrid"; + this.taskDataGrid.ReadOnly = true; + this.taskDataGrid.RowHeadersVisible = false; + dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); + this.taskDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle6; + this.taskDataGrid.RowTemplate.Height = 23; + this.taskDataGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.taskDataGrid.Size = new System.Drawing.Size(442, 96); + this.taskDataGrid.TabIndex = 2; + // + // T_Item + // + this.T_Item.DataPropertyName = "Item"; + this.T_Item.HeaderText = "项目"; + this.T_Item.Name = "T_Item"; + this.T_Item.ReadOnly = true; + // + // T_Need + // + this.T_Need.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.T_Need.DataPropertyName = "Need"; + dataGridViewCellStyle3.Format = "#0.######"; + this.T_Need.DefaultCellStyle = dataGridViewCellStyle3; + this.T_Need.HeaderText = "订货"; + this.T_Need.Name = "T_Need"; + this.T_Need.ReadOnly = true; + // + // T_Done + // + this.T_Done.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.T_Done.DataPropertyName = "Done"; + dataGridViewCellStyle4.Format = "#0.######"; + this.T_Done.DefaultCellStyle = dataGridViewCellStyle4; + this.T_Done.HeaderText = "完工"; + this.T_Done.Name = "T_Done"; + this.T_Done.ReadOnly = true; + // + // T_Last + // + this.T_Last.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.T_Last.DataPropertyName = "Last"; + dataGridViewCellStyle5.Format = "#0.######"; + this.T_Last.DefaultCellStyle = dataGridViewCellStyle5; + this.T_Last.HeaderText = "剩余"; + this.T_Last.Name = "T_Last"; + this.T_Last.ReadOnly = true; + // + // GoodsLabel + // + this.GoodsLabel.AutoSize = true; + this.GoodsLabel.BackColor = System.Drawing.Color.White; + this.GoodsLabel.Font = new System.Drawing.Font("宋体", 12F); + this.GoodsLabel.ForeColor = System.Drawing.Color.Blue; + this.GoodsLabel.Location = new System.Drawing.Point(144, 178); + this.GoodsLabel.Name = "GoodsLabel"; + this.GoodsLabel.Size = new System.Drawing.Size(72, 16); + this.GoodsLabel.TabIndex = 1; + this.GoodsLabel.Text = "存货名称"; + // + // splitContainer1 + // + this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.splitContainer1.IsSplitterFixed = true; + this.splitContainer1.Location = new System.Drawing.Point(0, 0); + this.splitContainer1.Name = "splitContainer1"; + this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.Controls.Add(this.colorButton3); + this.splitContainer1.Panel1.Controls.Add(this.numberInput); + this.splitContainer1.Panel1.Controls.Add(this.label2); + this.splitContainer1.Panel1.Controls.Add(this.statisticNumberBox); + this.splitContainer1.Panel1.Controls.Add(this.label1); + this.splitContainer1.Panel1.Controls.Add(this.logBtn); + this.splitContainer1.Panel1.Controls.Add(this.msglbl); + this.splitContainer1.Panel1.Controls.Add(this.closeBtn); + this.splitContainer1.Panel1.Controls.Add(this.uWeightControl1); + this.splitContainer1.Panel1.Controls.Add(this.barPrintCheck); + this.splitContainer1.Panel1.Controls.Add(this.uTimerLabel1); + this.splitContainer1.Panel1.Controls.Add(this.productBatchSelect); + this.splitContainer1.Panel1.Controls.Add(this.workUnitSelect); + this.splitContainer1.Panel1.Controls.Add(this.uLabel1); + this.splitContainer1.Panel1.Controls.Add(this.uLabel2); + this.splitContainer1.Panel1.Controls.Add(this.netStateWatch1); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); + this.splitContainer1.Size = new System.Drawing.Size(1226, 704); + this.splitContainer1.SplitterDistance = 87; + this.splitContainer1.TabIndex = 1; + // + // numberInput + // + this.numberInput.Font = new System.Drawing.Font("宋体", 15F); + this.numberInput.Location = new System.Drawing.Point(680, 47); + this.numberInput.Name = "numberInput"; + this.numberInput.Size = new System.Drawing.Size(115, 30); + this.numberInput.TabIndex = 29; + this.numberInput.Text = "1"; + this.numberInput.MouseClick += new System.Windows.Forms.MouseEventHandler(this.numberInput_MouseClick); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("宋体", 15F); + this.label2.Location = new System.Drawing.Point(623, 51); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(69, 20); + this.label2.TabIndex = 28; + this.label2.Text = "数量:"; + // + // statisticNumberBox + // + this.statisticNumberBox.Font = new System.Drawing.Font("宋体", 15F); + this.statisticNumberBox.Location = new System.Drawing.Point(502, 47); + this.statisticNumberBox.Name = "statisticNumberBox"; + this.statisticNumberBox.Size = new System.Drawing.Size(115, 30); + this.statisticNumberBox.TabIndex = 27; + this.statisticNumberBox.MouseClick += new System.Windows.Forms.MouseEventHandler(this.StatisticNumberBox_MouseClick); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("宋体", 15F); + this.label1.Location = new System.Drawing.Point(400, 51); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(109, 20); + this.label1.TabIndex = 26; + this.label1.Text = "统计数量:"; + // + // msglbl + // + this.msglbl.AutoSize = true; + this.msglbl.ForeColor = System.Drawing.Color.Red; + this.msglbl.Location = new System.Drawing.Point(388, 11); + this.msglbl.Name = "msglbl"; + this.msglbl.Size = new System.Drawing.Size(101, 12); + this.msglbl.TabIndex = 24; + this.msglbl.Text = "正在获取基础信息"; + // + // barPrintCheck + // + this.barPrintCheck.AutoSize = true; + this.barPrintCheck.Font = new System.Drawing.Font("宋体", 15F); + this.barPrintCheck.Location = new System.Drawing.Point(292, 50); + this.barPrintCheck.Name = "barPrintCheck"; + this.barPrintCheck.Size = new System.Drawing.Size(108, 24); + this.barPrintCheck.TabIndex = 16; + this.barPrintCheck.Text = "启用打码"; + this.barPrintCheck.UseVisualStyleBackColor = true; + // + // uTimerLabel1 + // + this.uTimerLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.uTimerLabel1.AutoSize = true; + this.uTimerLabel1.BackColor = System.Drawing.Color.Transparent; + this.uTimerLabel1.Font = new System.Drawing.Font("黑体", 12F); + this.uTimerLabel1.Format = "M月d日 H:mm:ss"; + this.uTimerLabel1.Location = new System.Drawing.Point(1084, 53); + this.uTimerLabel1.Name = "uTimerLabel1"; + this.uTimerLabel1.Size = new System.Drawing.Size(136, 16); + this.uTimerLabel1.TabIndex = 14; + this.uTimerLabel1.Text = "4月21日 16:32:19"; + // + // productBatchSelect + // + this.productBatchSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.productBatchSelect.Font = new System.Drawing.Font("宋体", 15F); + this.productBatchSelect.FormattingEnabled = true; + this.productBatchSelect.Location = new System.Drawing.Point(903, 47); + this.productBatchSelect.Name = "productBatchSelect"; + this.productBatchSelect.Size = new System.Drawing.Size(170, 28); + this.productBatchSelect.TabIndex = 11; + // + // workUnitSelect + // + this.workUnitSelect.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.workUnitSelect.Font = new System.Drawing.Font("宋体", 15F); + this.workUnitSelect.FormattingEnabled = true; + this.workUnitSelect.Location = new System.Drawing.Point(903, 11); + this.workUnitSelect.Name = "workUnitSelect"; + this.workUnitSelect.Size = new System.Drawing.Size(170, 28); + this.workUnitSelect.TabIndex = 10; + // + // uLabel1 + // + this.uLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.uLabel1.AutoSize = true; + this.uLabel1.BackColor = System.Drawing.Color.Transparent; + this.uLabel1.Font = new System.Drawing.Font("宋体", 15F); + this.uLabel1.Location = new System.Drawing.Point(802, 14); + this.uLabel1.Name = "uLabel1"; + this.uLabel1.Size = new System.Drawing.Size(109, 20); + this.uLabel1.TabIndex = 12; + this.uLabel1.Text = "工作单元:"; + // + // uLabel2 + // + this.uLabel2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.uLabel2.AutoSize = true; + this.uLabel2.BackColor = System.Drawing.Color.Transparent; + this.uLabel2.Font = new System.Drawing.Font("宋体", 15F); + this.uLabel2.Location = new System.Drawing.Point(802, 50); + this.uLabel2.Name = "uLabel2"; + this.uLabel2.Size = new System.Drawing.Size(109, 20); + this.uLabel2.TabIndex = 13; + this.uLabel2.Text = "生产批次:"; + // + // netStateWatch1 + // + this.netStateWatch1.BackColor = System.Drawing.Color.Transparent; + this.netStateWatch1.Location = new System.Drawing.Point(292, 2); + this.netStateWatch1.Name = "netStateWatch1"; + this.netStateWatch1.Size = new System.Drawing.Size(90, 39); + this.netStateWatch1.TabIndex = 1; + // + // splitContainer2 + // + this.splitContainer2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; + this.splitContainer2.Location = new System.Drawing.Point(0, 0); + this.splitContainer2.Name = "splitContainer2"; + // + // splitContainer2.Panel1 + // + this.splitContainer2.Panel1.Controls.Add(this.goodsSetBtn); + this.splitContainer2.Panel1.Controls.Add(this.flowLayoutPanel2); + this.splitContainer2.Panel1.Controls.Add(this.flowLayoutPanel1); + // + // splitContainer2.Panel2 + // + this.splitContainer2.Panel2.Controls.Add(this.colorButton2); + this.splitContainer2.Panel2.Controls.Add(this.viewTaskBtn); + this.splitContainer2.Panel2.Controls.Add(this.GoodsLabel); + this.splitContainer2.Panel2.Controls.Add(this.colorButton1); + this.splitContainer2.Panel2.Controls.Add(this.deleteBtn); + this.splitContainer2.Panel2.Controls.Add(this.rePrintBtn); + this.splitContainer2.Panel2.Controls.Add(this.groupBox1); + this.splitContainer2.Panel2.Controls.Add(this.groupBox2); + this.splitContainer2.Size = new System.Drawing.Size(1226, 613); + this.splitContainer2.SplitterDistance = 761; + this.splitContainer2.TabIndex = 0; + // + // flowLayoutPanel2 + // + this.flowLayoutPanel2.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.flowLayoutPanel2.AutoScroll = true; - this.flowLayoutPanel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.flowLayoutPanel2.Location = new System.Drawing.Point(-1, 75); - this.flowLayoutPanel2.Name = "flowLayoutPanel2"; - this.flowLayoutPanel2.Size = new System.Drawing.Size(757, 536); - this.flowLayoutPanel2.TabIndex = 24; - // - // flowLayoutPanel1 - // - this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.flowLayoutPanel2.AutoScroll = true; + this.flowLayoutPanel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.flowLayoutPanel2.Location = new System.Drawing.Point(-1, 75); + this.flowLayoutPanel2.Name = "flowLayoutPanel2"; + this.flowLayoutPanel2.Size = new System.Drawing.Size(757, 536); + this.flowLayoutPanel2.TabIndex = 24; + // + // flowLayoutPanel1 + // + this.flowLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.flowLayoutPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.flowLayoutPanel1.Location = new System.Drawing.Point(-1, -1); - this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(640, 70); - this.flowLayoutPanel1.TabIndex = 22; - // - // colorButton2 - // - this.colorButton2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); - this.colorButton2.Font = new System.Drawing.Font("宋体", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.colorButton2.ForeColor = System.Drawing.Color.White; - this.colorButton2.Location = new System.Drawing.Point(344, 178); - this.colorButton2.Name = "colorButton2"; - this.colorButton2.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); - this.colorButton2.Size = new System.Drawing.Size(91, 38); - this.colorButton2.TabIndex = 5; - this.colorButton2.Text = "打总码"; - this.colorButton2.UseVisualStyleBackColor = false; - this.colorButton2.Click += new System.EventHandler(this.colorButton2_Click); - // - // viewTaskBtn - // - this.viewTaskBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.viewTaskBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); - this.viewTaskBtn.Font = new System.Drawing.Font("宋体", 15F); - this.viewTaskBtn.ForeColor = System.Drawing.Color.White; - this.viewTaskBtn.Location = new System.Drawing.Point(13, 124); - this.viewTaskBtn.Name = "viewTaskBtn"; - this.viewTaskBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); - this.viewTaskBtn.Size = new System.Drawing.Size(100, 41); - this.viewTaskBtn.TabIndex = 24; - this.viewTaskBtn.Text = "完工"; - this.viewTaskBtn.UseVisualStyleBackColor = false; - this.viewTaskBtn.Click += new System.EventHandler(this.ViewTaskBtn_Click); - // - // colorButton1 - // - this.colorButton1.BackColor = System.Drawing.Color.Blue; - this.colorButton1.Font = new System.Drawing.Font("宋体", 28F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.colorButton1.ForeColor = System.Drawing.Color.White; - this.colorButton1.Location = new System.Drawing.Point(13, 178); - this.colorButton1.Name = "colorButton1"; - this.colorButton1.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); - this.colorButton1.Size = new System.Drawing.Size(100, 38); - this.colorButton1.TabIndex = 3; - this.colorButton1.Text = "+"; - this.colorButton1.UseVisualStyleBackColor = false; - this.colorButton1.Click += new System.EventHandler(this.colorButton1_Click); - // - // deleteBtn - // - this.deleteBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.deleteBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25))))); - this.deleteBtn.Font = new System.Drawing.Font("宋体", 15F); - this.deleteBtn.ForeColor = System.Drawing.Color.White; - this.deleteBtn.Location = new System.Drawing.Point(178, 124); - this.deleteBtn.Name = "deleteBtn"; - this.deleteBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); - this.deleteBtn.Size = new System.Drawing.Size(85, 41); - this.deleteBtn.TabIndex = 23; - this.deleteBtn.Text = "删除"; - this.deleteBtn.UseVisualStyleBackColor = false; - this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click); - // - // rePrintBtn - // - this.rePrintBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(98)))), ((int)(((byte)(222))))); - this.rePrintBtn.Font = new System.Drawing.Font("宋体", 15F); - this.rePrintBtn.ForeColor = System.Drawing.Color.White; - this.rePrintBtn.Location = new System.Drawing.Point(344, 126); - this.rePrintBtn.Name = "rePrintBtn"; - this.rePrintBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); - this.rePrintBtn.Size = new System.Drawing.Size(91, 39); - this.rePrintBtn.TabIndex = 22; - this.rePrintBtn.Text = "补打"; - this.rePrintBtn.UseVisualStyleBackColor = false; - this.rePrintBtn.Click += new System.EventHandler(this.rePrintBtn_Click); - // - // groupBox1 - // - this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.flowLayoutPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.flowLayoutPanel1.Location = new System.Drawing.Point(-1, -1); + this.flowLayoutPanel1.Name = "flowLayoutPanel1"; + this.flowLayoutPanel1.Size = new System.Drawing.Size(640, 70); + this.flowLayoutPanel1.TabIndex = 22; + // + // groupBox1 + // + this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); - this.groupBox1.Controls.Add(this.flowLayoutPanel4); - this.groupBox1.Controls.Add(this.flowLayoutPanel3); - this.groupBox1.Controls.Add(this.uLabel3); - this.groupBox1.Location = new System.Drawing.Point(8, 222); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Padding = new System.Windows.Forms.Padding(5); - this.groupBox1.Size = new System.Drawing.Size(447, 381); - this.groupBox1.TabIndex = 5; - this.groupBox1.TabStop = false; - // - // flowLayoutPanel4 - // - this.flowLayoutPanel4.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.groupBox1.Controls.Add(this.flowLayoutPanel4); + this.groupBox1.Controls.Add(this.flowLayoutPanel3); + this.groupBox1.Controls.Add(this.uLabel3); + this.groupBox1.Location = new System.Drawing.Point(8, 222); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Padding = new System.Windows.Forms.Padding(5); + this.groupBox1.Size = new System.Drawing.Size(447, 381); + this.groupBox1.TabIndex = 5; + this.groupBox1.TabStop = false; + // + // flowLayoutPanel4 + // + this.flowLayoutPanel4.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.flowLayoutPanel4.AutoScroll = true; - this.flowLayoutPanel4.Location = new System.Drawing.Point(5, 90); - this.flowLayoutPanel4.Name = "flowLayoutPanel4"; - this.flowLayoutPanel4.Size = new System.Drawing.Size(437, 286); - this.flowLayoutPanel4.TabIndex = 5; - // - // flowLayoutPanel3 - // - this.flowLayoutPanel3.AutoScroll = true; - this.flowLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Top; - this.flowLayoutPanel3.Location = new System.Drawing.Point(5, 19); - this.flowLayoutPanel3.Margin = new System.Windows.Forms.Padding(0); - this.flowLayoutPanel3.Name = "flowLayoutPanel3"; - this.flowLayoutPanel3.Size = new System.Drawing.Size(437, 68); - this.flowLayoutPanel3.TabIndex = 4; - this.flowLayoutPanel3.WrapContents = false; - // - // SegmentProductionAutoForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1226, 704); - this.Controls.Add(this.splitContainer1); - this.Name = "SegmentProductionAutoForm"; - this.Text = "分割品车间称重计数"; - this.WindowState = System.Windows.Forms.FormWindowState.Maximized; - this.groupBox2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.taskDataGrid)).EndInit(); - this.splitContainer1.Panel1.ResumeLayout(false); - this.splitContainer1.Panel1.PerformLayout(); - this.splitContainer1.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); - this.splitContainer1.ResumeLayout(false); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - this.splitContainer2.Panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); - this.ResumeLayout(false); + this.flowLayoutPanel4.AutoScroll = true; + this.flowLayoutPanel4.Location = new System.Drawing.Point(5, 90); + this.flowLayoutPanel4.Name = "flowLayoutPanel4"; + this.flowLayoutPanel4.Size = new System.Drawing.Size(437, 286); + this.flowLayoutPanel4.TabIndex = 5; + // + // flowLayoutPanel3 + // + this.flowLayoutPanel3.AutoScroll = true; + this.flowLayoutPanel3.BackColor = System.Drawing.Color.White; + this.flowLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Top; + this.flowLayoutPanel3.Location = new System.Drawing.Point(5, 19); + this.flowLayoutPanel3.Margin = new System.Windows.Forms.Padding(0); + this.flowLayoutPanel3.Name = "flowLayoutPanel3"; + this.flowLayoutPanel3.Size = new System.Drawing.Size(437, 68); + this.flowLayoutPanel3.TabIndex = 4; + this.flowLayoutPanel3.WrapContents = false; + // + // colorButton3 + // + this.colorButton3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.colorButton3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0))))); + this.colorButton3.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorButton3.ForeColor = System.Drawing.Color.White; + this.colorButton3.Location = new System.Drawing.Point(567, 4); + this.colorButton3.Name = "colorButton3"; + this.colorButton3.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); + this.colorButton3.Size = new System.Drawing.Size(101, 41); + this.colorButton3.TabIndex = 30; + this.colorButton3.Text = "手工上传"; + this.colorButton3.UseVisualStyleBackColor = false; + this.colorButton3.Click += new System.EventHandler(this.colorButton3_Click); + // + // logBtn + // + this.logBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.logBtn.BackColor = System.Drawing.Color.CadetBlue; + this.logBtn.Font = new System.Drawing.Font("宋体", 15F); + this.logBtn.ForeColor = System.Drawing.Color.White; + this.logBtn.Location = new System.Drawing.Point(680, 4); + this.logBtn.Name = "logBtn"; + this.logBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); + this.logBtn.Size = new System.Drawing.Size(101, 41); + this.logBtn.TabIndex = 25; + this.logBtn.Text = "日志"; + this.logBtn.UseVisualStyleBackColor = false; + this.logBtn.Click += new System.EventHandler(this.logBtn_Click); + // + // closeBtn + // + this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.closeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25))))); + this.closeBtn.Font = new System.Drawing.Font("宋体", 15F); + this.closeBtn.ForeColor = System.Drawing.Color.White; + this.closeBtn.Location = new System.Drawing.Point(1109, 7); + this.closeBtn.Name = "closeBtn"; + this.closeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); + this.closeBtn.Size = new System.Drawing.Size(111, 41); + this.closeBtn.TabIndex = 18; + this.closeBtn.Text = "关闭"; + this.closeBtn.UseVisualStyleBackColor = false; + this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); + // + // uWeightControl1 + // + this.uWeightControl1.BackColor = System.Drawing.Color.Transparent; + this.uWeightControl1.Location = new System.Drawing.Point(12, 7); + this.uWeightControl1.Name = "uWeightControl1"; + this.uWeightControl1.Size = new System.Drawing.Size(262, 74); + this.uWeightControl1.TabIndex = 17; + this.uWeightControl1.WeightFalg = null; + // + // goodsSetBtn + // + this.goodsSetBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.goodsSetBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); + this.goodsSetBtn.Font = new System.Drawing.Font("宋体", 15F); + this.goodsSetBtn.ForeColor = System.Drawing.Color.White; + this.goodsSetBtn.Location = new System.Drawing.Point(645, 3); + this.goodsSetBtn.Name = "goodsSetBtn"; + this.goodsSetBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); + this.goodsSetBtn.Size = new System.Drawing.Size(111, 62); + this.goodsSetBtn.TabIndex = 19; + this.goodsSetBtn.Text = "产品设置"; + this.goodsSetBtn.UseVisualStyleBackColor = false; + this.goodsSetBtn.Click += new System.EventHandler(this.goodsSetBtn_Click); + // + // colorButton2 + // + this.colorButton2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); + this.colorButton2.Font = new System.Drawing.Font("宋体", 13F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorButton2.ForeColor = System.Drawing.Color.White; + this.colorButton2.Location = new System.Drawing.Point(344, 178); + this.colorButton2.Name = "colorButton2"; + this.colorButton2.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); + this.colorButton2.Size = new System.Drawing.Size(91, 38); + this.colorButton2.TabIndex = 5; + this.colorButton2.Text = "打总码"; + this.colorButton2.UseVisualStyleBackColor = false; + this.colorButton2.Click += new System.EventHandler(this.colorButton2_Click); + // + // viewTaskBtn + // + this.viewTaskBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.viewTaskBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); + this.viewTaskBtn.Font = new System.Drawing.Font("宋体", 15F); + this.viewTaskBtn.ForeColor = System.Drawing.Color.White; + this.viewTaskBtn.Location = new System.Drawing.Point(13, 124); + this.viewTaskBtn.Name = "viewTaskBtn"; + this.viewTaskBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); + this.viewTaskBtn.Size = new System.Drawing.Size(100, 41); + this.viewTaskBtn.TabIndex = 24; + this.viewTaskBtn.Text = "完工"; + this.viewTaskBtn.UseVisualStyleBackColor = false; + this.viewTaskBtn.Click += new System.EventHandler(this.ViewTaskBtn_Click); + // + // colorButton1 + // + this.colorButton1.BackColor = System.Drawing.Color.Blue; + this.colorButton1.Font = new System.Drawing.Font("宋体", 28F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorButton1.ForeColor = System.Drawing.Color.White; + this.colorButton1.Location = new System.Drawing.Point(13, 178); + this.colorButton1.Name = "colorButton1"; + this.colorButton1.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); + this.colorButton1.Size = new System.Drawing.Size(100, 38); + this.colorButton1.TabIndex = 3; + this.colorButton1.Text = "+"; + this.colorButton1.UseVisualStyleBackColor = false; + this.colorButton1.Click += new System.EventHandler(this.colorButton1_Click); + // + // deleteBtn + // + this.deleteBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.deleteBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(25))))); + this.deleteBtn.Font = new System.Drawing.Font("宋体", 15F); + this.deleteBtn.ForeColor = System.Drawing.Color.White; + this.deleteBtn.Location = new System.Drawing.Point(178, 124); + this.deleteBtn.Name = "deleteBtn"; + this.deleteBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); + this.deleteBtn.Size = new System.Drawing.Size(85, 41); + this.deleteBtn.TabIndex = 23; + this.deleteBtn.Text = "删除"; + this.deleteBtn.UseVisualStyleBackColor = false; + this.deleteBtn.Click += new System.EventHandler(this.deleteBtn_Click); + // + // rePrintBtn + // + this.rePrintBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(98)))), ((int)(((byte)(222))))); + this.rePrintBtn.Font = new System.Drawing.Font("宋体", 15F); + this.rePrintBtn.ForeColor = System.Drawing.Color.White; + this.rePrintBtn.Location = new System.Drawing.Point(344, 126); + this.rePrintBtn.Name = "rePrintBtn"; + this.rePrintBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); + this.rePrintBtn.Size = new System.Drawing.Size(91, 39); + this.rePrintBtn.TabIndex = 22; + this.rePrintBtn.Text = "补打"; + this.rePrintBtn.UseVisualStyleBackColor = false; + this.rePrintBtn.Click += new System.EventHandler(this.rePrintBtn_Click); + // + // SegmentProductionAutoForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.White; + this.ClientSize = new System.Drawing.Size(1226, 704); + this.Controls.Add(this.splitContainer1); + this.Name = "SegmentProductionAutoForm"; + this.Text = "分割品车间称重计数"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.groupBox2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.taskDataGrid)).EndInit(); + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel1.PerformLayout(); + this.splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + this.splitContainer2.Panel1.ResumeLayout(false); + this.splitContainer2.Panel2.ResumeLayout(false); + this.splitContainer2.Panel2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); + this.splitContainer2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); } diff --git a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs index bda7e0c..d15874d 100644 --- a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs +++ b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs @@ -114,6 +114,7 @@ namespace ButcherFactory.SegmentProductionAuto_ } wDic = mCache.Cache; _freshTotalCode = SegmentProductionBL.InitFreshTotalCode(); + _stayTotalCode = SegmentProductionBL.InitStayTotalCode(); } void LoadBind() @@ -335,6 +336,7 @@ namespace ButcherFactory.SegmentProductionAuto_ entity.ProductBatch_ID = batchID.Value; entity.StandardPic = detail.StandardPic; entity.GoodsType = detail.GoodsType; + entity.NoTotalCode = detail.NoTotalCode; if (!string.IsNullOrEmpty(statisticNumberBox.Text)) entity.StatisticNumber = decimal.Parse(statisticNumberBox.Text); @@ -344,38 +346,61 @@ namespace ButcherFactory.SegmentProductionAuto_ bool rebuild = false; if (entity.GoodsType == 0) { - entity.TotalCode_ID = _freshTotalCode.ID; - thisTotal = _freshTotalCode; - thisPanel = _freshPanel; - if (_totalCode.GoodsType != 0) + entity.TotalCode_ID = _freshTotalCode.ID; + thisTotal = _freshTotalCode; + thisPanel = _freshPanel; + if (_totalCode.GoodsType != 0) + { + foreach (var bt in codeButtons) { - foreach (var bt in codeButtons) - { - if (bt.Selected) - { - bt.Selected = false; - bt.Invalidate(); - } - } - _codePanel = _freshPanel; - _codePanel.Selected = true; - _codePanel.Invalidate(); - _totalCode = _freshTotalCode; - rebuild=true; + if (bt.Selected) + { + bt.Selected = false; + bt.Invalidate(); + } } + _codePanel = _freshPanel; + _codePanel.Selected = true; + _codePanel.Invalidate(); + _totalCode = _freshTotalCode; + rebuild = true; + } } - else + else if (entity.GoodsType == 1 && entity.NoTotalCode == true) { - if (_totalCode == null || _codePanel == null) + entity.TotalCode_ID = _stayTotalCode.ID; + thisTotal = _stayTotalCode; + thisPanel = _stayPanel; + if (_totalCode.GoodsType != 1 || _totalCode.NoTotalCode != true) + { + foreach (var bt in codeButtons) { - throw new Exception(string.Format("请先选择总码!")); - } - if(_totalCode.GoodsType==0){ - throw new Exception(string.Format("只有鲜品才可以选择鲜品总码!")); + if (bt.Selected) + { + bt.Selected = false; + bt.Invalidate(); + } } - entity.TotalCode_ID = _totalCode.ID; - thisTotal = _totalCode; - thisPanel = _codePanel; + _codePanel = _stayPanel; + _codePanel.Selected = true; + _codePanel.Invalidate(); + _totalCode = _stayTotalCode; + rebuild = true; + } + } + else + { + if (_totalCode == null || _codePanel == null) + { + throw new Exception(string.Format("请先选择总码!")); + } + if (_totalCode.GoodsType == 0) + { + throw new Exception(string.Format("只有鲜品才可以选择鲜品总码!")); + } + entity.TotalCode_ID = _totalCode.ID; + thisTotal = _totalCode; + thisPanel = _codePanel; } SegmentProductionBL.InsertAndSetGroupID(entity, batchDate.Value); @@ -499,16 +524,16 @@ namespace ButcherFactory.SegmentProductionAuto_ flowLayoutPanel4.Controls.Clear(); foreach (var item in allCode) { - if (item.GoodsType == 0) + if (item.GoodsType == 0 || (item.GoodsType == 1 && item.NoTotalCode == true)) { } else { - if (deleteList.Contains(item.ID)) - { - continue; - } + if (deleteList.Contains(item.ID)) + { + continue; + } } var n = new ColorButton(); @@ -561,31 +586,55 @@ namespace ButcherFactory.SegmentProductionAuto_ foreach (var item2 in groupByTotal) { var d = item2.FirstOrDefault(); - - //鲜品不删除总码 + + //鲜品不删除总码 if (d.GoodsType == 0) { - if (_freshPanel != null) + if (_freshPanel != null) + { + var list = new List(); + foreach (var t in item2) { - var list=new List(); - foreach (var t in item2) + foreach (ColorButton item in flowLayoutPanel4.Controls) + { + var tagItem = (SegmentProduction)item.Tag; + if (tagItem.BarCode == t.BarCode) { - foreach (ColorButton item in flowLayoutPanel4.Controls) - { - var tagItem = (SegmentProduction)item.Tag; - if (tagItem.BarCode == t.BarCode) - { - list.Add(item) ; - break; - } - } + list.Add(item); + break; } - foreach (var item in list) - { - flowLayoutPanel4.Controls.Remove(item); + } + } + foreach (var item in list) + { + flowLayoutPanel4.Controls.Remove(item); + } + } + continue; + } + else if (d.GoodsType == 1 && d.NoTotalCode == true)//暂存区不删除总码 + { + if (_stayPanel != null) + { + var list = new List(); + foreach (var t in item2) + { + foreach (ColorButton item in flowLayoutPanel4.Controls) + { + var tagItem = (SegmentProduction)item.Tag; + if (tagItem.BarCode == t.BarCode) + { + list.Add(item); + break; } - } - continue; + } + } + foreach (var item in list) + { + flowLayoutPanel4.Controls.Remove(item); + } + } + continue; } var f = codeButtons.FirstOrDefault(x => ((TotalCode)x.Tag).ID == item2.Key); if (f != null) @@ -706,8 +755,13 @@ namespace ButcherFactory.SegmentProductionAuto_ } if (_totalCode.GoodsType == 0) { - MessageBox.Show("鲜品总码不允许删除"); - return; + MessageBox.Show("鲜品总码不允许删除"); + return; + } + else if (_totalCode.GoodsType == 1 && _totalCode.NoTotalCode == true) + { + MessageBox.Show("暂存区总码不允许删除"); + return; } SegmentProductionBL.DeleteTotalCode(_totalCode); allCode.Remove(_totalCode); @@ -802,8 +856,10 @@ namespace ButcherFactory.SegmentProductionAuto_ ColorButton _codePanel; ColorButton _freshPanel; + ColorButton _stayPanel; TotalCode _totalCode; TotalCode _freshTotalCode; + TotalCode _stayTotalCode; private void colorButton1_Click(object sender, EventArgs e) { @@ -814,7 +870,7 @@ namespace ButcherFactory.SegmentProductionAuto_ AddCodeButton(n, tCode,true); flowLayoutPanel4.Controls.Clear(); flowLayoutPanel3.Controls.Add(n); - flowLayoutPanel3.Controls.SetChildIndex(n, 1); + flowLayoutPanel3.Controls.SetChildIndex(n, 2); } private void AddCodeButton(ColorButton n, TotalCode tCode, bool add = false) @@ -822,11 +878,16 @@ namespace ButcherFactory.SegmentProductionAuto_ n .Tag = tCode; if (tCode.GoodsType == 0) { - n .Text ="鲜品"; - _freshPanel = n; + n.Text = "鲜品"; + _freshPanel = n; + } + else if (tCode.GoodsType == 1 && tCode.NoTotalCode == true) + { + n.Text = "暂存区"; + _stayPanel = n; } else - n .Text = tCode.ShortCode; + n.Text = tCode.ShortCode; n .Click += delegate {