From 37a98d5c6d343bb1249c0610a5d5b1f1cb0f7ba8 Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Thu, 8 Jul 2021 15:40:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E5=8D=95No.158084=E2=80=9C?= =?UTF-8?q?=E7=99=BD=E6=9D=A1=E5=85=A5=E5=BA=93=E2=80=9D=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=EF=BC=8C=E6=96=B0=E5=A2=9E=E2=80=9C=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E2=80=9D=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E4=BC=98=E5=8C=96=E4=B8=8B=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CarcassInStoreForm.Designer.cs | 1094 ++++++++--------- .../CarcassInStore_/CarcassInStoreForm.cs | 61 +- .../CarcassInStore_/CarcassInStoreForm.resx | 337 +++-- .../Controls/WeightControl.Designer.cs | 185 +-- .../Controls/WeightControl.resx | 238 ++-- 5 files changed, 963 insertions(+), 952 deletions(-) diff --git a/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.Designer.cs b/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.Designer.cs index 40ccfb4..cab2a71 100644 --- a/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.Designer.cs +++ b/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.Designer.cs @@ -28,547 +28,545 @@ /// 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(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CarcassInStoreForm)); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.noCodeBtn = new WinFormControl.UButton(); - this.noWeightBtn = new WinFormControl.UButton(); - this.closeBtn = new WinFormControl.UButton(); - this.uTimerLabel1 = new WinFormControl.UTimerLabel(); - this.productBatchSelect = new System.Windows.Forms.ComboBox(); - this.workUnitSelect = new System.Windows.Forms.ComboBox(); - this.uScanPanel1 = new WinFormControl.UScanPanel(); - this.netStateWatch1 = new WinFormControl.NetStateWatch(); - this.uWeightControl1 = new WinFormControl.UWeightControl(); - this.uLabel1 = new WinFormControl.ULabel(); - this.uLabel2 = new WinFormControl.ULabel(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.historyDataGrid = new WinFormControl.UDataGridView(); - this.H_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_BeforeWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.H_Discont = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.uLabel4 = new WinFormControl.ULabel(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.needSubmitGrid = new WinFormControl.UDataGridView(); - this.U_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.U_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.uLabel3 = new WinFormControl.ULabel(); - this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); - this.deleteSelectBtn = new WinFormControl.UButton(); - ((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.groupBox2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.historyDataGrid)).BeginInit(); - this.groupBox1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.needSubmitGrid)).BeginInit(); - this.SuspendLayout(); - // - // splitContainer1 - // - this.splitContainer1.BackColor = System.Drawing.Color.Transparent; - 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.BackColor = System.Drawing.Color.Transparent; - this.splitContainer1.Panel1.Controls.Add(this.deleteSelectBtn); - this.splitContainer1.Panel1.Controls.Add(this.noCodeBtn); - this.splitContainer1.Panel1.Controls.Add(this.noWeightBtn); - this.splitContainer1.Panel1.Controls.Add(this.closeBtn); - 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.uScanPanel1); - this.splitContainer1.Panel1.Controls.Add(this.netStateWatch1); - this.splitContainer1.Panel1.Controls.Add(this.uWeightControl1); - this.splitContainer1.Panel1.Controls.Add(this.uLabel1); - this.splitContainer1.Panel1.Controls.Add(this.uLabel2); - // - // splitContainer1.Panel2 - // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); - this.splitContainer1.Size = new System.Drawing.Size(1305, 611); - this.splitContainer1.SplitterDistance = 86; - this.splitContainer1.TabIndex = 0; - // - // noCodeBtn - // - this.noCodeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.noCodeBtn.AsClicked = false; - this.noCodeBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("noCodeBtn.BackgroundImage"))); - this.noCodeBtn.EnableGroup = false; - this.noCodeBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.noCodeBtn.FlatAppearance.BorderSize = 0; - this.noCodeBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.noCodeBtn.Font = new System.Drawing.Font("宋体", 15F); - this.noCodeBtn.ForeColor = System.Drawing.Color.Black; - this.noCodeBtn.Location = new System.Drawing.Point(646, 46); - this.noCodeBtn.Name = "noCodeBtn"; - this.noCodeBtn.PlaySound = false; - this.noCodeBtn.SelfControlEnable = false; - this.noCodeBtn.Size = new System.Drawing.Size(111, 34); - this.noCodeBtn.SoundType = WinFormControl.SoundType.Click; - this.noCodeBtn.TabIndex = 12; - this.noCodeBtn.Text = "无 码"; - this.noCodeBtn.UseVisualStyleBackColor = true; - this.noCodeBtn.WithStataHode = true; - this.noCodeBtn.Click += new System.EventHandler(this.noCodeBtn_Click); - // - // noWeightBtn - // - this.noWeightBtn.AsClicked = false; - this.noWeightBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("noWeightBtn.BackgroundImage"))); - this.noWeightBtn.EnableGroup = false; - this.noWeightBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.noWeightBtn.FlatAppearance.BorderSize = 0; - this.noWeightBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.noWeightBtn.Font = new System.Drawing.Font("宋体", 15F); - this.noWeightBtn.ForeColor = System.Drawing.Color.Black; - this.noWeightBtn.Location = new System.Drawing.Point(358, 46); - this.noWeightBtn.Name = "noWeightBtn"; - this.noWeightBtn.PlaySound = false; - this.noWeightBtn.SelfControlEnable = false; - this.noWeightBtn.Size = new System.Drawing.Size(111, 34); - this.noWeightBtn.SoundType = WinFormControl.SoundType.Click; - this.noWeightBtn.TabIndex = 11; - this.noWeightBtn.Text = "落 称"; - this.noWeightBtn.UseVisualStyleBackColor = true; - this.noWeightBtn.WithStataHode = false; - this.noWeightBtn.Click += new System.EventHandler(this.noWeightBtn_Click); - // - // closeBtn - // - this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.closeBtn.AsClicked = false; - this.closeBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("closeBtn.BackgroundImage"))); - this.closeBtn.EnableGroup = false; - this.closeBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.closeBtn.FlatAppearance.BorderSize = 0; - this.closeBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.closeBtn.Font = new System.Drawing.Font("宋体", 15F); - this.closeBtn.ForeColor = System.Drawing.Color.Black; - this.closeBtn.Location = new System.Drawing.Point(1187, 7); - this.closeBtn.Name = "closeBtn"; - this.closeBtn.PlaySound = false; - this.closeBtn.SelfControlEnable = false; - this.closeBtn.Size = new System.Drawing.Size(111, 34); - this.closeBtn.SoundType = WinFormControl.SoundType.Click; - this.closeBtn.TabIndex = 9; - this.closeBtn.Text = "关 闭"; - this.closeBtn.UseVisualStyleBackColor = true; - this.closeBtn.WithStataHode = false; - this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); - // - // 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(1165, 53); - this.uTimerLabel1.Name = "uTimerLabel1"; - this.uTimerLabel1.Size = new System.Drawing.Size(128, 16); - this.uTimerLabel1.TabIndex = 8; - this.uTimerLabel1.Text = "3月30日 8:54:07"; - // - // 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(984, 47); - this.productBatchSelect.Name = "productBatchSelect"; - this.productBatchSelect.Size = new System.Drawing.Size(170, 28); - this.productBatchSelect.TabIndex = 4; - // - // 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(984, 11); - this.workUnitSelect.Name = "workUnitSelect"; - this.workUnitSelect.Size = new System.Drawing.Size(170, 28); - this.workUnitSelect.TabIndex = 3; - // - // uScanPanel1 - // - this.uScanPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.uScanPanel1.BackColor = System.Drawing.Color.Transparent; - this.uScanPanel1.Location = new System.Drawing.Point(580, 9); - this.uScanPanel1.Name = "uScanPanel1"; - this.uScanPanel1.Size = new System.Drawing.Size(303, 32); - this.uScanPanel1.TabIndex = 2; - // - // netStateWatch1 - // - this.netStateWatch1.BackColor = System.Drawing.Color.Transparent; - this.netStateWatch1.Location = new System.Drawing.Point(354, 4); - this.netStateWatch1.Name = "netStateWatch1"; - this.netStateWatch1.Size = new System.Drawing.Size(90, 39); - this.netStateWatch1.TabIndex = 1; - // - // uWeightControl1 - // - this.uWeightControl1.BackColor = System.Drawing.Color.Transparent; - this.uWeightControl1.Location = new System.Drawing.Point(3, 3); - this.uWeightControl1.Name = "uWeightControl1"; - this.uWeightControl1.Size = new System.Drawing.Size(349, 78); - this.uWeightControl1.TabIndex = 0; - this.uWeightControl1.WeightFalg = null; - // - // 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(883, 14); - this.uLabel1.Name = "uLabel1"; - this.uLabel1.Size = new System.Drawing.Size(109, 20); - this.uLabel1.TabIndex = 5; - 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(883, 50); - this.uLabel2.Name = "uLabel2"; - this.uLabel2.Size = new System.Drawing.Size(109, 20); - this.uLabel2.TabIndex = 6; - this.uLabel2.Text = "生产批次:"; - // - // 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.BackColor = System.Drawing.Color.Transparent; - this.splitContainer2.Panel1.Controls.Add(this.groupBox2); - this.splitContainer2.Panel1.Controls.Add(this.groupBox1); - // - // splitContainer2.Panel2 - // - this.splitContainer2.Panel2.BackColor = System.Drawing.Color.Transparent; - this.splitContainer2.Panel2.Controls.Add(this.flowLayoutPanel1); - this.splitContainer2.Size = new System.Drawing.Size(1305, 521); - this.splitContainer2.SplitterDistance = 637; - this.splitContainer2.TabIndex = 0; - // - // groupBox2 - // - this.groupBox2.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.groupBox2.Controls.Add(this.historyDataGrid); - this.groupBox2.Controls.Add(this.uLabel4); - this.groupBox2.Location = new System.Drawing.Point(11, 254); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Padding = new System.Windows.Forms.Padding(5); - this.groupBox2.Size = new System.Drawing.Size(612, 254); - this.groupBox2.TabIndex = 1; - this.groupBox2.TabStop = false; - // - // historyDataGrid - // - this.historyDataGrid.AllowUserToAddRows = false; - this.historyDataGrid.AllowUserToDeleteRows = false; - this.historyDataGrid.AllowUserToResizeColumns = false; - this.historyDataGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.historyDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.historyDataGrid.BackgroundColor = System.Drawing.Color.White; - this.historyDataGrid.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.historyDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.historyDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.historyDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.H_ID, - this.H_RowIndex, - this.H_BarCode, - this.H_Goods_Name, - this.H_Weight, - this.H_BeforeWeight, - this.H_Discont}); - this.historyDataGrid.Dock = System.Windows.Forms.DockStyle.Fill; - this.historyDataGrid.Location = new System.Drawing.Point(5, 19); - this.historyDataGrid.MultiSelect = false; - this.historyDataGrid.Name = "historyDataGrid"; - this.historyDataGrid.ReadOnly = true; - this.historyDataGrid.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.historyDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle6; - this.historyDataGrid.RowTemplate.Height = 50; - this.historyDataGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.historyDataGrid.Size = new System.Drawing.Size(602, 230); - this.historyDataGrid.TabIndex = 2; - this.historyDataGrid.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.historyDataGrid_CellClick); - this.historyDataGrid.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.historyDataGrid_RowPrePaint); - // - // H_ID - // - this.H_ID.DataPropertyName = "ID"; - this.H_ID.HeaderText = "ID"; - this.H_ID.Name = "H_ID"; - this.H_ID.ReadOnly = true; - this.H_ID.Visible = false; - // - // H_RowIndex - // - this.H_RowIndex.DataPropertyName = "RowIndex"; - this.H_RowIndex.HeaderText = "序号"; - this.H_RowIndex.Name = "H_RowIndex"; - this.H_RowIndex.ReadOnly = true; - this.H_RowIndex.Width = 80; - // - // H_BarCode - // - this.H_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.H_BarCode.DataPropertyName = "BarCode"; - this.H_BarCode.HeaderText = "条码"; - this.H_BarCode.Name = "H_BarCode"; - this.H_BarCode.ReadOnly = true; - // - // H_Goods_Name - // - this.H_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.H_Goods_Name.DataPropertyName = "Goods_Name"; - this.H_Goods_Name.HeaderText = "产品名称"; - this.H_Goods_Name.Name = "H_Goods_Name"; - this.H_Goods_Name.ReadOnly = true; - // - // H_Weight - // - this.H_Weight.DataPropertyName = "Weight"; - dataGridViewCellStyle3.Format = "#0.######"; - this.H_Weight.DefaultCellStyle = dataGridViewCellStyle3; - this.H_Weight.HeaderText = "入库重量"; - this.H_Weight.Name = "H_Weight"; - this.H_Weight.ReadOnly = true; - // - // H_BeforeWeight - // - this.H_BeforeWeight.DataPropertyName = "BeforeWeight"; - dataGridViewCellStyle4.Format = "#0.######"; - this.H_BeforeWeight.DefaultCellStyle = dataGridViewCellStyle4; - this.H_BeforeWeight.HeaderText = "胴体重量"; - this.H_BeforeWeight.Name = "H_BeforeWeight"; - this.H_BeforeWeight.ReadOnly = true; - // - // H_Discont - // - this.H_Discont.DataPropertyName = "Discont"; - dataGridViewCellStyle5.Format = "#0.######"; - this.H_Discont.DefaultCellStyle = dataGridViewCellStyle5; - this.H_Discont.HeaderText = "损耗"; - this.H_Discont.Name = "H_Discont"; - this.H_Discont.ReadOnly = true; - // - // uLabel4 - // - this.uLabel4.AutoSize = true; - this.uLabel4.BackColor = System.Drawing.Color.White; - this.uLabel4.Font = new System.Drawing.Font("宋体", 13F); - this.uLabel4.Location = new System.Drawing.Point(8, -1); - this.uLabel4.Name = "uLabel4"; - this.uLabel4.Size = new System.Drawing.Size(62, 18); - this.uLabel4.TabIndex = 1; - this.uLabel4.Text = "已提交"; - // - // groupBox1 - // - this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox1.Controls.Add(this.needSubmitGrid); - this.groupBox1.Controls.Add(this.uLabel3); - this.groupBox1.Location = new System.Drawing.Point(11, 15); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Padding = new System.Windows.Forms.Padding(5); - this.groupBox1.Size = new System.Drawing.Size(612, 226); - this.groupBox1.TabIndex = 0; - this.groupBox1.TabStop = false; - // - // needSubmitGrid - // - this.needSubmitGrid.AllowUserToAddRows = false; - this.needSubmitGrid.AllowUserToDeleteRows = false; - this.needSubmitGrid.AllowUserToResizeColumns = false; - this.needSubmitGrid.AllowUserToResizeRows = false; - dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); - this.needSubmitGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7; - this.needSubmitGrid.BackgroundColor = System.Drawing.Color.White; - this.needSubmitGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 12F); - dataGridViewCellStyle8.ForeColor = System.Drawing.Color.White; - dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.needSubmitGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8; - this.needSubmitGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.needSubmitGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.U_ID, - this.U_BarCode, - this.U_Goods_Name, - this.U_Weight}); - this.needSubmitGrid.Dock = System.Windows.Forms.DockStyle.Fill; - this.needSubmitGrid.Location = new System.Drawing.Point(5, 19); - this.needSubmitGrid.MultiSelect = false; - this.needSubmitGrid.Name = "needSubmitGrid"; - this.needSubmitGrid.ReadOnly = true; - this.needSubmitGrid.RowHeadersVisible = false; - dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); - this.needSubmitGrid.RowsDefaultCellStyle = dataGridViewCellStyle10; - this.needSubmitGrid.RowTemplate.Height = 23; - this.needSubmitGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.needSubmitGrid.Size = new System.Drawing.Size(602, 202); - this.needSubmitGrid.TabIndex = 1; - // - // U_ID - // - this.U_ID.DataPropertyName = "ID"; - this.U_ID.HeaderText = "ID"; - this.U_ID.Name = "U_ID"; - this.U_ID.ReadOnly = true; - this.U_ID.Visible = false; - // - // U_BarCode - // - this.U_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.U_BarCode.DataPropertyName = "BarCode"; - this.U_BarCode.HeaderText = "条码"; - this.U_BarCode.Name = "U_BarCode"; - this.U_BarCode.ReadOnly = true; - // - // U_Goods_Name - // - this.U_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.U_Goods_Name.DataPropertyName = "Goods_Name"; - this.U_Goods_Name.HeaderText = "产品名称"; - this.U_Goods_Name.Name = "U_Goods_Name"; - this.U_Goods_Name.ReadOnly = true; - // - // U_Weight - // - this.U_Weight.DataPropertyName = "Weight"; - dataGridViewCellStyle9.Format = "#0.######"; - this.U_Weight.DefaultCellStyle = dataGridViewCellStyle9; - this.U_Weight.HeaderText = "重量"; - this.U_Weight.Name = "U_Weight"; - this.U_Weight.ReadOnly = true; - this.U_Weight.Width = 200; - // - // uLabel3 - // - this.uLabel3.AutoSize = true; - this.uLabel3.BackColor = System.Drawing.Color.White; - this.uLabel3.Font = new System.Drawing.Font("宋体", 13F); - this.uLabel3.Location = new System.Drawing.Point(8, -1); - this.uLabel3.Name = "uLabel3"; - this.uLabel3.Size = new System.Drawing.Size(62, 18); - this.uLabel3.TabIndex = 0; - this.uLabel3.Text = "待提交"; - // - // flowLayoutPanel1 - // - this.flowLayoutPanel1.AutoScroll = true; - this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 0); - this.flowLayoutPanel1.Name = "flowLayoutPanel1"; - this.flowLayoutPanel1.Size = new System.Drawing.Size(662, 519); - this.flowLayoutPanel1.TabIndex = 0; - // - // deleteSelectBtn - // - this.deleteSelectBtn.AsClicked = false; - this.deleteSelectBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("deleteSelectBtn.BackgroundImage"))); - this.deleteSelectBtn.EnableGroup = false; - this.deleteSelectBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(155)))), ((int)(((byte)(214))))); - this.deleteSelectBtn.FlatAppearance.BorderSize = 0; - this.deleteSelectBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.deleteSelectBtn.Font = new System.Drawing.Font("宋体", 15F); - this.deleteSelectBtn.ForeColor = System.Drawing.Color.Black; - this.deleteSelectBtn.Location = new System.Drawing.Point(507, 46); - this.deleteSelectBtn.Name = "deleteSelectBtn"; - this.deleteSelectBtn.PlaySound = false; - this.deleteSelectBtn.SelfControlEnable = false; - this.deleteSelectBtn.Size = new System.Drawing.Size(111, 34); - this.deleteSelectBtn.SoundType = WinFormControl.SoundType.Click; - this.deleteSelectBtn.TabIndex = 13; - this.deleteSelectBtn.Text = "删除选中"; - this.deleteSelectBtn.UseVisualStyleBackColor = true; - this.deleteSelectBtn.WithStataHode = false; - this.deleteSelectBtn.Click += new System.EventHandler(this.deleteSelectBtn_Click); - // - // CarcassInStoreForm - // - 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(1305, 611); - this.Controls.Add(this.splitContainer1); - this.KeyPreview = true; - this.MinimumSize = new System.Drawing.Size(1321, 650); - this.Name = "CarcassInStoreForm"; - this.Text = "白条入库"; - this.WindowState = System.Windows.Forms.FormWindowState.Maximized; - 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); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - this.groupBox2.ResumeLayout(false); - this.groupBox2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.historyDataGrid)).EndInit(); - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.needSubmitGrid)).EndInit(); - this.ResumeLayout(false); - + 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(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.uTimerLabel1 = new WinFormControl.UTimerLabel(); + this.productBatchSelect = new System.Windows.Forms.ComboBox(); + this.workUnitSelect = new System.Windows.Forms.ComboBox(); + this.uScanPanel1 = new WinFormControl.UScanPanel(); + this.netStateWatch1 = new WinFormControl.NetStateWatch(); + this.uLabel1 = new WinFormControl.ULabel(); + this.uLabel2 = new WinFormControl.ULabel(); + this.splitContainer2 = new System.Windows.Forms.SplitContainer(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.historyDataGrid = new WinFormControl.UDataGridView(); + this.H_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_RowIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_BeforeWeight = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.H_Discont = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.uLabel4 = new WinFormControl.ULabel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.needSubmitGrid = new WinFormControl.UDataGridView(); + this.U_ID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.U_BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.U_Goods_Name = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.U_Weight = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.uLabel3 = new WinFormControl.ULabel(); + this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); + this.closeBtn = new ButcherFactory.Controls.ColorButton(); + this.noCodeBtn = new ButcherFactory.Controls.ColorButton(); + this.deleteSelectBtn = new ButcherFactory.Controls.ColorButton(); + this.noWeightBtn = new ButcherFactory.Controls.ColorButton(); + this.goodsSetBtn = new ButcherFactory.Controls.ColorButton(); + this.weightControl1 = new ButcherFactory.Controls.WeightControl(); + ((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.groupBox2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.historyDataGrid)).BeginInit(); + this.groupBox1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.needSubmitGrid)).BeginInit(); + this.SuspendLayout(); + // + // splitContainer1 + // + this.splitContainer1.BackColor = System.Drawing.Color.Transparent; + 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.BackColor = System.Drawing.Color.Transparent; + this.splitContainer1.Panel1.Controls.Add(this.weightControl1); + this.splitContainer1.Panel1.Controls.Add(this.closeBtn); + this.splitContainer1.Panel1.Controls.Add(this.noCodeBtn); + this.splitContainer1.Panel1.Controls.Add(this.deleteSelectBtn); + this.splitContainer1.Panel1.Controls.Add(this.noWeightBtn); + 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.uScanPanel1); + this.splitContainer1.Panel1.Controls.Add(this.netStateWatch1); + this.splitContainer1.Panel1.Controls.Add(this.uLabel1); + this.splitContainer1.Panel1.Controls.Add(this.uLabel2); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); + this.splitContainer1.Size = new System.Drawing.Size(1305, 611); + this.splitContainer1.SplitterDistance = 86; + this.splitContainer1.TabIndex = 0; + // + // 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(1165, 53); + this.uTimerLabel1.Name = "uTimerLabel1"; + this.uTimerLabel1.Size = new System.Drawing.Size(128, 16); + this.uTimerLabel1.TabIndex = 8; + this.uTimerLabel1.Text = "3月30日 8:54:07"; + // + // 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(984, 47); + this.productBatchSelect.Name = "productBatchSelect"; + this.productBatchSelect.Size = new System.Drawing.Size(170, 28); + this.productBatchSelect.TabIndex = 4; + // + // 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(984, 11); + this.workUnitSelect.Name = "workUnitSelect"; + this.workUnitSelect.Size = new System.Drawing.Size(170, 28); + this.workUnitSelect.TabIndex = 3; + // + // uScanPanel1 + // + this.uScanPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.uScanPanel1.BackColor = System.Drawing.Color.Transparent; + this.uScanPanel1.Location = new System.Drawing.Point(580, 9); + this.uScanPanel1.Name = "uScanPanel1"; + this.uScanPanel1.Size = new System.Drawing.Size(303, 32); + this.uScanPanel1.TabIndex = 2; + // + // netStateWatch1 + // + this.netStateWatch1.BackColor = System.Drawing.Color.Transparent; + this.netStateWatch1.Location = new System.Drawing.Point(354, 4); + this.netStateWatch1.Name = "netStateWatch1"; + this.netStateWatch1.Size = new System.Drawing.Size(90, 39); + this.netStateWatch1.TabIndex = 1; + // + // 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(883, 14); + this.uLabel1.Name = "uLabel1"; + this.uLabel1.Size = new System.Drawing.Size(109, 20); + this.uLabel1.TabIndex = 5; + 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(883, 50); + this.uLabel2.Name = "uLabel2"; + this.uLabel2.Size = new System.Drawing.Size(109, 20); + this.uLabel2.TabIndex = 6; + this.uLabel2.Text = "生产批次:"; + // + // 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.BackColor = System.Drawing.Color.Transparent; + this.splitContainer2.Panel1.Controls.Add(this.groupBox2); + this.splitContainer2.Panel1.Controls.Add(this.groupBox1); + // + // splitContainer2.Panel2 + // + this.splitContainer2.Panel2.BackColor = System.Drawing.Color.Transparent; + this.splitContainer2.Panel2.Controls.Add(this.goodsSetBtn); + this.splitContainer2.Panel2.Controls.Add(this.flowLayoutPanel2); + this.splitContainer2.Panel2.Controls.Add(this.flowLayoutPanel1); + this.splitContainer2.Size = new System.Drawing.Size(1305, 521); + this.splitContainer2.SplitterDistance = 637; + this.splitContainer2.TabIndex = 0; + // + // groupBox2 + // + this.groupBox2.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.groupBox2.Controls.Add(this.historyDataGrid); + this.groupBox2.Controls.Add(this.uLabel4); + this.groupBox2.Location = new System.Drawing.Point(11, 254); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Padding = new System.Windows.Forms.Padding(5); + this.groupBox2.Size = new System.Drawing.Size(612, 254); + this.groupBox2.TabIndex = 1; + this.groupBox2.TabStop = false; + // + // historyDataGrid + // + this.historyDataGrid.AllowUserToAddRows = false; + this.historyDataGrid.AllowUserToDeleteRows = false; + this.historyDataGrid.AllowUserToResizeColumns = false; + this.historyDataGrid.AllowUserToResizeRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); + this.historyDataGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.historyDataGrid.BackgroundColor = System.Drawing.Color.White; + this.historyDataGrid.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.historyDataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.historyDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.historyDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.H_ID, + this.H_RowIndex, + this.H_BarCode, + this.H_Goods_Name, + this.H_Weight, + this.H_BeforeWeight, + this.H_Discont}); + this.historyDataGrid.Dock = System.Windows.Forms.DockStyle.Fill; + this.historyDataGrid.Location = new System.Drawing.Point(5, 19); + this.historyDataGrid.MultiSelect = false; + this.historyDataGrid.Name = "historyDataGrid"; + this.historyDataGrid.ReadOnly = true; + this.historyDataGrid.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.historyDataGrid.RowsDefaultCellStyle = dataGridViewCellStyle6; + this.historyDataGrid.RowTemplate.Height = 50; + this.historyDataGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.historyDataGrid.Size = new System.Drawing.Size(602, 230); + this.historyDataGrid.TabIndex = 2; + this.historyDataGrid.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.historyDataGrid_CellClick); + this.historyDataGrid.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.historyDataGrid_RowPrePaint); + // + // H_ID + // + this.H_ID.DataPropertyName = "ID"; + this.H_ID.HeaderText = "ID"; + this.H_ID.Name = "H_ID"; + this.H_ID.ReadOnly = true; + this.H_ID.Visible = false; + // + // H_RowIndex + // + this.H_RowIndex.DataPropertyName = "RowIndex"; + this.H_RowIndex.HeaderText = "序号"; + this.H_RowIndex.Name = "H_RowIndex"; + this.H_RowIndex.ReadOnly = true; + this.H_RowIndex.Width = 80; + // + // H_BarCode + // + this.H_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.H_BarCode.DataPropertyName = "BarCode"; + this.H_BarCode.HeaderText = "条码"; + this.H_BarCode.Name = "H_BarCode"; + this.H_BarCode.ReadOnly = true; + // + // H_Goods_Name + // + this.H_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.H_Goods_Name.DataPropertyName = "Goods_Name"; + this.H_Goods_Name.HeaderText = "产品名称"; + this.H_Goods_Name.Name = "H_Goods_Name"; + this.H_Goods_Name.ReadOnly = true; + // + // H_Weight + // + this.H_Weight.DataPropertyName = "Weight"; + dataGridViewCellStyle3.Format = "#0.######"; + this.H_Weight.DefaultCellStyle = dataGridViewCellStyle3; + this.H_Weight.HeaderText = "入库重量"; + this.H_Weight.Name = "H_Weight"; + this.H_Weight.ReadOnly = true; + // + // H_BeforeWeight + // + this.H_BeforeWeight.DataPropertyName = "BeforeWeight"; + dataGridViewCellStyle4.Format = "#0.######"; + this.H_BeforeWeight.DefaultCellStyle = dataGridViewCellStyle4; + this.H_BeforeWeight.HeaderText = "胴体重量"; + this.H_BeforeWeight.Name = "H_BeforeWeight"; + this.H_BeforeWeight.ReadOnly = true; + // + // H_Discont + // + this.H_Discont.DataPropertyName = "Discont"; + dataGridViewCellStyle5.Format = "#0.######"; + this.H_Discont.DefaultCellStyle = dataGridViewCellStyle5; + this.H_Discont.HeaderText = "损耗"; + this.H_Discont.Name = "H_Discont"; + this.H_Discont.ReadOnly = true; + // + // uLabel4 + // + this.uLabel4.AutoSize = true; + this.uLabel4.BackColor = System.Drawing.Color.White; + this.uLabel4.Font = new System.Drawing.Font("宋体", 13F); + this.uLabel4.Location = new System.Drawing.Point(8, -1); + this.uLabel4.Name = "uLabel4"; + this.uLabel4.Size = new System.Drawing.Size(62, 18); + this.uLabel4.TabIndex = 1; + this.uLabel4.Text = "已提交"; + // + // groupBox1 + // + this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBox1.Controls.Add(this.needSubmitGrid); + this.groupBox1.Controls.Add(this.uLabel3); + this.groupBox1.Location = new System.Drawing.Point(11, 15); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Padding = new System.Windows.Forms.Padding(5); + this.groupBox1.Size = new System.Drawing.Size(612, 226); + this.groupBox1.TabIndex = 0; + this.groupBox1.TabStop = false; + // + // needSubmitGrid + // + this.needSubmitGrid.AllowUserToAddRows = false; + this.needSubmitGrid.AllowUserToDeleteRows = false; + this.needSubmitGrid.AllowUserToResizeColumns = false; + this.needSubmitGrid.AllowUserToResizeRows = false; + dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235))))); + this.needSubmitGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7; + this.needSubmitGrid.BackgroundColor = System.Drawing.Color.White; + this.needSubmitGrid.BorderStyle = System.Windows.Forms.BorderStyle.None; + dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 12F); + dataGridViewCellStyle8.ForeColor = System.Drawing.Color.White; + dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.needSubmitGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8; + this.needSubmitGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.needSubmitGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.U_ID, + this.U_BarCode, + this.U_Goods_Name, + this.U_Weight}); + this.needSubmitGrid.Dock = System.Windows.Forms.DockStyle.Fill; + this.needSubmitGrid.Location = new System.Drawing.Point(5, 19); + this.needSubmitGrid.MultiSelect = false; + this.needSubmitGrid.Name = "needSubmitGrid"; + this.needSubmitGrid.ReadOnly = true; + this.needSubmitGrid.RowHeadersVisible = false; + dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(66)))), ((int)(((byte)(163)))), ((int)(((byte)(218))))); + this.needSubmitGrid.RowsDefaultCellStyle = dataGridViewCellStyle10; + this.needSubmitGrid.RowTemplate.Height = 23; + this.needSubmitGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.needSubmitGrid.Size = new System.Drawing.Size(602, 202); + this.needSubmitGrid.TabIndex = 1; + // + // U_ID + // + this.U_ID.DataPropertyName = "ID"; + this.U_ID.HeaderText = "ID"; + this.U_ID.Name = "U_ID"; + this.U_ID.ReadOnly = true; + this.U_ID.Visible = false; + // + // U_BarCode + // + this.U_BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.U_BarCode.DataPropertyName = "BarCode"; + this.U_BarCode.HeaderText = "条码"; + this.U_BarCode.Name = "U_BarCode"; + this.U_BarCode.ReadOnly = true; + // + // U_Goods_Name + // + this.U_Goods_Name.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.U_Goods_Name.DataPropertyName = "Goods_Name"; + this.U_Goods_Name.HeaderText = "产品名称"; + this.U_Goods_Name.Name = "U_Goods_Name"; + this.U_Goods_Name.ReadOnly = true; + // + // U_Weight + // + this.U_Weight.DataPropertyName = "Weight"; + dataGridViewCellStyle9.Format = "#0.######"; + this.U_Weight.DefaultCellStyle = dataGridViewCellStyle9; + this.U_Weight.HeaderText = "重量"; + this.U_Weight.Name = "U_Weight"; + this.U_Weight.ReadOnly = true; + this.U_Weight.Width = 200; + // + // uLabel3 + // + this.uLabel3.AutoSize = true; + this.uLabel3.BackColor = System.Drawing.Color.White; + this.uLabel3.Font = new System.Drawing.Font("宋体", 13F); + this.uLabel3.Location = new System.Drawing.Point(8, -1); + this.uLabel3.Name = "uLabel3"; + this.uLabel3.Size = new System.Drawing.Size(62, 18); + this.uLabel3.TabIndex = 0; + this.uLabel3.Text = "待提交"; + // + // flowLayoutPanel1 + // + this.flowLayoutPanel1.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.flowLayoutPanel1.AutoScroll = true; + this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 73); + this.flowLayoutPanel1.Name = "flowLayoutPanel1"; + this.flowLayoutPanel1.Size = new System.Drawing.Size(662, 446); + this.flowLayoutPanel1.TabIndex = 0; + // + // flowLayoutPanel2 + // + this.flowLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.flowLayoutPanel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.flowLayoutPanel2.Location = new System.Drawing.Point(0, 3); + this.flowLayoutPanel2.Name = "flowLayoutPanel2"; + this.flowLayoutPanel2.Size = new System.Drawing.Size(546, 64); + this.flowLayoutPanel2.TabIndex = 24; + // + // 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)(217)))), ((int)(((byte)(0)))), ((int)(((byte)(27))))); + this.closeBtn.Font = new System.Drawing.Font("宋体", 15F); + this.closeBtn.ForeColor = System.Drawing.Color.White; + this.closeBtn.Location = new System.Drawing.Point(1187, 7); + this.closeBtn.Name = "closeBtn"; + this.closeBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); + this.closeBtn.Size = new System.Drawing.Size(111, 34); + this.closeBtn.TabIndex = 17; + this.closeBtn.Text = "关闭"; + this.closeBtn.UseVisualStyleBackColor = false; + this.closeBtn.Click += new System.EventHandler(this.closeBtn_Click); + // + // noCodeBtn + // + this.noCodeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.noCodeBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(127)))), ((int)(((byte)(127))))); + this.noCodeBtn.Font = new System.Drawing.Font("宋体", 15F); + this.noCodeBtn.ForeColor = System.Drawing.Color.White; + this.noCodeBtn.Location = new System.Drawing.Point(646, 46); + this.noCodeBtn.Name = "noCodeBtn"; + this.noCodeBtn.SelectedColor = System.Drawing.Color.Black; + this.noCodeBtn.Size = new System.Drawing.Size(111, 34); + this.noCodeBtn.TabIndex = 16; + this.noCodeBtn.Text = "无 码"; + this.noCodeBtn.UseVisualStyleBackColor = false; + this.noCodeBtn.Click += new System.EventHandler(this.noCodeBtn_Click); + // + // deleteSelectBtn + // + this.deleteSelectBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(0)))), ((int)(((byte)(27))))); + this.deleteSelectBtn.Font = new System.Drawing.Font("宋体", 15F); + this.deleteSelectBtn.ForeColor = System.Drawing.Color.White; + this.deleteSelectBtn.Location = new System.Drawing.Point(507, 46); + this.deleteSelectBtn.Name = "deleteSelectBtn"; + this.deleteSelectBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); + this.deleteSelectBtn.Size = new System.Drawing.Size(111, 34); + this.deleteSelectBtn.TabIndex = 15; + this.deleteSelectBtn.Text = "删除选中"; + this.deleteSelectBtn.UseVisualStyleBackColor = false; + this.deleteSelectBtn.Click += new System.EventHandler(this.deleteSelectBtn_Click); + // + // noWeightBtn + // + this.noWeightBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(154)))), ((int)(((byte)(35))))); + this.noWeightBtn.Font = new System.Drawing.Font("宋体", 15F); + this.noWeightBtn.ForeColor = System.Drawing.Color.White; + this.noWeightBtn.Location = new System.Drawing.Point(358, 46); + this.noWeightBtn.Name = "noWeightBtn"; + this.noWeightBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(215)))), ((int)(((byte)(107))))); + this.noWeightBtn.Size = new System.Drawing.Size(111, 34); + this.noWeightBtn.TabIndex = 14; + this.noWeightBtn.Text = "落 称"; + this.noWeightBtn.UseVisualStyleBackColor = false; + this.noWeightBtn.Click += new System.EventHandler(this.noWeightBtn_Click); + // + // 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)(99)))), ((int)(((byte)(0)))), ((int)(((byte)(191))))); + this.goodsSetBtn.Font = new System.Drawing.Font("宋体", 15F); + this.goodsSetBtn.ForeColor = System.Drawing.Color.White; + this.goodsSetBtn.Location = new System.Drawing.Point(552, 5); + this.goodsSetBtn.Name = "goodsSetBtn"; + this.goodsSetBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(0)))), ((int)(((byte)(170))))); + this.goodsSetBtn.Size = new System.Drawing.Size(105, 62); + this.goodsSetBtn.TabIndex = 23; + this.goodsSetBtn.Text = "产品设置"; + this.goodsSetBtn.UseVisualStyleBackColor = false; + this.goodsSetBtn.Click += new System.EventHandler(this.goodsSetBtn_Click); + // + // weightControl1 + // + this.weightControl1.BackColor = System.Drawing.Color.Transparent; + this.weightControl1.Location = new System.Drawing.Point(3, 3); + this.weightControl1.Name = "weightControl1"; + this.weightControl1.Size = new System.Drawing.Size(349, 78); + this.weightControl1.TabIndex = 18; + this.weightControl1.WeightFalg = null; + // + // CarcassInStoreForm + // + 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(1305, 611); + this.Controls.Add(this.splitContainer1); + this.KeyPreview = true; + this.MinimumSize = new System.Drawing.Size(1321, 650); + this.Name = "CarcassInStoreForm"; + this.Text = "白条入库"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + 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); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); + this.splitContainer2.ResumeLayout(false); + this.groupBox2.ResumeLayout(false); + this.groupBox2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.historyDataGrid)).EndInit(); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.needSubmitGrid)).EndInit(); + this.ResumeLayout(false); + } #endregion @@ -581,9 +579,7 @@ private System.Windows.Forms.ComboBox workUnitSelect; private WinFormControl.UScanPanel uScanPanel1; private WinFormControl.NetStateWatch netStateWatch1; - private WinFormControl.UWeightControl uWeightControl1; private WinFormControl.UTimerLabel uTimerLabel1; - private WinFormControl.UButton closeBtn; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.GroupBox groupBox1; private WinFormControl.ULabel uLabel3; @@ -595,7 +591,6 @@ private System.Windows.Forms.DataGridViewTextBoxColumn U_BarCode; private System.Windows.Forms.DataGridViewTextBoxColumn U_Goods_Name; private System.Windows.Forms.DataGridViewTextBoxColumn U_Weight; - private WinFormControl.UButton noWeightBtn; private System.Windows.Forms.DataGridViewTextBoxColumn H_ID; private System.Windows.Forms.DataGridViewTextBoxColumn H_RowIndex; private System.Windows.Forms.DataGridViewTextBoxColumn H_BarCode; @@ -603,9 +598,12 @@ private System.Windows.Forms.DataGridViewTextBoxColumn H_Weight; private System.Windows.Forms.DataGridViewTextBoxColumn H_BeforeWeight; private System.Windows.Forms.DataGridViewTextBoxColumn H_Discont; - private WinFormControl.UButton noCodeBtn; - private WinFormControl.UButton deleteSelectBtn; - - + private Controls.ColorButton goodsSetBtn; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2; + private Controls.ColorButton noWeightBtn; + private Controls.ColorButton noCodeBtn; + private Controls.ColorButton deleteSelectBtn; + private Controls.ColorButton closeBtn; + private Controls.WeightControl weightControl1; } } \ No newline at end of file diff --git a/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.cs b/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.cs index aa79c0b..08972ff 100644 --- a/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.cs +++ b/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.cs @@ -14,7 +14,9 @@ using ButcherFactory.Utils; using ButcherFactory.BO.LocalBL; using WinFormControl; using System.Threading; - +using ButcherFactory.Controls; +using ButcherFactory.Dialogs; + namespace ButcherFactory.CarcassInStore_ { public partial class CarcassInStoreForm : Form, IWithRoleForm @@ -38,6 +40,7 @@ namespace ButcherFactory.CarcassInStore_ Thread checkWeight; BindingList needSubmitedList; BindingList historyList; + Dictionary> goodsSetDic; long? workUnitID; long? batchID; List errorWeight = new List(); @@ -75,6 +78,16 @@ namespace ButcherFactory.CarcassInStore_ protected override void OnLoad(EventArgs e) { + //this.uWeightControl1.SettingBtn.BackgroundImage = null; + //this.uWeightControl1.SettingBtn.BackColor = Color.FromArgb(2, 167, 240); + //this.uWeightControl1.SettingBtn.ForeColor = Color.White; + + //this.uWeightControl1.WeightSwitchBtn.BackgroundImage = null; + //this.uWeightControl1.WeightSwitchBtn.BackColor = Color.FromArgb(0, 191, 191); + //this.uWeightControl1.WeightSwitchBtn.ForeColor = Color.White; + //noWeightBtn.BackgroundImage = null; + //deleteSelectBtn.BackgroundImage = null; + //closeBtn.BackgroundImage = null; base.OnLoad(e); var initTask = new Thread(LoadBind); initTask.Start(); @@ -84,7 +97,7 @@ namespace ButcherFactory.CarcassInStore_ uploadData = new Thread(UpLoadLocalData); uploadData.Start(); - uWeightControl1.ReceivedValue += ReceiveWeight; + weightControl1.ReceivedValue += ReceiveWeight; } void ReceiveWeight(decimal weight) @@ -136,19 +149,46 @@ namespace ButcherFactory.CarcassInStore_ bool noCode = false; static object _lock = new object(); + + private void goodsSetBtn_Click(object sender, EventArgs e) + { + new ClientGoodsSetDialog().ShowDialog(); + BindGoods(); + } + void BindGoods() { - var goods = FormClientGoodsSetBL.GetGoodsList(); - foreach (var item in goods) + goodsSetDic = FormClientGoodsSetBL.GetSelectedDetail(); + + flowLayoutPanel1.Controls.Clear(); + flowLayoutPanel2.Controls.Clear(); + foreach (var item in goodsSetDic) { - var btn = new UButton() { Width = 120, Height = 75, Text = item.Goods_Name, Tag = item.Goods_ID, Font = new Font("宋体", 15), Margin = new Padding(22, 10, 22, 30), PlaySound = true }; + var btn = new ColorButton() { Width = 100, Height = 62, Text = item.Key, Font = new Font("宋体", 15), Margin = new Padding(15, 3, 15, 0), EnableGroup = true }; + btn.BackColor = Color.FromArgb(22, 155, 213); + btn.SelectedColor = Color.FromArgb(0, 191, 191); + btn.Click += GroupGoodsSetClick; + flowLayoutPanel2.Controls.Add(btn); + } + } + + private void GroupGoodsSetClick(object sender, EventArgs e) + { + flowLayoutPanel1.Controls.Clear(); + var groupBtn = sender as ColorButton; + var arr = goodsSetDic[groupBtn.Text]; + foreach (var item in arr) + { + var btn = new ColorButton() { Width = 120, Height = 75, Text = item.Goods_Name, Tag = item.Goods_ID, Font = new Font("宋体", 15), Margin = new Padding(22, 10, 22, 30), PlaySound = true, EnableGroup = true }; + btn.SelectedColor = Color.Black; btn.Click += GoodsBtnClick; flowLayoutPanel1.Controls.Add(btn); - } - } - + } + } + void GoodsBtnClick(object sender, EventArgs e) { + return; lock (_lock) { if (changeID.HasValue) @@ -178,7 +218,7 @@ namespace ButcherFactory.CarcassInStore_ if (noCode) { noCodeBtn_Click(sender, EventArgs.Empty); - noCodeBtn.AsClicked = false; + noCodeBtn.Selected = false; } else uScanPanel1.TextBox.Text = string.Empty; @@ -277,7 +317,8 @@ namespace ButcherFactory.CarcassInStore_ private void noCodeBtn_Click(object sender, EventArgs e) { noCode = !noCode; - noCodeBtn.Text = noCode ? "等待插入" : "无 码"; + noCodeBtn.Text = noCode ? "等待插入" : "无 码"; + noCodeBtn.Selected = noCode; } private void historyDataGrid_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) diff --git a/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.resx b/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.resx index 8950d6b..7bb3c55 100644 --- a/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.resx +++ b/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.resx @@ -1,186 +1,153 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK - goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg - KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= - - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + \ No newline at end of file diff --git a/ButcherFactory.Form/Controls/WeightControl.Designer.cs b/ButcherFactory.Form/Controls/WeightControl.Designer.cs index 474983c..6de3a7b 100644 --- a/ButcherFactory.Form/Controls/WeightControl.Designer.cs +++ b/ButcherFactory.Form/Controls/WeightControl.Designer.cs @@ -28,96 +28,101 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.roundPanel1 = new ButcherFactory.Controls.RoundPanel(this.components); - this.weightSwitch = new ButcherFactory.Controls.ColorButton(); - this.settingBtn = new ButcherFactory.Controls.ColorButton(); - this.roundPanel2 = new ButcherFactory.Controls.RoundPanel(this.components); - this.lblChengZhong = new System.Windows.Forms.Label(); - this.roundPanel1.SuspendLayout(); - this.roundPanel2.SuspendLayout(); - this.SuspendLayout(); - // - // roundPanel1 - // - this.roundPanel1._setRoundRadius = 15; - this.roundPanel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.roundPanel1.Controls.Add(this.weightSwitch); - this.roundPanel1.Controls.Add(this.settingBtn); - this.roundPanel1.Controls.Add(this.roundPanel2); - this.roundPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.roundPanel1.Location = new System.Drawing.Point(0, 0); - this.roundPanel1.Margin = new System.Windows.Forms.Padding(0); - this.roundPanel1.Name = "roundPanel1"; - this.roundPanel1.Size = new System.Drawing.Size(262, 74); - this.roundPanel1.TabIndex = 0; - // - // weightSwitch - // - this.weightSwitch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); - this.weightSwitch.Font = new System.Drawing.Font("宋体", 10F); - this.weightSwitch.ForeColor = System.Drawing.Color.White; - this.weightSwitch.Location = new System.Drawing.Point(167, 40); - this.weightSwitch.Name = "weightSwitch"; - this.weightSwitch.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); - this.weightSwitch.Size = new System.Drawing.Size(92, 32); - this.weightSwitch.StateHold = true; - this.weightSwitch.TabIndex = 2; - this.weightSwitch.Text = "启用称重"; - this.weightSwitch.UseVisualStyleBackColor = false; - this.weightSwitch.Click += new System.EventHandler(this.weightSwitch_Click); - // - // settingBtn - // - this.settingBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(98)))), ((int)(((byte)(222))))); - this.settingBtn.Font = new System.Drawing.Font("宋体", 10F); - this.settingBtn.ForeColor = System.Drawing.Color.White; - this.settingBtn.Location = new System.Drawing.Point(167, 1); - this.settingBtn.Name = "settingBtn"; - this.settingBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); - this.settingBtn.Size = new System.Drawing.Size(92, 32); - this.settingBtn.TabIndex = 1; - this.settingBtn.Text = "称设置"; - this.settingBtn.UseVisualStyleBackColor = false; - this.settingBtn.Click += new System.EventHandler(this.settingBtn_Click); - // - // roundPanel2 - // - this.roundPanel2._setRoundRadius = 15; - this.roundPanel2.BackColor = System.Drawing.Color.Black; - this.roundPanel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.roundPanel2.Controls.Add(this.lblChengZhong); - this.roundPanel2.Location = new System.Drawing.Point(0, 0); - this.roundPanel2.Margin = new System.Windows.Forms.Padding(0); - this.roundPanel2.Name = "roundPanel2"; - this.roundPanel2.Size = new System.Drawing.Size(164, 74); - this.roundPanel2.TabIndex = 0; - // - // lblChengZhong - // - this.lblChengZhong.AutoSize = true; - this.lblChengZhong.Font = new System.Drawing.Font("宋体", 25F); - this.lblChengZhong.ForeColor = System.Drawing.Color.Red; - this.lblChengZhong.Location = new System.Drawing.Point(5, 19); - this.lblChengZhong.Margin = new System.Windows.Forms.Padding(0); - this.lblChengZhong.Name = "lblChengZhong"; - this.lblChengZhong.Size = new System.Drawing.Size(83, 34); - this.lblChengZhong.TabIndex = 0; - this.lblChengZhong.Text = "0.00"; - // - // WeightControl - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.Transparent; - this.Controls.Add(this.roundPanel1); - this.Name = "WeightControl"; - this.Size = new System.Drawing.Size(262, 74); - this.roundPanel1.ResumeLayout(false); - this.roundPanel2.ResumeLayout(false); - this.roundPanel2.PerformLayout(); - this.ResumeLayout(false); - + this.components = new System.ComponentModel.Container(); + this.roundPanel1 = new ButcherFactory.Controls.RoundPanel(this.components); + this.weightSwitch = new ButcherFactory.Controls.ColorButton(); + this.settingBtn = new ButcherFactory.Controls.ColorButton(); + this.roundPanel2 = new ButcherFactory.Controls.RoundPanel(this.components); + this.lblChengZhong = new System.Windows.Forms.Label(); + this.roundPanel1.SuspendLayout(); + this.roundPanel2.SuspendLayout(); + this.SuspendLayout(); + // + // roundPanel1 + // + this.roundPanel1._setRoundRadius = 15; + this.roundPanel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.roundPanel1.Controls.Add(this.weightSwitch); + this.roundPanel1.Controls.Add(this.settingBtn); + this.roundPanel1.Controls.Add(this.roundPanel2); + this.roundPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.roundPanel1.Location = new System.Drawing.Point(0, 0); + this.roundPanel1.Margin = new System.Windows.Forms.Padding(0); + this.roundPanel1.Name = "roundPanel1"; + this.roundPanel1.Size = new System.Drawing.Size(262, 74); + this.roundPanel1.TabIndex = 0; + // + // weightSwitch + // + this.weightSwitch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.weightSwitch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(135)))), ((int)(((byte)(245))))); + this.weightSwitch.Font = new System.Drawing.Font("宋体", 10F); + this.weightSwitch.ForeColor = System.Drawing.Color.White; + this.weightSwitch.Location = new System.Drawing.Point(167, 40); + this.weightSwitch.Name = "weightSwitch"; + this.weightSwitch.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); + this.weightSwitch.Size = new System.Drawing.Size(92, 32); + this.weightSwitch.StateHold = true; + this.weightSwitch.TabIndex = 2; + this.weightSwitch.Text = "启用称重"; + this.weightSwitch.UseVisualStyleBackColor = false; + this.weightSwitch.Click += new System.EventHandler(this.weightSwitch_Click); + // + // settingBtn + // + this.settingBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.settingBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(98)))), ((int)(((byte)(222))))); + this.settingBtn.Font = new System.Drawing.Font("宋体", 10F); + this.settingBtn.ForeColor = System.Drawing.Color.White; + this.settingBtn.Location = new System.Drawing.Point(167, 1); + this.settingBtn.Name = "settingBtn"; + this.settingBtn.SelectedColor = System.Drawing.Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(234)))), ((int)(((byte)(106))))); + this.settingBtn.Size = new System.Drawing.Size(92, 32); + this.settingBtn.TabIndex = 1; + this.settingBtn.Text = "称设置"; + this.settingBtn.UseVisualStyleBackColor = false; + this.settingBtn.Click += new System.EventHandler(this.settingBtn_Click); + // + // roundPanel2 + // + this.roundPanel2._setRoundRadius = 15; + this.roundPanel2.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.roundPanel2.BackColor = System.Drawing.Color.Black; + this.roundPanel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.roundPanel2.Controls.Add(this.lblChengZhong); + this.roundPanel2.Location = new System.Drawing.Point(0, 0); + this.roundPanel2.Margin = new System.Windows.Forms.Padding(0); + this.roundPanel2.Name = "roundPanel2"; + this.roundPanel2.Size = new System.Drawing.Size(164, 74); + this.roundPanel2.TabIndex = 0; + // + // lblChengZhong + // + this.lblChengZhong.AutoSize = true; + this.lblChengZhong.Font = new System.Drawing.Font("宋体", 25F); + this.lblChengZhong.ForeColor = System.Drawing.Color.Red; + this.lblChengZhong.Location = new System.Drawing.Point(5, 19); + this.lblChengZhong.Margin = new System.Windows.Forms.Padding(0); + this.lblChengZhong.Name = "lblChengZhong"; + this.lblChengZhong.Size = new System.Drawing.Size(83, 34); + this.lblChengZhong.TabIndex = 0; + this.lblChengZhong.Text = "0.00"; + // + // WeightControl + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Transparent; + this.Controls.Add(this.roundPanel1); + this.Name = "WeightControl"; + this.Size = new System.Drawing.Size(262, 74); + this.roundPanel1.ResumeLayout(false); + this.roundPanel2.ResumeLayout(false); + this.roundPanel2.PerformLayout(); + this.ResumeLayout(false); + } #endregion diff --git a/ButcherFactory.Form/Controls/WeightControl.resx b/ButcherFactory.Form/Controls/WeightControl.resx index 1af7de1..29dcb1b 100644 --- a/ButcherFactory.Form/Controls/WeightControl.resx +++ b/ButcherFactory.Form/Controls/WeightControl.resx @@ -1,120 +1,120 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file