章政 8 лет назад
Родитель
Сommit
3a8783914c
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      UAS-MES/PublicMethod/Print.cs

+ 5 - 5
UAS-MES/PublicMethod/Print.cs

@@ -36,11 +36,11 @@ namespace UAS_MES.PublicMethod
                     dt = (DataTable)dh.ExecuteSql("select lpl_id from labelprintlog where lpl_value='" + SnCode + "' and lpl_makecode='" + MakeCode + "' and lpl_type='" + LabelType + "' and lpl_stepcode='" + User.CurrentStepCode + "'", "select");
                 }
                 ////如果已经打印过了,则不允许再打印
-                //if (dt.Rows.Count > 0)
-                //{
-                //    ErrorMessage = SnCode + LabelType + "已打印";
-                //    return false;
-                //}
+                if (dt.Rows.Count > 0)
+                {
+                    ErrorMessage = SnCode + LabelType + "已打印";
+                    return false;
+                }
             }
             //打开模板路径
             //查询模板对应的取值SQL和参数名称