多单位版国产化地质资料管理系统
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
<%@ 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 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">
 
    <script type="text/javascript" src="static/plugins/jquery-easyui/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>
    <style>
        .item {
            width: 50%;
            float: left;
        }
    </style>
</head>
<body>
<div class="" style="padding:10px 30px 0;">
    <div style="margin-bottom:10px;" class="clear">
        <p class="item">
            <input class="easyui-checkbox" id="START_USER" labelPosition="after" labelWidth="250" label="起草人">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="START_USER_DEPT_MEMBER" labelPosition="after" labelWidth="250"
                   label="起草人部门成员">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="START_USER_DEPT_FIRST" labelPosition="after" labelWidth="250"
                   label="起草人部门第一负责人">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="START_USER_DEPT_SECOND" labelPosition="after" labelWidth="250"
                   label="起草人部门副职领导">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="START_USER_DEPT_ALL" labelPosition="after" labelWidth="250"
                   label="起草人部门全部领导">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="START_USER_DEPT_RECEIVER" labelPosition="after" labelWidth="250"
                   label="起草人部门文件接收人">
        </p>
        <p class="item">
            <input class="easyui-checkbox" labelPosition="after" id="START_USER_UP_UP_DEPT_LEADER" labelWidth="250"
                   label="起草部门的上级分管领导">
        </p>
        <%--        <p class="item">--%>
        <%--            <input class="easyui-checkbox" id="START_USER_UP_DEPT_LEADER" labelPosition="after" labelWidth="250"--%>
        <%--                   label="起草人的上级部门领导">--%>
        <%--        </p>--%>
    </div>
 
    <div style="margin-bottom:10px;" class="clear">
        <p class="item">
            <input class="easyui-checkbox" id="START_USER_DIVISION_DEPT_FIRST" labelPosition="after" labelWidth="250"
                   label="起草人处室第一负责人">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="START_USER_DIVISION_DEPT_SECOND" labelPosition="after" labelWidth="250"
                   label="起草人处室副职领导">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="START_USER_DIVISION_DEPT_ALL" labelPosition="after" labelWidth="250"
                   label="起草人处室全部领导">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="START_USER_DIVISION_DEPT_RECEIVER" labelPosition="after" labelWidth="250"
                   label="起草人处室文件接收人">
        </p>
        <p class="item">
            <input class="easyui-checkbox" labelPosition="after" id="START_USER_UP_UP_DIVISION_DEPT_LEADER"
                   labelWidth="250"
                   label="起草人处室上级分管领导">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="START_USER_UP_DIVISION_DEPT_LEADER" labelPosition="after"
                   labelWidth="280"
                   label="起草人处室上级部门领导(公司全部领导)">
        </p>
    </div>
 
    <div style="margin-bottom:10px;" class="clear">
        <p class="item">
            <input class="easyui-checkbox" id="LAST_USER" labelPosition="after" labelWidth="250" label="上一节点处理人">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="LAST_USER_DEPT_MEMBER" labelPosition="after" labelWidth="250"
                   label="上一节点处理人部门成员">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="LAST_USER_DEPT_FIRST" labelPosition="after" labelWidth="250"
                   label="上一节点处理人部门第一负责人">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="LAST_USER_DEPT_SECOND" labelPosition="after" labelWidth="250"
                   label="上一节点处理人部门副职领导">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="LAST_USER_DEPT_ALL" labelPosition="after" labelWidth="250"
                   label="上一节点处理人部门全部领导">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="LAST_USER_DEPT_RECEIVER" labelPosition="after" labelWidth="250"
                   label="上一节点处理人部门文件接收人">
        </p>
        <p class="item">
            <input class="easyui-checkbox" id="LAST_USER_UP_UP_DEPT_LEADER" labelPosition="after" labelWidth="250"
                   label="上一节点处理人部门的上级分管领导">
        </p>
        <%--        <p class="item">--%>
        <%--            <input class="easyui-checkbox" id="LAST_USER_UP_DEPT_LEADER" labelPosition="after" labelWidth="250"--%>
        <%--                   label="上一节点处理人的上级部门领导">--%>
        <%--        </p>--%>
    </div>
    <div style="margin: 15px 0px;">
        <select id="RELATION_GROUP" class="easyui-combobox" name="" label="关联群组:" labelPosition="right" labelWidth="80"
                panelHeight="150" labelAlign="right" style="width:270px;" editable="false">
            <option value="" selected>无</option>
            <option value="FIELD_DEPT">从字段中获取部门</option>
            <option value="START_USER_DEPT">起草人所在部门</option>
            <option value="LAST_USER_DEPT">上一节点处理人所在部门</option>
        </select>
        <select id="RELATION_GROUP_TYPE" class="easyui-combobox" name="" panelHeight="150" style="width:100px;"
                editable="false">
            <option value="GROUPNAME" selected>群组名称</option>
            <option value="GROUPNUM">群组编码</option>
        </select>
        <input id="RELATION_GROUP_NAME" class="easyui-textbox" style="width:150px">
    </div>
    <div>
        <select id="OTHER" class="easyui-combobox" name="" label="其他节点的办理人" labelPosition="right" labelWidth="180"
                panelHeight="150" labelAlign="right" style="width:100%;" editable="false">
            <option value="0" selected>无</option>
        </select>
    </div>
