多单位版国产化地质资料管理系统
zhai
2025-12-18 3c6f6c1e3016e38146a4c46be6e7b625c35591f2
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
 
<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>自定义配置</title>
    <link rel="stylesheet" href="static/styles/initialize.css" type="text/css">
    <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/plugins/jquery-steps/css/main.css" type="text/css">
    <link rel="stylesheet" href="static/styles/material-teal.css" type="text/css">
    <link rel="stylesheet" href="static/styles/common.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/scripts/easyuiExtend.js"></script>
    <script type="text/javascript" src="static/scripts/jquery-extend.js"></script>
    <script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <script type="text/javascript" src="static/plugins/webuploader/webuploader.js"></script>
    <script type="text/javascript" src="static/plugins/ace/src-noconflict/ace.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%;
        }
 
        body {
            overflow: hidden;
        }
 
        .sourceBody {
            border-top: 1px solid #eee;
        }
 
        .viewBody {
            padding: 0 20px;
        }
 
        .pt-form td.tbtitle {
            width: 200px;
        }
 
        .uploadBtn div {
            width: 94px !important;
            height: 41px !important;
        }
    </style>
</head>
 
<body>
<form id="formConfig" style="height:100%">
    <div id="allView" class="easyui-tabs" style="width:100%; height:100%" data-options="tabPosition:'left'">
        <div title="系统配置" data-options="iconCls:'fa fa-empire'" class="pt-form viewBody">
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">是否启动简约版本:</td>
                    <td>
                        <input type="hidden" id="enableSimple" name="enableSimple"
                               value="${archivesCustomConfig.enableSimple}"/>
                        <input id="enableSimpleText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:changeEvent"/>
                    </td>
                </tr>
            </table>
        </div>
        <div title="利用配置" data-options="iconCls:'fa fa-empire'" class="pt-form viewBody">
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">是否允许借不同类型资料:</td>
                    <td>
                        <input type="hidden" id="enableAllowDifferentArchives" name="enableAllowDifferentArchives"
                               value="${archivesCustomConfig.enableAllowDifferentArchives}"/>
                        <input id="enableAllowDifferentArchivesText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:changeEvent"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">是否允许借不同归档部门资料:</td>
                    <td>
                        <input type="hidden" id="enableAllowDifferentFilingUnit" name="enableAllowDifferentFilingUnit"
                               value="${archivesCustomConfig.enableAllowDifferentFilingUnit}"/>
                        <input id="enableAllowDifferentFilingUnitText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:changeEvent"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">是否隐藏归档/形成部门:</td>
                    <td>
                        <input type="hidden" id="enableHideFilingUnit" name="enableHideFilingUnit"
                               value="${archivesCustomConfig.enableHideFilingUnit}"/>
                        <input id="enableHideFilingUnitText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:changeEvent"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">是否启用密级控制:</td>
                    <td>
                        <input type="hidden" id="enableSecurityClassification" name="enableSecurityClassification"
                               value="${archivesCustomConfig.enableSecurityClassification}"/>
                        <input id="enableSecurityClassificationText" class="easyui-switchbutton"
                               data-options="onText:'是',offText:'否',onChange:changeEvent"/>
                    </td>
                </tr>
            </table>
        </div>
 
