|
楼主 |
发表于 2019-4-17 16:21:09
|
显示全部楼层
- if((output == null || "tohtml".equalsIgnoreCase(output)) && !hasRight(userId, rpt, FUNCTION_VIEW))
- errorMsg = "您无权查看该报表!";
- else if("toxls".equalsIgnoreCase(output) && !hasRight(userId, rpt, FUNCTION_XLS))
- errorMsg = "您无权进行导出Excel操作!";
- else if("topdf".equalsIgnoreCase(output) && !hasRight(userId, rpt, FUNCTION_PDF))
- errorMsg = "您无权进行导出PDF操作!";
- else if("todoc".equalsIgnoreCase(output) && !hasRight(userId, rpt, FUNCTION_DOC))
- errorMsg = "您无权进行导出Word操作!";
- else if("print".equalsIgnoreCase(output) && !hasRight(userId, rpt, FUNCTION_PRINT))
- errorMsg = "您无权进行打印操作!";
- } else {
- errorMsg = "指定报表不存在!";
- }
- }
- //无权访问或权限验证出错时,输入提示信息
- if(errorMsg != null){
- response.setContentType("text/html;charset=" + encode);
- StringBuffer html = new StringBuffer();
复制代码
|
|