최초커밋
This commit is contained in:
143
project/cp_search_2014.asp
Normal file
143
project/cp_search_2014.asp
Normal file
@@ -0,0 +1,143 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
v = request("v")
|
||||
p_cli_company_cd = request("p_cli_company_cd")
|
||||
|
||||
if p_cli_company_cd = "" then
|
||||
alert4 "Client<6E><74> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʾҰų<D2B0> DB<44><42><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>"
|
||||
else
|
||||
query = "SELECT * "
|
||||
query = query & "FROM V_CLIENT_PERSON "
|
||||
query = query & "WHERE p_cli_company_cd = '" & p_cli_company_cd & "' "
|
||||
|
||||
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>
|
||||
Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ã<><C3A3>
|
||||
</title>
|
||||
<script language=javascript>
|
||||
|
||||
|
||||
function sltit(code,depart,name,com_tel,tel,email,v) {
|
||||
//code:cp_code, name:cp_name, x:cp_depart, w:page(1=modi, 2.3.4=search)
|
||||
if (v = 1) {
|
||||
opener.document.pms.p_cli_per_cd.value = code;
|
||||
opener.document.pms.p_cli_depart.value = depart;
|
||||
opener.document.pms.p_cli_per_nm.value = name;
|
||||
opener.document.pms.p_cli_per_com_tel.value = com_tel;
|
||||
opener.document.pms.p_cli_per_tel.value = tel;
|
||||
opener.document.pms.p_cli_per_email.value = email;
|
||||
if (email == "" && (tel == "" || com_tel == "")) {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9><EFBFBD><EFBFBD> <20><>ȯ <20>ÿ<EFBFBD><C3BF><EFBFBD> Client <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> \nEmail<69><6C> <20><EFBFBD><DEB4><EFBFBD><EFBFBD><EFBFBD>ȣ <20>Ǵ<EFBFBD> ȸ<><C8B8> <20><>ȭ<EFBFBD><C8AD>ȣ<EFBFBD><C8A3> <20>ʼ<EFBFBD><CABC>̹Ƿ<CCB9> \n<><6E><EFBFBD><EFBFBD><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
self.close();
|
||||
}
|
||||
|
||||
function search_cli() {
|
||||
//if (document.pms.cli_name.value.trim() == '') {
|
||||
// alert('Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
|
||||
// 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(count) {
|
||||
var p_cli_per_cd = "";
|
||||
if (count >= 2)
|
||||
{
|
||||
for (i = 1; i <= count; i++) {
|
||||
if (document.pms.mod_cli[i - 1].checked == true) {
|
||||
p_cli_per_cd = document.pms.mod_cli[i - 1].value;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (document.pms.mod_cli.checked == true)
|
||||
{
|
||||
p_cli_per_cd = document.pms.mod_cli.value;
|
||||
}
|
||||
}
|
||||
|
||||
if (p_cli_per_cd == "") {
|
||||
alert('Client <20><><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>');
|
||||
document.pms.mod_cli[0].focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
document.pms.action = 'cp_modi_2014.asp?p_cli_per_cd=' + p_cli_per_cd;
|
||||
document.pms.submit();
|
||||
}
|
||||
|
||||
function newit() {
|
||||
document.pms.action = 'cp_modi_2014.asp';
|
||||
document.pms.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<form name="pms" method="post">
|
||||
<input type="hidden" name="p_cli_company_cd" value="<%=p_cli_company_cd%>">
|
||||
<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="<22>߰<EFBFBD>" onClick="newit()">
|
||||
|
||||
<input type="button" value="<22><><EFBFBD><EFBFBD>" onClick="modit('<%=rsc.RecordCount%>')">
|
||||
</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 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font></td>
|
||||
<td width="80"><font color="blue"><b><3E>μ<EFBFBD><CEBC><EFBFBD></b></font></td>
|
||||
</tr>
|
||||
<%
|
||||
for i = 1 to rsc.RecordCount
|
||||
%>
|
||||
<tr align="center">
|
||||
<td><input type="radio" name="mod_cli" value="<%=rsc("p_cli_per_cd")%>">
|
||||
<input type="hidden" name="mod_cli_email" value="<%=rsc("p_cli_per_email") %>" />
|
||||
</td>
|
||||
<td>
|
||||
<a href="javascript:sltit('<%=rsc("p_cli_per_cd")%>','<%=rsc("p_cli_depart")%>','<%=rsc("p_cli_per_nm")%>','<%=rsc("p_cli_per_com_tel")%>','<%=rsc("p_cli_per_tel")%>','<%=rsc("p_cli_per_email")%>','<%=v%>')">
|
||||
<font color="blue"><%=rsc("p_cli_per_nm")%></font></a></td>
|
||||
|
||||
<td align="center"><%=rsc("p_cli_depart")%></td>
|
||||
</tr>
|
||||
<%
|
||||
rsc.MoveNext
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
<br>
|
||||
<font color="red">*</font> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <font color="red"><3E><><EFBFBD><EFBFBD></font><3E>Ϸ<EFBFBD><CFB7><EFBFBD> Client <20>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD> <br> <3B><><EFBFBD><EFBFBD> <20><>ư<EFBFBD><C6B0> <20><><EFBFBD><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD>.
|
||||
<%
|
||||
rsc.Close
|
||||
|
||||
end if 'if p_cli_company_cd = "" then
|
||||
set rsc = nothing
|
||||
%>
|
||||
Reference in New Issue
Block a user