142 lines
3.5 KiB
Plaintext
142 lines
3.5 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
v = request("v")
|
|
p_cli_code = request("p_cli_code")
|
|
|
|
if p_cli_code = "" then
|
|
alert4 "Client를 선택하지 않았거나 DB오류입니다"
|
|
else
|
|
query = "SELECT * "
|
|
query = query & "FROM Client_People "
|
|
query = query & "WHERE c_code = '" & p_cli_code & "' "
|
|
query = query & "ORDER BY cp_name "
|
|
|
|
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">
|
|
<title>
|
|
클라이언트 담당자 찾기
|
|
</title>
|
|
<script language=javascript>
|
|
|
|
|
|
function sltit(z,y,x,w) {
|
|
//z:cp_code, y:cp_name, x:cp_depart, w:page(1=modi, 2.3.4=search)
|
|
if (w == 1) {
|
|
|
|
opener.document.pms.cp_code.value = z;
|
|
opener.document.pms.p_cli_name.value = y;
|
|
opener.document.pms.p_cli_depart.value = x;
|
|
}
|
|
|
|
self.close();
|
|
}
|
|
|
|
function search_cli() {
|
|
//if (document.pms.cli_name.value.trim() == '') {
|
|
// alert('클라이언트명을 작성해 주세요');
|
|
// document.pms.cli_name.value = '';
|
|
// document.pms.cli_name.focus();
|
|
// return false;
|
|
//}
|
|
|
|
document.pms.cli_name.value = document.pms.cli_name.value.trim();
|
|
//document.pms.action = 'search_cli.asp';
|
|
document.pms.submit();
|
|
}
|
|
|
|
function modit(z, x) {
|
|
var tmp_ok = 0;
|
|
|
|
if (z >= 2)
|
|
{
|
|
for (i = 1; i <= z; i++) {
|
|
if (document.pms.mod_cli[i-1].checked == true) {
|
|
tmp_ok = 1;
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (document.pms.mod_cli.checked == true)
|
|
{
|
|
tmp_ok = 1;
|
|
}
|
|
}
|
|
|
|
if (tmp_ok != 1) {
|
|
alert('Client 담당자를 선택해 주세요');
|
|
document.pms.mod_cli[0].focus();
|
|
return false;
|
|
}
|
|
|
|
document.pms.action = 'cp_modi.asp?p_cli_code='+x;
|
|
document.pms.submit();
|
|
}
|
|
|
|
function newit(a) {
|
|
document.pms.action = 'cp_new.asp?p_cli_code='+a;
|
|
document.pms.submit();
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<form name="pms" method="post">
|
|
|
|
<div style="position: absolute; left: 10px; top: 4px; z-index: 10;">
|
|
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
|
|
<tr align="right">
|
|
<td>
|
|
<input type="button" value="추가" onClick="newit('<%=p_cli_code%>')">
|
|
|
|
<input type="button" value="수정" onClick="modit('<%=rsc.RecordCount%>','<%=p_cli_code%>')">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div style="position: absolute; left: 10px; top: 34px; z-index: 10;">
|
|
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
|
|
<tr align="center" height="20">
|
|
<td width="20"> </td>
|
|
<td><font color="blue"><b>Client 담당자</b></font></td>
|
|
<td width="80"><font color="blue"><b>부서명</b></font></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<br>
|
|
<div style="width: 335px; height: 250px; overflow-y: auto;">
|
|
<table border="1" cellspacing="0" cellpadding="0" width="335">
|
|
<tr align="center" height="20">
|
|
<td width="20"> </td>
|
|
<td><font color="blue"><b>Client 담당자</b></font></td>
|
|
<td width="80"><font color="blue"><b>부서명</b></font></td>
|
|
</tr>
|
|
<%
|
|
for i = 1 to rsc.RecordCount
|
|
%>
|
|
<tr align="center">
|
|
<td><input type="radio" name="mod_cli" value="<%=rsc("cp_code")%>"></td>
|
|
<td> <a href="javascript:sltit('<%=rsc("cp_code")%>','<%=rsc("cp_name")%>','<%=rsc("cp_depart")%>','<%=v%>')"><font color="blue"><%=rsc("cp_name")%></font></a></td>
|
|
<td align="center"><%=rsc("cp_depart")%></td>
|
|
</tr>
|
|
<%
|
|
rsc.MoveNext
|
|
next
|
|
%>
|
|
</table>
|
|
</div>
|
|
<br>
|
|
<font color="red">*</font> 내용을 <font color="red">수정</font>하려면 Client 코드앞의 라디오버튼을 선택하고 <br> 수정 버튼을 눌러 주세요.
|
|
<%
|
|
rsc.Close
|
|
|
|
end if 'if p_cli_code = "" then
|
|
set rsc = nothing
|
|
%> |