first commit
This commit is contained in:
40
view_logic_raw.asp
Normal file
40
view_logic_raw.asp
Normal file
@@ -0,0 +1,40 @@
|
||||
<!-- #include File="./include/ModuleInclude.asp" -->
|
||||
<%
|
||||
'/**
|
||||
'* 로그인 체크
|
||||
'*/
|
||||
Call Login()
|
||||
|
||||
Server.ScriptTimeOut = 60 * 5
|
||||
Dim SQL,Rcset,RESULTJSON
|
||||
Set Rcset = Server.CreateObject("ADODB.RecordSet")
|
||||
Call DBConnect2()
|
||||
|
||||
Dim PKEY : PKEY = Request("PKEY")
|
||||
%>
|
||||
|
||||
<%
|
||||
Response.ContentType = "application/json"
|
||||
Response.Charset = "utf-8"
|
||||
|
||||
SQL = " SELECT QID "
|
||||
SQL = SQL & " , QORDER "
|
||||
SQL = SQL & " , JSON_VALUE(QUESTIONJSON,'$.title') as title "
|
||||
SQL = SQL & " , JSON_VALUE(QUESTIONJSON,'$.variable') as variable "
|
||||
SQL = SQL & " , JSON_VALUE(QUESTIONJSON,'$.explain') as explain "
|
||||
SQL = SQL & " , JSON_VALUE(QUESTIONJSON,'$.qtype') as qtype "
|
||||
SQL = SQL & " , JSON_VALUE(QUESTIONJSON,'$.qgroup') as qgroup "
|
||||
SQL = SQL & " , JSON_VALUE(QUESTIONJSON,'$.rota') as rota "
|
||||
SQL = SQL & " , LOGICJSON as logic "
|
||||
SQL = SQL & " FROM QUESTION WITH(NOLOCK) "
|
||||
SQL = SQL & " WHERE PKEY = '" & Replace(PKEY, "'", "''") & "' "
|
||||
SQL = SQL & " ORDER BY QORDER "
|
||||
|
||||
Rcset.Open SQL, DBConn, 3, 1, 1
|
||||
|
||||
RESULTJSON = RecordToJSON(Rcset)
|
||||
|
||||
Rcset.Close
|
||||
|
||||
Response.Write RESULTJSON
|
||||
%>
|
||||
Reference in New Issue
Block a user