#
luxiaotao1123
2021-05-27 77c3cdd72b72093699c96e2e71c5e172f6b585d1
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,Y,width,height
@@ -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;
//        }
    }