최초커밋
This commit is contained in:
27
other/capi_device_return.asp
Normal file
27
other/capi_device_return.asp
Normal file
@@ -0,0 +1,27 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
device_id = request("device_id")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_USE "
|
||||
query = query & " SET USE_YN = 'N', MODIFY_DT = getdate() "
|
||||
query = query & " WHERE DEVICE_ID IN (" & device_id & ") AND USE_YN = 'Y' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if i > 0 Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
%>
|
||||
Reference in New Issue
Block a user