|
|
@@ -184,7 +184,7 @@ namespace UAS_MES.Make
|
|
|
//如果两次输入的序列号相同进行提示,不相同则进行下一步
|
|
|
if (bsncode != sncode.Text)
|
|
|
{
|
|
|
- if (!dh.CheckExist("makeserial", "ms_sncode='" + sncode.Text + "'"))
|
|
|
+ if ((ChangeResult.Checked && dh.CheckExist("makeserial", "ms_sncode='" + sncode.Text + "' and ms_id='" + oMsId + "'")) || !dh.CheckExist("makeserial", "ms_sncode='" + sncode.Text + "'"))
|
|
|
{
|
|
|
string firstsn = "";
|
|
|
string updateSql = "";
|