60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
p_cli_company_cd = request("p_cli_company_cd") '이름 검색에 사용된 Client Name
|
|
p_cli_company_nm = request("p_cli_company_nm")
|
|
|
|
|
|
'새로 추가될 Client Name
|
|
query = "SELECT * "
|
|
query = query & "FROM T_CLIENT_COMP "
|
|
query = query & "WHERE p_cli_company_nm = '" & p_cli_company_nm & "' "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
tmp_result = "1"
|
|
else
|
|
tmp_result = "0"
|
|
end if
|
|
rsc.Close
|
|
|
|
if tmp_result = "0" then
|
|
|
|
query = "UPDATE T_CLIENT_COMP "
|
|
query = query & "SET "
|
|
query = query & "p_cli_company_nm ='" & p_cli_company_nm & "', "
|
|
query = query & "p_cli_company_yn ='y' "
|
|
query = query & "WHERE p_cli_company_cd='" & p_cli_company_cd & "' "
|
|
|
|
'Response.Write query
|
|
set dbin = server.CreateObject("ADODB.CONNECTION")
|
|
dbin.Open adoConn
|
|
dbin.Execute query
|
|
dbin.Close
|
|
%>
|
|
<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 goit() {
|
|
document.pms.action = 'cli_search_2014.asp';
|
|
document.pms.submit();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onLoad="goit()">
|
|
<form name="pms" method="post">
|
|
|
|
<input type="hidden" name="p_cli_company_nm" value="<%=p_cli_company_nm%>">
|
|
|
|
</body>
|
|
</html>
|
|
<%
|
|
else
|
|
alert2 "이미 등록되어 있는 이름입니다"
|
|
end if
|
|
set rsc = nothing
|
|
%> |