|
|
@@ -249,8 +249,8 @@ namespace UAS_MES_NEW.Make
|
|
|
//else//判断产品防呆
|
|
|
//{
|
|
|
//判断用户是否锁定输入转换后序列号长度,
|
|
|
- //if (!checkLengthOrPre(afterTransSNLength_checkBox, afterTransSNLength, "长度"))
|
|
|
- // return;
|
|
|
+ if (!checkLengthOrPre(afterTransSNLength_checkBox, afterTransSNLength, "长度"))
|
|
|
+ return;
|
|
|
//判断用户是否锁定输入转换后序列号前缀,
|
|
|
if (!checkLengthOrPre(afterTransSNPre_checkBox, afterTransSNPre, "前缀"))
|
|
|
return;
|
|
|
@@ -513,7 +513,7 @@ namespace UAS_MES_NEW.Make
|
|
|
if (type == "长度")
|
|
|
{
|
|
|
//则判断输入转换前的序列号长度是否合法,不合法则提示
|
|
|
- if (sncode.Text.Trim().Length != int.Parse(textbox.Text))
|
|
|
+ if (int.Parse(textbox.Text)>0&&sncode.Text.Trim().Length != int.Parse(textbox.Text))
|
|
|
{
|
|
|
//序列号校验错误,长度错误
|
|
|
OperateResult.AppendText("<<序列号" + sncode.Text + "校验错误,长度错误\n", Color.Red, sncode);
|