| | |
| | | import com.nanometer.smartlab.entity.BaseMeta; |
| | | import com.nanometer.smartlab.entity.SysReagent; |
| | | import com.nanometer.smartlab.service.BaseMetaService; |
| | | import com.nanometer.smartlab.service.SysLaboratoryContainerService; |
| | | import com.nanometer.smartlab.service.SysProjectService; |
| | | import org.apache.log4j.Logger; |
| | | import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
| | |
| | | |
| | | @Resource |
| | | private SysLaboratoryService sysLaboratoryService; |
| | | @Resource |
| | | private SysLaboratoryContainerService sysLaboratoryContainerService; |
| | | @Resource |
| | | private BaseMetaService baseMetaService; |
| | | @Resource |
| | |
| | | |
| | | public void exportLab2Excel(){ |
| | | try { |
| | | List<Map> list = sysLaboratoryService.exportLabList(type, name); |
| | | List<Map> list = sysLaboratoryService.exportLabList(type, name,project); |
| | | sysLaboratoryService.exportLab2Excel(list); |
| | | FacesUtils.info("导出成功"); |
| | | }catch (Exception e){ |
| | |
| | | |
| | | } |
| | | valuesList.add(cellInfo); |
| | | |
| | | |
| | | } |
| | | if (valuesList.size() != 8){ |
| | | break; |
| | | } |
| | | System.out.println("value : "+valuesList); |
| | | SysLaboratory laboratory=new SysLaboratory(); |
| | |
| | | } |
| | | |
| | | this.sysLaboratoryService.deleteSysLaboratory(this.selectedList); |
| | | this.sysLaboratoryContainerService.delBySlcIds(this.selectedList); |
| | | |
| | | FacesUtils.info("删除成功。"); |
| | | } catch (Exception e) { |