<%--        <div title="地图相关配置" data-options="iconCls:'fa fa-empire'" class="pt-form viewBody">--%>
<%--            <table style="width: 100%;">--%>
<%--                <tr>--%>
<%--                    <td class="tbtitle">是否启用空间数据:</td>--%>
<%--                    <td>--%>
<%--                        <input type="hidden" id="enableSpaceData" name="enableSpaceData"--%>
<%--                               value="${archivesCustomConfig.enableSpaceData}"/>--%>
<%--                        <input id="enableSpaceDataText" class="easyui-switchbutton"--%>
<%--                               data-options="onText:'是',offText:'否',onChange:changeEvent"/>--%>
<%--                    </td>--%>
<%--                </tr>--%>
<%--                <tr>--%>
<%--                    <td class="tbtitle">省份名称:</td>--%>
<%--                    <td>--%>
<%--                        <input id="provinceName" name="provinceName" class="easyui-textbox"--%>
<%--                               value="${archivesCustomConfig.provinceName}" style="width:30%"/>--%>
<%--                    </td>--%>
<%--                </tr>--%>
<%--                <tr>--%>
<%--                    <td class="tbtitle">边界图层名称:</td>--%>
<%--                    <td>--%>
<%--                        <input id="borderLayerName" name="borderLayerName" class="easyui-textbox"--%>
<%--                               value="${archivesCustomConfig.borderLayerName}" style="width:30%"/>--%>
<%--                    </td>--%>
<%--                </tr>--%>
<%--                <tr>--%>
<%--                    <td class="tbtitle">获取省界接口地址:</td>--%>
<%--                    <td>--%>
<%--                        <input id="borderUrl" name="borderUrl" class="easyui-textbox"--%>
<%--                               value="${archivesCustomConfig.borderUrl}" style="width:30%"/>--%>
<%--                    </td>--%>
<%--                </tr>--%>
<%--                <tr>--%>
<%--                    <td class="tbtitle">默认省经纬度:</td>--%>
<%--                    <td>--%>
<%--                        <input id="defaultProvinceCoordinate" name="defaultProvinceCoordinate" class="easyui-textbox"--%>
<%--                               value="${archivesCustomConfig.defaultProvinceCoordinate}" style="width:30%"/>--%>
<%--                    </td>--%>
<%--                </tr>--%>
<%--                <tr>--%>
<%--                    <td class="tbtitle">默认地球坐标系代号1:</td>--%>
<%--                    <td>--%>
<%--                        <input id="defaultProvinceFirst" name="defaultProvinceFirst" class="easyui-textbox"--%>
<%--                               value="${archivesCustomConfig.defaultProvinceFirst}" style="width:30%"/>--%>
<%--                    </td>--%>
<%--                </tr>--%>
<%--                <tr>--%>
<%--                    <td class="tbtitle">默认地球坐标系代号2:</td>--%>
<%--                    <td>--%>
<%--                        <input id="defaultProvinceSecond" name="defaultProvinceSecond" class="easyui-textbox"--%>
<%--                               value="${archivesCustomConfig.defaultProvinceSecond}" style="width:30%"/>--%>
<%--                    </td>--%>
<%--                </tr>--%>
<%--                <tr>--%>
<%--                    <td class="tbtitle">地图图片地址:</td>--%>
<%--                    <td>--%>
<%--                        <input id="mapPath" name="mapPath" class="easyui-textbox"--%>
<%--                               value="${archivesCustomConfig.mapPath}" style="width:30%"/>--%>
<%--                    </td>--%>
<%--                </tr>--%>
<%--                <tr>--%>
<%--                    <td class="tbtitle">地图遥感图片地址:</td>--%>
<%--                    <td>--%>
<%--                        <input id="yaoGanMapPath" name="yaoGanMapPath" class="easyui-textbox"--%>
<%--                               value="${archivesCustomConfig.yaoGanMapPath}" style="width:30%"/>--%>
<%--                    </td>--%>
<%--                </tr>--%>
<%--            </table>--%>
<%--        </div>--%>
        <div title="附件相关配置" data-options="iconCls:'fa fa-empire'" class="pt-form viewBody">
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">原始电子文件路径:</td>
                    <td>
                        <input id="originalPath" name="originalPath" class="easyui-textbox"
                               value="${archivesCustomConfig.originalPath}" style="width:30%"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">浏览电子文件路径:</td>
                    <td>
                        <input id="viewPath" name="viewPath" class="easyui-textbox"
                               value="${archivesCustomConfig.viewPath}" style="width:30%"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">省馆档号前缀:</td>
                    <td>
                        <input id="provinceCode" name="provinceCode" class="easyui-textbox"
                               value="${archivesCustomConfig.provinceCode}" style="width:30%"/>
                    </td>
                </tr>
 
            </table>
        </div>
 
        <div title="汇交相关配置" data-options="iconCls:'fa fa-empire'" class="pt-form viewBody">
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">唯一性验证:</td>
                    <td>
                        <input id="checkRule" name="checkRule" class="easyui-textbox"
                               value="${archivesCustomConfig.checkRule}" style="width:30%"/>
                    </td>
                </tr>
            </table>
        </div>
 
        <div title="标签打印相关配置" data-options="iconCls:'fa fa-empire'" class="pt-form viewBody">
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">盒子标签打印ip:</td>
                    <td>
                        <input id="boxIp" name="boxIp" class="easyui-textbox"
                               value="${archivesCustomConfig.boxIp}" style="width:30%"/>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">文件标签打印ip:</td>
                    <td>
                        <input id="fileIp" name="fileIp" class="easyui-textbox"
                               value="${archivesCustomConfig.fileIp}" style="width:30%"/>
                    </td>
                </tr>
            </table>
        </div>
 
    </div>
