【调度系统】广东民航医疗快线调度系统源代码
hzj
2025-07-09 4418374d26a16ec759e06059c2b1fedabe1827e6
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<!--#include virtual="/inc/chkadmin.gds"-->
<!--#include virtual="/inc/function.gds"-->
<%
searchTXT=trim(Request("searchTXT"))
ShopOrdMoney_is=trim(Request("ShopOrdMoney_is"))
If ShopOrdMoney_is="" Then ShopOrdMoney_is=0
order_type=trim(Request("order_type"))
If order_type="" Then order_type=7
ShopOrdType=order_type
DateStart=trim(Request("DateStart"))
DateEnd=trim(Request("DateEnd"))
 
 
 
page_URL="&searchTXT="&searchTXT&"&order_type="&order_type&"&ShopOrdMoney_is="&ShopOrdMoney_is&"&DateStart="&DateStart&"&DateEnd="&DateEnd
 
 
Set rs = Server.CreateObject("ADODB.Recordset")
 
 
TitleTXT="操作记录查询"
 
'If isDepartment("080301")=0 Then Response.Redirect "/"
 
If searchTXT<>"" Then TitleTXT=TitleTXT&"--搜索 “"&searchTXT&"”"
 
'各种返回信息
SystemMessageType=trim(Request("SystemMessageType"))
SMT=trim(Request("SMT"))
SMT_Int=trim(Request("SMT_Int"))
  if SMT="1" then
    SystemMessageTXT="参数不足!!"
  elseif SMT="2" then
    SystemMessageTXT="短信发送成功!!"
  elseif SMT="3" then
    SystemMessageTXT="对账数据修改完成!!"
  elseif SMT="4" then
    SystemMessageTXT="对账数据删除完成!!"
  elseif SMT="5" then
    SystemMessageTXT="请输入正确的金额!!"
  end if
 
'项目转换
Function Running_TXT(Running)
    If InStr(Running,"[")>0 Then
        EscapeArray="OrderLevel>查看级别,ServiceOrdDepartureType>预约类型,FromHQ2_is>支援标记,ServiceOrdApptDate>客户预约时间,ServiceOrdEstimatedOrderDate>预计派单时间,ServiceOrdCoName>联系人姓名,ServiceOrdCoPhone>联系人电话,ServiceOrdCoTies>与患者关系,ServiceOrdPtName>患者姓名,ServiceOrdPtAge>年龄,ServiceOrdPtSex>性别,ServiceOrdPtNat>国籍,ServiceOrdTraStreet>派车地址,ServiceOrdPtOutHosp>转出医院,ServiceOrdTraVia>转出地址,ServiceOrdPtServicesID>转出科室,HospDepartmentName>转出床位,ServiceOrdPtInHosp>转入医院,ServiceOrdTraEnd>转入地址,ServiceOrdPtInServicesID>转入科室,HospInDepartmentName>转入床位,ServiceOrdTraDistance>预估距离,ServiceOrdPtDiagnosis>诊断,ServiceOrdTaskRemarks>对医护司备注,ServiceOrdOperationRemarks>调度操作备注,ConditionID_>目前病情,ServiceOrdPtCondition>对客户备注,ServiceOrdUnitRemarks>合作方备注,TransferModeID>转运方式,ServiceOrdVIP>VIP客户,ServiceOrdTraTxnPrice>成交价,ServiceOrdTraPrePayment>需预付款,SettlementPrice>结算价,ServiceOrdTraPriceReason>报价备注,ServiceOrdVisit>回访记录,MessageContents>操作留言,ServiceOrdAreaType>单据区域,ServiceOrdType>单据类型,ServiceOrdClass>单据所属,ServiceOrdSource>来源,DispatchOrdPerfomance>绩效计价,TimeLength_Program>保障时长,TimeLength_ICU>居家ICU时长,TimeLength_Wait>等待时长"
        EscapeArray=Split(EscapeArray,",")
        for e = 0 to UBound(EscapeArray)
            EscapeArray1=Split(EscapeArray(e),">")
            Running=Replace(Running,EscapeArray1(0),EscapeArray1(1))
        next
    End If
    Running_TXT    = Running
