diff --git a/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.Designer.cs b/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.Designer.cs index a24a67b..c0a3757 100644 --- a/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.Designer.cs +++ b/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.Designer.cs @@ -28,28 +28,34 @@ /// private void InitializeComponent() { - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle55 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle56 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle57 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle58 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle59 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle60 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle61 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle62 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle63 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle64 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle65 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle66 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle67 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle68 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle69 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle70 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle71 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle72 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CarcassInStoreForm)); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.uLabel2 = new WinFormControl.ULabel(); + this.uLabel1 = new WinFormControl.ULabel(); + this.comboBox2 = new System.Windows.Forms.ComboBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.uScanPanel1 = new WinFormControl.UScanPanel(); + this.netStateWatch1 = new WinFormControl.NetStateWatch(); + this.uWeightControl1 = new WinFormControl.UWeightControl(); this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.label2 = new System.Windows.Forms.Label(); this.序号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.条码 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.产品名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -92,6 +98,7 @@ this.dataGridViewTextBoxColumn33 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn34 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn35 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.closeBtn = new WinFormControl.UButton(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); @@ -102,51 +109,121 @@ // // 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.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.textBox1); - this.splitContainer1.Panel1.Controls.Add(this.label2); + this.splitContainer1.Panel1.BackColor = System.Drawing.Color.Transparent; + this.splitContainer1.Panel1.Controls.Add(this.closeBtn); + this.splitContainer1.Panel1.Controls.Add(this.comboBox2); + this.splitContainer1.Panel1.Controls.Add(this.comboBox1); + 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(1049, 601); - this.splitContainer1.SplitterDistance = 146; + this.splitContainer1.Size = new System.Drawing.Size(1144, 611); + this.splitContainer1.SplitterDistance = 86; this.splitContainer1.TabIndex = 0; // + // 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(744, 50); + this.uLabel2.Name = "uLabel2"; + this.uLabel2.Size = new System.Drawing.Size(109, 20); + this.uLabel2.TabIndex = 6; + this.uLabel2.Text = "生产批次:"; + // + // 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(744, 14); + this.uLabel1.Name = "uLabel1"; + this.uLabel1.Size = new System.Drawing.Size(109, 20); + this.uLabel1.TabIndex = 5; + this.uLabel1.Text = "工作单元:"; + // + // comboBox2 + // + this.comboBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.comboBox2.Font = new System.Drawing.Font("宋体", 15F); + this.comboBox2.FormattingEnabled = true; + this.comboBox2.Location = new System.Drawing.Point(845, 47); + this.comboBox2.Name = "comboBox2"; + this.comboBox2.Size = new System.Drawing.Size(170, 28); + this.comboBox2.TabIndex = 4; + // + // comboBox1 + // + this.comboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.comboBox1.Font = new System.Drawing.Font("宋体", 15F); + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(845, 11); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(170, 28); + this.comboBox1.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(441, 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; + // // 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"; - this.splitContainer2.Size = new System.Drawing.Size(1049, 451); - this.splitContainer2.SplitterDistance = 745; - this.splitContainer2.TabIndex = 0; // - // textBox1 + // splitContainer2.Panel1 // - this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.textBox1.Font = new System.Drawing.Font("宋体", 12F); - this.textBox1.Location = new System.Drawing.Point(628, 100); - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(229, 26); - this.textBox1.TabIndex = 48; + this.splitContainer2.Panel1.BackColor = System.Drawing.Color.Transparent; // - // label2 + // splitContainer2.Panel2 // - this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.label2.AutoSize = true; - this.label2.Font = new System.Drawing.Font("宋体", 15F); - this.label2.Location = new System.Drawing.Point(568, 103); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(69, 20); - this.label2.TabIndex = 47; - this.label2.Text = "扫码:"; + this.splitContainer2.Panel2.BackColor = System.Drawing.Color.Transparent; + this.splitContainer2.Size = new System.Drawing.Size(1144, 521); + this.splitContainer2.SplitterDistance = 816; + this.splitContainer2.TabIndex = 0; // // 序号 // @@ -182,8 +259,8 @@ // 入库重量 // this.入库重量.DataPropertyName = "Weight"; - dataGridViewCellStyle55.Format = "#0.######"; - this.入库重量.DefaultCellStyle = dataGridViewCellStyle55; + dataGridViewCellStyle19.Format = "#0.######"; + this.入库重量.DefaultCellStyle = dataGridViewCellStyle19; this.入库重量.HeaderText = "入库重量"; this.入库重量.Name = "入库重量"; this.入库重量.ReadOnly = true; @@ -191,8 +268,8 @@ // 胴体重量 // this.胴体重量.DataPropertyName = "BeforeWeight"; - dataGridViewCellStyle56.Format = "#0.######"; - this.胴体重量.DefaultCellStyle = dataGridViewCellStyle56; + dataGridViewCellStyle20.Format = "#0.######"; + this.胴体重量.DefaultCellStyle = dataGridViewCellStyle20; this.胴体重量.HeaderText = "胴体重量"; this.胴体重量.Name = "胴体重量"; this.胴体重量.ReadOnly = true; @@ -200,8 +277,8 @@ // 损耗 // this.损耗.DataPropertyName = "LossWeight"; - dataGridViewCellStyle57.Format = "#0.######"; - this.损耗.DefaultCellStyle = dataGridViewCellStyle57; + dataGridViewCellStyle21.Format = "#0.######"; + this.损耗.DefaultCellStyle = dataGridViewCellStyle21; this.损耗.HeaderText = "损耗"; this.损耗.Name = "损耗"; this.损耗.ReadOnly = true; @@ -240,8 +317,8 @@ // dataGridViewTextBoxColumn5 // this.dataGridViewTextBoxColumn5.DataPropertyName = "Weight"; - dataGridViewCellStyle58.Format = "#0.######"; - this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle58; + dataGridViewCellStyle22.Format = "#0.######"; + this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle22; this.dataGridViewTextBoxColumn5.HeaderText = "入库重量"; this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; this.dataGridViewTextBoxColumn5.ReadOnly = true; @@ -249,8 +326,8 @@ // dataGridViewTextBoxColumn6 // this.dataGridViewTextBoxColumn6.DataPropertyName = "BeforeWeight"; - dataGridViewCellStyle59.Format = "#0.######"; - this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle59; + dataGridViewCellStyle23.Format = "#0.######"; + this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle23; this.dataGridViewTextBoxColumn6.HeaderText = "胴体重量"; this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; this.dataGridViewTextBoxColumn6.ReadOnly = true; @@ -258,8 +335,8 @@ // dataGridViewTextBoxColumn7 // this.dataGridViewTextBoxColumn7.DataPropertyName = "LossWeight"; - dataGridViewCellStyle60.Format = "#0.######"; - this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle60; + dataGridViewCellStyle24.Format = "#0.######"; + this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle24; this.dataGridViewTextBoxColumn7.HeaderText = "损耗"; this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; this.dataGridViewTextBoxColumn7.ReadOnly = true; @@ -298,8 +375,8 @@ // dataGridViewTextBoxColumn12 // this.dataGridViewTextBoxColumn12.DataPropertyName = "Weight"; - dataGridViewCellStyle61.Format = "#0.######"; - this.dataGridViewTextBoxColumn12.DefaultCellStyle = dataGridViewCellStyle61; + dataGridViewCellStyle25.Format = "#0.######"; + this.dataGridViewTextBoxColumn12.DefaultCellStyle = dataGridViewCellStyle25; this.dataGridViewTextBoxColumn12.HeaderText = "入库重量"; this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12"; this.dataGridViewTextBoxColumn12.ReadOnly = true; @@ -307,8 +384,8 @@ // dataGridViewTextBoxColumn13 // this.dataGridViewTextBoxColumn13.DataPropertyName = "BeforeWeight"; - dataGridViewCellStyle62.Format = "#0.######"; - this.dataGridViewTextBoxColumn13.DefaultCellStyle = dataGridViewCellStyle62; + dataGridViewCellStyle26.Format = "#0.######"; + this.dataGridViewTextBoxColumn13.DefaultCellStyle = dataGridViewCellStyle26; this.dataGridViewTextBoxColumn13.HeaderText = "胴体重量"; this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13"; this.dataGridViewTextBoxColumn13.ReadOnly = true; @@ -316,8 +393,8 @@ // dataGridViewTextBoxColumn14 // this.dataGridViewTextBoxColumn14.DataPropertyName = "LossWeight"; - dataGridViewCellStyle63.Format = "#0.######"; - this.dataGridViewTextBoxColumn14.DefaultCellStyle = dataGridViewCellStyle63; + dataGridViewCellStyle27.Format = "#0.######"; + this.dataGridViewTextBoxColumn14.DefaultCellStyle = dataGridViewCellStyle27; this.dataGridViewTextBoxColumn14.HeaderText = "损耗"; this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14"; this.dataGridViewTextBoxColumn14.ReadOnly = true; @@ -356,8 +433,8 @@ // dataGridViewTextBoxColumn19 // this.dataGridViewTextBoxColumn19.DataPropertyName = "Weight"; - dataGridViewCellStyle64.Format = "#0.######"; - this.dataGridViewTextBoxColumn19.DefaultCellStyle = dataGridViewCellStyle64; + dataGridViewCellStyle28.Format = "#0.######"; + this.dataGridViewTextBoxColumn19.DefaultCellStyle = dataGridViewCellStyle28; this.dataGridViewTextBoxColumn19.HeaderText = "入库重量"; this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19"; this.dataGridViewTextBoxColumn19.ReadOnly = true; @@ -365,8 +442,8 @@ // dataGridViewTextBoxColumn20 // this.dataGridViewTextBoxColumn20.DataPropertyName = "BeforeWeight"; - dataGridViewCellStyle65.Format = "#0.######"; - this.dataGridViewTextBoxColumn20.DefaultCellStyle = dataGridViewCellStyle65; + dataGridViewCellStyle29.Format = "#0.######"; + this.dataGridViewTextBoxColumn20.DefaultCellStyle = dataGridViewCellStyle29; this.dataGridViewTextBoxColumn20.HeaderText = "胴体重量"; this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20"; this.dataGridViewTextBoxColumn20.ReadOnly = true; @@ -374,8 +451,8 @@ // dataGridViewTextBoxColumn21 // this.dataGridViewTextBoxColumn21.DataPropertyName = "LossWeight"; - dataGridViewCellStyle66.Format = "#0.######"; - this.dataGridViewTextBoxColumn21.DefaultCellStyle = dataGridViewCellStyle66; + dataGridViewCellStyle30.Format = "#0.######"; + this.dataGridViewTextBoxColumn21.DefaultCellStyle = dataGridViewCellStyle30; this.dataGridViewTextBoxColumn21.HeaderText = "损耗"; this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21"; this.dataGridViewTextBoxColumn21.ReadOnly = true; @@ -414,8 +491,8 @@ // dataGridViewTextBoxColumn26 // this.dataGridViewTextBoxColumn26.DataPropertyName = "Weight"; - dataGridViewCellStyle67.Format = "#0.######"; - this.dataGridViewTextBoxColumn26.DefaultCellStyle = dataGridViewCellStyle67; + dataGridViewCellStyle31.Format = "#0.######"; + this.dataGridViewTextBoxColumn26.DefaultCellStyle = dataGridViewCellStyle31; this.dataGridViewTextBoxColumn26.HeaderText = "入库重量"; this.dataGridViewTextBoxColumn26.Name = "dataGridViewTextBoxColumn26"; this.dataGridViewTextBoxColumn26.ReadOnly = true; @@ -423,8 +500,8 @@ // dataGridViewTextBoxColumn27 // this.dataGridViewTextBoxColumn27.DataPropertyName = "BeforeWeight"; - dataGridViewCellStyle68.Format = "#0.######"; - this.dataGridViewTextBoxColumn27.DefaultCellStyle = dataGridViewCellStyle68; + dataGridViewCellStyle32.Format = "#0.######"; + this.dataGridViewTextBoxColumn27.DefaultCellStyle = dataGridViewCellStyle32; this.dataGridViewTextBoxColumn27.HeaderText = "胴体重量"; this.dataGridViewTextBoxColumn27.Name = "dataGridViewTextBoxColumn27"; this.dataGridViewTextBoxColumn27.ReadOnly = true; @@ -432,8 +509,8 @@ // dataGridViewTextBoxColumn28 // this.dataGridViewTextBoxColumn28.DataPropertyName = "LossWeight"; - dataGridViewCellStyle69.Format = "#0.######"; - this.dataGridViewTextBoxColumn28.DefaultCellStyle = dataGridViewCellStyle69; + dataGridViewCellStyle33.Format = "#0.######"; + this.dataGridViewTextBoxColumn28.DefaultCellStyle = dataGridViewCellStyle33; this.dataGridViewTextBoxColumn28.HeaderText = "损耗"; this.dataGridViewTextBoxColumn28.Name = "dataGridViewTextBoxColumn28"; this.dataGridViewTextBoxColumn28.ReadOnly = true; @@ -472,8 +549,8 @@ // dataGridViewTextBoxColumn33 // this.dataGridViewTextBoxColumn33.DataPropertyName = "Weight"; - dataGridViewCellStyle70.Format = "#0.######"; - this.dataGridViewTextBoxColumn33.DefaultCellStyle = dataGridViewCellStyle70; + dataGridViewCellStyle34.Format = "#0.######"; + this.dataGridViewTextBoxColumn33.DefaultCellStyle = dataGridViewCellStyle34; this.dataGridViewTextBoxColumn33.HeaderText = "入库重量"; this.dataGridViewTextBoxColumn33.Name = "dataGridViewTextBoxColumn33"; this.dataGridViewTextBoxColumn33.ReadOnly = true; @@ -481,8 +558,8 @@ // dataGridViewTextBoxColumn34 // this.dataGridViewTextBoxColumn34.DataPropertyName = "BeforeWeight"; - dataGridViewCellStyle71.Format = "#0.######"; - this.dataGridViewTextBoxColumn34.DefaultCellStyle = dataGridViewCellStyle71; + dataGridViewCellStyle35.Format = "#0.######"; + this.dataGridViewTextBoxColumn34.DefaultCellStyle = dataGridViewCellStyle35; this.dataGridViewTextBoxColumn34.HeaderText = "胴体重量"; this.dataGridViewTextBoxColumn34.Name = "dataGridViewTextBoxColumn34"; this.dataGridViewTextBoxColumn34.ReadOnly = true; @@ -490,22 +567,41 @@ // dataGridViewTextBoxColumn35 // this.dataGridViewTextBoxColumn35.DataPropertyName = "LossWeight"; - dataGridViewCellStyle72.Format = "#0.######"; - this.dataGridViewTextBoxColumn35.DefaultCellStyle = dataGridViewCellStyle72; + dataGridViewCellStyle36.Format = "#0.######"; + this.dataGridViewTextBoxColumn35.DefaultCellStyle = dataGridViewCellStyle36; this.dataGridViewTextBoxColumn35.HeaderText = "损耗"; this.dataGridViewTextBoxColumn35.Name = "dataGridViewTextBoxColumn35"; this.dataGridViewTextBoxColumn35.ReadOnly = true; // + // closeBtn + // + this.closeBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.closeBtn.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("closeBtn.BackgroundImage"))); + 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(1026, 7); + this.closeBtn.Name = "closeBtn"; + this.closeBtn.PlaySound = false; + this.closeBtn.Size = new System.Drawing.Size(111, 34); + this.closeBtn.SoundType = WinFormControl.SoundType.Click; + this.closeBtn.TabIndex = 7; + this.closeBtn.Text = "关 闭"; + this.closeBtn.UseVisualStyleBackColor = true; + // // 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(1049, 601); + this.ClientSize = new System.Drawing.Size(1144, 611); this.Controls.Add(this.splitContainer1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.KeyPreview = true; + this.MinimumSize = new System.Drawing.Size(1160, 650); this.Name = "CarcassInStoreForm"; - this.Text = "CarcassInStoreForm"; + this.Text = "白条入库"; this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel1.PerformLayout(); this.splitContainer1.Panel2.ResumeLayout(false); @@ -521,8 +617,6 @@ private System.Windows.Forms.SplitContainer splitContainer1; private System.Windows.Forms.SplitContainer splitContainer2; - private System.Windows.Forms.TextBox textBox1; - private System.Windows.Forms.Label label2; private System.Windows.Forms.DataGridViewTextBoxColumn 序号; private System.Windows.Forms.DataGridViewTextBoxColumn 条码; private System.Windows.Forms.DataGridViewTextBoxColumn 产品名称; @@ -565,6 +659,14 @@ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn33; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn34; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn35; + private WinFormControl.ULabel uLabel2; + private WinFormControl.ULabel uLabel1; + private System.Windows.Forms.ComboBox comboBox2; + private System.Windows.Forms.ComboBox comboBox1; + private WinFormControl.UScanPanel uScanPanel1; + private WinFormControl.NetStateWatch netStateWatch1; + private WinFormControl.UWeightControl uWeightControl1; + private WinFormControl.UButton closeBtn; } diff --git a/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.cs b/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.cs index e6e8509..ab57f17 100644 --- a/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.cs +++ b/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.cs @@ -16,6 +16,7 @@ namespace ButcherFactory.CarcassInStore_ public CarcassInStoreForm() { InitializeComponent(); + netStateWatch1.GetConnectState = () => LoginUtil.TestConnection(500); } public List RoleName diff --git a/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.resx b/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.resx index 9fa4166..2d7d3ad 100644 --- a/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.resx +++ b/ButcherFactory.Form/CarcassInStore_/CarcassInStoreForm.resx @@ -117,6 +117,45 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + True + + + True + + + + + iVBORw0KGgoAAAANSUhEUgAAAGAAAAAwCAIAAABhdOiYAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wwAADsMBx2+oZAAAAHNJREFUaEPt0AENACAMwDAkowVB14aDz0CTKui5b1gICoKCoCAoCAqCgqAgKAgK + goKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAgKAgKgoKgICgICoKCoCAoCAqCgqAg + KAgKgoKg1ZsPvpCB0hBohjQAAAAASUVORK5CYII= + + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + True @@ -243,4 +282,7 @@ True + + True + \ No newline at end of file