|
@@ -108,6 +108,14 @@ public class PrintController {
|
|
|
export(userName, profile, reportName, whereCondition, otherParameters, ReportConstants.FILE_TYPE_EXCEL_DATA,
|
|
export(userName, profile, reportName, whereCondition, otherParameters, ReportConstants.FILE_TYPE_EXCEL_DATA,
|
|
|
true, title, request, response);
|
|
true, title, request, response);
|
|
|
}
|
|
}
|
|
|
|
|
+ else if (printType.equals(ReportConstants.PRINT_TYPE_EXCEL)) {
|
|
|
|
|
+ export(userName, profile, reportName, whereCondition, otherParameters, ReportConstants.FILE_TYPE_EXCEL_DATA,
|
|
|
|
|
+ true, title, request, response);
|
|
|
|
|
+ }
|
|
|
|
|
+ else if (printType.equals(ReportConstants.PRINT_TYPE_EXCEL_FORMAT)) {
|
|
|
|
|
+ export(userName, profile, reportName, whereCondition, otherParameters, ReportConstants.FILE_TYPE_EXCEL,
|
|
|
|
|
+ true, title, request, response);
|
|
|
|
|
+ }
|
|
|
// 下载word
|
|
// 下载word
|
|
|
else if (printType.equals(ReportConstants.PRINT_TYPE_WORD)) {
|
|
else if (printType.equals(ReportConstants.PRINT_TYPE_WORD)) {
|
|
|
export(userName, profile, reportName, whereCondition, otherParameters, ReportConstants.FILE_TYPE_WORD, true,
|
|
export(userName, profile, reportName, whereCondition, otherParameters, ReportConstants.FILE_TYPE_WORD, true,
|