From c41d362fa2e9bedcdd0a68c2e9ef12ed616512bc Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期五, 14 一月 2022 09:11:08 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/thread/LedThread.java |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 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..d2a5d83 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
@@ -160,7 +161,7 @@
 //            TextBxPage page = new TextBxPage();
 //            page.newLine("骞垮痉涓壃鐗╂祦瑁呭鏈夐檺鍏徃");
 //            page.newLine("鑷姩鍖栫珛浣撲粨搴�");
-//            page.newLine("娴欐睙涓壃鐗╂祦瑁呭鏈夐檺鍏徃");
+//            page.newLine("娴欐睙涓壃绔嬪簱鎶�鏈湁闄愬叕鍙�");
 //            // 璁剧疆瀛椾綋
 //            page.setFont(new Font("瀹嬩綋",Font.PLAIN,12));
 //            // 璁剧疆鏄剧ず鐗规妧涓哄揩閫熸墦鍑�
@@ -172,8 +173,8 @@
 //            screen.writeProgram(pf);
 
             stringBuffer.delete(0, stringBuffer.length());
-            resetStatus = true;
-        }
+//            resetStatus = true;
+//        }
     }
 
 

--
Gitblit v1.9.1