37 lines
903 B
Plaintext
37 lines
903 B
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
Response.CharSet="euc-kr"
|
|
Response.AddHeader "Pragma","no-cache"
|
|
Response.AddHeader "cache-control", "no-staff"
|
|
Response.Expires = -1
|
|
|
|
p_cli_company_nm = unescape(request("comp_name")) '새로 추가될 Client Name
|
|
|
|
query = "SELECT * "
|
|
query = query & "FROM T_CLIENT_COMP "
|
|
query = query & "WHERE p_cli_company_nm = '" & p_cli_company_nm & "' "
|
|
|
|
Rs.Open query, adoConn, 1
|
|
if Rs.RecordCount > 0 then
|
|
tmp_result = "1"
|
|
else
|
|
tmp_result = "0"
|
|
end if
|
|
Rs.Close
|
|
|
|
if tmp_result = "0" then
|
|
query = " INSERT INTO T_CLIENT_COMP "
|
|
query = query & " (p_cli_company_nm, p_cli_company_yn) "
|
|
query = query & " VALUES "
|
|
query = query & " ('" & p_cli_company_nm & "', 'Y')"
|
|
|
|
set dbin = server.CreateObject("ADODB.CONNECTION")
|
|
dbin.Open adoConn
|
|
dbin.Execute query
|
|
dbin.Close
|
|
|
|
response.write "1" ' 등록 성공
|
|
else
|
|
response.write "2" ' 이미 등록
|
|
end if
|
|
%> |