|
@@ -537,6 +537,46 @@ public class SaleQuotationController {
|
|
|
return modelAndView;
|
|
return modelAndView;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 导出Excel - 已采纳
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param params
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @RequestMapping(value = "/xls", params = RequestState.AGREED, method = RequestMethod.GET)
|
|
|
|
|
+ public ModelAndView exportAgreedQuotation(PageParams params, String searchFilter) {
|
|
|
|
|
+ params.setPage(1);
|
|
|
|
|
+ params.setCount(SearchConstants.TOP_NUM);
|
|
|
|
|
+ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy年MM月dd日");
|
|
|
|
|
+ ModelAndView modelAndView = new ModelAndView();
|
|
|
|
|
+ modelAndView.addObject("state", "已采纳");
|
|
|
|
|
+ modelAndView.addObject("dateFormat", dateFormat);
|
|
|
|
|
+ modelAndView.addObject("data",getAgreedQuotationItems(params, searchFilter).getContent());
|
|
|
|
|
+ modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleQuotation", "主动报价单列表_已失效"));
|
|
|
|
|
+ logger.log("主动报价单", "导出Excel列表", "导出已失效Excel列表");
|
|
|
|
|
+ return modelAndView;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 导出Excel - 未采纳
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param params
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @RequestMapping(value = "/xls", params = RequestState.REFUSED, method = RequestMethod.GET)
|
|
|
|
|
+ public ModelAndView exportRefusedQuotation(PageParams params, String searchFilter) {
|
|
|
|
|
+ params.setPage(1);
|
|
|
|
|
+ params.setCount(SearchConstants.TOP_NUM);
|
|
|
|
|
+ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy年MM月dd日");
|
|
|
|
|
+ ModelAndView modelAndView = new ModelAndView();
|
|
|
|
|
+ modelAndView.addObject("state", "未采纳");
|
|
|
|
|
+ modelAndView.addObject("dateFormat", dateFormat);
|
|
|
|
|
+ modelAndView.addObject("data",getRefusedQuotationItems(params, searchFilter).getContent());
|
|
|
|
|
+ modelAndView.setView(new JxlsExcelView("classpath:jxls-tpl/sale/saleQuotation", "主动报价单列表_已失效"));
|
|
|
|
|
+ logger.log("主动报价单", "导出Excel列表", "导出已失效Excel列表");
|
|
|
|
|
+ return modelAndView;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 导出Excel - 已失效
|
|
* 导出Excel - 已失效
|
|
|
*
|
|
*
|