多单位版国产化地质资料管理系统
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
<%@ 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>
<head>
    <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">
    <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">
 
    <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/ace/src-noconflict/ace.js" type="text/javascript"></script>
    <script src="static/plugins/jquery.redirect.js" type="text/javascript"></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>
    <script type="text/javascript" src="static/scripts/ResizeScroll.js"></script>
    <script>
        var params = {
            callBack: "",
            haveSelected: "",
            originalSelected: ""
        };
        var selectMap = new Map();
        $(function () {
            new ResizeScroll({
                "id": "#divData",
                "height": "320"
            });
        });
        var index = 1;
 
        function doAdd() {
            index++;
            var tr = "tr_" + index;
            var sm = "sm_" + index;
            var smym = "smym_" + index;
            var smsx = "smsx_" + index;
            var bmqx = "bmqx_" + index;
            var zxfw = "zxfw_" + index;
            var smzl = "smzl_" + index;
            var del_Tr = "del_" + index;
            var htmlStr = "" +
                "<tr id='" + tr + "'>" +
                "   <td>" +
                "      <select id='" + sm + "' data-options=\"panelHeight:'auto'\" editable=\"false\" class=\"easyui-combobox\" style=\"width:80px\">" +
                "         <option value=\"内部\" selected='true'>内部</option>" +
                "         <option value=\"秘密\">秘密</option>" +
                "         <option value=\"机密\">机密</option>" +
                "         <option value=\"绝密\">绝密</option>" +
                "      </select></td>" +
                "      <td><input type=\"text\" value=\"\" id= '" + smym + "' data-options=\"required:true\" class=\"easyui-textbox\" style=\"width:98%\"/></td>" +
                "      <td><input type=\"text\" value=\"\" id= '" + smsx + "' data-options=\"required:true\" class=\"easyui-textbox\"  style=\"width:98%\"/></td>" +
                "      <td><input type=\"text\" value=\"\" id= '" + bmqx + "' data-options=\"required:true\" class=\"easyui-textbox\"  style=\"width:98%\"></td>" +
                "      <td><input type=\"text\" value=\"\" id= '" + zxfw + "' data-options=\"required:true\" class=\"easyui-textbox\"  style=\"width:98%\"></td>" +
                "      <td><input type=\"text\" value=\"\" id= '" + smzl + "' class=\"easyui-textbox\"  style=\"width:98%\"></td>" +
                "   </td>" +
                "   <td><a id='" + del_Tr + "' href='javascript:void(0)' onclick='deleteCoordinateTr(" + index + ")'><font color='red'><em class='fa fa-trash-o'></em>删除</font></a></td>" +
                "</tr>";
            $("#tbForm").append(htmlStr);
            // if(index > 2)
            // {
            //     var count = index - 1;
            //     var delTr = "del_" + count;
            //     $("#"+delTr+"").hide();
            // }
            $.parser.parse("#" + tr);
        }
 
        function deleteCoordinateTr(rowIndex) {
            var tr = "tr_" + rowIndex;
            $("#" + tr + "").remove();
            // if(rowIndex > 2)
            // {
            //     var count = rowIndex - 1;
            //     var delTr = "del_" + count;
            //     $("#"+delTr+"").show();
            // }
            // index -- ;
        }
 
        function doClose() { //关闭按钮事件
            var index = top.layer.getFrameIndex(window.name); //获取窗口索引
            top.layer.close(index);
        }
 
        function doSave() {
            var isValid = $('#formUser').form('validate');
            if (!isValid) {
                wcp.notify.warn('表单验证有误,请检查表单输入项!');
                return false;
            }
            var text = "{\"classified\":[";
            var i = 0;
            $('table tr').each(function (rows, ele) {
                if (i > 1) {
                    var mj = $(this).children().eq(0).find('input').val();
                    var smym = $(this).children().eq(1).find('input').val();
                    var smsx = $(this).children().eq(2).find('input').val();
                    var bmqx = $(this).children().eq(3).find('input').val();
                    var zxfw = $(this).children().eq(4).find('input').val();
                    var smzl = $(this).children().eq(5).find('input').val();
                    var qu = {
                        mj: mj,
                        smym: smym,
                        smsx: smsx,
                        bmqx: bmqx,
                        zxfw: zxfw,
                        smzl: smzl
                    };
                    text += JSON.stringify(qu) + ",";
                } else {
                    selectMap.set("WJMJ", $(this).children().eq(0).find('input').val());
                    selectMap.set("SMYM", $(this).children().eq(1).find('input').val());
                    selectMap.set("SMSX", $(this).children().eq(2).find('input').val());
                    selectMap.set("BMQX", $(this).children().eq(3).find('input').val());
                    selectMap.set("ZXFW", $(this).children().eq(4).find('input').val());
                    selectMap.set("SMZL", $(this).children().eq(5).find('input').val());
                }
                i++;
            });
            text = text.substring(0, text.length - 1) + "]}";
            if (params.callBack && i > 0) {
                params.callBack(text, selectMap);
            }
            doClose();
        }
 
        function loadParams() {
            if (params.originalSelected) {
                var map = params.originalSelected;
                $("#sm_1").textbox("setValue", map.get('WJMJ'));
                $("#smym_1").textbox("setValue", map.get('SMYM'));
                $("#smsx_1").textbox("setValue", map.get('SMSX'));
                $("#bmqx_1").textbox("setValue", map.get('BMQX'));
                $("#zxfw_1").textbox("setValue", map.get('ZXFW'));
                $("#smzl_1").textbox("setValue", map.get('SMZL'));
            }
            if (params.haveSelected.length > 0) {
                var obj = $.parseJSON(params.haveSelected);
                $.each(obj.classified, function (indx, item) {
                    index = indx + 2;
                    var tr = "tr_" + index;
                    var sm = "sm_" + index;
                    var smym = "smym_" + index;
                    var smsx = "smsx_" + index;
                    var bmqx = "bmqx_" + index;
                    var zxfw = "zxfw_" + index;
                    var smzl = "smzl_" + index;
                    var del_Tr = "del_" + index;
                    if (index > 0) {
                        var htmlStr = "" +
                            "<tr id='" + tr + "'>" +
                            "   <td>" +
                            "      <select id='" + sm + "' data-options=\"panelHeight:'auto'\" editable=\"false\" class=\"easyui-combobox\" style=\"width:80px\">" +
                            "         <option value=\"内部\" selected='true'>内部</option>" +
                            "         <option value=\"秘密\">秘密</option>" +
                            "         <option value=\"机密\">机密</option>" +
                            "         <option value=\"绝密\">绝密</option>" +
                            "      </select></td>" +
                            "      <td><input type=\"text\" value=\"\" id= '" + smym + "' data-options=\"required:true\" class=\"easyui-textbox\" style=\"width:98%\"/></td>" +
                            "      <td><input type=\"text\" value=\"\" id= '" + smsx + "' data-options=\"required:true\" class=\"easyui-textbox\"  style=\"width:98%\"/></td>" +
                            "      <td><input type=\"text\" value=\"\" id= '" + bmqx + "' data-options=\"required:true\" class=\"easyui-textbox\"  style=\"width:98%\"></td>" +
                            "      <td><input type=\"text\" value=\"\" id= '" + zxfw + "' data-options=\"required:true\" class=\"easyui-textbox\"  style=\"width:98%\"></td>" +
                            "      <td><input type=\"text\" value=\"\" id= '" + smzl + "' class=\"easyui-textbox\"  style=\"width:98%\"></td>" +
                            "   </td>" +
                            "   <td><a id='" + del_Tr + "' href='javascript:void(0)' onclick='deleteCoordinateTr(" + index + ")'><font color='red'><em class='fa fa-trash-o'></em>删除</font></a></td>" +
                            "</tr>";
                        $("#tbForm").append(htmlStr);
                        // if (index > 2) {
                        //     var count = index - 1;
                        //     var delTr = "del_" + count;
                        //     $("#" + delTr + "").hide();
                        // }
                        $.parser.parse("#" + tr);
                    }
                    //绑定值
                    $("#" + sm).textbox("setValue", item.mj);
                    $("#" + smym + "").textbox("setValue", item.smym);
                    $("#" + smsx + "").textbox("setValue", item.smsx);
                    $("#" + bmqx + "").textbox("setValue", item.bmqx);
                    $("#" + zxfw + "").textbox("setValue", item.zxfw);
                    $("#" + smzl + "").textbox("setValue", item.smzl);
                });
            }
        }
    </script>
