attrOprate.jsp
2.86 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
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="java.util.*" %>
<%@ page import="weaver.file.*" %>
<%@ page import="weaver.general.*" %>
<%@ page import="weaver.hrm.*" %>
<jsp:useBean id="ps" class="weaver.mobile.plugin.ecology.service.PluginServiceImpl" scope="page" />
<%
User user = HrmUserVarify.getUser(request, response);
boolean result =true;
if(user!=null) {
if(!user.isAdmin())
result = false;
}
FileUpload fu = new FileUpload(request);
String tips = "<span style='color:red'>保存失败</span>";
if(result){
String hrmorder = Util.null2String(fu.getParameter("hrmorder"));
String isShowTerminal = Util.null2String(fu.getParameter("isShowTerminal"));
String wfscope = Util.null2String(fu.getParameter("wfscope"));
String wfids = Util.null2String(fu.getParameter("wfids"));
String hrmbtnshow = Util.null2String(fu.getParameter("hrmbtnshow"));
String hrmorgbtnshow = Util.null2String(fu.getParameter("hrmorgbtnshow"));
String allPeopleshow = Util.null2String(fu.getParameter("allPeopleshow"));
String sameDepartment = Util.null2String(fu.getParameter("sameDepartment"));
String commonGroup = Util.null2String(fu.getParameter("commonGroup"));
String groupChat = Util.null2String(fu.getParameter("groupChat"));
String mysubordinateshow = Util.null2String(fu.getParameter("mysubordinateshow"));
String UntreatedFirst = Util.null2String(fu.getParameter("UntreatedFirst"));
String encryptpassword = Util.null2String(fu.getParameter("encryptpassword"));
result = ps.saveMobileProp("hrmorder", hrmorder);
if(result) result = ps.saveMobileProp("isShowTerminal", isShowTerminal);
if(result) result = ps.saveMobileProp("wfscope", wfscope);
if(result) {
ArrayList wflist = null;
if("1".equals(wfscope) || "2".equals(wfscope)) wflist = Util.TokenizerString(wfids, ",");
ps.saveMobileProp("wfid", wflist);
}
application.removeAttribute("emobile_config_isShowTerminal");
if(result) result = ps.saveMobileProp("hrmbtnshow", hrmbtnshow);
if(result) result = ps.saveMobileProp("hrmorgbtnshow", hrmorgbtnshow);
if(result) result = ps.saveMobileProp("allPeopleshow", allPeopleshow);
if(result) result = ps.saveMobileProp("sameDepartment", sameDepartment);
if(result) result = ps.saveMobileProp("commonGroup", commonGroup);
if(result) result = ps.saveMobileProp("groupChat", groupChat);
if(result) result = ps.saveMobileProp("mysubordinateshow", mysubordinateshow);
if(result) result = ps.saveMobileProp("UntreatedFirst", UntreatedFirst);
if(result) result = ps.saveMobileProp("encryptpassword", encryptpassword);
if(result) tips = "<span style='color:green'>保存成功</span>";
}else{
tips = "<span style='color:green'>没有操作权限</span>";
}
%>
<!DOCTYPE html>
<html>
<head>
<style>
*{
font-size:15px;
font-family:"微软雅黑";
}
</style>
</head>
<body>
<div style='text-align: center;'><%=tips %></div>
</body>
</html>