多单位版国产化地质资料管理系统
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浏览详情</title>
    <base href="<%=basePath%>">
    <meta name="viewport" charset="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!--[if !IE]><!-->
    <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/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">
    <link rel="stylesheet" href="static/styles/archivesHN.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/scripts/easyuiExtend.js"></script>
    <script type="text/javascript" src="static/scripts/jquery-extend.js"></script>
    <script type="text/javascript" src="static/plugins/layer/layer.js"></script>
    <script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <script type="text/javascript" src="static/plugins/jquery-easyui-datagrid-dnd/datagrid-dnd.js"></script>
    <script src="static/plugins/jquery.redirect.js" type="text/javascript"></script>
    <script type="text/javascript" src="static/plugins/webuploader/webuploader.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>
    <%--    <!-- wcp组件 -->--%>
    <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>
 
    <!--[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%;
            overflow: auto;
            background: url(static/styles/images/archivesHN/archives_resultbg_re.jpg) repeat;
        }
 
        .a_value {
            color: blue;
            text-decoration: underline;
        }
    </style>
</head>
<body>
<div class="archives_resultbg">
    <div class="archives_details">
        <h3 class="archives_details_tit">${zlmc}</h3>
        <div class="archives_details_table">
            <div class="archives_details_btn">
                <a href="javascript:fileView();" class="listbtni2"><i class="fa fa-eye"></i>电子文档浏览</a>
                <a href="javascript:addBorrowDetail();" class="listbtni3"><i
                        class="fa fa-shopping-basket"></i>申请借阅</a>
                <a href="javascript:addProcessingDetail();" class="listbtni4"><i
                        class="fa fa-pencil-square-o"></i>申请加工</a>
                <c:if test="${swId!=0 && swId!=null}">
                    <a href="javascript:addPhysicalDetail();" class="listbtni5"><i
                            class="fa fa-cart-plus"></i>实物利用</a>
                </c:if>
            </div>
            <table cellpadding="0" cellspacing="0" width="100%">
 
                <tr>
                    <td class="greybg" width="15%">档号</td>
                    <td id="SGDH" width="35%"></td>
                    <td class="greybg" width="15%">题名</td>
                    <td id="ZLMC"></td>
                </tr>
                <tr>
                    <td class="greybg">形成单位</td>
                    <td id="XCDWMC"></td>
                    <td class="greybg">汇交单位</td>
                    <td id="HJRMC"></td>
                    <%--                    <a href='Search_Result.aspx?PKIIF=%e6%b9%96%e5%8d%97%e7%9c%81%e5%9c%b0%e8%b4%a8%e7%9f%bf%e4%ba%a7%e5%8b%98%e6%9f%a5%e5%bc%80%e5%8f%91%e5%b1%80%e5%9b%9b%e4%b8%80%e4%b8%89%e9%98%9f' target='_blank'>湖南省地质矿产勘查开发局四一三队</a>--%>
                </tr>
                <tr>
                    <td class="greybg">形成时间</td>
                    <td id="XCSJ"></td>
                    <td class="greybg">编著者</td>
                    <td id="BZZ"></td>
                </tr>
                <tr>
                    <td class="greybg">语种</td>
                    <td id="YZ"></td>
                    </td>
                    <td class="greybg">保护期</td>
                    <td id="BHQ"></td>
                </tr>
                <tr>
                    <td class="greybg">资料类别</td>
                    <td id="ZLLB"></td>
                    <td class="greybg"></td>
                    <td></td>
                </tr>
                <tr>
                    <td class="greybg">工作起始时间</td>
                    <td id="QSSJ"></td>
                    <td class="greybg">工作终止时间</td>
                    <td id="ZZSJ"></td>
                </tr>
                <tr>
                    <td class="greybg">行政区</td>
                    <td colspan="3" id="XZQMC"></td>
                </tr>
                <tr>
                    <td class="greybg">经纬度</td>
                    <td id="JWD"></td>
                    <td class="greybg">矿产</td>
                    <td id="KCMC"></td>
                </tr>
                <tr>
                    <td class="greybg">工作程度</td>
                    <td id="GZCD"></td>
                    <td class="greybg">主题词</td>
                    <td id="GJZ"></td>
                </tr>
                <tr>
                    <td class="greybg">内容提要</td>
                    <td colspan="3" id="NRZY"></td>
                </tr>
                <tr>
                    <td class="greybg">资料数量</td>
                    <td colspan="3" id="ZLSL"></td>
                </tr>
                <tr>
                    <td class="greybg">相似资料</td>
                    <td colspan="3" id="XSZL"></td>
                </tr>
                <tr>
                    <td class="greybg">编著者其它资料</td>
                    <td colspan="3" id="BZZQTZL"></td>
                </tr>
                <tr>
                    <td class="greybg">形成单位其它资料</td>
                    <td colspan="3" id="XCDWQTZL"></td>
                </tr>
                <tr>
                    <td class="greybg">成果文件目录</td>
                    <td colspan="3" id="CGWJMU"></td>
                </tr>
                <tr>
                    <td class="greybg">原始文件目录</td>
                    <td colspan="3" id="YSWJMU"></td>
                </tr>
            </table>
        </div>
    </div>
