| | |
| | | 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(); |
| | |
| | | |
| | | 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 |
| | |
| | | // TextBxPage page = new TextBxPage(); |
| | | // page.newLine("广德中扬物流装备有限公司"); |
| | | // page.newLine("自动化立体仓库"); |
| | | // page.newLine("浙江中扬物流装备有限公司"); |
| | | // page.newLine("浙江中扬立库技术有限公司"); |
| | | // // 设置字体 |
| | | // page.setFont(new Font("宋体",Font.PLAIN,12)); |
| | | // // 设置显示特技为快速打出 |
| | |
| | | // screen.writeProgram(pf); |
| | | |
| | | stringBuffer.delete(0, stringBuffer.length()); |
| | | resetStatus = true; |
| | | } |
| | | // resetStatus = true; |
| | | // } |
| | | } |
| | | |
| | | |