| | |
| | | package com.nanometer.smartlab.controller; |
| | | |
| | | import com.nanometer.smartlab.dao.SysProjectDao; |
| | | import com.nanometer.smartlab.entity.OpeApply; |
| | | import com.nanometer.smartlab.entity.OpeOrder; |
| | | import com.nanometer.smartlab.entity.SysProject; |
| | | import com.nanometer.smartlab.entity.enumtype.ApplyStatus; |
| | | import com.nanometer.smartlab.service.OpeApplyService; |
| | | import com.nanometer.smartlab.service.OpeOrderService; |
| | |
| | | private MenuController menuController; |
| | | @Resource |
| | | private OpeOrderService opeOrderService; |
| | | @Resource |
| | | private SysProjectDao sysProjectDao; |
| | | |
| | | private LazyDataModel<OpeApply> dataModel; |
| | | private LazyDataModel<OpeApply> supplerRequireMngDataModel; |
| | |
| | | return; |
| | | } |
| | | |
| | | Set<String> results = new HashSet<>(); |
| | | Set<Long> results = new HashSet<>(); |
| | | for(OpeApply item : selectedList) |
| | | { |
| | | results.add(item.getReagent().getSupplierId()); |
| | |
| | | this.menuController.backToPage(); |
| | | } catch (Exception e) { |
| | | logger.error("操作失败。", e); |
| | | FacesUtils.warn("操作失败。"); |
| | | FacesUtils.warn("操作失败,message="+e.getMessage()); |
| | | } |
| | | } |
| | | |
| | |
| | | // } |
| | | // } |
| | | // } |
| | | return opeApplyService.getOpeApply(rowKey); |
| | | Long id=Long.valueOf(rowKey); |
| | | return opeApplyService.getOpeApply(id); |
| | | } |
| | | }; |
| | | } |
| | |
| | | |
| | | @Override |
| | | public OpeApply getRowData(String rowKey) { |
| | | return opeApplyService.getOpeApply(rowKey); |
| | | Long id=Long.valueOf(rowKey); |
| | | return opeApplyService.getOpeApply(id); |
| | | } |
| | | }; |
| | | } |
| | | |
| | | public String getProjectName(Long projectId){ |
| | | if(projectId==null){ |
| | | return ""; |
| | | } |
| | | SysProject project= this.sysProjectDao.getSysProject(projectId); |
| | | return project!=null?project.getProjectName():""; |
| | | } |
| | | |
| | | public OpeOrder getOpeOrder() { |
| | | return opeOrder; |
| | | } |