</div>
</body>
<%--<script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>--%>
<script>
    var keyId = "${keyId}";
    var swId = "${swId}";
    $(function () {
        initForm();
    })
 
    function initForm() {
        wcp.ui.setBusy("body", wcp.ajax({
            url: "search/getDetails?keyId=" + keyId,
        }).done(function (data) {
            if (data) {
                initForms(data)
            }
        }));
    }
 
    function initForms(formData) {
        $.map(formData, function (value, key) {
            // var html = "<a class='a_value' href='search/search?isSuperSearch=0&keyword="+ + encodeURI(key) + "&selectedValue=" + encodeURI(value)+"' target='_blank'>" + value + "</a>";
            // $("#" + key + "").html(html);
            if ($("#" + key + "").length > 0 && value != null) {
                if (key == "HJRMC" || key == "ZLLB" || key == "GZCD" || key == "XCDWMC") {
                    var html = "<a class='a_value' href='search/searchResult?isSuperSearch=0&keyword=" + encodeURI(value) + "&selectedValue=" + encodeURI(key) + "' target='_blank'>" + value + "</a>";
                    $("#" + key + "").html(html);
                } else if (key == "YZ" || key == "BZZ") {
                    var value = value.replace("[", "").replace("]", "");
                    var values = value.split(",");
                    var html = "";
                    for (let i = 0; i < values.length; i++) {
                        if (i > 0) {
                            html += ",";
                        }
                        html += "<a class='a_value' href='search/searchResult?isSuperSearch=0&keyword=" + encodeURI(values[i]) + "&selectedValue=" + encodeURI(key) + "' target='_blank'>" + values[i] + "</a>";
                    }
                    $("#" + key + "").html(html);
                } else if (key == "BZZQTZL" || key == "XCDWQTZL" || key == "XSZL") {
                    var html = "";
                    for (let i = 0; i < value.length; i++) {
                        var values = value[i].split("_");
                        if (i > 0) {
                            html += "<br>";
                        }
                        html += "<a class='a_value' href='search/details?keyId=" + values[1] + "' target='_blank'>" + values[0] + "</a>";
                        html += "<a>." + values[2] + "</a>";
                    }
                    $("#" + key + "").html(html);
                } else if (key == "CGWJMU") {
                    var html = "";
                    for (let i = 0; i < value.length; i++) {
                        var values = value[i].split("_");
                        if (i > 0) {
                            html += "<br>";
                        }
                        html += "<a class='a_value' href='fileView/viewFile?keyId=" + values[2] + "&type=0' target='_blank'>" + values[0] + "_" + values[1] + "</a>";
                    }
                    $("#" + key + "").html(html);
                } else if (key == "YSWJMU") {
                    var html = "";
                    for (let i = 0; i < value.length; i++) {
                        var values = value[i].split("_");
                        if (i > 0) {
                            html += "<br>";
                        }
                        html += "<a class='a_value' href='fileView/viewFile?keyId=" + values[1] + "&type=1' target='_blank'>" + values[0] + "</a>";
                    }
                    $("#" + key + "").html(html);
                } else {
                    $("#" + key + "").text(value);
                }
            }
        });
    }
 
 
    //添加借阅
    function addBorrowDetail() {
        wcp.ui.setBusy("body", wcp.ajax({
            url: "borrow/addBorrowDetail?keyId=" + keyId
        }).done(function (result) {
            if (result && result.jsExpression) {
                eval(result.jsExpression);
            }
        }));
    }
 
    //添加实物利用
    function addPhysicalDetail() {
        wcp.ui.setBusy("body", wcp.ajax({
            url: "physical/addPhysicalDetail?keyId=" + swId
        }).done(function (result) {
            if (result && result.jsExpression) {
                eval(result.jsExpression);
            }
        }));
    }
 
 
    //添加加工
    function addProcessingDetail() {
        wcp.ui.setBusy("body", wcp.ajax({
            url: "processing/addProcessingDetail?keyId=" + keyId
        }).done(function (result) {
            if (result && result.jsExpression) {
                eval(result.jsExpression);
            }
        }));
    }
 
    //附件浏览
    function fileView() {
        var url = "fileView/index?keyId=" + keyId;
        window.open(url);
    }
</script>
</html>