attr.jsp
9.79 KB
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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="weaver.file.*" %>
<%@ page import="weaver.general.*" %>
<%@page import="weaver.conn.*"%>
<jsp:useBean id="workflowComInfo" class="weaver.workflow.workflow.WorkflowComInfo" scope="page" />
<%
FileUpload fu = new FileUpload(request);
String pluginCode = Util.null2String(fu.getParameter("pluginCode"));
int hrmorder = 0;
int isShowTerminal = 1;
int wfscope = 0;
int hrmbtnshow = 1;
StringBuffer wfids = new StringBuffer();
StringBuffer wfnames = new StringBuffer();
int hrmorgbtnshow = 0;
int allPeopleshow = 0;
int mysubordinateshow = 0;
int sameDepartment = 0;
int commonGroup = 0;
int groupChat = 0;
int UntreatedFirst = 0;
int encryptpassword = 0;
RecordSet rs = new RecordSet();
rs.executeSql("select * from mobileProperty");
while(rs.next()){
String name = rs.getString("name");
String propValue = rs.getString("propValue");
if("hrmorder".equals(name)) hrmorder = Util.getIntValue(propValue, 0);
if("isShowTerminal".equals(name)) isShowTerminal = Util.getIntValue(propValue, 0);
if("wfscope".equals(name)) wfscope = Util.getIntValue(propValue, 0);
if("wfid".equals(name)) {
int wfid = Util.getIntValue(propValue, 0);
if(wfid > 0) {
wfids.append(","+wfid);
wfnames.append(","+workflowComInfo.getWorkflowname(""+wfid));
}
}
if("hrmorgbtnshow".equals(name)) hrmorgbtnshow = Util.getIntValue(propValue, 0);
if("allPeopleshow".equals(name)) allPeopleshow = Util.getIntValue(propValue, 0);
if("sameDepartment".equals(name)) sameDepartment = Util.getIntValue(propValue, 0);
if("commonGroup".equals(name)) commonGroup = Util.getIntValue(propValue, 0);
if("groupChat".equals(name)) groupChat = Util.getIntValue(propValue, 0);
if("mysubordinateshow".equals(name)) mysubordinateshow = Util.getIntValue(propValue, 0);
if("UntreatedFirst".equals(name)) UntreatedFirst = Util.getIntValue(propValue, 0);
if("encryptpassword".equals(name)) encryptpassword = Util.getIntValue(propValue, 0);
}
if(wfids.length() > 0) wfids.deleteCharAt(0);
if(wfnames.length() > 0) wfnames.deleteCharAt(0);
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="/wui/common/jquery/jquery_wev8.js"></script>
<title>插件设置</title>
<style>
body{
margin: 0px;
padding: 0px;
}
*{
font-size:12px;
font-family:"微软雅黑";
}
input[type=submit] {
color: #FFFFFF;
background-color: #3F8EF1;
border-radius: 3px;
border: none;
padding: 0 19px;
cursor: pointer;
height: 33px;
line-height: 33px;
outline: none;
}
div#wfbtn {
background-image: url('/mobile/plugin/images/setting_wev8.png');
background-repeat: no-repeat;
width: 32px;
height: 32px;
cursor: pointer;
float:left;
margin:0 2px;
}
div#wfbtn:hover {
background-image: url('/mobile/plugin/images/setting-hover_wev8.png');
background-repeat: no-repeat;
}
div#hrmorgbtn {
background-image: url('/mobile/plugin/images/setting_wev8.png');
background-repeat: no-repeat;
width: 32px;
height: 32px;
cursor: pointer;
float:left;
margin:0 2px;
}
div#hrmorgbtn:hover {
background-image: url('/mobile/plugin/images/setting-hover_wev8.png');
background-repeat: no-repeat;
}
div#androidsignbtn {
background-image: url('/mobile/plugin/images/setting_wev8.png');
background-repeat: no-repeat;
width: 32px;
height: 32px;
cursor: pointer;
float:left;
margin:0 2px;
}
div#iossignbtn {
background-image: url('/mobile/plugin/images/setting_wev8.png');
background-repeat: no-repeat;
width: 32px;
height: 32px;
cursor: pointer;
float:left;
margin:0 2px;
}
td {
height: 34px;
padding: 5px 15px;
border-bottom: solid 1px #E9ECF3;
font-size: 12px;
}
</style>
<script>
var childWindow = void 0;
$(document).ready(function() {
$("#wfscope").change(function() {
var type = $(this).val();
if(type==0) {
$("#wfbtn").hide();
$("#wfname").hide();
} else {
$("#wfbtn").show();
$("#wfname").show();
}
});
$("#wfbtn").click(function() {
if (childWindow) {
childWindow.close();
childWindow = void 0;
};
childWindow = window.open("/mobile/plugin/browser/AttrWorkflowBrowser.jsp?pluginCode=<%=pluginCode %>", "", "width=560px,height=580px,resizable=no,scroll=no,status=no,top=" + (window.screen.availHeight - 580)/2 + ",left=" + (window.screen.availWidth - 560)/2);
});
$("#hrmorgbtn").click(function() {
if (childWindow) {
childWindow.close();
childWindow = void 0;
};
childWindow = window.open("/manager/userOrgAuthList.do", "", "width=560px,height=580px,resizable=no,scroll=no,status=no,top=" + (window.screen.availHeight - 580)/2 + ",left=" + (window.screen.availWidth - 560)/2);
});
$("#hrmorgbtnshow").change(function() {
var type = $(this).val();
if(type==2) {
$("#hrmorgbtn").show();
$("#hrmorgname").show();
} else {
$("#hrmorgbtn").hide();
$("#hrmorgname").hide();
}
});
});
</script>
</head>
<body class="page">
<form id="attrForm" action="/mobile/plugin/attrOprate.jsp?pluginCode=<%=pluginCode %>" method="post">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25%">
<label>浏览人员时是否显示群聊</label>
</td>
<td width="25%">
<div style="float:left;padding-top: 5px;">
<select name="groupChat" id="groupChat">
<option value="0"<%if(groupChat==0){%> selected<%}%>>显示</option>
<option value="1"<%if(groupChat==1){%> selected<%}%>>不显示</option>
</select>
</div>
</td>
<td width="25%">
<label>浏览人员时是否显示同部门</label>
</td>
<td width="25%">
<div style="float:left;padding-top: 5px;">
<select name="sameDepartment" id="sameDepartment">
<option value="0"<%if(sameDepartment==0){%> selected<%}%>>显示</option>
<option value="1"<%if(sameDepartment==1){%> selected<%}%>>不显示</option>
</select>
</div>
</td>
</tr>
<tr>
<td width="20%" style="vertical-align: top;padding-top: 14px;">
<label>新建流程可用范围</label>
</td>
<td>
<div style="float:left;padding-top: 5px;">
<select id="wfscope" name="wfscope">
<option value="0"<%if(wfscope==0){%> selected<%}%>>全部</option>
<option value="1"<%if(wfscope==1){%> selected<%}%>>选择</option>
<option value="2"<%if(wfscope==2){%> selected<%}%>>排除选择</option>
</select>
</div>
<div id="wfbtn" title="设置"<%if(wfscope==0){%> style="display:none"<%}%>>
</div>
<div id="wfname" style="padding-left: 115px;padding-top: 8px;<%if(wfscope==0){%>display:none<%}%>"><%=wfnames%></div>
<input type="hidden" id="wfids" name="wfids" value="<%=wfids%>">
</td>
<td width="20%">
<label>浏览人员时是否显示所有人</label>
</td>
<td>
<div style="float:left;padding-top: 5px;">
<select name="allPeopleshow" id="allPeopleshow">
<option value="0"<%if(allPeopleshow==0){%> selected<%}%>>显示</option>
<option value="1"<%if(allPeopleshow==1){%> selected<%}%>>不显示</option>
</select>
</div>
</td>
</tr>
<tr>
<td width="20%">
<label>客户端密码传输加密</label>
</td>
<td>
<div style="float:left;padding-top: 5px;">
<select name="encryptpassword" id="encryptpassword">
<option value="0"<%if(encryptpassword==0){%> selected<%}%>>不加密</option>
<option value="1"<%if(encryptpassword==1){%> selected<%}%>>加密</option>
</select>
</div>
</td>
<td width="20%">
<label>浏览人员时是否显示组织</label>
</td>
<td>
<div style="float:left;padding-top: 5px;">
<select name="hrmorgbtnshow" id="hrmorgbtnshow">
<option value="0"<%if(hrmorgbtnshow==0){%> selected<%}%>>显示</option>
<option value="1"<%if(hrmorgbtnshow==1){%> selected<%}%>>不显示</option>
<option value="2"<%if(hrmorgbtnshow==2){%> selected<%}%>>指定范围人员可见</option>
</select>
</div>
<div id="hrmorgbtn" title="设置">
</td>
</tr>
<tr>
<td width="20%">
<label>客户端流程消息列表优先显示</label>
</td>
<td>
<div style="float:left;padding-top: 5px;">
<select name="UntreatedFirst" id="UntreatedFirst">
<option value="0"<%if(UntreatedFirst==0){%> selected<%}%>>全部</option>
<option value="1"<%if(UntreatedFirst==1){%> selected<%}%>>未处理</option>
</select>
</div>
</td>
<td width="20%">
<label>浏览人员时是否显示我的下属</label>
</td>
<td>
<div style="float:left;padding-top: 5px;">
<select name="mysubordinateshow" id="mysubordinateshow">
<option value="0"<%if(mysubordinateshow==0){%> selected<%}%>>显示</option>
<option value="1"<%if(mysubordinateshow==1){%> selected<%}%>>不显示</option>
</select>
</div>
</td>
</tr>
<tr>
<td width="20%">
<label>是否显示签字意见来源</label>
</td>
<td>
<select name="isShowTerminal">
<option value="1"<%if(isShowTerminal==1){%> selected<%}%>>显示</option>
<option value="0"<%if(isShowTerminal==0){%> selected<%}%>>不显示</option>
</select>
</td>
<td width="20%">
<label>浏览人员时是否显示常用组</label>
</td>
<td>
<div style="float:left;padding-top: 5px;">
<select name="commonGroup" id="commonGroup">
<option value="0"<%if(commonGroup==0){%> selected<%}%>>显示</option>
<option value="1"<%if(commonGroup==1){%> selected<%}%>>不显示</option>
</select>
</div>
</td>
</tr>
</table>
<div style="text-align: center;margin-top: 10px;"><input type="submit" value="保存"></div>
</form>
</body>
</html>