| | |
| | | if (isSearch) { |
| | | isSearch = false; |
| | | } |
| | | selectedOne = null; |
| | | } catch (Exception e) { |
| | | logger.error("error occured.", e); |
| | | } |
| | |
| | | |
| | | @Override |
| | | public HazardousWaste getRowData(String rowKey) { |
| | | Iterator<HazardousWaste> iterator = this.iterator(); |
| | | HazardousWaste su = null; |
| | | while (iterator.hasNext()) { |
| | | su = iterator.next(); |
| | | if ( su.getId().equals(Long.parseLong(rowKey))) { |
| | | return su; |
| | | } |
| | | } |
| | | return null; |
| | | // Iterator<HazardousWaste> iterator = this.iterator(); |
| | | // HazardousWaste su = null; |
| | | // while (iterator.hasNext()) { |
| | | // su = iterator.next(); |
| | | // if ( su.getId().equals(Long.parseLong(rowKey))) { |
| | | // return su; |
| | | // } |
| | | // } |
| | | return hazardousWasteService.selectById(Long.parseLong(rowKey)); |
| | | } |
| | | }; |
| | | } |
| | |
| | | |
| | | @Override |
| | | public HazardousWaste getRowData(String rowKey) { |
| | | Iterator<HazardousWaste> iterator = this.iterator(); |
| | | HazardousWaste su = null; |
| | | while (iterator.hasNext()) { |
| | | su = iterator.next(); |
| | | if ( su.getId().equals(Long.parseLong(rowKey))) { |
| | | return su; |
| | | } |
| | | } |
| | | // Iterator<HazardousWaste> iterator = this.iterator(); |
| | | // HazardousWaste su = null; |
| | | // while (iterator.hasNext()) { |
| | | // su = iterator.next(); |
| | | // if ( su.getId().equals(Long.parseLong(rowKey))) { |
| | | // return su; |
| | | // } |
| | | // } |
| | | return null; |
| | | } |
| | | }; |