【调度系统】广东民航医疗快线调度系统源代码
wlzboy
2025-08-14 b3f8789cf8bf0d934f8431b1d7b564a756576b4b
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
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<!--#include virtual="/inc/chkadmin.gds"-->
<!--#include virtual="/inc/function.gds"-->
<%
if isDepartment("070113")=0 then
  Response.Redirect "/"
  Response.End()
end If
 
searchTXT=SafeRequest(Request("searchTXT"))
orderby=SafeRequest(Request("orderby"))
UnitNameID=SafeRequest(Request("UnitNameID"))
CoopUnitID=SafeRequest(Request("CoopUnitID"))
 
Set rs = Server.CreateObject("ADODB.Recordset")
'默认显示字段
If OrdState="" Then OrdState=0
If OrdClassList="" Then OrdClassList="0"
If OrdClassList="0" Then
    OrdClassName="未审核"
ElseIf OrdClassList="1" Then
    OrdClassName="已审核"
Else
    OrdClassName="全部"
End if
 
'各种返回信息
SystemMessageType=trim(Request("SystemMessageType"))
SMT=trim(Request("SMT"))
if SystemMessageType<>"" then
  if SMT="1" then
    SystemMessageTXT="请选择日期"
  end if
end if
 
 
If OrdState<>"0" then
    OrdListName    = ServiceOrdStateA(OrdState)&"记录"
Else
    OrdListName    = "加班提成占比统计"
End If
 
OrdDateType=SafeRequest(Request("OrdDateType"))
OrdDateStart=SafeRequest(Request("OrdDateStart"))
OrdDateEnd=SafeRequest(Request("OrdDateEnd"))
If OrdDateType="" Then
  OrdDateType=6
  OrdDateTop=" top 20 "
End If
If OrdDateType="0" then
    If OrdDateStart="" And OrdDateEnd="" Then
        OrdDateStart=Date()
        OrdDateEnd=Date()&" 00:00"
    ElseIf OrdDateStart<>"" And OrdDateEnd="" Then
        OrdDateEnd=OrdDateStart
    ElseIf OrdDateStart="" And OrdDateEnd<>"" Then
        OrdDateStart=OrdDateEnd
    End If
    If Cdate(OrdDateStart)>Cdate(OrdDateEnd) Then
        OrdDateStart1=OrdDateStart
        OrdDateStart=OrdDateEnd
        OrdDateEnd=OrdDateStart1
    End if
    If OrdDateStart=OrdDateEnd Then
        OrdDateStart=FORMATDATETIME(OrdDateStart,vbShortDate)
        OrdDateTypeName=OrdDateStart
        OrdDateTypeName1=OrdDateTypeName
        OrdDateEnd=FORMATDATETIME(OrdDateEnd,vbShortDate)
    Else
        OrdDateTypeName=OrdDateStart&" 至 "&OrdDateEnd
        OrdDateTypeName1="时间段"
    End If
    SqlOrdDateType="between '"&OrdDateStart&"' and '"&OrdDateEnd&" 23:59:59'"
    
Else
    sql="select vID,vtext,vOrder2 from dictionary where vtitle='OrdDateType' and vID="&OrdDateType
    rs.open Sql,objConn,1,1
    If not rs.Eof Then
        OrdDateTypeName    = rs("vtext")
        OrdDateTypeName1=OrdDateTypeName
        SqlOrdDateType    = rs("vOrder2")
    Else
        OrdDateType=6
        OrdDateTypeName="本年"
        OrdDateTypeName1=OrdDateTypeName
        SqlOrdDateType="between DATEADD(yy,DATEDIFF(yy,0,getdate()),0) and dateadd(ms,-3,DATEADD(yy,DATEDIFF(yy,0,getdate())+1,0))"
    End If
    rs.close()
End If
'时间段列表
sql="select vID,vtext from dictionary where vtitle='OrdDateType' and vID in (6,12) order by vOrder"
rs.open Sql,objConn,1,1
do while not rs.Eof
    OrdDateTypes = OrdDateTypes & rs("vID") &","& rs("vtext") & "|"
rs.movenext
Loop
rs.close()
OrdDateTypes = left(OrdDateTypes,len(OrdDateTypes)-1)
OrdDateTypesPS = SPLIT(OrdDateTypes,"|")
 
'公司列表
If UnitNameID<>"" Then
    Response.Cookies("CAME")("UnitNameID")=UnitNameID
ElseIf UnitNameID="" And Request.Cookies("CAME")("UnitNameID")<>"" Then
    UnitNameID=Request.Cookies("CAME")("UnitNameID")
