@Controller @RequestMapping(value="manager/corereport") public class CoreReportController extends BaseController
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) static java.lang.String |
ADVANCE_QUERY_KEY
高级查询
|
(专用程序包) CoreDictionaryService |
coreDictionaryService |
(专用程序包) CoreReportReader |
coreReportReader |
(专用程序包) CoreReportServerService |
coreReportServerService |
(专用程序包) CoreReportService |
coreReportService |
java.lang.String |
DICT_REPORT
帆软的类型
|
java.lang.String |
FINE_REPORT |
(专用程序包) static java.lang.String |
QUERY_KEY |
(专用程序包) static java.lang.String |
QUICK_QUERY_KEY
快速查询
|
(专用程序包) static java.lang.String |
QUICK_QUERY_PARAM_VALUE
快速查询的参数值名
|
java.lang.String |
REPORT_TYPE_INPUT |
(专用程序包) static java.lang.String |
SORT |
(专用程序包) static java.lang.String |
SORT_CUSTOM
自定义的排序
|
DOWNLOAD_ID_COOKIE_EXPIRY, DOWNLOAD_ID_NAME
构造器和说明 |
---|
CoreReportController() |
限定符和类型 | 方法和说明 |
---|---|
RetVo |
add(CoreReport table) |
RetVo |
copyTo(java.util.Map<java.lang.String,java.lang.Object> params) |
void |
downLoad(java.lang.String id,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
下载
|
protected java.io.InputStream |
getfileInputStream(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.StringBuilder suffix)
上传文件
|
void |
getreportfile(java.lang.String reportid,
java.lang.String filename,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
获取报表的文件
|
java.lang.String |
main(javax.servlet.http.HttpServletRequest request)
主页面
|
RetVo |
modify(CoreReport table) |
RetPageVo |
query(java.util.Map<java.lang.String,java.lang.Object> params) |
RetPageVo |
queryEx(java.util.Map<java.lang.String,java.lang.Object> params) |
RetVo |
remove(java.util.Map<java.lang.String,java.lang.Object> params) |
RetVo |
reportServerBase64(java.util.Map<java.lang.String,java.lang.Object> RequestParams,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
获取报表的内容.这个主要使用于lodop的pdf打印
|
java.lang.String |
seportServer(java.lang.String reportid,
java.lang.String filename,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
展示报表连接
|
RetVo |
upload(java.util.Map<java.lang.String,java.lang.Object> params,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
上传接口
|
commonsDownloadEx, commonsUploadEx, getUploadNewFileName, setResponseContentType, setResponseContentTypeAndStatus, setResponseHttpStatus, writeJsonToResponse
@Autowired CoreReportService coreReportService
@Autowired CoreDictionaryService coreDictionaryService
@Autowired CoreReportReader coreReportReader
static final java.lang.String QUICK_QUERY_KEY
static final java.lang.String QUICK_QUERY_PARAM_VALUE
static final java.lang.String SORT
static final java.lang.String SORT_CUSTOM
static final java.lang.String QUERY_KEY
static final java.lang.String ADVANCE_QUERY_KEY
public final java.lang.String DICT_REPORT
public final java.lang.String FINE_REPORT
public final java.lang.String REPORT_TYPE_INPUT
@Autowired CoreReportServerService coreReportServerService
@RequestMapping(value="/", method=GET) public java.lang.String main(javax.servlet.http.HttpServletRequest request)
request
- 请求对象@ResponseBody @RequestMapping(value="modify", method=POST) public RetVo modify(@RequestBody CoreReport table) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="add", method=PUT) public RetVo add(@RequestBody CoreReport table) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="remove", method=DELETE) public RetVo remove(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="query", method=POST) public RetPageVo query(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
@ResponseBody @RequestMapping(value="queryex", method=POST) public RetPageVo queryEx(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception
protected java.io.InputStream getfileInputStream(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.StringBuilder suffix) throws java.io.IOException
rootDir
- WEB-INF以下的目录rootDirCatalog
- 更目录下面的子目录fileName
- 文件名(不包含扩展)request
- 请求对象response
- 相应对象java.io.IOException
- 出错抛出异常@ResponseBody @RequestMapping(value="download", method=GET) public void downLoad(@RequestParam java.lang.String id, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
id
- 下载IDrequest
- 请求对象response
- 相应对象java.io.IOException
- 出错抛出异常java.lang.Exception
@ResponseBody @RequestMapping(value="upload", method=POST) public RetVo upload(@RequestParam java.util.Map<java.lang.String,java.lang.Object> params, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
params
- 参数集合 catlog 存放文件的目录request
- 请求对象response
- 相应对象java.lang.Exception
- 出错会抛出异常@RequestMapping(value="reportserver") public java.lang.String seportServer(@RequestParam(value="reportid") java.lang.String reportid, @RequestParam(value="filename",required=false) java.lang.String filename, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
request
- 请求对象reportid
- 报表idfilename
- 报表文件名request
- 请求实体response
- 响应实体java.lang.Exception
- 出错会抛出异常@RequestMapping(value="getreportfile") public void getreportfile(@RequestParam java.lang.String reportid, @RequestParam(value="filename",required=false) java.lang.String filename, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
reportid
- 报表的唯一idfilename
- 文件名request
- 请求实体response
- 响应实体java.lang.Exception
- 出错抛出异常@ResponseBody @RequestMapping(value="/reportservercontent") public RetVo reportServerBase64(@RequestBody java.util.Map<java.lang.String,java.lang.Object> RequestParams, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
RequestParams
- 主要包含 : reportid 报表id 报表的输出格式默认是 pdf 以及一些业务上需要传递到报表模板内的参数request
- 请求实体response
- 响应实体java.lang.Exception
- 出错抛出异常@ResponseBody @RequestMapping(value="/copyto", method=POST) public RetVo copyTo(@RequestBody java.util.Map<java.lang.String,java.lang.Object> params) throws java.lang.Exception
java.lang.Exception