</head>
<body id="body" style="height: 320px">
<div style="height: 100%;padding: 0px;overflow:auto;">
    <div class="pt-form">
        <form id="formUser" method="post">
            <div class="ptbody" id="divData">
                <table id="tbForm" style="width: 100%;">
                    <tr>
                        <td align="center" style="width:10%">密级</td>
                        <td align="center" style="width:10%">涉密页码(内容)</td>
                        <td align="center" style="width:20%">涉密事项</td>
                        <td align="center" style="width:10%">保密期限</td>
                        <td align="center" style="width:15%">知悉范围</td>
                        <td align="center" style="width:15%">涉密种类</td>
                        <td align="center" style="width:15%">操作</td>
                    </tr>
                    <tr>
                        <td style="width:10%">
                            <select id="sm_1" data-options="panelHeight:'auto'" editable="false" class="easyui-combobox"
                                    style="width:80px">
                                <option value="内部" selected='true'>内部</option>
                                <option value="秘密">秘密</option>
                                <option value="机密">机密</option>
                                <option value="绝密">绝密</option>
                            </select>
                        </td>
                        <td align="center" style="width:10%">
                            <input type="text" value="" id="smym_1" data-options="required:true" class="easyui-textbox"
                                   style="width:98%"/>
                        </td>
                        <td align="center" style="width:20%">
                            <input type="text" value="" id="smsx_1" data-options="required:true" class="easyui-textbox"
                                   style="width:98%"/>
                        </td>
                        <td align="center" style="width:10%">
                            <input type="text" value="" id="bmqx_1" data-options="required:true" class="easyui-textbox"
                                   style="width:98%"/>
                        </td>
                        <td align="center" style="width:15%">
                            <input type="text" value="" id="zxfw_1" data-options="required:true" class="easyui-textbox"
                                   style="width:98%"/>
                        </td>
                        <td align="center" style="width:15%">
                            <input type="text" value="" id="smzl_1" class="easyui-textbox" style="width:98%"/>
                        </td>
                        <td align="center" style="width:15%"></td>
                    </tr>
                </table>
            </div>
        </form>
        <div class="pt-form-btn">
            <div class="form-group">
                <button id="btnAdd" class="pt-btn pt-btn-primary" onclick="doAdd()"><i class="fa fa-plus"></i>添加涉密信息
                </button>
                <button id="btnSave" class="pt-btn pt-btn-primary" onclick="doSave()"><i class="fa fa-save"></i>确定
                </button>
                <button id="btnClose" class="pt-btn pt-btn-danger" onclick="doClose()"><i class="fa fa-close"></i>关闭
                </button>
            </div>
        </div>
    </div>
</div>
</body>
</html>