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.
214 lines
7.3 KiB
214 lines
7.3 KiB
|
|
<% |
|
/********************************************************************************** |
|
프로그램명 : part_view.jsp |
|
프로그램설명 : |
|
작 성 자 : 조용준 |
|
작 성 일 : 04.06.10 |
|
최신변경일 : |
|
***********************************************************************************/ |
|
%> |
|
<%@ page contentType="text/html; charset=UTF-8"%> |
|
<%@ page import="kr.co.kihyun.beans.user.HttpSSOLogin"%> |
|
<%@ page import="kr.co.kihyun.beans.totsys.sysadm.part.PartUtil"%> |
|
<%@ page import="kr.co.kihyun.text.html.ServletUtil"%> |
|
<%@ page import="kr.co.kihyun.lang.Encoder"%> |
|
<%@ page import="kr.co.kihyun.moumi.Moumi"%> |
|
<%@ page import="kr.co.kihyun.lang.MString"%> |
|
<%@ page import="java.net.URLEncoder"%> |
|
|
|
<jsp:useBean id="partView" |
|
class="kr.co.kihyun.beans.totsys.sysadm.part.PartView" scope="page" /> |
|
|
|
<%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%> |
|
|
|
<% |
|
try{ |
|
/***** user Login check *****************/ |
|
if(!HttpSSOLogin.isLogin(request)){ |
|
String connURL="parent.location='/totsys/login/login.jsp';"; |
|
out.println(ServletUtil.getJavaScript(connURL)); |
|
return; |
|
} |
|
|
|
/********** session내의 userId **********/ |
|
String usID = ""; |
|
usID = HttpSSOLogin.getLoginID(request); |
|
|
|
/****** Parameter ******/ |
|
String partID = ""; |
|
String findOption = ""; |
|
String findWord = ""; |
|
String dirPath = URLEncoder.encode("<a href=\"/totsys/sysadm/part/part_list.jsp\" class=\"d11_blue\">기관관리</a>", "UTF-8"); |
|
String uri = URLEncoder.encode("./part_list.jsp?findOption="+findOption+"&findWord="+findWord, "UTF-8"); |
|
|
|
partID = clearXSS(request.getParameter("partID"),""); |
|
|
|
/****** part view data get ******/ |
|
String name = ""; |
|
String sysAuth = ""; |
|
String des = ""; |
|
String upperID = ""; |
|
|
|
//v2. 13.SQL 삽입 : partView.executeQuery()에서 prepare SQL 문으로 되어 있다. |
|
partView.executeQuery(partID); |
|
//================= |
|
|
|
name = partView.getName(); |
|
sysAuth = partView.getSysAuth(); |
|
des = partView.getDes(); |
|
upperID = partView.getUpperID(); |
|
|
|
if(des==null) |
|
des=""; |
|
%> |
|
|
|
<HTML> |
|
<HEAD> |
|
<TITLE><%=Moumi.getTitle()%></TITLE> |
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> |
|
<link rel="stylesheet" href="/totsys/common/css/text.css" |
|
type="text/css"> |
|
<script src="/totsys/common/js/rollover.js"></script> |
|
<SCRIPT language="javascript"> |
|
function partDel(){ |
|
if (confirm('정말 삭제하시겠습니까?')) { |
|
location.href="/servlet/kr.co.kihyun.beans.totsys.sysadm.part.HttpPartDeleter?id=<%=partID%>"; |
|
} |
|
} |
|
</SCRIPT> |
|
</HEAD> |
|
|
|
<body style='' BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 |
|
MARGINHEIGHT=0> |
|
<table width="100%" height="70" border="0" cellpadding="0" |
|
cellspacing="0"> |
|
|
|
<!---- top menu 시작 ----> |
|
<jsp:include page="/totsys/common/inc/sysadm/top/top.jsp" flush="true"> |
|
<jsp:param name="dirPath" value="<%= dirPath %>" /> |
|
</jsp:include> |
|
<!---- top menu 끝 ----> |
|
|
|
<tr> |
|
<td nowrap width="0"></td> |
|
<td valign="top"> |
|
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
|
|
<!--스타일시트--> |
|
<link rel="stylesheet" href="/totsys/common/css/kecttep.css" |
|
type="text/css"> |
|
|
|
<!-- 뉴타이틀 --> |
|
<jsp:include page="/totsys/common/inc/title/title.jsp" flush="true" /> |
|
<!-- 뉴타이틀 --> |
|
|
|
<!---- topbar 버튼 시작 ----> |
|
<tr class="toolbar"> |
|
<td align="left"> |
|
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
<tr> |
|
<td> |
|
<table border="0" cellspacing="0" cellpadding="0"> |
|
<!---- 버튼 (기관목록) ----> |
|
<tr> |
|
<td><A href="part_modify.jsp?partID=<%=partID%>"><img |
|
src="/totsys/common/images/bt_part_modify.gif"></A></td> |
|
<td width="3"> </td> |
|
<td><A onclick="partDel();" href="#"><img |
|
src="/totsys/common/images/bt_part_del.gif"></A></td> |
|
</tr> |
|
</table> |
|
</td> |
|
<!--td align="right"> |
|
<table border="0" cellspacing="0" cellpadding="0"--> |
|
<!---- 버튼 (기관변경, 기관삭제) ----> |
|
<!--tr> |
|
<td><A href="part_modify.jsp?partID=<%=partID%>"><img src="/totsys/common/images/bt_part_modify.gif"></A></td> |
|
<td width="5"> </td> |
|
<td><A onclick="partDel();" href="#"><img src="/totsys/common/images/bt_part_del.gif"></A></td> |
|
</tr> |
|
</table> |
|
</td--> |
|
</tr> |
|
</table> |
|
</td> |
|
</tr> |
|
<!---- topbar 버튼 끝 ----> |
|
|
|
|
|
|
|
<tr> |
|
<td height="31" valign="top"> |
|
<table border="1px" class="kecttep_list_table" bordercolor="#e3e3e3" |
|
width="100%" cellpadding="0" cellspacing="0"> |
|
<!---- 기관 ID ----> |
|
<tr> |
|
<td nowrap width="150" class="kecttep_tdmenu" |
|
style="padding-left: 10;"><img |
|
src="/totsys/common/images/icon.gif" align="absmiddle"> <b>기관 |
|
ID</b></td> |
|
<td class="kecttep_last_graytd" |
|
style="padding-left: 10; padding-top: 4;"><%=partID%> </td> |
|
</tr> |
|
<!---- 기관명 ----> |
|
<tr> |
|
<td width="150" height="31" class="kecttep_tdmenu" |
|
style="padding-left: 10;"><img |
|
src="/totsys/common/images/icon.gif" align="absmiddle"> <b>기관명</b></td> |
|
<td class="kecttep_last_graytd" |
|
style="padding-left: 10; padding-top: 4;"><%=name%> </td> |
|
</tr> |
|
<!---- 기관권한 ----> |
|
<tr> |
|
<td width="150" height="31" class="kecttep_tdmenu" |
|
style="padding-left: 10;"><img |
|
src="/totsys/common/images/icon.gif" align="absmiddle"> <b>기관권한</b></td> |
|
<td class="kecttep_last_graytd" |
|
style="padding-left: 10; padding-top: 4;"><%=PartUtil.getPartAuth(sysAuth)%> </td> |
|
</tr> |
|
<!---- 상위참조 부서 ----> |
|
<tr> |
|
<td width="150" height="31" class="kecttep_tdmenu" |
|
style="padding-left: 10;"><img |
|
src="/totsys/common/images/icon.gif" align="absmiddle"> <b>상위부서</b></td> |
|
<td class="kecttep_last_graytd" |
|
style="padding-left: 10; padding-top: 4;"><%=partView.getUpperName(upperID)%> </td> |
|
</tr> |
|
<!---- 설명 ----> |
|
<tr> |
|
<td width="150" height="31" class="kecttep_tdmenu" |
|
style="padding-left: 10;"><img |
|
src="/totsys/common/images/icon.gif" align="absmiddle"> <b>설명</b></td> |
|
<td class="kecttep_last_graytd" |
|
style="padding-left: 10; padding-top: 10; padding-top: 4; padding-bottom: 10;"> |
|
<% |
|
out.println(MString.checkNull(MString.replaceString(des,"\r\n","<br>"))); |
|
%> </td> |
|
</tr> |
|
</table> |
|
</td> |
|
</tr> |
|
|
|
|
|
</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.오류메세지를 통한 정보 노출(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{ |
|
} |
|
%>
|
|
|