|
|
@@ -86,8 +86,8 @@ namespace UAS_MES.Make
|
|
|
if (LogicHandler.CheckStepSNAndMacode(makecode == ms_macode.Text ? makecode : "", User.UserSourceCode, code.Text, User.UserCode, out oMakecode, out oMsid, out errorMessage))
|
|
|
{
|
|
|
//核对TSN是否正确
|
|
|
- string beforesn = dh.getFieldDataByCondition("makeserial", "ms_beforesn", "ms_sncode='" + code.Text + "'").ToString().Trim();
|
|
|
- if (beforesn == "" || beforesn == null)
|
|
|
+ //string beforesn = dh.getFieldDataByCondition("makeserial", "ms_beforesn", "ms_sncode='" + code.Text + "'").ToString().Trim();
|
|
|
+ if (dh.CheckExist("makeserial", "ms_sncode='" + code.Text + "' and ms_id='" + oMsid + "'"))
|
|
|
{
|
|
|
//按照out出的工单号查出工单相关信息,并赋值到相关控件
|
|
|
sql.Clear();
|