End If
UnitNameName="全部"
UnitNames = "0,全部|"
sql="select vID,vtext,vType from dictionary where vType>=0 and vtitle='UnitName' order by vType desc,vOrder"
rs.open Sql,objConn,1,1
do while not rs.Eof
    UnitName=rs("vtext")
    If rs("vType")=0 Then UnitName=UnitName&"(停用)"
    UnitNames = UnitNames & rs("vID") &","& UnitName & "|"
    If UnitNameID=CStr(rs("vID")) Then UnitNameName    = UnitName
rs.movenext
Loop
rs.close()
UnitNames = left(UnitNames,len(UnitNames)-1)
UnitNamesPS = SPLIT(UnitNames,"|")
 
page_URL="&OrdDateType="&OrdDateType&"&OrdDateStart="&OrdDateStart&"&OrdDateEnd="&OrdDateEnd&"&searchTXT="&searchTXT&"&orderby="&orderby&"&h_menu1_1=1&UnitNameID="&UnitNameID
 
%>
<!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"-->
    </head>
    <body onkeydown="xKeyEvent(event)">
        <!--#INCLUDE FILE="menu_header.gds" -->
        <!-- content -->
        <div id="content">
            <!--#INCLUDE FILE="Report_menu_left.gds" -->
            <!-- content / right -->
            <div id="right">
                <!-- table -->
                <div class="box">
                    <!-- box / title -->
                    <div class="title">
                        <h5><span id="right_Menu" style="display: none;">[<a onclick="JavaScript:JS_left_Menu2('1');" style="color: #ffffff;">显示菜单</a>]&nbsp;</span><%If searchTXT<>"" then%>加班提成占比统计 <%=searchTXT%><%else%><%=OrdDateTypeName1&" "&OrdListName%><%End if%></h5>
                        <ul class="links">
                            <li><a href="Report_OTProportion_csv.gds?1=1<%=page_URL%>">导出csv</a></li>
                            <%if isDepartment("070109")=1 then%>
                            <li>
                                <%
                                '下拉菜单设定
                                DownMenuName="公司"            '菜单名称
                                DownMenuNameID="UnitNameID"    '菜单ID
                                DownMenuOldName=UnitNameName    '默认值名称
                                DownMenuOldID=UnitNameID    '默认值ID
                                %>
                                <div class="search">
                                <div name="DownMenu_container" id="<%=DownMenuNameID%>_container" class="select-container" style="overflow: hidden;cursor:pointer" onclick="JS_DownMenu('<%=DownMenuNameID%>')">
                                    <span class="select-content" style="width: 46px;"><%=DownMenuName%>:<%=DownMenuOldName%></span><span class="arrow" id="<%=DownMenuNameID%>_arrow" name="DownMenu_arrow"></span>
                                </div>
                                <div name="DownMenu_list" id="<%=DownMenuNameID%>_list" class="select-list scroll-pane" style="overflow: hidden; position: absolute; background-color: white; width: 105px; display: none;background-position: initial initial; background-repeat: initial initial;margin-left: 69px;">
                                    <div class="jspContainer" style="width: 105px;">
                                        <div style="padding: 0px; top: 0px; width: 105px;">
                                        <%for z = 0 to UBOUND(UnitNamesPS)
                                          UnitNamesPS1=SPLIT(UnitNamesPS(z),",")
                                          vID=UnitNamesPS1(0)
                                          vtext=UnitNamesPS1(1)
                                          %>
                                          <span title="<%=vtext%>" name="DownMenu_<%=DownMenuNameID%>" onmouseover="JS_DownMenuMouseover('<%=DownMenuNameID%>',<%=z%>)" onclick="JS_DownMenuJump('<%="?"&mid(page_URL,2)%>','<%=DownMenuOldID%>','<%=DownMenuNameID%>','<%=vID%>')" class="list-option<%if vID=DownMenuOldID then Response.Write "  option"%>"><%=vtext%></span>
                                        <%next%>
                                        </div>
                                    </div>
                                </div>
                                </div>
                            </li>
                            <%End If%>
                            <li>
                                <div class="search">
                                <div id="Date_container" class="select-container" style="overflow: hidden;cursor:pointer" onclick="JS_OrdDateType()">
                                    <span class="select-content" style="width: 46px;">期间:<%=OrdDateTypeName%></span><span class="arrow" id="Date_arrow"></span>
                                </div>
                                <div id="Date_list" class="select-list scroll-pane" style="overflow: hidden; position: absolute; background-color: white; width: 65px; display: none;background-position: initial initial; background-repeat: initial initial;margin-left: 35px;">
                                    <div class="jspContainer" style="width: 63px; ">
                                        <div style="padding: 0px; top: 0px; width: 63px;">
                                        <%for z = 0 to UBOUND(OrdDateTypesPS)
                                          OrdDateTypesPS1=SPLIT(OrdDateTypesPS(z),",")
                                          vID=OrdDateTypesPS1(0)
                                          vtext=OrdDateTypesPS1(1)
                                          %>
                                          <span title="<%=vtext%>" onmouseover="JS_OrdDateTypeMouseover('OrdDateType_<%=vID%>')" onclick="JS_OrdDateTypeJump('<%=vID%>')" id="OrdDateType_<%=vID%>" class="list-option<%if vID=OrdDateType then Response.Write "  option"%>"><%=vtext%></span>
                                        <%next%>
                                        <span title="自定义" onmouseover="JS_OrdDateTypeMouseover('OrdDateType_0')" onclick="JS_OrdDateTypeCreateOpen()" id="OrdDateType_0" name="OrdDateType" class="list-option">自定义</span>
                                        </div>
                                    </div>
                                </div>
                                </div>
                            </li>
                            <div class="search">
                            <form action="?" method="post">
                                <div class="input">
                                    <input name="OrdDateType" type="hidden" value="<%=OrdDateType%>">
                                    <input name="OrdDateStart" type="hidden" value="<%=OrdDateStart%>">
                                    <input name="OrdDateEnd" type="hidden" value="<%=OrdDateEnd%>">
                                    <input type="text" id="searchTXT" name="searchTXT" value="<%=searchTXT%>" />
                                </div>
                                <div class="button">
                                    <input type="submit" name="submit" value="搜索" />
                                </div>
                            </form>
                            </div>
                        </ul>
                    </div>
                    <div class="dialogJ  dialogJfix dialogJshadow" id="OrdDateTypeCreate" style="width: 440px;right: 80px; top: 150px;height:80px ;display:none;">
                        <div class="dialogJtitle">
                            <a href="javascript:JS_OrdDateTypeCreateClose();" class="dialogJclose" title="关闭本窗口">&nbsp;</a>
                            <span class="dialogJtxt" id="EditPhotoTXT">请选择时间段</span>
                        </div>
                        <div class="dialogJcontent" style="margin-left: 5px;margin-right:5px;">
                            <div class="input" style="float:left;margin-top: 10px;margin-left: 5px;" id="two-inputs">
                                期间:
                                <input type="text" id="OrdDateStart" name="OrdDateStart" class="date" style="width:138px;" value="<%=OrdDateStart%>">
                                至
                                <input type="text" id="OrdDateEnd" name="OrdDateEnd" class="date" style="width:138px;" value="<%=OrdDateEnd%>">
                                <input type="button" class="dialogJbtn first-child" onclick="JS_OrdDateJump()" value="查询">
                            </div>
                        </div>
                    </div>
                    <!--时间选择js  liang------------->
                    <link rel="stylesheet" href="css/daterangepicker.css">
                    <script src="js/jquery-1.12.3.min.js"></script>
                    <script src="js/moment.min.js"></script>
                    <script src="js/jquery.daterangepicker.js"></script>
                    <script>
                            $(function()
                        {
                            $('#two-inputs').dateRangePicker(
                            {
                                separator : ' to ',
                                getValue: function()
                                {
                                    if ($('#OrdDateStart').val() && $('#OrdDateEnd').val() )
                                        return $('#OrdDateStart').val() + ' to ' + $('#OrdDateEnd').val();
                                    else
                                        return '';
                                },
                                setValue: function(s,s1,s2)
                                {
                                    $('#OrdDateStart').val(s1);
                                    $('#OrdDateEnd').val(s2);
                                }
 
                            });
                        });
                    </script>
                <!--时间选择js  liang------------->
                    <script type="text/javascript">
                        //时间表列显示下拉菜单
                        function JS_OrdDateType(){
                          if (Date_container.className!="select-container select-container-show-list"){
                            Date_container.className="select-container select-container-show-list";
                            Date_arrow.className="arrow arrow-up";
                            Date_list.style.display="block";
                            OrdClass_container.className="select-container";
                            OrdClass_arrow.className="arrow";
                            OrdClass_list.style.display="none";
                            OrdDateTypeCreate.style.display="none";
                          }
                          else {
                            Date_container.className="select-container";
                            Date_arrow.className="arrow";
                            Date_list.style.display="none";
                          }
                        }
                        //时间表列指针移动到下拉菜单
                        function JS_OrdDateTypeMouseover(id){
                          var d=document.getElementById(id);
                          <%for z = 0 to UBOUND(OrdDateTypesPS)
                          OrdDateTypesPS1=SPLIT(OrdDateTypesPS(z),",")
                          vID=OrdDateTypesPS1(0)
                          vtext=OrdDateTypesPS1(1)
                          %>
                          document.getElementById("OrdDateType_<%=vID%>").className="list-option";
                          <%next%>
                          document.getElementById("OrdDateType_0").className="list-option";
                          d.className="list-option option";
                        }
                        //自定义时间-打开窗口
                        function JS_OrdDateTypeCreateOpen()
                        {
                            JS_OrdDateType();
                            OrdDateTypeCreate.style.display="block";
                        }
                        //自定义时间-关闭窗口
                        function JS_OrdDateTypeCreateClose()
                        {
                            JS_OrdDateType();
                            OrdDateTypeCreate.style.display="none";
                        }
                        //自定义时间-确定时间
                        function JS_OrdDateTypeCreateSave()
                        {
                        document.getElementById('ServiceOrdTraStreet').value=document.getElementById('Duration').value;
                        document.getElementById('ServiceOrdTraEnd').value=document.getElementById('ServiceOrdTraEnd').value;
                        document.getElementById('ServiceOrdTraStreetCoo').value=results.sw.point.lng + ','+ results.sw.point.lat; //起点坐标
                        document.getElementById('ServiceOrdTraEndCoo').value=results.Lu.point.lng + ','+ results.Lu.point.lat; //起点坐标
                        }
                        //时间类表列转跳
                        function JS_OrdDateJump(id){
                            var OrdDateStart=document.getElementById("OrdDateStart").value;
                            var OrdDateEnd=document.getElementById("OrdDateEnd").value;
                            var searchTXT=document.getElementById("searchTXT").value;
                            window.location.href='Report_OTProportion.gds?h_menu1_1=1&OrdState=<%=OrdState%>&OrdClassList=<%=OrdClassList%>&UnitNameID=<%=UnitNameID%>&OrdDateType=0&searchTXT='+searchTXT+'&OrdDateStart='+OrdDateStart+'&OrdDateEnd='+OrdDateEnd;
                        }
                        //自定义时间转跳
                        function JS_OrdDateTypeJump(id){
                            var searchTXT=document.getElementById("searchTXT").value;
                            window.location.href='Report_OTProportion.gds?h_menu1_1=1&OrdState=<%=OrdState%>&OrdClassList=<%=OrdClassList%>&UnitNameID=<%=UnitNameID%>&searchTXT='+searchTXT+'&OrdDateType='+id;
                        }
 
                        //时间表列转跳
                        function JS_OrdClassTypeJump(id){
                            var searchTXT=document.getElementById("searchTXT").value;
                            window.location.href='Report_OTProportion.gds?h_menu1_1=1&OrdState=<%=OrdState%>&OrdDateType=<%=OrdDateType%>&UnitNameID=<%=UnitNameID%>&searchTXT='+searchTXT+'&OrdClassList='+id;
                        }
                        
                    </script>
                    <!-- end box / title -->
            <%'数据读取
            is_CSV=0%>
            <!--#include virtual="Report_OTProportion_Data.gds" -->
            
                    <!--#include virtual="/inc/SystemMessages.gds" -->
                    <div class="table" style="overflow:auto">
                        <table>
                            <%If SystemMessageType<>"2" then%>
                            <thead>
                                <tr style="white-space: nowrap;">
                                    <%
                                    For X=Lbound(FormArray)+1 to Ubound(FormArray)
                                        If X=Ubound(FormArray) Then
                                          classHtml=" class=""last"""
                                        ElseIf X=1 Then
                                          classHtml=" class=""selected"""
                                        Else
                                          classHtml=""
                                        End If
                                        Response.Write "<th"&classHtml&">"&FormArray(X,0)&"</th>"
                                    Next%>
                                </tr>
                            </thead>
                            <tbody>
                            <%
                            For Y=Lbound(FormArray,2)+2 to Ubound(FormArray,2)%>
                              <tr style="white-space: nowrap;">
                                <%
                                For X=Lbound(FormArray)+1 to Ubound(FormArray)
                                    If X=Ubound(FormArray) Then
                                      classHtml=" class=""category category2 last"""
                                    ElseIf X=1 Then
                                      classHtml=" class=""selected"""
                                    Else
                                      classHtml=" class=""category category2"""
                                    End If
                                    Response.Write "<td"&classHtml&">"&FormArray(X,Y)&"</th>"
                                Next%>
                              </tr>
                            <%Next%>
                            <%End If%>
                            <%for j=Y 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>
                    </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>