| | |
| | | try { |
| | | FlowProgramProperties props = flowCommonService.getProgramPropertiesFromHis(processInstanceId); |
| | | String progName = props.getDrawingNo()+"-"+props.getProcessNo()+"-"+props.getProcessEdition(); |
| | | //String filename = URLEncoder.encode("数控程序编制审批单", StandardCharsets.UTF_8)+ DateUtil.format(DateUtil.now(), "yyyyMMddHHmm")+".pdf"; |
| | | String filename = UrlUtil.encode("数控程序确认表"+progName)+".pdf"; |
| | | response.setHeader("Content-Disposition", "attachment; filename="+filename); |
| | | response.setContentType("application/octet-stream"); |
| | | programConfirmTableService.exportConfirmTable(processInstanceId,response.getOutputStream()); |
| | | programConfirmTableService.exportConfirmTable(props,response.getOutputStream()); |
| | | } catch (Exception e) { |
| | | log.error("导出数控程序确认表pdf异常", e); |
| | | throw new RuntimeException(e); |