Kaynağa Gözat

Merge branch 'master' of ssh://10.10.101.21/source/mes-client

章政 7 yıl önce
ebeveyn
işleme
1795e55dc7

+ 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,"","");
             //更新采样记录表