|
|
@@ -243,16 +243,6 @@ namespace UAS_MES.Make
|
|
|
else if (step == 1)
|
|
|
{
|
|
|
OperateResult.AppendText(">>" + code.Text + "\n", Color.Black);
|
|
|
- //判断工单是否导入了序列号清单
|
|
|
- if (dh.CheckExist("makesnlist", "msl_makecode='" + ms_macode.Text + "' and msl_type='after'"))
|
|
|
- {
|
|
|
- if (!dh.CheckExist("makesnlist", "msl_sncode='" + code.Text + "' and msl_makecode='" + ms_macode.Text + "' and msl_type='after'"))
|
|
|
- {
|
|
|
- //有序列号清单,输入的序列号却不在范围内
|
|
|
- OperateResult.AppendText(">>SN号" + code.Text + "错误,不在工单设定的转换后序列号清单中\n", Color.Red, code);
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
//判断用户是否锁定输入SN长度,
|
|
|
if (!checkLengthOrPre(SNLength_checkBox, SNLength, "长度", "SN"))
|
|
|
{
|
|
|
@@ -263,6 +253,16 @@ namespace UAS_MES.Make
|
|
|
{
|
|
|
return;
|
|
|
}
|
|
|
+ //判断工单是否导入了序列号清单
|
|
|
+ if (dh.CheckExist("makesnlist", "msl_makecode='" + ms_macode.Text + "' and msl_type='after'"))
|
|
|
+ {
|
|
|
+ if (!dh.CheckExist("makesnlist", "msl_sncode='" + code.Text + "' and msl_makecode='" + ms_macode.Text + "' and msl_type='after'"))
|
|
|
+ {
|
|
|
+ //有序列号清单,输入的序列号却不在范围内
|
|
|
+ OperateResult.AppendText(">>SN号" + code.Text + "错误,不在工单设定的转换后序列号清单中\n", Color.Red, code);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
//判断转换后序列号的范围是否合法
|
|
|
if (!checkStartAndEnd())
|
|
|
{
|