浏览代码

修改栈板重量记录BUG

章政 8 年之前
父节点
当前提交
2a0f5cc765

+ 38 - 16
UAS-MES/FunctionCode/Make/Make_PalletWeightRecord.Designer.cs

@@ -36,15 +36,17 @@
             this.SaveWeight = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
             this.weight = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
             this.pa_outboxcode = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
+            this.label2 = new System.Windows.Forms.Label();
             this.SuspendLayout();
             // 
             // outboxcode_label
             // 
             this.outboxcode_label.AutoSize = true;
             this.outboxcode_label.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.outboxcode_label.Location = new System.Drawing.Point(107, 97);
+            this.outboxcode_label.Location = new System.Drawing.Point(119, 121);
+            this.outboxcode_label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.outboxcode_label.Name = "outboxcode_label";
-            this.outboxcode_label.Size = new System.Drawing.Size(58, 21);
+            this.outboxcode_label.Size = new System.Drawing.Size(72, 27);
             this.outboxcode_label.TabIndex = 168;
             this.outboxcode_label.Text = "栈板号";
             // 
@@ -52,9 +54,10 @@
             // 
             this.label1.AutoSize = true;
             this.label1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label1.Location = new System.Drawing.Point(107, 153);
+            this.label1.Location = new System.Drawing.Point(119, 191);
+            this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(74, 21);
+            this.label1.Size = new System.Drawing.Size(92, 27);
             this.label1.TabIndex = 170;
             this.label1.Text = "栈板重量";
             // 
@@ -65,12 +68,13 @@
             this.Clean.DownImage = ((System.Drawing.Image)(resources.GetObject("Clean.DownImage")));
             this.Clean.Image = null;
             this.Clean.IsShowBorder = true;
-            this.Clean.Location = new System.Drawing.Point(502, 320);
+            this.Clean.Location = new System.Drawing.Point(635, 400);
+            this.Clean.Margin = new System.Windows.Forms.Padding(4);
             this.Clean.MoveImage = ((System.Drawing.Image)(resources.GetObject("Clean.MoveImage")));
             this.Clean.Name = "Clean";
             this.Clean.NormalImage = ((System.Drawing.Image)(resources.GetObject("Clean.NormalImage")));
             this.Clean.Power = null;
-            this.Clean.Size = new System.Drawing.Size(75, 28);
+            this.Clean.Size = new System.Drawing.Size(100, 35);
             this.Clean.TabIndex = 173;
             this.Clean.Text = "清除";
             this.Clean.UseVisualStyleBackColor = false;
@@ -79,9 +83,10 @@
             // OperateResult
             // 
             this.OperateResult.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OperateResult.Location = new System.Drawing.Point(425, 12);
+            this.OperateResult.Location = new System.Drawing.Point(511, 16);
+            this.OperateResult.Margin = new System.Windows.Forms.Padding(4);
             this.OperateResult.Name = "OperateResult";
-            this.OperateResult.Size = new System.Drawing.Size(226, 302);
+            this.OperateResult.Size = new System.Drawing.Size(346, 376);
             this.OperateResult.TabIndex = 172;
             this.OperateResult.Text = "";
             // 
@@ -92,12 +97,13 @@
             this.SaveWeight.DownImage = ((System.Drawing.Image)(resources.GetObject("SaveWeight.DownImage")));
             this.SaveWeight.Image = null;
             this.SaveWeight.IsShowBorder = true;
-            this.SaveWeight.Location = new System.Drawing.Point(201, 216);
+            this.SaveWeight.Location = new System.Drawing.Point(244, 270);
+            this.SaveWeight.Margin = new System.Windows.Forms.Padding(4);
             this.SaveWeight.MoveImage = ((System.Drawing.Image)(resources.GetObject("SaveWeight.MoveImage")));
             this.SaveWeight.Name = "SaveWeight";
             this.SaveWeight.NormalImage = ((System.Drawing.Image)(resources.GetObject("SaveWeight.NormalImage")));
             this.SaveWeight.Power = null;
