|
|
@@ -788,19 +788,10 @@ namespace UAS_MES.Warehouse
|
|
|
OperateResult.AppendText(type + inputmessage + "已出库,请重新输入\n", Color.Red, input);
|
|
|
return false;
|
|
|
}
|
|
|
- if (dt.Rows[0]["pa_iostatus"].ToString() == "2")
|
|
|
- {
|
|
|
- OperateResult.AppendText(type + inputmessage + "已经出货\n", Color.Red, input);
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (dt.Rows[0]["pa_iostatus"].ToString() == "3")
|
|
|
- {
|
|
|
- OperateResult.AppendText(type + inputmessage + "处于销售退货状态\n", Color.Red, input);
|
|
|
- return false;
|
|
|
- }
|
|
|
+
|
|
|
if (needMakeIn != "0")
|
|
|
{
|
|
|
- if (dt.Rows[0]["pa_iostatus"].ToString() != "1" && dt.Rows[0]["pa_mothercode"].ToString() != "")
|
|
|
+ if (dt.Rows[0]["pa_iostatus"].ToString() != "1" && dt.Rows[0]["pa_mothercode"].ToString() == "")
|
|
|
{
|
|
|
OperateResult.AppendText(type + inputmessage + "必须完工入库才允许出库\n", Color.Red, input);
|
|
|
return false;
|
|
|
@@ -814,6 +805,16 @@ namespace UAS_MES.Warehouse
|
|
|
|
|
|
if (input.Text == inputmessage)
|
|
|
{
|
|
|
+ if (dt.Rows[0]["pa_iostatus"].ToString() == "2")
|
|
|
+ {
|
|
|
+ OperateResult.AppendText(type + inputmessage + "已经出货\n", Color.Red, input);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (dt.Rows[0]["pa_iostatus"].ToString() == "3")
|
|
|
+ {
|
|
|
+ OperateResult.AppendText(type + inputmessage + "处于销售退货状态\n", Color.Red, input);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
if (dt.Rows[0]["pa_outno"].ToString() != "")
|
|
|
{
|
|
|
OperateResult.AppendText(type + inputmessage + "已经被出货单" + dt.Rows[0]["pa_outno"].ToString() + "采集\n", Color.Red, input);
|