// 付款确认收汇列表 @SuppressWarnings("unchecked") public String addShList() { Map pm = getRequestParams(); List shDetailList = erpService.findByList(pager, "shcb_erp_sql.paymentPrint", pm); List wzkList = erpService.findByList(pager, "shcb_erp_sql.WZK", pm); request.setAttribute("list", shDetailList); request.setAttribute("wzkList", wzkList); return "add-sh-list"; }
// 查看收汇明细信息 @SuppressWarnings("unchecked") public String viewShDetail() { String invcode = request.getParameter("invcode"); List shDetail = erpService.findByList("shcb_erp_sql.getSHDetail", invcode); request.setAttribute("shDetail", shDetail); return "order-sh-detail"; }
// 查看支付明细信息 @SuppressWarnings("unchecked") public String viewFkDetail() { Map pm = getRequestParams(); List fkDetail = erpService.findByList(pager, "shcb_erp_sql.getFkDetail", pm); request.setAttribute("fkDetail", fkDetail); return "fk-detail"; }
// 查看开票、支付明细信息 @SuppressWarnings("unchecked") public String viewPayDetail() { Map pm = getRequestParams(); List paymentDetail = erpService.findByList(pager, "shcb_erp_sql.getPaymentDetail", pm); return ajaxJson(JSONArray.fromObject(paymentDetail).toString()); }
// 查看订单跟踪明细信息 @SuppressWarnings("unchecked") public String viewDetail() { String userAgent = request.getHeader("User-Agent"); if (StringUtils.containsIgnoreCase(userAgent, "MSIE")) { browseType = BROWSE_TYPE_IE; } String salordicode = request.getParameter("salordicode"); // List mainInfo = erpService.findByList("shcb_erp_sql.getOrderBaseInfo", salordicode); List shipperInfos = erpService.findByList("shcb_erp_sql.getShipperInfo", salordicode); List customers = erpService.findByList("shcb_erp_sql.getCustomInfo", salordicode); List shs = erpService.findByList("shcb_erp_sql.getShInfo", salordicode); List hks = erpService.findByList("shcb_erp_sql.getHkInfo", salordicode); List fys = erpService.findByList("shcb_erp_sql.getFyInfo", salordicode); // request.setAttribute("mainInfo", mainInfo); request.setAttribute("shippers", shipperInfos); request.setAttribute("customers", customers); request.setAttribute("shs", shs); request.setAttribute("hks", hks); request.setAttribute("fys", fys); return "order-view-detail"; }
/** * 导出方法(excel) * * @param pager 分页参数 * @param map 参数 * @param xlsName excel文件名 */ @SuppressWarnings("unchecked") @InputConfig(resultName = "error") public void export2Excel( Pager pager, Map map, String xlsName, String templateName, String sqlMapId) { List list = erpService.findByList(pager, sqlMapId, map); if (list == null || list.size() == 0) { addActionError("导出记录不能为空。"); return; } Map beans = new HashMap(); beans.put("list", list); this.setResponseHeaderForExport(templateName, xlsName, beans); }
/** * 加载开票清单余额 * * @return */ @SuppressWarnings("unchecked") public String loadPaymentDetailBalance() { Map map = getRequestParams(); // String odatefrom = (String) map.get("odatefrom"); // String odateto = (String) map.get("odateto"); // if((odatefrom==null || StringUtils.isEmpty(odatefrom)) && (odateto==null || // StringUtils.isEmpty(odateto))){ // map.put("odatefrom", DateUtil.getCurrFirstDate()); // map.put("odateto", DateUtil.getCurrLastDate()); // } List list = erpService.findByList(pager, "shcb_erp_sql.loadPaymentDetailBalance", map); return ajaxJson(JacksonMapper.writeValueAsString(list)); }
// 付款确认收汇无主预收款列表 @SuppressWarnings("unchecked") public String addShWZList() { Map pm = getRequestParams(); List list = erpService.findByList(pager, "shcb_erp_sql.WZK", pm); return ajaxJson(JacksonMapper.writeValueAsString(list)); }