| | |
| | | private List<SysLaboratoryContainer> laboratoryContainers; |
| | | |
| | | private String reagentCode; |
| | | private String labName; |
| | | |
| | | /** |
| | | * 数据模型 |
| | |
| | | System.out.println(reagentId); |
| | | try { |
| | | int count = opeReagentStatusService.getOpeReagentStatusTotalCountForLab(reagentId, null, |
| | | ArrivalStatus.LABORATORY.getKey(), reagentCode, getUserId()); |
| | | ArrivalStatus.LABORATORY.getKey(), reagentCode, getUserId(),labName); |
| | | this.setRowCount(count); |
| | | if (count > 0) { |
| | | list = opeReagentStatusService.getOpeReagentStatusListForLab(reagentId, null, |
| | | ArrivalStatus.LABORATORY.getKey(), reagentCode, getUserId(), first, pageSize); |
| | | ArrivalStatus.LABORATORY.getKey(), reagentCode, getUserId(),labName, first, pageSize); |
| | | } |
| | | } catch (Exception e) { |
| | | logger.error(e); |
| | |
| | | |
| | | @Override |
| | | public OpeReagentStatus getRowData(String rowKey) { |
| | | Iterator<OpeReagentStatus> iterator = this.iterator(); |
| | | if (iterator != null) { |
| | | OpeReagentStatus su = null; |
| | | while (iterator.hasNext()) { |
| | | su = iterator.next(); |
| | | if (rowKey.equals(su.getId())) { |
| | | return su; |
| | | } |
| | | } |
| | | } |
| | | return null; |
| | | // Iterator<OpeReagentStatus> iterator = this.iterator(); |
| | | // if (iterator != null) { |
| | | // OpeReagentStatus su = null; |
| | | // while (iterator.hasNext()) { |
| | | // su = iterator.next(); |
| | | // if (rowKey.equals(su.getId())) { |
| | | // return su; |
| | | // } |
| | | // } |
| | | // } |
| | | return null; |
| | | } |
| | | }; |
| | | } |
| | |
| | | } catch (Exception e) { |
| | | logger.error(e); |
| | | } |
| | | selectedStoreList = null; |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public OpeReagentStatus getRowData(String rowKey) { |
| | | Iterator<OpeReagentStatus> iterator = this.iterator(); |
| | | if (iterator != null) { |
| | | OpeReagentStatus su = null; |
| | | while (iterator.hasNext()) { |
| | | su = iterator.next(); |
| | | if (rowKey.equals(su.getId())) { |
| | | return su; |
| | | } |
| | | } |
| | | } |
| | | return null; |
| | | // Iterator<OpeReagentStatus> iterator = this.iterator(); |
| | | // if (iterator != null) { |
| | | // OpeReagentStatus su = null; |
| | | // while (iterator.hasNext()) { |
| | | // su = iterator.next(); |
| | | // if (rowKey.equals(su.getId())) { |
| | | // return su; |
| | | // } |
| | | // } |
| | | // } |
| | | return opeReagentStatusService.getOpeReagentStatus(rowKey); |
| | | } |
| | | }; |
| | | } |
| | | return reagentStoreDataModel; |
| | | } |
| | | |
| | | |
| | | public void exportLabStock() { |
| | | try { |
| | | List<Map> list = opeReagentStatusService.selectExportList(reagentId, null, |
| | | ArrivalStatus.LABORATORY.getKey(), reagentCode, getUserId(),labName); |
| | | opeReagentStatusService.exportLabStock2Excel(list); |
| | | FacesUtils.info("导出成功"); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | FacesUtils.warn("导出失败"); |
| | | } |
| | | } |
| | | |
| | | public int getAction() { |
| | |
| | | this.laboratoryContainers = laboratoryContainers; |
| | | } |
| | | |
| | | public String getLabName() { |
| | | return labName; |
| | | } |
| | | |
| | | public void setLabName(String labName) { |
| | | this.labName = labName; |
| | | } |
| | | } |