| | |
| | | private Integer status; |
| | | private Integer favor; |
| | | private List<ApplyStatus> statusSelectList; |
| | | private String controlProduct; |
| | | |
| | | |
| | | private LazyDataModel<SysReagent> reagentDataModel; |
| | | private LazyDataModel<SysReagent> reagentFavorDataModel; |
| | |
| | | if(selectedList!=null&&selectedList.size()>0){ |
| | | realDataList=selectedList; |
| | | }else { |
| | | realDataList=opeApplyService.getOpeApplyList(reagentName, startDeadline, endDeadline, status, getUserId(), null, queryCAS, null, null,null,applyUserName,(byte)1); |
| | | realDataList=opeApplyService.getOpeApplyList(reagentName, startDeadline,controlProduct, endDeadline, status, getUserId(), null, queryCAS, null, null,null,applyUserName,(byte)1); |
| | | |
| | | } |
| | | List<String> headerList = new ArrayList<>(); |
| | |
| | | public List<OpeApply> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, Object> filters) { |
| | | List<OpeApply> list = null; |
| | | try { |
| | | int count = opeApplyService.getOpeApplyTotalCount(reagentName, startDeadline, endDeadline, status, getUserId(), null, queryCAS,null,applyUserName,(byte)1); |
| | | int count = opeApplyService.getOpeApplyTotalCount(reagentName, startDeadline,controlProduct, endDeadline, status, getUserId(), null, queryCAS,null,applyUserName,(byte)1); |
| | | this.setRowCount(count); |
| | | if (count > 0) { |
| | | list = opeApplyService.getOpeApplyList(reagentName, startDeadline, endDeadline, status, getUserId(), null, queryCAS, first, pageSize,null,applyUserName,(byte)1); |
| | | list = opeApplyService.getOpeApplyList(reagentName, startDeadline,controlProduct, endDeadline, status, getUserId(), null, queryCAS, first, pageSize,null,applyUserName,(byte)1); |
| | | for(int i=0;i<list.size();i++){ |
| | | if(list.get(i).getBeforeApproveUserId()!=null&&!list.get(i).getBeforeApproveUserId().equals("")){ |
| | | String name=list.get(i).getApproveUserName(); |
| | |
| | | String applyUserId = getUserId(); |
| | | int count = 0; |
| | | if (StringUtils.isNotBlank(applyUserId)) { |
| | | count = opeApplyService.getOpeApplyTotalCount(null, null, null, null, applyUserId, null, null,applyCode,null,(byte)1); |
| | | count = opeApplyService.getOpeApplyTotalCount(null, null, null,null, null, applyUserId, null, null,applyCode,null,(byte)1); |
| | | } |
| | | this.setRowCount(count); |
| | | if (count > 0) { |
| | | list = opeApplyService.getOpeApplyList(null, null, null, null, applyUserId, null, null, first, pageSize,applyCode,null,(byte)1); |
| | | list = opeApplyService.getOpeApplyList(null, null,null, null, null, applyUserId, null, null, first, pageSize,applyCode,null,(byte)1); |
| | | } |
| | | selectedList = null; |
| | | } catch (Exception e) { |
| | |
| | | public void setTabValue(int tabValue) { |
| | | this.tabValue = tabValue; |
| | | } |
| | | |
| | | public String getControlProduct() { |
| | | return controlProduct; |
| | | } |
| | | |
| | | public void setControlProduct(String controlProduct) { |
| | | this.controlProduct = controlProduct; |
| | | } |
| | | } |