-            this.SaveWeight.Size = new System.Drawing.Size(75, 28);
+            this.SaveWeight.Size = new System.Drawing.Size(100, 35);
             this.SaveWeight.TabIndex = 171;
             this.SaveWeight.Text = "保存";
             this.SaveWeight.UseVisualStyleBackColor = false;
@@ -108,10 +114,11 @@
             this.weight.AllPower = "ifall";
             this.weight.BackColor = System.Drawing.Color.White;
             this.weight.ID = null;
-            this.weight.Location = new System.Drawing.Point(201, 153);
+            this.weight.Location = new System.Drawing.Point(244, 191);
+            this.weight.Margin = new System.Windows.Forms.Padding(4);
             this.weight.Name = "weight";
             this.weight.Power = "ifwrite";
-            this.weight.Size = new System.Drawing.Size(147, 21);
+            this.weight.Size = new System.Drawing.Size(195, 25);
             this.weight.Str = null;
             this.weight.Str1 = null;
             this.weight.Str2 = null;
@@ -123,21 +130,34 @@
             this.pa_outboxcode.AllPower = "ifall";
             this.pa_outboxcode.BackColor = System.Drawing.Color.White;
             this.pa_outboxcode.ID = null;
-            this.pa_outboxcode.Location = new System.Drawing.Point(201, 97);
+            this.pa_outboxcode.Location = new System.Drawing.Point(244, 121);
+            this.pa_outboxcode.Margin = new System.Windows.Forms.Padding(4);
             this.pa_outboxcode.Name = "pa_outboxcode";
             this.pa_outboxcode.Power = "ifwrite";
-            this.pa_outboxcode.Size = new System.Drawing.Size(147, 21);
+            this.pa_outboxcode.Size = new System.Drawing.Size(195, 25);
             this.pa_outboxcode.Str = null;
             this.pa_outboxcode.Str1 = null;
             this.pa_outboxcode.Str2 = null;
             this.pa_outboxcode.TabIndex = 167;
             this.pa_outboxcode.Tag = "NoAuto";
             // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label2.Location = new System.Drawing.Point(443, 189);
+            this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(36, 27);
+            this.label2.TabIndex = 174;
+            this.label2.Text = "kg";
+            // 
             // Make_PalletWeightRecord
             // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(662, 376);
+            this.ClientSize = new System.Drawing.Size(883, 470);
+            this.Controls.Add(this.label2);
             this.Controls.Add(this.Clean);
             this.Controls.Add(this.OperateResult);
             this.Controls.Add(this.SaveWeight);
@@ -146,6 +166,7 @@
             this.Controls.Add(this.outboxcode_label);
             this.Controls.Add(this.pa_outboxcode);
             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+            this.Margin = new System.Windows.Forms.Padding(4);
             this.Name = "Make_PalletWeightRecord";
             this.Tag = "Make!PalletWeightRecord";
             this.Text = "Make_PalletWeightRecord";
@@ -163,5 +184,6 @@
         private CustomControl.ButtonUtil.NormalButton SaveWeight;
         private CustomControl.RichText.RichTextAutoBottom OperateResult;
         private CustomControl.ButtonUtil.NormalButton Clean;
+        private System.Windows.Forms.Label label2;
     }
 }

+ 2 - 3
UAS-MES/FunctionCode/Make/Make_PalletWeightRecord.cs

@@ -35,11 +35,10 @@ namespace UAS_MES.Make
                     return;
                 }
                 dh.UpdateByCondition("package", "PA_WEIGHT='" + PalletWeight + "'", "pa_outboxcode='" + pa_outboxcode.Text + "'");
-                pa_outboxcode.Clear();
+                OperateResult.AppendText(">>栈板号" + pa_outboxcode.Text + "记录重量" + weight.Text + "kg成功\n", Color.Green, pa_outboxcode);
                 weight.Clear();
-                OperateResult.AppendText(">>栈板号" + pa_outboxcode.Text + "记录重量成功\n");
             }
-            else OperateResult.AppendText(">>栈板号" + pa_outboxcode.Text + "不存在\n");
+            else OperateResult.AppendText(">>栈板号" + pa_outboxcode.Text + "不存在\n", Color.Red, pa_outboxcode);
         }
 
         private void Clean_Click(object sender, EventArgs e)