Browse Source

产品标准重量设置完成后,将是否要求重量检测设为需检测

Hcsy 7 years ago
parent
commit
75dd634577
1 changed files with 2 additions and 0 deletions
  1. 2 0
      UAS-MES/FunctionCode/Packing/Packing_ProdWeightSet.cs

+ 2 - 0
UAS-MES/FunctionCode/Packing/Packing_ProdWeightSet.cs

@@ -189,6 +189,8 @@ namespace UAS_MES.Packing
             //sum = sum / weights.Count;
             //更新彩盒重量最大值最小值
             dh.ExecuteSql("update product set PR_COLORBOXMAXW ='" + (double.Parse(standardWeight.Text) + double.Parse(errorValue.Text)) + "', PR_COLORBOXMINW = '" + (double.Parse(standardWeight.Text) - double.Parse(errorValue.Text)) + "' where pr_code='" + pr_code.Text + "'", "update");
+            //更新此产品需要检测彩盒重量
+            dh.ExecuteSql("update product set pr_checkcolorboxw = 1 where pr_code='" + pr_code.Text + "'", "update");
             OperateResult.AppendText("<<重量设置成功,最大值" + (double.Parse(standardWeight.Text) + double.Parse(errorValue.Text)) +unit.Text+ ",最小值" + (double.Parse(standardWeight.Text) - double.Parse(errorValue.Text)) + unit.Text+"\n", Color.Green);
             LogicHandler.DoCommandLog(Tag.ToString(),User.UserCode,"",User.UserLineCode,User.UserSourceCode,"产品重量设置","产品编号"+pr_code.Text+",最大"+ (double.Parse(standardWeight.Text) + double.Parse(errorValue.Text))+unit.Text+"最小"+ (double.Parse(standardWeight.Text) - double.Parse(errorValue.Text))+unit.Text,"","");
             //更新采样记录表