138 lines
4.3 KiB
Plaintext
138 lines
4.3 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
p_cli_per_cd = ""
|
|
p_cli_per_cd = request("p_cli_per_cd")
|
|
p_cli_company_cd = request("p_cli_company_cd")
|
|
mod_cli = request("mod_cli")
|
|
x = request("x") 'project_lsit2_thanksmail에서 1로 보냄(수정완료 후 창을 닫기 위함)
|
|
|
|
query = " SELECT * "
|
|
query = query & " FROM V_CLIENT_PERSON "
|
|
query = query & " WHERE p_cli_per_cd='" & p_cli_per_cd & "' and p_cli_company_cd = '" & p_cli_company_cd & "' "
|
|
'Response.Write query
|
|
rsc.Open query, adoConn, 1
|
|
|
|
|
|
p_cli_depart = ""
|
|
p_cli_per_nm = ""
|
|
p_cli_per_com_tel = ""
|
|
p_cli_per_tel = ""
|
|
p_cli_per_email = ""
|
|
|
|
if p_cli_per_cd <> "" then
|
|
p_cli_depart = rsc("p_cli_depart")
|
|
p_cli_per_nm = rsc("p_cli_per_nm")
|
|
p_cli_per_com_tel = rsc("p_cli_per_com_tel")
|
|
p_cli_per_tel = rsc("p_cli_per_tel")
|
|
p_cli_per_email = rsc("p_cli_per_email")
|
|
end if
|
|
|
|
%>
|
|
<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 cancelit(a) {
|
|
if (a == 1)
|
|
{
|
|
self.close();
|
|
}
|
|
else
|
|
{
|
|
history.back();
|
|
}
|
|
}
|
|
|
|
function modit() {
|
|
if (document.pms.p_cli_per_nm.value.trim() == '') {
|
|
alert('Client 담당자를 작성하세요');
|
|
document.pms.p_cli_per_nm.value = '';
|
|
document.pms.p_cli_per_nm.focus();
|
|
return false;
|
|
}
|
|
document.pms.p_cli_per_nm.value = document.pms.p_cli_per_nm.value.trim();
|
|
|
|
/*if (document.pms.p_cli_per_com_tel.value.trim() == '' && document.pms.p_cli_per_tel.value.trim() == '' && document.pms.p_cli_per_email.value.trim() == '') {
|
|
alert('담당자의 회사전화, 핸드폰, 메일 중 1가지는 꼭 입력해야 합니다. ');
|
|
document.pms.p_cli_per_com_tel.value = '';
|
|
document.pms.p_cli_per_com_tel.focus();
|
|
return false;
|
|
}*/
|
|
document.pms.p_cli_depart.value = document.pms.p_cli_depart.value.trim();
|
|
|
|
if (document.pms.p_cli_per_cd.value == "") {
|
|
document.pms.action = 'cp_new_ok_2014.asp';
|
|
} else {
|
|
document.pms.action = 'cp_modi_ok_2014.asp';
|
|
}
|
|
document.pms.submit();
|
|
}
|
|
</script>
|
|
</head>
|
|
<!--meta http-equiv="refresh" content="300;url=onfile.asp"-->
|
|
<body>
|
|
<form name="pms" method="post">
|
|
|
|
<input type="hidden" name="p_cli_company_cd" value="<%=p_cli_company_cd%>">
|
|
<input type="hidden" name="p_cli_per_cd" value="<%=p_cli_per_cd%>">
|
|
<input type="hidden" name="mod_cli" value="<%=mod_cli%>">
|
|
<input type="hidden" name="x" value="<%=x%>">
|
|
|
|
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
|
|
<tr align="center" >
|
|
<td><font color="blue"><b>Client 부서</b></font></td>
|
|
<td>
|
|
<input class="input" type="text" size="20" name="p_cli_depart" value="<%=p_cli_depart%>">
|
|
</td>
|
|
</tr>
|
|
<tr align="center" height="20">
|
|
<td><font color="blue"><b>Client 담당자</b></font></td>
|
|
<td>
|
|
<input class="input" type="text" size="20" name="p_cli_per_nm" value="<%=p_cli_per_nm%>">
|
|
</td>
|
|
</tr>
|
|
<tr align="center" >
|
|
<td><font color="blue"><b>담당자 회사 전화</b></font></td>
|
|
<td>
|
|
<input class="input" type="text" size="20" name="p_cli_per_com_tel" value="<%=p_cli_per_com_tel%>">
|
|
</td>
|
|
</tr>
|
|
<tr align="center" >
|
|
<td><font color="blue"><b>담당자 핸드폰</b></font></td>
|
|
<td>
|
|
<input class="input" type="text" size="20" name="p_cli_per_tel" value="<%=p_cli_per_tel%>">
|
|
</td>
|
|
</tr>
|
|
<tr align="center" >
|
|
<td><font color="blue"><b>담당자 메일</b></font></td>
|
|
<td>
|
|
<input class="input" type="text" size="20" name="p_cli_per_email" value="<%=p_cli_per_email%>">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
|
|
<br>
|
|
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
|
|
<tr align="center">
|
|
<td colspan="99">
|
|
<%if p_cli_per_cd <> "" then %>
|
|
<img src="/images/common/btn_modify2.jpg" style="cursor:pointer" border="0" onClick="modit()" title = "수정">
|
|
<% else %>
|
|
<img src="/images/common/btn_save.jpg" style="cursor:pointer" border="0" onClick="modit()" title = "저장">
|
|
<% end if %>
|
|
|
|
<img src="/images/common/btn_cancel2.jpg" style="cursor:pointer" border="0" onClick="cancelit('<%=x%>')" title = "취소">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%
|
|
rsc.Close
|
|
set rsc = nothing
|
|
%> |