|
|
@@ -1195,6 +1195,12 @@ namespace UAS_MES_NEW.Make
|
|
|
if (oth.Text != "")
|
|
|
{
|
|
|
string ms_status = dh.getFieldDataByCondition("makeserial", "ms_status", "ms_sncode='" + oth.Text + "'").ToString();
|
|
|
+ if (ms_sncode.Text == oth.Text)
|
|
|
+ {
|
|
|
+ OperateResult.AppendText(">>条码" + oth.Text + "和SN【" + ms_sncode.Text + "】一致,不允许采集\n", Color.Red, oth);
|
|
|
+ oth.Focus();
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (ms_status != "2")
|
|
|
{
|
|
|
OperateResult.AppendText(">>条码" + oth.Text + "未完工,不允许采集\n", Color.Red, oth);
|