【调度系统】广东民航医疗快线调度系统源代码
wanglizhong
2025-06-16 ae5b0a8c63979351028215b8fe8cdf4b0766c272
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
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<!--#include virtual="/inc/chkadmin.gds"-->
<!--#include virtual="/inc/function.gds"-->
<%
PaidMoneyID=trim(Request("PaidMoneyID"))
SearchType=trim(Request("SearchType"))
If PaidMoneyID<>"" Then
    Set rs = Server.CreateObject("ADODB.Recordset")
    If SearchType="1" Then
        If PaidMoneyID="158444" Then PaidMoneyID="140709"
        sql="select PaidMoney from PaidMoney where id="&PaidMoneyID
    Else
        sql="select isnull(SUM(PaidMoney),0) from PaidMoney where PaidMoney_AP_Check<>-1 and left(PaidMoneyMono,28) in (select left(PaidMoneyMono,CHARINDEX('[',PaidMoneyMono)-1) from PaidMoney where PaidMoney>0 and PaidMoneyType in (3,4) and PaidMoney_AP_Check<>-1 and datediff(day,PaidMoneyTime,getdate())<=30 and id="&PaidMoneyID&")"
    End If
    rs.open Sql,objConn,1,1
    if not rs.eof Then
        PaidMoney=rs(0)
        If PaidMoney<1 And PaidMoney>0 Then PaidMoney="0"&PaidMoney
    End If
    rs.close()
    webJson="{""result"":1,""PaidMoneyID"":"&PaidMoneyID&",""PaidMoney"":"&PaidMoney&"}"
Else
    webJson="{""result"":2}"
End If
 
Response.Write webJson
Response.End%>