</form>
<div class="pt-form-btn" style="bottom:0px;">
    <div class="form-group">
        <button id="btnSave" class="pt-btn pt-btn-primary">保存</button>
        <button id="btnClose" class="pt-btn pt-btn-default">关闭</button>
    </div>
</div>
<script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
 
<script>
    var editor_customAttachViewScript;
    $(function () {
        //初始化表单值
        if ($("#enableSimple").val() == "true") {
            $('#enableSimpleText').switchbutton("check");
        } else {
            $('#enableSimpleText').switchbutton("uncheck");
        }
        if ($("#enableAllowDifferentArchives").val() == "true") {
            $('#enableAllowDifferentArchivesText').switchbutton("check");
        } else {
            $('#enableAllowDifferentArchivesText').switchbutton("uncheck");
        }
 
        if ($("#enableAllowDifferentFilingUnit").val() == "true") {
            $('#enableAllowDifferentFilingUnitText').switchbutton("check");
        } else {
            $('#enableAllowDifferentFilingUnitText').switchbutton("uncheck");
        }
 
        if ($("#enableSecurityClassification").val() == "true") {
            $('#enableSecurityClassificationText').switchbutton("check");
        } else {
            $('#enableSecurityClassificationText').switchbutton("uncheck");
        }
        if ($("#enableHideFilingUnit").val() == "true") {
            $('#enableHideFilingUnitText').switchbutton("check");
        } else {
            $('#enableHideFilingUnitText').switchbutton("uncheck");
        }
        new ResizeScroll({
            "id": ".viewBody",
            fun: function () {
                var wh = $(window).height();
                return (wh - 52);
            }
        });
        //绑定按钮事件
        $("#btnSave").click(function () {
            //验证表单信息
            var isValid = $('#formConfig').form('validate');
            if (!isValid) {
                wcp.notify.warn('系统配置验证有误,请检查配置项!');
                return false;
            }
            var obj = $("#formConfig").serializeObject();
            wcp.ui.setBusy("body", wcp.ajax({
                url: "archivesCustomConfig/saveCustomConfig",
                data: JSON.stringify(obj),
            }).done(function (result) {
                top.wcp.notify.success("保存成功!");
            }));
        });
 
        $("#btnClose").click(function () {
            closeWindow();
        });
 
        $("#cnfData_but").click(function () {
            initCnfData();
        });
 
        $("#sysData_but").click(function () {
            initSysData();
        });
    })
 
    //关闭窗口事件
    function closeWindow() {
        top.closeNowPanel();
    }
 
    //选择控件切换事件
    function changeEvent(checked) {
        $('#' + this.id.replace("Text", "")).val(checked);
    }
 
</script>
</body>
</html>