瀏覽代碼

彩盒标打印TSN校验修改

Hcsy 8 年之前
父節點
當前提交
091d7040f0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      UAS-MES/FunctionCode/Make/Make_ColorBoxLabelPrint.cs

+ 2 - 2
UAS-MES/FunctionCode/Make/Make_ColorBoxLabelPrint.cs

@@ -121,7 +121,7 @@ namespace UAS_MES.Make
                     sql.Clear();
                     //sql.Append("select max(ms_id) ms_id from makeserial where ms_sncode ='"+sncode.Text+"' or exists (select 1 from");
                     //sql.Append(" makesnrelation where beforesn= '"+ sncode.Text + "'and ms_makecode=makecode)");
-                    sql.Append("select max(ms_id) ms_id from makeserial where ms_sncode ='" + sncode.Text + "' or ms_beforesn = '" + sncode.Text + "'");
+                    sql.Append("select max(ms_id) ms_id from makeserial where ms_beforesn = '" + sncode.Text + "'");
                     dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
                     if (dt.Rows[0][0].ToString() != "")
                     {
@@ -132,7 +132,7 @@ namespace UAS_MES.Make
                     }
                     else
                     {
-                        OperateResult.AppendText(">>TSN错误,不存在\n", Color.Red, sncode);
+                        OperateResult.AppendText(">>TSN" + sncode.Text + "错误,不存在\n", Color.Red, sncode);
                         OperateResult.AppendText(">>请输入TSN\n", Color.Black);
                         return;
                     }