Ver Fonte

打印支持预览

yingp há 9 anos atrás
pai
commit
4b23d3530f

+ 21 - 0
src/main/java/com/uas/report/controller/PrintController.java

@@ -107,4 +107,25 @@ public class PrintController {
 		otherParameters.put("OTHER_PARAMETER_TEST", "天气真好!");
 		return print(userName, reportName, whereCondition, otherParameters, response);
 	}
+
+	/**
+	 * 打印报表预览
+	 * 
+	 * @param userName
+	 *            不为null;当前账套用户名
+	 * @param reportName
+	 *            不为null;需要打印的报表的名称,不带任何后缀(如打印采购单,即为"Purchase")
+	 * @param whereCondition
+	 *            可为null;where之后的条件(包括where)
+	 * @param otherParameters
+	 *            若模板已指定需要的参数,则不可为null;其他参数,区别于whereCondition,报表某些字段的值取决于这些参数
+	 * @param response
+	 * @return
+	 */
+	@RequestMapping(params = "type=preview")
+	public String preview(String userName, String reportName, String whereCondition, Map<String, Object> otherParameters,
+			HttpServletResponse response) {
+		// TODO
+		return "preview.jsp";
+	}
 }