241 lines
9.3 KiB
Plaintext
241 lines
9.3 KiB
Plaintext
<%@ page language="java" pageEncoding="UTF-8" %>
|
|
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
|
|
<%@ page import="com.sipai.entity.base.ServerObject" %>
|
|
<%@ taglib uri="http://www.springsecurity.org/jsp" prefix="security" %>
|
|
|
|
<%@page import="com.sipai.entity.report.RptInfoSet" %>
|
|
<%request.setAttribute("TYPE_CATALOGUE", RptInfoSet.TYPE_CATALOGUE);%>
|
|
<%request.setAttribute("TYPE_SETTING", RptInfoSet.TYPE_SETTING);%>
|
|
<% request.setAttribute("RptType_Day", RptInfoSet.RptType_Day); %>
|
|
<% request.setAttribute("RptType_Week", RptInfoSet.RptType_Week); %>
|
|
<% request.setAttribute("RptType_Tenday", RptInfoSet.RptType_Tenday); %>
|
|
<% request.setAttribute("RptType_Month", RptInfoSet.RptType_Month); %>
|
|
<% request.setAttribute("RptType_Quarterly", RptInfoSet.RptType_Quarterly); %>
|
|
<% request.setAttribute("RptType_Year", RptInfoSet.RptType_Year); %>
|
|
|
|
<!DOCTYPE html>
|
|
<!-- <html lang="zh-CN"> -->
|
|
<!-- BEGIN HEAD -->
|
|
|
|
<head>
|
|
<title><%= ServerObject.atttable.get("TOPTITLE")%>
|
|
</title>
|
|
<!-- 引用页头及CSS页-->
|
|
<jsp:include page="/jsp/inc.jsp"></jsp:include>
|
|
|
|
<!-- Ionicons -->
|
|
<link rel="stylesheet" href="<%=request.getContextPath()%>/node_modules/ionicons/css/ionicons.min.css"/>
|
|
<!-- 文件上传-->
|
|
<link rel="stylesheet" href="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/css/fileinput.min.css"/>
|
|
<script type="text/javascript"
|
|
src="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/js/fileinput.min.js"
|
|
charset="utf-8"></script>
|
|
<script type="text/javascript" src="<%=request.getContextPath()%>/node_modules/bootstrap-fileinput/js/locales/zh.js"
|
|
charset="utf-8"></script>
|
|
<script type="text/javascript" src="<%=request.getContextPath()%>/JS/commonFileUpload.js" charset="utf-8"></script>
|
|
|
|
|
|
<script type="text/javascript">
|
|
var addFun = function () {
|
|
var node = $('#tree').treeview('getSelected');
|
|
var pid = "";
|
|
if (node != null && node.length > 0) {
|
|
pid = node[0].id;
|
|
} else {
|
|
pid = "-1";
|
|
}
|
|
$.post(ext.contextPath + '/report/rptInfoSet/doadd.do', {unitId: unitId, pid: pid}, function (data) {
|
|
$("#menuBox").html(data);
|
|
});
|
|
};
|
|
var addFunSimple = function () {
|
|
var node = $('#tree').treeview('getSelected');
|
|
var pid = "";
|
|
if (node != null && node.length > 0) {
|
|
pid = node[0].id;
|
|
} else {
|
|
pid = "-1";
|
|
}
|
|
$.post(ext.contextPath + '/report/rptInfoSet/doaddSimple.do', {unitId: unitId, pid: pid}, function (data) {
|
|
$("#menuBox").html(data);
|
|
});
|
|
};
|
|
|
|
var editFun = function (id) {
|
|
$.post(ext.contextPath + '/report/rptInfoSet/doedit.do', {id: id}, function (data) {
|
|
$("#menuBox").html(data);
|
|
});
|
|
};
|
|
|
|
var deleteFun = function (id) {
|
|
swal({
|
|
text: "您确定要删除此记录?",
|
|
dangerMode: true,
|
|
buttons: {
|
|
cancel: {
|
|
text: "取消",
|
|
value: null,
|
|
visible: true,
|
|
className: "btn btn-default btn-sm",
|
|
closeModal: true,
|
|
},
|
|
confirm: {
|
|
text: "确定",
|
|
value: true,
|
|
visible: true,
|
|
className: "btn btn-danger btn-sm",
|
|
closeModal: true
|
|
}
|
|
}
|
|
})
|
|
.then(function (willDelete) {
|
|
if (willDelete) {
|
|
$.post(ext.contextPath + '/work/group/delete.do', {id: id}, function (data) {
|
|
if (data == 1) {
|
|
$("#table").bootstrapTable('refresh');
|
|
} else {
|
|
showAlert('d', '删除失败', 'mainAlertdiv');
|
|
}
|
|
});
|
|
|
|
}
|
|
});
|
|
};
|
|
|
|
var deletesFun = function () {
|
|
var checkedItems = $("#table").bootstrapTable('getSelections');
|
|
var datas = "";
|
|
$.each(checkedItems, function (index, item) {
|
|
datas += item.id + ",";
|
|
});
|
|
if (datas == "") {
|
|
showAlert('d', '请先选择记录', 'mainAlertdiv');
|
|
} else {
|
|
swal({
|
|
text: "您确定要删除此记录?",
|
|
dangerMode: true,
|
|
buttons: {
|
|
cancel: {
|
|
text: "取消",
|
|
value: null,
|
|
visible: true,
|
|
className: "btn btn-default btn-sm",
|
|
closeModal: true,
|
|
},
|
|
confirm: {
|
|
text: "确定",
|
|
value: true,
|
|
visible: true,
|
|
className: "btn btn-danger btn-sm",
|
|
closeModal: true
|
|
}
|
|
}
|
|
})
|
|
.then(function (willDelete) {
|
|
if (willDelete) {
|
|
$.post(ext.contextPath + '/work/group/deletes.do', {ids: datas}, function (data) {
|
|
if (data > 0) {
|
|
$("#table").bootstrapTable('refresh');
|
|
} else {
|
|
showAlert('d', '删除失败', 'mainAlertdiv');
|
|
}
|
|
});
|
|
|
|
}
|
|
});
|
|
}
|
|
};
|
|
|
|
var initTreeView = function () {
|
|
$.post(ext.contextPath + '/report/rptInfoSet/getTree.do', {unitId: unitId}, function (data) {
|
|
$('#tree').treeview({data: data});
|
|
$('#tree').on('nodeSelected', function (event, data) {
|
|
nodeid = data.id;
|
|
if (data.type != 'unitId') {
|
|
if (data.type == '${TYPE_CATALOGUE}') {
|
|
//目录
|
|
$.post(ext.contextPath + '/report/rptInfoSet/doeditSimple.do', {id: nodeid}, function (data) {
|
|
$("#menuBox").html(data);
|
|
});
|
|
} else {
|
|
//报表
|
|
$.post(ext.contextPath + '/report/rptInfoSet/doedit.do', {id: nodeid}, function (data) {
|
|
$("#menuBox").html(data);
|
|
});
|
|
}
|
|
}else{
|
|
$("#menuBox").html("");
|
|
}
|
|
});
|
|
}, 'json');
|
|
$("#menuBox").html("");
|
|
};
|
|
|
|
$(function () {
|
|
initTreeView();
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body onload="initMenu()" class="hold-transition ${cu.themeclass} sidebar-mini">
|
|
<div class="wrapper">
|
|
<div class="content-wrapper">
|
|
<!-- Main content -->
|
|
<section class="content container-fluid">
|
|
<div id="mainAlertdiv"></div>
|
|
<div id="subDiv"></div>
|
|
<div id="subDivSp"></div>
|
|
<div id="subDivSheet"></div>
|
|
<div id="subDivMpList"></div>
|
|
<div id="subDivMp"></div>
|
|
<div id="subDivMpoint"></div>
|
|
<div id="subDivMpointList"></div>
|
|
<div id="subDivMpointListIds"></div>
|
|
<div id="fileInputDiv"></div>
|
|
<div id="user4SelectDiv"></div>
|
|
|
|
<%--用于排序预览--%>
|
|
<%--<div id="subDivMpListMorder"></div>--%>
|
|
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<div class="box box-solid">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">报表设置</h3>
|
|
|
|
<div class="box-tools">
|
|
|
|
<button type="buttonB" class="btn btn-box-tool" onclick="addFunSimple();">
|
|
<i class="fa fa-plus"></i> 目录
|
|
</button>
|
|
|
|
<button type="buttonB" class="btn btn-box-tool" onclick="addFun();">
|
|
<i class="fa fa-plus"></i> 报表
|
|
</button>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="box-body no-padding">
|
|
<div id="tree" style="height:700px;overflow:auto;"></div>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
</div>
|
|
</div>
|
|
<div class="col-md-9" id="menuBox">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<%-- <jsp:include page="/jsp/bottom.jsp"></jsp:include> --%>
|
|
<%-- <jsp:include page="/jsp/side.jsp"></jsp:include> --%>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |