|
@@ -439,7 +439,7 @@ namespace UAS_MES.Make
|
|
|
case "IMEI1":
|
|
case "IMEI1":
|
|
|
case "IMEI2":
|
|
case "IMEI2":
|
|
|
case "IMEI3":
|
|
case "IMEI3":
|
|
|
- string tempSn = dh.getFieldDataByCondition("makeserial", "ms_sncode", "(ms_imei1='" + imeif + "' or ms_imei2 = '" + imeif + "' or ms_imei3 = '" + imeif + "') and ms_status in (0,1,2,3) and ms_id <> '" + oMsid + "'").ToString();
|
|
|
|
|
|
|
+ string tempSn = dh.getFieldDataByCondition("makeserial", "ms_sncode", "(ms_imei1='" + imeif + "' or ms_imei2 = '" + imeif + "' or ms_imei3 = '" + imeif + "') and ms_status in (0,1,2,3) and ms_id <> '" + oMsid + "' and nvl(ms_nextmacode,' ')=' '").ToString();
|
|
|
if (tempSn != "")
|
|
if (tempSn != "")
|
|
|
{
|
|
{
|
|
|
OperateResult.AppendText("<<" + type + ":" + imeif + "错误,已被序列号" + tempSn + "使用\n", Color.Red);
|
|
OperateResult.AppendText("<<" + type + ":" + imeif + "错误,已被序列号" + tempSn + "使用\n", Color.Red);
|
|
@@ -490,7 +490,7 @@ namespace UAS_MES.Make
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
//验证是否已被使用
|
|
//验证是否已被使用
|
|
|
- string temSn = dh.getFieldDataByCondition("makeserial", "ms_sncode", "(MS_mac='" + macOrBt + "'or ms_bt='"+macOrBt+"') and ms_status in (0,1,2,3) and ms_id <> '" + oMsid + "'").ToString();
|
|
|
|
|
|
|
+ string temSn = dh.getFieldDataByCondition("makeserial", "ms_sncode", "(MS_mac='" + macOrBt + "'or ms_bt='"+macOrBt+"') and ms_status in (0,1,2,3) and ms_id <> '" + oMsid + "' and nvl(ms_nextmacode,' ')=' '").ToString();
|
|
|
if (temSn != "")
|
|
if (temSn != "")
|
|
|
{
|
|
{
|
|
|
OperateResult.AppendText("<<" + ListA.Rows[step - 2]["psr_type"].ToString() + ":" + code.Text + "错误,已被序列号" + temSn + "使用\n", Color.Red);
|
|
OperateResult.AppendText("<<" + ListA.Rows[step - 2]["psr_type"].ToString() + ":" + code.Text + "错误,已被序列号" + temSn + "使用\n", Color.Red);
|
|
@@ -525,7 +525,7 @@ namespace UAS_MES.Make
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
//校验网标是否存在
|
|
//校验网标是否存在
|
|
|
- string teSn = dh.getFieldDataByCondition("makeserial", "ms_sncode", "MS_" + type + "='" + imeif + "' and ms_status in (0,1,2,3) and ms_id <> '" + oMsid + "'").ToString();
|
|
|
|
|
|
|
+ string teSn = dh.getFieldDataByCondition("makeserial", "ms_sncode", "MS_" + type + "='" + imeif + "' and ms_status in (0,1,2,3) and ms_id <> '" + oMsid + "' and nvl(ms_nextmacode,' ')=' '").ToString();
|
|
|
if (teSn != "")
|
|
if (teSn != "")
|
|
|
{
|
|
{
|
|
|
OperateResult.AppendText("<<" + ListA.Rows[step - 2]["psr_type"].ToString() + ":" + imeif + "错误,已被序列号" + teSn + "使用\n", Color.Red);
|
|
OperateResult.AppendText("<<" + ListA.Rows[step - 2]["psr_type"].ToString() + ":" + imeif + "错误,已被序列号" + teSn + "使用\n", Color.Red);
|