【调度系统】广东民航医疗快线调度系统源代码
wanglizhong
2025-05-05 8a7dab004bc3eca7808d0cc196a329464402bbc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<% @LANGUAGE="VBSCRIPT" CODEPAGE="65001" %> 
<% Session.CodePage=65001 %> 
<% Response.charset = "utf-8" %>
<!--#include virtual="/inc/odbc.asp"-->
<!--#include virtual="/inc/function.gds"-->
<!--#include virtual="/inc/core.asp"-->
<%
Set rs = Server.CreateObject("ADODB.Recordset")
ServiceOrdID    = trim(request("ServiceOrdID"))
    If ServiceOrdID<>"" Then
        sql="select ServiceOrdTraTxnPrice,ServiceOrdTraPaidPrice from ServiceOrder where ServiceOrdTraTxnPrice<=ServiceOrdTraPaidPrice and ServiceOrdID="&ServiceOrdID
        rs.open sql,objConn,1,1
        If not rs.Eof Then
            rs.close()
            sql="select top 1 id,PaidMoney,PaidMoneyTime,PaidMoneyType,PaidMoneyMono from PaidMoney where ServiceOrdIDDt="&ServiceOrdID&" and PaidMoney>0 and DateDiff(ss,PaidMoneyTime,getdate())<=30 order by id desc"
            rs.open Sql,objConn,1,1
            If not rs.Eof Then
                id                = rs("id")
                PaidMoney        = rs("PaidMoney")
                If PaidMoney<1 And PaidMoney>0 Then PaidMoney="0"&PaidMoney
                PaidMoneyTime    = rs("PaidMoneyTime")
                PaidMoneyType    = rs("PaidMoneyType")
                PaidMoneyMono    = rs("PaidMoneyMono")
                If PaidMoneyMono<>"" Then PaidMoneyMono=Replace(PaidMoneyMono,"[支付专用]","")
                webJson="{""trade_state"":""SUCCESS"",""id"":"&id&",""PaidMoney"":"""&PaidMoney&""",""PaidMoneyTime"":"""&PaidMoneyTime&""",""PaidMoneyMono"":"""&PaidMoneyMono&"""}"
            Else
                webJson="{""trade_state"":""CLOSED""}"
            End If
        Else
            trade_state="CLOSED"
            webJson="{""trade_state"":""CLOSED""}"
        End If
        rs.close()
    Else
        webJson="{""trade_state"":""CLOSED""}"
    End If
 
Response.Write webJson
%>