| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>报表推送设置列表</title>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript">
- var grid = null;
- var dialog = null;
- $(function() {
- loadReportPushList();
- });
- function loadReportPushList(params) {
- var columns = [ {
- display : '报表类型',
- name : 'type_name',
- width: '15%'
- }, {
- display : '报表名称',
- name : 'report_name',
- width: '30%'
- }, {
- display : '状态',
- name : 'execute_state_name',
- width: '15%'
- }, {
- display : '操作',
- name : 'remark',
- width: '20%',
- render : function(row){
- var html = "";
- html = "<a href=\"#\" onclick=\"toEditReportPush("+row.universalid+")\">编辑</a>";
- html += " <a href=\"#\" onclick=\"delReportPush("+row.universalid+")\">删除</a>";
- html += " <a href=\"#\" onclick=\"toReportSubscribeList("+row.universalid+")\">订阅列表</a>";
- html += " <a href=\"#\" onclick=\"toReportPushHistoryList("+row.universalid+")\">推送历史</a>";
- return html;
- }
- } ];
- grid = $("#maingrid4")
- .ligerGrid(
- {
- columns : columns,
- pageSize : 20,
- url : 'reportPushAction.do?method=queryReportPushData&time='
- + new Date().getTime() + params,
- pageParmName : 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
- width : '99.9%',
- height : '99%'
- });
- $("#pageloading").hide();
- }
- //查询
- function searchByKword() {
- var s = "";
- var att_date_start = $("#att_date_start").val();//规则名称
- if (att_date_start != "" && typeof (att_date_start) != "undefined") {
- s += "&att_date_start=" + att_date_start;
- }
- var att_date_end = $("#att_date_end").val();//规则名称
- if (att_date_end != "" && typeof (att_date_end) != "undefined") {
- s += "&att_date_end=" + att_date_end;
- }
- grid.set("newPage", "1");
- loadReportPushList(s);
- }
-
- function toAddReportPush(){
-
- addTab('addReportPush','新增推送','reportPushAction.do?method=toAddReportPush'+'&tabid=' + getCurrentTabId(),true,true);
- }
- function toEditReportPush(universalid){
-
- addTab('eidtReportPush','编辑推送','reportPushAction.do?method=toEditReportPush&universalid='+universalid+'&tabid=' + getCurrentTabId(),true,true);
- }
-
- function toReportSubscribeList(universalid){
-
- addTab('reportSubscribeList','订阅列表','reportPushAction.do?method=toReportSubscribeList&push_id='+universalid+'&tabid=' + getCurrentTabId(),true,true);
- }
- function toReportPushHistoryList(universalid){
-
- addTab('toReportPushHistoryList','推送历史','reportPushAction.do?method=toReportPushHistoryList&push_id='+universalid+'&tabid=' + getCurrentTabId(),true,true);
- }
-
- function delReportPush(universalid){
- $.ligerDialog.confirm('是否确认删除?', function (yes)
- {
- if(yes){
- $.ajax({
- type:"POST",
- url:"reportPushAction.do?method=delReportPush",
- data : {"universalid":universalid},
- timeout:10000,
- cache:false,
- dataType:"json",
- success:function(data){
- var success = data.success;
- if(success){
- $.ligerDialog.success(success);
- loadReportPushList();
- }else{
- showAjaxError(null, data.error);
- }
- },
- error:showAjaxError
- });
- }
- });
- }
-
- </script>
- </head>
- <body>
- <div class="container">
- <div id="title" class="form-button">
- <input type="button" class="l-button" value="新增" onclick="toAddReportPush();" style="width: 70px"/>
- </div>
- <div class="default_search" style="margin: 0; height:30px;"></div>
- <div style="clear: both;"></div>
- <div id="searchbar">
- <div style="overflow: hidden; clear: both;">
- <div id="maingrid4" style="margin: 0; padding: 0"></div>
- </div>
- </div>
- </div>
- </body>
- </html>
|