多单位版国产化地质资料管理系统
zs
2025-12-18 4f0d9bde31a80f6279e26466250da7716eec627f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
 
<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">
 
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>历史审批意见列表</title>
    <link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
    <link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="static/styles/material-teal.css" type="text/css">
    <link rel="stylesheet" href="static/styles/initialize.css" type="text/css">
    <link rel="stylesheet" href="static/styles/common.css" type="text/css">
    <link rel="stylesheet" href="static/plugins/layer/skin/default/layer.css" type="text/css">
    <link rel="stylesheet" href="static/plugins/webuploader/webuploader.css" type="text/css">
 
    <script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <script type="text/javascript" src="static/plugins/layer/layer.js"></script>
 
    <script type="text/javascript" src="static/plugins/spinjs/spin.js"></script>
    <script type="text/javascript" src="static/plugins/spinjs/jquery.spin.js"></script>
    <script type="text/javascript" src="static/plugins/jquery.blockUI.js"></script>
 
    <script type="text/javascript" src="static/plugins/webuploader/webuploader.js"></script>
    <script src="static/plugins/webuploader/webuploader.min.js"></script>
    <script src="static/plugins/ptfileupload/pt.fileupload.js"></script>
 
    <script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
 
    <script type="text/javascript" src="static/edof/scripts/common.js"></script>
    <script type="text/javascript" src="static/edof/scripts/edof.js"></script>
    <script type="text/javascript" src="static/edof/scripts/libs/edof.infoPicker.js"></script>
 
    <!--[if lt IE 9]>
    <script type="text/javascript" src="static/plugins/json2.js"></script>
    <![endif]-->
    <script type="text/javascript" src="static/wcp/scripts/libs/wcp.infoPicker.js"></script>
    <style>
        html, body {
            height: 100%;
            width: 100%;
            overflow: hidden;
        }
    </style>
</head>
<body>
<div>
    <div class="online-main-idea" style="width: 100%; padding: 5px; font-size: 12px;">
        <h5 class="pt-color-primary">汇总意见</h5>
        <div class="online-idea-list">
            <c:forEach items="${leaderHistoryList}" var="leaderHistory">
                <div class="pt-color-danger">
                    <h6>
                        <c:if test="${leaderHistory.assigneeType==0}">
                            ${leaderHistory.assigneeUserName }
                        </c:if>
                        <c:if test="${leaderHistory.assigneeType!=0}">
                            ${leaderHistory.claimUserName }
                        </c:if>
                        <span>[<fmt:formatDate value="${leaderHistory.endTime }" pattern="yyyy-MM-dd"/>]</span>
                    </h6>
                    <p>${leaderHistory.approvalComment }</p>
                </div>
            </c:forEach>
            <c:forEach items="${otherHistoryList}" var="otherHistory">
                <div>
                    <h6>
                        <c:if test="${otherHistory.assigneeType==0}">
                            ${otherHistory.assigneeUserName }
                        </c:if>
                        <c:if test="${otherHistory.assigneeType!=0}">
                            ${otherHistory.claimUserName }
                        </c:if>
                        <span>[<fmt:formatDate value="${otherHistory.endTime }" pattern="yyyy-MM-dd"/>]</span>
                    </h6>
                    <p>${otherHistory.approvalComment }</p>
                </div>
            </c:forEach>
        </div>
        <h5 class="pt-color-warning" style="margin-bottom: 5px; height: 24px; line-height: 24px;">您的意见
            <button type="button" class="pt-btn pt-btn-info" style="padding:2px 5px;margin:0px;"
                    onclick="showFastDistribute();">快速批分
            </button>
        </h5>
        <div class="online-textbox">
            <input class="easyui-textbox" id="txt_Comment" name="txt_Comment" data-options="multiline:true"
                   style="height:160px;width:100%;">
        </div>
    </div>
</div>
<script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
<script>
    $(function () {
        if (window.parent) {
            window.parent.getCommentFun = getComment;
            window.parent.setCommentFun = setComment;
        }
 
        $("#txt_Comment").textbox({
            onChange: function (newValue, oldValue) {
                if (window.parent.setOpinionToField) {
                    window.parent.setOpinionToField(newValue);
                }
            }
        });
 
        new ResizeScroll({
            "id": ".online-idea-list",
            fun: function () {
                var wh = $(window).height();
                return (wh - 255);
            }
        });
    });
 
    function getComment() {
        return $('#txt_Comment').textbox('getValue');
    }
 
    function setComment(val) {
        $('#txt_Comment').textbox('setValue', val);
    }
 
    function showFastDistribute() {
        if (window.parent && window.parent.getFormData) {
            var formData = window.parent.getFormData(true);
            var dealSponsorDeptIds = formData["DEAL_SPONSOR_DEPT_IDS"];
            var dealSponsorDeptNames = formData["DEAL_SPONSOR_DEPT_NAMES"];
 
            var dealCoSponsorDeptIds = formData["DEAL_CO_SPONSOR_DEPT_IDS"];
            var dealCoSponsorDeptNames = formData["DEAL_CO_SPONSOR_DEPT_NAMES"];
 
            edof.picker.selectDeptAndUser({
                hasSelectIds: dealCoSponsorDeptIds,
                hasSelectNames: dealCoSponsorDeptNames
            }, function (data) {
                dealCoSponsorDeptNames = "回写";
                var takeDepts = data.takeDepts;
                var sendDepts = data.sendDepts;
                var sendLeaders = data.sendLeaders;
                // 承办部门
                var takeDeptIds = [];
                var takeDeptNames = [];
                for (var index in takeDepts) {
                    takeDeptIds.push(takeDepts[index].id);
                    takeDeptNames.push(takeDepts[index].name);
                }
                // 传阅部门
                var sendDeptIds = [];
                var sendDeptNames = [];
                for (var index in sendDepts) {
                    sendDeptIds.push(sendDepts[index].id);
                    sendDeptNames.push(sendDepts[index].name);
                }
                // 传阅领导
                var sendLeaderIds = [];
                var sendLeaderNames = [];
                for (var index in sendLeaders) {
                    sendLeaderIds.push(sendLeaders[index].id);
                    sendLeaderNames.push(sendLeaders[index].name);
                }
                // dealCoSponsorDeptNames = "回写";
 
                newFormData = new Object();
                newFormData["DEAL_CO_SPONSOR_DEPT_NAMES"] = dealCoSponsorDeptNames;
                newFormData["DEAL_CO_SPONSOR_DEPT_NAMES"] = takeDeptNames;
                newFormData["DEAL_CO_SPONSOR_DEPT_IDS"] = takeDeptIds;
                newFormData["DEAL_CIRCULATE_DEPT_NAMES"] = sendDeptNames;
                newFormData["DEAL_CIRCULATE_DEPT_IDS"] = sendDeptIds;
                newFormData["DEAL_CIRCULATE_USER_NAMES"] = sendLeaderNames;
                newFormData["DEAL_CIRCULATE_USER_IDS"] = sendLeaderIds;
 
                window.parent.setFormData(newFormData);
            });
        }
    }
</script>
</body>
</html>