137 lines
5.2 KiB
Plaintext
137 lines
5.2 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
Dim nm_obj, cd_obj 'opener에서 받을 객체
|
|
nm_obj = request("nm_obj")
|
|
cd_obj = request("cd_obj")
|
|
if nm_obj = "" or cd_obj = "" then
|
|
alert4 "잘못된 접근입니다."
|
|
else
|
|
query = ""
|
|
query = query & " SELECT p_team_name as team_name, p_no, p_name "
|
|
query = query & " FROM V_person P LEFT OUTER JOIN N_Rank R ON P.p_rank_now = R.R_Code AND flag = 1"
|
|
query = query & " WHERE p_resign='0' AND krc_in_date IS NOT NULL"
|
|
query = query & " ORDER BY p_depart_now, p_team_now, CASE WHEN R.ID = 12 THEN 19 ELSE R.ID END, krc_in_date"
|
|
rsc.Open query, adoConn, 1
|
|
%>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
|
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
|
|
<style>
|
|
td, input[type='text']{
|
|
-webkit-touch-callout: none; /* iOS Safari */
|
|
-webkit-user-select: none; /* Safari */
|
|
-khtml-user-select: none; /* Konqueror HTML */
|
|
-moz-user-select: none; /* Firefox */
|
|
-ms-user-select: none; /* Internet Explorer/Edge */
|
|
user-select: none; /* Non-prefixed version, currently
|
|
supported by Chrome and Opera */
|
|
}
|
|
</style>
|
|
<title>
|
|
KRI 인원 선택
|
|
</title>
|
|
<script type="text/javascript" language="javascript">
|
|
function sel_person(p_no, p_name) {
|
|
var f = document.per_sel;
|
|
if (f.per_nm_list.value == "") {
|
|
f.per_nm_list.value = p_name;
|
|
f.per_cd_list.value = p_no;
|
|
} else {
|
|
f.per_nm_list.value = f.per_nm_list.value + "," + p_name;
|
|
f.per_cd_list.value = f.per_cd_list.value + "," + p_no;
|
|
}
|
|
document.getElementById(p_no).innerHTML = " ";
|
|
}
|
|
function complete_sel() {
|
|
if (document.per_sel.per_cd_list.value != "") {
|
|
opener.document.<%=nm_obj %>.value = document.per_sel.per_nm_list.value;
|
|
opener.document.<%=cd_obj %>.value = document.per_sel.per_cd_list.value;
|
|
self.close();
|
|
} else {
|
|
alert("인원을 선택해주세요");
|
|
}
|
|
}
|
|
function delete_sel() {
|
|
location.href = "./krc_search.asp?nm_obj=<%= nm_obj%>&cd_obj=<%= cd_obj%>";
|
|
}
|
|
function clear_form() {
|
|
var f = document.per_sel;
|
|
f.per_nm_list.value = "";
|
|
f.per_cd_list.value = "";
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="clear_form();">
|
|
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:895px;">
|
|
<tr><td align="center" style="font-family:'malgun gothic'; font-size:14px;font-weight:bold;background-color:#F2F2F2;padding:3px 10px;">KRI 인원 선택</td></tr>
|
|
</table>
|
|
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:895px;">
|
|
<tr>
|
|
<td style="vertical-align:top;">
|
|
<table border="0" cellspacing="1" cellpadding="0">
|
|
<tr>
|
|
<td align="center" style="font-weight:bold;border:1px solid gray;width:100px;color:#08298A;">
|
|
<%=rsc("team_name") %>
|
|
</td>
|
|
<%
|
|
Dim depart_name
|
|
depart_name = ""
|
|
depart_name = rsc("team_name")
|
|
Do While Not rsc.Eof
|
|
if depart_name <> rsc("team_name") then
|
|
depart_name = rsc("team_name")
|
|
%>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<table border="0" cellspacing="1" cellpadding="0">
|
|
<tr>
|
|
<td align="center" style="font-weight:bold;border:1px solid gray;width:100px;color:#08298A;">
|
|
<%=rsc("team_name") %>
|
|
</td>
|
|
<%
|
|
end if
|
|
%>
|
|
<td align="center" style="font-weight:bold;padding:2 2 2 2;border:1px solid gray;width:60px;" id="<%=rsc("p_no") %>">
|
|
<a href="javascript:sel_person('<%=rsc("p_no") %>', '<%=rsc("p_name") %>');"><%=rsc("p_name") %></a>
|
|
</td>
|
|
<%
|
|
rsc.MoveNext
|
|
Loop
|
|
rsc.Close
|
|
set rsc = nothing
|
|
%>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
<form name="per_sel" method="post">
|
|
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:895px;">
|
|
<tr>
|
|
<td align="center">
|
|
<input type="text" value="" name="per_nm_list" id="per_nm_list" style="width:90%;cursor:plain;" readonly onFocus="this.blur();" />
|
|
<input type="hidden" value="" name="per_cd_list" id="per_cd_list" /><br />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center">
|
|
<input type="button" value="선택 완료" onclick="complete_sel();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />
|
|
<input type="button" value="선택 내용 삭제" onclick="delete_sel();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</body>
|
|
</html>
|
|
<%
|
|
end if
|
|
%> |