최초커밋
This commit is contained in:
34
project/check_client_ajax.asp
Normal file
34
project/check_client_ajax.asp
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<OBJECT RUNAT=Server PROGID=ADODB.Recordset id=rsp></OBJECT>
|
||||
<%
|
||||
|
||||
|
||||
cli_list = request("cli_list")
|
||||
p_contact = request("p_contact")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
if cli_list <> "" then
|
||||
query = " "
|
||||
query = query & " SELECT p_cli_per_com_tel, p_cli_per_tel, p_cli_per_email "
|
||||
query = query & " FROM V_CLIENT_PERSON "
|
||||
query = query & " WHERE convert(varchar, p_cli_company_cd)+'_'+convert(varchar, p_cli_per_cd) IN ('" & replace(cli_list, ",", "','") & "') "
|
||||
query = query & " AND (ISNULL(p_cli_per_com_tel, '') <> '' OR ISNULL(p_cli_per_tel, '') <> '') "
|
||||
if p_contact <> "001" then
|
||||
query = query & " AND ISNULL(p_cli_per_email, '') <> '' "
|
||||
end if
|
||||
rsp.Open query, adoConn, 1
|
||||
if rsp.RecordCount > 0 then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "2"
|
||||
end if
|
||||
rsp.close
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
%>
|
||||
Reference in New Issue
Block a user