You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

402 lines
28 KiB

<%@ page contentType="text/html; charset=euc-kr"%>
<%@ page import="kr.co.kihyun.lang.MString"%>
<%@ page import="kr.co.kihyun.lang.Encoder"%>
<%@ page import="kr.co.kihyun.moumi.MoumiConfig"%>
<%@ page import="kr.co.kihyun.text.html.ServletUtil"%>
<%@ page import="kr.co.kihyun.beans.user.HttpSSOLogin"%>
<%@ page import="java.net.URLEncoder"
import="java.util.Date"
import="java.text.SimpleDateFormat" import="kr.co.kihyun.util.MDate"
import="kr.co.kihyun.lang.MLong" import="kr.co.kihyun.lang.MString"
import="kr.co.kihyun.moumi.Moumi" import="kr.co.kihyun.moumi.MoumiUtil"
import="kr.co.kihyun.beans.user.HttpSSOLogin"
import="kr.co.kihyun.beans.user.UserGroup"
import="kr.co.kihyun.beans.user.User"
import="kr.co.kihyun.beans.user.UserGroupList"
import="kr.co.kihyun.beans.user.Dept"
import="kr.co.kihyun.lang.Encoder"
import="kr.co.kihyun.beans.entity.MUser"
import="java.util.List"
import="javax.jdo.PersistenceManager"
import="javax.jdo.Transaction"
import="kr.co.kihyun.beans.entity.*"
import="kr.co.kihyun.beans.entity.util.*"
import="kr.co.kihyun.beans.entity.UserPart"
import="java.util.HashMap"
import="java.util.Map"
import="kr.co.kihyun.moumi.Moumi"
import="kr.co.kihyun.beans.user.MultiCheck"
import="kr.co.kihyun.beans.user.DeptAdd"
%>
<%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%>
<% PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager());
Transaction tx = pm.currentTransaction();
try {
/**
* ********** Parameter ***********
*/
String strPage = clearXSS(request.getParameter("strPage"), "");
String findOption = clearXSS(MString.checkNull(request.getParameter("findOption")), "");
String findWord = clearXSS(Encoder.toJava(request.getParameter("findWord")), "");
String userID = clearXSS(Encoder.toJava(request.getParameter("userID")), "");
String returnSysAuth = clearXSS(Encoder.toJava(request.getParameter("sysAuth")), "");
/**
* *** user Login check ****************
*/
if (!HttpSSOLogin.isLogin(request)) {
String connURL = "parent.location='/totsys/login/login.jsp';";
out.println(ServletUtil.getJavaScript(connURL));
return;
}
/**
* ******** session<EFBFBD><EFBFBD><EFBFBD><EFBFBD> userId *********
*/
String usID = HttpSSOLogin.getLoginID(request);
tx.begin();
/**
* ********** User values ***********
*/
MUser mUser = pm.getObjectById(MUser.class, userID);
String passwd = mUser.getPassword();
String userName = mUser.getName(pm);
String email = mUser.getEmail();
String phone = mUser.getPhone();
SysAuth sysAuth = mUser.getSysAuth();
String deptID = mUser.getUpperDept(pm).getId();
String deptName = mUser.getUpperDept(pm).getName();
String dutyName = mUser.getDutyName();
Long priority = mUser.getPriority();
String sDualPostYn = mUser.getDualPostYn(); //2014.08.19 Add by KWON,HAN
String sModYn = mUser.getModYn(); //2014.08.19 Add by KWON,HAN
String[] sDeptName;
String sDualPostDeptName = "";
String[] sOriginDeptFlag;
Integer count = 0;
DeptAdd dept = new DeptAdd();
int grade = dept.getGrade(userID, deptID); //2:<EFBFBD>ʵ<EFBFBD><EFBFBD>б<EFBFBD>
int foundation = dept.getFoundation(userID, deptID); //2:<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
tx.rollback();
%>
<HTML>
<HEAD>
<TITLE><%=MoumiConfig.getTitle()%></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=euc-kr">
<link rel="stylesheet" href="/totsys/common/css/text.css"
type="text/css">
<link rel="stylesheet" href="/totsys/common/css/kecttep.css"
type="text/css">
<link rel="stylesheet" href="/totsys/common/css/SquareButtons.css"
type="text/css">
<script src="/totsys/common/js/rollover.js"></script>
<script src="/totsys/common/js/popup.js"></script>
<script src="/totsys/common/js/find.js"></script>
<script src="/totsys/common/js/mouse.js"></script>
<script type="text/javascript" src="/test/jquery-1.6.4.js"></script>
<SCRIPT language="javascript">
function userModify() {
if (confirm("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<EFBFBD><EFBFBD>ϱ<EFBFBD>?"))
{
dform.submit();
}
}
</SCRIPT>
<style>
td {
padding: 1 2 1 2;
}
</style>
</HEAD>
<body style='' BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0
MARGINHEIGHT=0>
<table width="100%" height="70" border="0" cellpadding="0"
cellspacing="0">
<jsp:include page="/totsys/common/inc/sysadm/top/top.jsp" flush="true" />
<tr>
<td nowrap width="0"></td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="toolbar">
<td align="right">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- <a class="simplebutton" href="#"
onclick="<% if (!MString.isNull(userID) && SysAuth.TOTPER == sysAuth || SysAuth.SUB_SYSADM == sysAuth || SysAuth.SYSADM == sysAuth) {%>userModify();<%}%>">
<span class="ok"><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.info")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.change")%></span>
</a>-->
<a href="#" onclick="<% if (!MString.isNull(userID) && SysAuth.TOTPER == sysAuth || SysAuth.SUB_SYSADM == sysAuth || SysAuth.SYSADM == sysAuth) {%>userModify();<%}%>">
<img src="/totsys/common/images/bt_usermodi.gif" alt="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ں<EFBFBD><EFBFBD><EFBFBD>" />
</a>
</td>
</tr>
</table>
</td>
</tr>
<form name="dform" action="/servlet/kr.co.kihyun.beans.user.HttpUserModify" method="post">
<input type="hidden" name="userID" value="<%=URLEncoder.encode(userID, "UTF-8")%>">
<tr>
<td height="31" valign="top">
<table border="1px" class="kecttep_list_table" bordercolor="#e3e3e3"
width="100%" cellpadding="0" cellspacing="0">
<!---- <EFBFBD><EFBFBD><EFBFBD>̵<EFBFBD> ---->
<tr>
<td width="100" height="31" class="kecttep_tdmenu" style="padding-left: 10px;">
<img src="/totsys/common/images/icon.gif" align="middle">&nbsp;&nbsp;<b>ID</b>
</td>
<td class="kecttep_last_graytd" style="padding-left: 10px;">&nbsp;<%= MString.checkNull(userID)%></td>
</tr>
<!---- <EFBFBD><EFBFBD><EFBFBD>й<EFBFBD>ȣ---->
<!--tr>
<td width="150" height="31" class="kecttep_tdmenu" style="padding-left:10;"><img src="/totsys/common/images/icon.gif" align="middle">&nbsp;&nbsp;<b><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.password")%></b></td>
<td bgcolor="F8F8F8" style="padding-left:10;"><input type="password" name="passwd" class=inputtxt value="<%= MString.checkNull(passwd)%>" ></td>
</tr-->
<!---- <EFBFBD≯<EFBFBD> ---->
<tr>
<td height="31" class="kecttep_tdmenu" style="padding-left: 10;"><img
src="/totsys/common/images/icon.gif" align="middle">&nbsp;&nbsp;<b><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.userName")%></b></td>
<td class="kecttep_last_graytd" style="padding-left: 10;">&nbsp;<%= MString.checkNull(userName)%></td>
</tr>
<!---- <EFBFBD>Ҽӱ<EFBFBD><EFBFBD><EFBFBD>/<EFBFBD>μ<EFBFBD> ---->
<tr>
<td height="31" class="kecttep_tdmenu" style="padding-left: 10;"><img
src="/totsys/common/images/icon.gif" align="middle">&nbsp;&nbsp;<b><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.belongTo")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.coporation")%>/<%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.devision")%></b></td>
<td class="kecttep_last_graytd" style="padding-left: 10;">&nbsp;<%= MString.checkNull(deptName)%></td>
</tr>
<%
if (count > 1) { //2014.08.20 Add by KWON,HAN
%>
<!---- <EFBFBD><EFBFBD><EFBFBD>Ӻμ<EFBFBD> ---->
<tr>
<td height="31" class="kecttep_tdmenu" style="padding-left: 10;"><img
src="/totsys/common/images/icon.gif" align="middle">&nbsp;&nbsp;<b><%=Moumi.getMessageBundle().getString("moumi.message.totsys.login.user.popup_dept_jsp.dual_post")%><%=Moumi.getMessageBundle().getString("moumi.message.doc.Devision")%></b></td>
<td class="kecttep_last_graytd" style="padding-left: 10;">&nbsp;<%= MString.checkNull(sDualPostDeptName)%></td>
</tr>
<%
}
%>
<!---- <EFBFBD><EFBFBD>ȭ<EFBFBD><EFBFBD>ȣ---->
<tr>
<td height="31" class="kecttep_tdmenu" style="padding-left: 10;"><img
src="/totsys/common/images/icon.gif" align="middle">&nbsp;&nbsp;<b><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.telNumber")%></b></td>
<td class="kecttep_last_graytd" style="padding-left: 10;">&nbsp;<input type="text" name="phone" class=inputtxt value="<%=MString.checkNull(phone)%>" align="center"></td>
</tr>
<!---- E-MAIL ---->
<tr>
<td height="31" class="kecttep_tdmenu" style="padding-left: 10;"><img
src="/totsys/common/images/icon.gif" align="middle">&nbsp;&nbsp;<b>E-MAIL</b></td>
<td class="kecttep_last_graytd" style="padding-left: 10;">&nbsp;<input type="text" name="email" class=inputtxt value="<%= MString.checkNull(email)%>" align="center"></td>
</tr>
<!---- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---->
<!--
<tr>
<td height="31" class="kecttep_tdmenu" style="padding-left: 10;"><img
src="/totsys/common/images/icon.gif" align="middle">&nbsp;&nbsp;<b><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.position")%><%=MoumiConfig.getMessageBundle().getString("moumi.message.tot_doc.name")%></b></td>
<td class="kecttep_last_graytd" style="padding-left: 10;">&nbsp;<%= MString.checkNull(dutyName)%></td>
</tr>
-->
<!---- <EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD> ---->
<!---- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---->
<tr>
<td height="31" class="kecttep_tdmenu" style="padding-left: 10;"><img
src="/totsys/common/images/icon.gif" align="middle">&nbsp;&nbsp;<b><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></td>
<td class="kecttep_last_graytd" style="padding-left: 10;">
&nbsp;<%= sysAuth.toString()%>
</td>
</tr>
<!---- <EFBFBD><EFBFBD><EFBFBD>Ѽ<EFBFBD><EFBFBD><EFBFBD> ---->
<tr>
<td height="31" class="kecttep_tdmenu" style="padding-left: 10;"><img
src="/totsys/common/images/icon.gif" align="middle">&nbsp;&nbsp;<b><EFBFBD><EFBFBD><EFBFBD>Ѽ<EFBFBD><EFBFBD><EFBFBD></b></td>
<td class="kecttep_last_graytd" style="padding-left: 10;">
<%
// if(HttpSSOLogin.getSysAuth(request) != Moumi.SYSADM){
%>
<!--// <select name="findOption" class="inputtxt">
<option value="7" <%if (returnSysAuth.equals("7")) {%>selected<%}%>><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.coporation_system_adm")%></option>
<option value="2" <%if (returnSysAuth.equals("2")) {%>selected<%}%>><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.upper_totper")%></option>
</select>//-->
<%
// }else{
%>
<!--// <select name="findOption" class="inputtxt">
<option value="9" <%if (returnSysAuth.equals("9")) {%>selected<%}%>><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.sysadm")%></option>
<option value="7" <%if (returnSysAuth.equals("7")) {%>selected<%}%>><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.coporation_system_adm")%></option>
<option value="2" <%if (returnSysAuth.equals("2")) {%>selected<%}%>><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.upper_totper")%></option>
</select>//-->
<%
// }
%>
<%
if (HttpSSOLogin.getSysAuth(request) != Moumi.SYSADM) {
/*
REPOPER("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
, SUB_TOTPER("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
, TOTPER("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
, DUMMY1("DUMMY1")
, PART_REPOADM("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
, REPOADM("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
, SUB_TOTADM("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
, SUB_SYSADM("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ý<EFBFBD><EFBFBD>۰<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
, TOTADM("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
, SYSADM("<EFBFBD>ý<EFBFBD><EFBFBD>۰<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
*/
String tmpAuth = sysAuth.toString();
tmpAuth = tmpAuth.replace(" ", "");
if (tmpAuth.equals(sysAuth.TOTPER.toString())) {
returnSysAuth = "2";
} else if (tmpAuth.equals(sysAuth.SUB_SYSADM.toString())) {
returnSysAuth = "7";
} else if (tmpAuth.equals(sysAuth.SYSADM.toString())) {
returnSysAuth = "9";
}
%>
<%
if (returnSysAuth.equals("7")) {
%>
<input type=radio name=findOption value=7 checked><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.coporation_system_adm")%>
<input type=radio name=findOption value=2><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.upper_totper")%>
<%
} else if (returnSysAuth.equals("2")) {
%>
<input type=radio name=findOption value=7><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.coporation_system_adm")%>
<input type=radio name=findOption value=2 checked><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.upper_totper")%>
<%
} else {
%>
<input type=radio name=findOption value=9 checked><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.sysadm")%>
<%
}
%>
<%
} else { //Moumi.SYSADM <EFBFBD≯<EFBFBD>
String tmpAuth2 = sysAuth.toString();
tmpAuth2 = tmpAuth2.replace(" ", "");
if (tmpAuth2.equals(sysAuth.TOTPER.toString())) {
returnSysAuth = "2";
} else if (tmpAuth2.equals(sysAuth.SUB_SYSADM.toString())) {
returnSysAuth = "7";
} else if (tmpAuth2.equals(sysAuth.SYSADM.toString())) {
returnSysAuth = "9";
}
%>
<%
if (returnSysAuth.equals("9")) {
%>
<input type=radio name=findOption value=9 checked><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.sysadm")%>
<input type=radio name=findOption value=7><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.coporation_system_adm")%>
<input type=radio name=findOption value=2><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.upper_totper")%>
<%
} else if (returnSysAuth.equals("7")) {
%>
<input type=radio name=findOption value=9><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.sysadm")%>
<input type=radio name=findOption value=7 checked><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.coporation_system_adm")%>
<input type=radio name=findOption value=2><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.upper_totper")%>
<%
} else if (returnSysAuth.equals("2")) {
%>
<input type=radio name=findOption value=9><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.sysadm")%>
<input type=radio name=findOption value=7><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.coporation_system_adm")%>
<input type=radio name=findOption value=2 checked><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.upper_totper")%>
<%
} else {
%>
<input type=radio name=findOption value=9><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.sysadm")%>
<input type=radio name=findOption value=7><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.coporation_system_adm")%>
<input type=radio name=findOption value=2><%=Moumi.getMessageBundle().getString("moumi.message.tot_doc.upper_totper")%>
<%
}
%>
<%}%>
</td>
</tr>
<!---- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ġ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> : 2014.08.19 Add By KWON,HAN ---->
<%
if (grade == 2 & foundation == 2) { //2:<EFBFBD>ʵ<EFBFBD><EFBFBD>б<EFBFBD> AND 2:<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
%>
<tr>
<td height="31" class="kecttep_tdmenu" style="padding-left: 10;"><img
src="/totsys/common/images/icon.gif" align="middle">&nbsp;&nbsp;<b><%=Moumi.getMessageBundle().getString("moumi.message.totsys.sysadm.user.user_view_jsp.establish")%><%=Moumi.getMessageBundle().getString("moumi.message.grade.pre")%>&nbsp;<%=Moumi.getMessageBundle().getString("moumi.message.totsys.login.user.popup_dept_jsp.dual_post")%></b></td>
<td class="kecttep_last_graytd" style="padding-left: 10;">
<%
if (sDualPostYn.equals("Y")) {
%>
<input type=radio name=rdDualPostYn value='Y' checked ><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<input type=radio name=rdDualPostYn value='N' ><EFBFBD>Ұ<EFBFBD><EFBFBD><EFBFBD>
<%
} else {
%>
<input type=radio name=rdDualPostYn value='Y' ><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<input type=radio name=rdDualPostYn value='N' checked ><EFBFBD>Ұ<EFBFBD><EFBFBD><EFBFBD>
<%
}
%>
</td>
</tr>
<%
}
%>
<!---- <EFBFBD>λ<EFBFBD><EFBFBD>̵<EFBFBD> <EFBFBD>ڷ<EFBFBD><EFBFBD>̰<EFBFBD> : 2014.08.19 Add By KWON,HAN ---->
<tr>
<td height="31" class="kecttep_tdmenu" style="padding-left: 10;"><img
src="/totsys/common/images/icon.gif" align="middle">&nbsp;&nbsp;<b><%=Moumi.getMessageBundle().getString("moumi.message.totsys.sysadm.user.user_view_jsp.mod_yn")%></b></td>
<td class="kecttep_last_graytd" style="padding-left: 10;">
<%
if (sModYn.equals("Y")) {
%>
&nbsp;<font color="#FF0000"><b><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դϴ<EFBFBD></b></font>
<%
} else {
%>
&nbsp;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڰ<EFBFBD> <EFBFBD>ƴմϴ<EFBFBD>.
<%
}
%>
</td>
</tr>
</table>
</td>
</tr>
</form>
</table>
</td>
<td nowrap width="10"></td>
</tr>
<!------------------------------- top menu start ------------------------------->
<%@ include file="/totsys/common/inc/buttom/buttom.jsp"%>
<!------------------------------- top menu end ------------------------------->
</table>
</BODY>
</HTML>
<%
} catch (Exception ex) {
//38.<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޼<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>(getMessage)_CWE-209 : Update by YOUNGJUN,CHO
ex.printStackTrace();
//out.println(ex);
//out.println("<html><body style='overflow=auto' bgcolor='white'><h1>Can't contact servlet runner</h1><br><br>Message : " + ex.getMessage() + "</body></html>");
//out.println("<META HTTP-EQUIV='refresh' CONTENT='0.1; URL=/error/exception.jsp'>");
//================================================
} finally {
if (tx.isActive()) {
tx.rollback();
}
pm.close();
}
%>