</div>
 
<div class="pt-form-btn" style="bottom:0;">
    <div class="form-group">
        <button class="pt-btn pt-btn-primary" onclick="save();">确定</button>
        <button class="pt-btn pt-btn-default" onclick="cancel();">取消</button>
    </div>
 
</div>
 
<script>
    var params = {
        idElement: null,
        nameElement: null,
        callback: null
    };
 
    $(function () {
        var userTaskList = [{
            "id": 0,
            "text": "无"
        }];
 
        var uTlist = parent.document.getElementById("hide_uTlist").value;
        uTlist = JSON.parse(uTlist);
        userTaskList.push.apply(userTaskList, uTlist);
 
        $("#OTHER").combobox({
            data: userTaskList,
            label: "其他节点的办理人",
            labelPosition: "right",
            labelWidth: 120,
            panelHeight: 150,
            labelAlign: "right",
            valueField: 'id',
            textField: 'text'
        });
    });
 
    function initData(dealIdFromRelationship) {
        //初始化数据
        if (dealIdFromRelationship) {
            var items = dealIdFromRelationship.split(',');
            for (var i = 0; i < items.length; i++) {
                if (items[i].indexOf("OTHER") > -1) {
                    var value = items[i].split('|')[1];
                    $("#OTHER").combobox("setValue", value);
                } else if (items[i].indexOf("RELATIONGROUP") > -1) {
                    var value = items[i].split('|')[1];
                    var valArr = value.split("^");
 
                    if (valArr.length == 3) {
                        $("#RELATION_GROUP").combobox("setValue", valArr[0]);
                        $("#RELATION_GROUP_TYPE").combobox("setValue", valArr[1]);
                        $("#RELATION_GROUP_NAME").textbox("setValue", valArr[2]);
                    } else {
                        $("#RELATION_GROUP").combobox("setValue", "");
                        $("#RELATION_GROUP_TYPE").combobox("setValue", valArr[0]);
                        $("#RELATION_GROUP_NAME").textbox("setValue", valArr[1]);
                    }
                } else {
                    $("#" + items[i]).checkbox("check");
                }
            }
        }
    }
 
    function cancel() {
        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index);
    }
 
    //保存
    function save() {
        var value = "";
        var text = "";
        $(".easyui-checkbox").each(function (index, elem) {
            if ($(elem).checkbox("options").checked) {
                value += elem.id + ",";
                text += $(elem).attr("label") + ",";
            }
        })
        if (value != "") {
            value = value.slice(0, -1);
            text = text.slice(0, -1);
        }
 
        var comRelationGroupValue = $("#RELATION_GROUP").combobox("getValue");
        var comRelationGroupText = $("#RELATION_GROUP").combobox("getText");
        var comRelationGroupTypeValue = $("#RELATION_GROUP_TYPE").combobox("getValue");
        var comRelationGroupTypeText = $("#RELATION_GROUP_TYPE").combobox("getText");
        var relationGroupName = $("#RELATION_GROUP_NAME").textbox("getValue").trim();
        if (relationGroupName != "") {
            if (value != "") {
                value += ",";
                text += ",";
            }
 
            value += "RELATIONGROUP|";
            if (comRelationGroupValue != "") {
                value += comRelationGroupValue + "^";
                text += comRelationGroupText + "的";
            }
 
            value += comRelationGroupTypeValue + "^" + relationGroupName;
            text += comRelationGroupTypeText + "为“" + relationGroupName + "”的群组";
        }
 
        var comValue = $("#OTHER").combobox("getValue");
        var comText = $("#OTHER").combobox("getText");
        if (comValue != 0) {
            if (value != "") {
                value += ",";
                text += ",";
            }
 
            value += "OTHER|" + comValue;
            text += comText;
        }
 
        if (params.idElement != null) {
            parent.document.getElementById(params.idElement).value = value;
        }
        if (params.nameElement != null) {
            parent.$("#" + params.nameElement).textbox("setValue", text);
        }
 
        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index);
    }
</script>
</body>
</html>