| | |
| | | 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; |
| | |
| | | |
| | | |
| | | 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) { |