End Function 
 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><%=LindemanAdmin%></title>
        <!--#include virtual="/inc/ccs.gds"-->
        <script src="/js/jquery-1.7.1.min.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(function () {
                $("#div2").css("overflow-x", "scroll").height(16).width($("#div1").width()+20); //设置一个高度10的DIV2层 长度与DIV1层一致
                $("#div2").html($("#div1").html()); //并给DIV2层填充内容
 
                $("#div2").scroll(function () {
                    $("#div1")[0].scrollLeft = $("#div2")[0].scrollLeft; //拉动DIV2层滚动条,DIV1层滚动条同步被改变
                });
            });
        </script>
    </head>
    <body onkeydown="xKeyEvent(event)">
        <!--#INCLUDE FILE="menu_header.gds" -->
        <!-- content -->
        <div id="content">
            <!--#INCLUDE FILE="Admin_menu_left.gds" -->
            <!-- content / right -->
            <div id="right">
                <!-- table -->
                <div class="box">
                    <!-- box / title -->
                    <div class="title">
                        <h5><%If searchTXT<>"" then%>操作记录查询 <%=searchTXT%><%else%>操作记录<%End if%></h5>
                        <ul class="links">
                            <div class="search">
                            <form action="?" method="post">
                                <div class="input">
                                    <input type="text" id="searchTXT" name="searchTXT" value="<%=searchTXT%>" />
                                </div>
                                <div class="button">
                                    <input type="submit" name="submit" value="搜索" />
                                </div>
                            </form>
                            </div>
                        </ul>
                    </div>
                    <!-- end box / title -->
            <%
            acc1=request("page")
            if acc1=empty then acc1=clng(1)
            QuantityInt = 20
            acc2=0
            acc3=0
 
            if searchTXT<>"" Then
              If InStr(searchTXT,"DispatchOrdID:")=1 Then
                DispatchOrdID=Mid(searchTXT,15)
                searchSql=" where Running_ID='"&DispatchOrdID&"' "
              ElseIf InStr(searchTXT,"ServiceOrdID:")=1 Then
                ServiceOrdID=Mid(searchTXT,14)
                searchSql=" where Running_ID='"&ServiceOrdID&"' "
              Else
                searchSql=" where (Running like '%"&searchTXT&"%') "
              End If
              
            end If
            sql="select * from OA_Running "&searchSql&" order by id desc"
            'Response.Write sql
            rs.open sql,objConn,1,1
            if not rs.eof then
            rs.pagesize=QuantityInt
            rs.absolutepage=acc1
            acc2=rs.pagecount
            acc3=rs.recordcount
            else
            SystemMessageType=2
            SystemMessageTXT="数据库中相关无数据!"
            end if
            %>
                    <!--#include virtual="/inc/SystemMessages.gds" -->
                    <div class="table" style="overflow:auto">
                        <form id="form1" name="form1" action="" method="post">
                        <input name="admin_save" type="hidden" value="52">
                        <input name="Car_Check" type="hidden" value="">
                        <input name="searchTXT" type="hidden" value="<%=searchTXT%>">
                        <input name="page" type="hidden" value="<%=request("page")%>">
                        <table>
                            <thead>
                                <tr style="white-space: nowrap;">
                                    <th class="selected"><input type="checkbox" class="checkall" /></th>
                                    <th>LogID</th>
                                    <th>操作员</th>
                                    <th>操作时间</th>
                                    <th>操作内容</th>
                                    <th>IP</th>
                                    <th class="last">定位</th>
                                </tr>
                            </thead>
                            <tbody>
            
            <%i=1
            do while not rs.Eof and i<=QuantityInt
              Log_Id        = rs("id")
              OAid            = rs("OAid")
              OA_IP            = rs("OA_IP")
              OA_Time        = rs("OA_Time")
              Running        = rs("Running")
              Running_URL    = rs("Running_URL")
              Running_address=rs("Running_address")
              Running_ID    = rs("Running_ID")
 
              i=i+1
              %>
              <tr>
                <td class="selected"><input type="checkbox" id="CarRepairID_<%=Log_Id%>" name="Log_Id" value="<%=Log_Id%>"/></td>
                <td class="category category2"><%=Log_Id%></td>
                <td class="category category2"><%=OAUser(OAid,"UserName")%></td>
                <td class="category category2"><%=OA_Time%></td>
                <td class="date category2" style="text-align: initial;"><%=Running_TXT(Running)%></td>
                <td class="category category2"><%=OA_IP%></td>
                <td class="category category2 last"><%=Running_address%></td>
              </tr>
            <%rs.movenext
            loop
            rs.close()
            %>
            <%for j=i to 20%>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td class="last">&nbsp;</td>
            </tr>
            <%next%>
                            </tbody>
                        </table>
                        <!-- pagination -->
                        <div class="pagination pagination-left">
                            <div class="results">
                                <%
                                ShowingLeast = (acc1-1)*QuantityInt+1
                                ShowingMax = QuantityInt*acc1
                                if ShowingMax>acc3 then ShowingMax=acc3
                                %>
                                <span><%="显示&nbsp;"& ShowingLeast &"-"& ShowingMax &"&nbsp;of&nbsp;"&acc3%></span>
                            </div>
                            <%if acc2>1 then%>
                            <ul class="pager">
                                <%if acc1=1 then%>
                                  <li class="disabled">&laquo; 上页</li>
                                <%else%>
                                  <li><a href="?page=<%=acc1-1%><%=page_URL%>">&laquo; 上页</a></li>
                                <%end if%>
                                <%
                                acc4=""
                                for i=1 to acc2
                                  if acc2<=9 then
                                    acc4=acc4&","&i
                                  else
                                    if i=1 then
                                      acc4=acc4&","&i
                                    elseif acc1<=5 and i<=7 then
                                      acc4=acc4&","&i
                                    elseif acc1>=acc2-4 and i>=acc2-6 then
                                      acc4=acc4&","&i
                                    elseif i>=acc1-2 and i<=acc1+2 then 
                                      acc4=acc4&","&i
                                    elseif i=acc2 then
                                      acc4=acc4&","&i
                                    elseif i=2 or i=acc2-1 then
                                      acc4=acc4&",0"
                                    end if
                                  end if
                                next
                                acc4SP=SPLIT(acc4,",")
                                for i = 1 to UBOUND(acc4SP)%>
                                  <%if acc4SP(i)="0" then%>
                                    <li class="separator">...</li>
                                  <%elseif acc1=cint(acc4SP(i)) then%>
                                    <li class="current"><%=acc4SP(i)%></li>
                                  <%else%>
                                    <li><a href="?page=<%=acc4SP(i)%><%=page_URL%>"><%=acc4SP(i)%></a></li>
                                  <%end if%>
                                <%next%>
                                <%if acc1>=acc2 then%>
                                  <li class="disabled">下页 &raquo;</li>
                                <%else%>
                                  <li><a href="?page=<%=acc1+1%><%=page_URL%>">下页 &raquo;</a></li>
                                <%end if%>
                            </ul>
                            <%end if%>
                        </div>
                        <!-- end pagination -->
                        </form>
                    </div>
                </div>
                <!-- end table -->
 
 
                
            </div>
            <!-- end content / right -->
        </div>
        <!-- end content -->
        <!--#include FILE="vicgame.asp"-->
        <IFRAME id="HiddenFrame" name="HiddenFrame" WIDTH=0 HEIGHT=0 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=#ffffff></IFRAME>
    </body>
</html>