|
|
@@ -171,6 +171,12 @@ namespace UAS_MES.Make
|
|
|
//bsncode不为空,说明输入的是转换后的序列号
|
|
|
else
|
|
|
{
|
|
|
+ //判断用户是否锁定输入转换后序列号长度,
|
|
|
+ if (!checkLengthOrPre(afterTransSNLength_checkBox, afterTransSNLength, "长度"))
|
|
|
+ return;
|
|
|
+ //判断用户是否锁定输入转换后序列号前缀,
|
|
|
+ if (!checkLengthOrPre(afterTransSNPre_checkBox, afterTransSNPre, "前缀"))
|
|
|
+ return;
|
|
|
//判断输入的转换后序列号是否符合起始终止
|
|
|
if (!checkStartAndEnd())
|
|
|
{
|
|
|
@@ -178,16 +184,10 @@ namespace UAS_MES.Make
|
|
|
sncode.Text = "";
|
|
|
return;
|
|
|
}
|
|
|
- //判断用户是否锁定输入转换后序列号长度,
|
|
|
- if (!checkLengthOrPre(afterTransSNLength_checkBox, afterTransSNLength, "长度"))
|
|
|
- return;
|
|
|
- //判断用户是否锁定输入转换后序列号前缀,
|
|
|
- if (!checkLengthOrPre(afterTransSNPre_checkBox, afterTransSNPre, "前缀"))
|
|
|
- return;
|
|
|
//如果两次输入的序列号相同进行提示,不相同则进行下一步
|
|
|
if (bsncode != sncode.Text)
|
|
|
{
|
|
|
- if (!dh.CheckExist("makeserial", "ms_sncode='" + sncode.Text + "' and ms_status='1'"))
|
|
|
+ if (!dh.CheckExist("makeserial", "ms_sncode='" + sncode.Text + "'"))
|
|
|
{
|
|
|
string firstsn = "";
|
|
|
string updateSql = "";
|