From b3663287d214d1b8f2ce66c70f10636b00c27805 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 05 二月 2021 14:05:15 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/thread/LedThread.java |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/zy/core/thread/LedThread.java b/src/main/java/com/zy/core/thread/LedThread.java
index 4640025..cc88d09 100644
--- a/src/main/java/com/zy/core/thread/LedThread.java
+++ b/src/main/java/com/zy/core/thread/LedThread.java
@@ -37,7 +37,7 @@
     TextCaptionBxArea area;
     DisplayStyleFactory.DisplayStyle[] styles = DisplayStyleFactory.getStyles().toArray(new DisplayStyleFactory.DisplayStyle[0]);
     private Set<Integer> workNos = new HashSet<>();
-    private boolean resetStatus = false;    //  澶嶄綅鐘舵��
+//    private boolean resetStatus = false;    //  澶嶄綅鐘舵��
 
     // 鏄剧ず鍣�
     private StringBuffer stringBuffer = new StringBuffer();
@@ -136,22 +136,23 @@
 
         StringBuilder sb = new StringBuilder();
         for (LedCommand command : list) {
-            sb.append(command.getTitle() +"锛�"+command.getWorkNo()+")");
-            sb.append("婧愬簱浣嶏細"+command.getSourceLocNo());
-            sb.append("鐩爣绔欙細"+command.getStaNo());
+            sb.append(command.getTitle() +"锛�"+command.getWorkNo()+")").append("\n");
+            sb.append("婧愬簱浣嶏細"+command.getSourceLocNo()).append("\n");
+            sb.append("鐩爣绔欙細"+command.getStaNo()).append("\n");
             if (!command.isEmptyMk()) {
                 for (MatDto matDto : command.getMatDtos()) {
-                    sb.append(matDto.getMaknx() + "銆愭暟閲�" + matDto.getCount() +"銆�");
+                    sb.append(matDto.getMaknx() + "銆愭暟閲�" + matDto.getCount() +"銆�").append("\n");
                 }
             }
             sb.append("\n");
         }
         stringBuffer.delete(0, stringBuffer.length());
         stringBuffer.append(sb.toString());
+//        resetStatus = false;
     }
 
     private void reset() throws Bx5GException {
-        if (!resetStatus) {
+//        if (!resetStatus) {
 //            pf = new ProgramBxFile( 0, screen.getProfile());
 //            pf.setFrameShow(false);
 //            // 鍒嗗埆杈撳叆X锛孻锛寃idth锛宧eight
@@ -172,8 +173,8 @@
 //            screen.writeProgram(pf);
 
             stringBuffer.delete(0, stringBuffer.length());
-            resetStatus = true;
-        }
+//            resetStatus = true;
+//        }
     }
 
 

--
Gitblit v1.9.1