|
|
@@ -363,6 +363,8 @@ namespace UAS_MES_NEW.Packing
|
|
|
//判断箱内总数必须大于0
|
|
|
if (pr_outboxinnerqty.Text == "" || pr_outboxinnerqty.Text == "0")
|
|
|
{
|
|
|
+ string msprod = dh.getFieldDataByCondition("makeserial", "MS_PRODCODE", $"MS_SNCODE = '{sn_code.Text.Trim()}'").ToString();
|
|
|
+ pr_code.Text = msprod;
|
|
|
OperateResult.AppendText(">>箱内容量必须大于0\n", Color.Red);
|
|
|
return;
|
|
|
}
|
|
|
@@ -1150,9 +1152,9 @@ namespace UAS_MES_NEW.Packing
|
|
|
|
|
|
if (e.KeyCode != Keys.Enter) return;
|
|
|
|
|
|
- if(string.IsNullOrEmpty(ma_code.Text))
|
|
|
+ if(string.IsNullOrEmpty(pr_code.Text))
|
|
|
{
|
|
|
- OperateResult.AppendText("维护装箱容量前请选择工单" + "\n", Color.Red);
|
|
|
+ OperateResult.AppendText("维护装箱容量前请先扫码" + "\n", Color.Red);
|
|
|
return;
|
|
|
}
|
|
|
if (!int.TryParse(pr_outboxinnerqty.Text, out int result))
|
|
|
@@ -1160,9 +1162,8 @@ namespace UAS_MES_NEW.Packing
|
|
|
OperateResult.AppendText("请维护整数数值" + "\n", Color.Red);
|
|
|
return;
|
|
|
}
|
|
|
- string pr_code = dh.getFieldDataByCondition("make", "ma_prodcode", $"ma_code = '{ma_code.Text.Trim()}'").ToString();
|
|
|
sql.Clear();
|
|
|
- sql.Append($"UPDATE product SET pr_outboxinnerqty = '{pr_outboxinnerqty.Text.Trim()}' WHERE pr_code = '{pr_code}'");
|
|
|
+ sql.Append($"UPDATE product SET pr_outboxinnerqty = '{pr_outboxinnerqty.Text.Trim()}' WHERE pr_code = '{pr_code.Text.Trim()}'");
|
|
|
dh.ExecuteSql(sql.GetString(), "update");
|
|
|
OperateResult.AppendText($"更新装箱容量成功,容量为{pr_outboxinnerqty.Text.Trim()}" + "\n", Color.Green);
|
|
|
}
|