| | |
| | | RequestContext.getCurrentInstance().execute("PF('dialog').show()"); |
| | | } |
| | | |
| | | public void exportLab2Excel(){ |
| | | try { |
| | | List<Map> list = sysLaboratoryService.exportLabList(type, name); |
| | | sysLaboratoryService.exportLab2Excel(list); |
| | | FacesUtils.info("导出成功"); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | FacesUtils.warn("导出失败"); |
| | | } |
| | | } |
| | | |
| | | public void uploadFile(FileUploadEvent event) { |
| | | System.out.println("=========导入开始====="); |
| | | List<BaseMeta> typeList=baseMetaService.getBaseMetaList("laboratory_type"); |
| | |
| | | return; |
| | | } |
| | | |
| | | //实体类重新获取项目组信息 |
| | | sysLaboratory.setProject(null); |
| | | sysLaboratory.getProject(); |
| | | this.sysLaboratoryService.updateSysLaboratory(sysLaboratory); |
| | | |
| | | FacesUtils.info("修改成功。"); |