| | |
| | | import org.primefaces.model.LazyDataModel; |
| | | import org.primefaces.model.SortOrder; |
| | | import org.primefaces.model.StreamedContent; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.PropertySource; |
| | | import org.springframework.context.annotation.Scope; |
| | |
| | | private boolean isExpired; |
| | | |
| | | private Hashtable printTable; |
| | | @Autowired |
| | | private AccountInAndOutService accountInAndOutService; |
| | | |
| | | public Hashtable getPrintTable() { |
| | | return printTable; |
| | |
| | | String reagentId = selectedOpeWarehouseReserve.getReagentId(); |
| | | String articleNumber = selectedOpeWarehouseReserve.getArticleNumber(); |
| | | |
| | | this.setReagentStatusSelectList(opeReagentStatusService.getOpeReagentStatusList(reagentId, articleNumber, |
| | | this.setReagentStatusSelectList(opeReagentStatusService.getOpeReagentStatusList22(reagentId, articleNumber, |
| | | ArrivalStatus.WAREHOUSE.getKey(), reagentCode, null, null, null)); |
| | | |
| | | // System.out.print("this.getReagentStatusSelectList().size(): " + this.reagentStatusSelectList.size()); |
| | |
| | | System.out.println(reagentId); |
| | | System.out.println(articleNumber); |
| | | System.out.println(reagentCode); |
| | | this.setReagentStatusSelectListForPerson(opeReagentStatusService.getOpeReagentStatusList(reagentId, articleNumber, |
| | | this.setReagentStatusSelectListForPerson(opeReagentStatusService.getOpeReagentStatusList22(reagentId, articleNumber, |
| | | ArrivalStatus.WAREHOUSE.getKey(), reagentCode, null, null, null)); |
| | | |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | public void onExportOutAndIn(){ |
| | | FacesContext currentInstance = FacesContext.getCurrentInstance(); |
| | | currentInstance.responseComplete(); |
| | | ExternalContext etx = currentInstance.getExternalContext(); |
| | | HttpServletResponse resp = (HttpServletResponse) etx.getResponse(); |
| | | accountInAndOutService.exportExcel(resp); |
| | | } |
| | | |
| | | public HSSFWorkbook exportExcelNew(List<String> headerList, List<OpeWarehouseReserve> dataList) { |
| | | HSSFWorkbook hssfWorkbook = new HSSFWorkbook(); |
| | | Integer total = null; |
| | |
| | | } |
| | | |
| | | public void handleEvent2(){ |
| | | System.out.println("==============================="); |
| | | if(useNum!=null && useNum>0){ |
| | | if(startReagentCode!=null && !startReagentCode.equals("")){ |
| | | if (startReagentCode.matches(".*\\D+.*")) { |