|
|
@@ -404,7 +404,7 @@ namespace UAS_MES.Make
|
|
|
macOrBt = code.Text.Replace(":", "").Replace("-", "");
|
|
|
}
|
|
|
//如果前缀和长度都满足的话
|
|
|
- if ((ListA.Rows[step - 2]["psr_length"].ToString() == "0" ? true : code.Text.Length != int.Parse(ListA.Rows[step - 2]["psr_length"].ToString())))
|
|
|
+ if ((ListA.Rows[step - 2]["psr_length"].ToString() == "0" ? false : code.Text.Length != int.Parse(ListA.Rows[step - 2]["psr_length"].ToString())))
|
|
|
{
|
|
|
OperateResult.AppendText(">>" + ListA.Rows[step - 2]["psr_type"] + "长度校验不通过,请重新输入\n", Color.Red);
|
|
|
OperateResult.AppendText(">>请重新输入" + ListA.Rows[step - 2]["psr_type"] + "\n", Color.Black, code);
|