public void findDocument() { ReadDocumentEvent<ReqDocumentEntity> readDocumentEvent = transactionHandler.readDocumentList( new RequestReadDocumentEvent<ReqDocumentEntity>( documentSearchCriteria, sessionInfoHelper.currentOrganization(), sessionInfoHelper.currentFiscalYear())); documentSearchResultList = readDocumentEvent.getDocumentList(); }
@PostConstruct private void init() { DefTaskEntity purchaseTaskList = taskRepository .getTaskList(sessionInfoHelper.currentOrganization(), EnumList.DefTypeEnum.REQ_IO_P) .get(0); documentSearchCriteria = new TraDocumentSearchCriteria(); documentSearchCriteria.setDocType(EnumList.DefTypeEnum.REQ_IO); documentSearchCriteria.setDocTask(purchaseTaskList); }