|
|
@@ -30,6 +30,9 @@ namespace UAS_MES.Make
|
|
|
|
|
|
ApplicationClass lbl;
|
|
|
|
|
|
+ string oMakeCode = "";
|
|
|
+ string oMsId = "";
|
|
|
+
|
|
|
string oErrorMessage = "";
|
|
|
|
|
|
Thread InitPrint;
|
|
|
@@ -81,11 +84,9 @@ namespace UAS_MES.Make
|
|
|
if (LogicHandler.CheckStepAttribute(Tag.ToString(), User.UserSourceCode, out oErrorMessage))
|
|
|
{
|
|
|
//定义临时变量
|
|
|
- string oMakeCode = "";
|
|
|
- string oMsId = "";
|
|
|
string oStatus = "";
|
|
|
//调用公共方法CheckStepSNAndMacode判断工序是否正确
|
|
|
- if (LogicHandler.CheckStepSNAndMacode(ma_code.Text == oMakeCode ? oMakeCode : "", User.UserSourceCode, sncode.Text, User.UserCode, out oMakeCode, out oMsId, out oErrorMessage))
|
|
|
+ if (LogicHandler.CheckStepSNAndMacode("", User.UserSourceCode, sncode.Text, User.UserCode, out oMakeCode, out oMsId, out oErrorMessage))
|
|
|
{
|
|
|
//IF (如果ma_code 为空)THEN
|
|
|
if (ma_code.Text == "" || ma_code.Text != oMakeCode)
|
|
|
@@ -125,6 +126,7 @@ namespace UAS_MES.Make
|
|
|
else
|
|
|
{
|
|
|
OperateResult.AppendText(">>无序列号" + sncode.Text + "对应工单信息\n", Color.Red);
|
|
|
+ return;
|
|
|
}
|
|
|
}
|
|
|
//所选标签不为空
|