【调度系统】广东民航医疗快线调度系统源代码
wanglizhong
2025-06-24 a51d070d364b0da8e5f8ea9203a6e50c8b4c0af3
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
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
<!-- 
<div id="colors-switcher" class="color">
    <a href="" class="blue" title="Blue"></a>
    <a href="" class="green" title="Green"></a>
    <a href="" class="brown" title="Brown"></a>
    <a href="" class="purple" title="Purple"></a>
    <a href="" class="red" title="Red"></a>
    <a href="" class="greyblue" title="GreyBlue"></a>
</div>
-->
<!-- header -->
<div id="header">
    <!-- logo -->
    <div id="logo">
        <!--<h1><a href="" title="V.com.cn Admin"><img src="resources/images/logo.png" alt="V.com.cn Admin" /></a></h1>-->
        <h1><a href="/" title="民航医疗快线运营系统">民航医疗快线运营系统</a></h1>
        
    </div>
    <!-- end logo -->
    <!-- user -->
    
 
    <ul id="user">
        <li class="first">欢迎你&nbsp;<%=OAUser(session("adminID"),"UserName")%></li>
        <%if isDepartment("010101")=1 then%><li class="highlight last"><a href="/AdminUser.gds">设置</a></li><%End if%>
        <%if isDepartment("020101")=1 then%><li class="highlight last"><a onclick="JS_PhoneOpen();" id="NewPhone">新来电(F2)</a></li><%End if%>
        <li class="highlight last"><a href="/Notification.gds">通知中心</a></li>
        <li class="highlight last"><a href="/weixin/Access_token_New.gds">刷新Access_token</a></li>
        <li class="highlight last"><a href="http://www.emtsos.com/emt/v-v1-zh_CN-/emt/indexOrder.w" target="_blank">易医通下单</a></li>
        <li class="highlight last"><a href="logout.gds">注销</a></li>
    </ul>
    <!-- end user -->
    <div id="header-inner">
        <div id="home">
            <a href="/" title="首页"></a>
        </div>
        
                    
        <!-- quick -->
        <ul id="quick">
            <li>
                <a href="/" title="公告"><span class="normal">公告</span></a>
            </li>
            <%If isDepartment("01")=1 then%>
            <li>
                <a href="/Notification.gds" title="个人中心"><span class="icon"><img src="resources/images/icons/application_double.png" alt="个人中心" /></span><span>个人中心</span></a>
                <ul>
                    <li><a href="Notification.gds">通知中心</a></li>
                    <%if isDepartment("010101")=1 then%><li><a href="/AdminUser.gds">个人资料</a></li><%End if%>
                    <%if isDepartment("010102")=1 then%><li><a href="/AdminUser_EditPass.gds">修改密码</a></li><%End if%>
                    <li><a href="#" class="childs">个人任务</a>
                        <ul>
                            <li><a href="Task_List.gds?OrdState=2&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">新任务</a></li>
                            <li><a href="Task_List.gds?OrdState=3&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">进行中</a></li>
                            <li class="last"><a href="Task_List.gds?OrdState=8&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">已完成</a></li>
                        </ul>
                    </li>
                    <%if isDepartment("0102")=1 then%><li><a href="#">排班</a></li><%End if%>
                    <%if isDepartment("0103")=1 then%><li><a href="#">收入提成</a></li><%End if%>
                    <li class="last"><a href="#">相关工作单</a></li>
                </ul>
            </li>
            <%End if%>
 
            <%If isDepartment("02")=1 then%>
            
            <!--新通知-->
            <%
            NC_ID=SafeRequest(Request("NC_ID"))
            If NC_ID<>"" Then
                sql="update Notification set NC_Read=1,NC_ReadTime=getdate(),NC_ReadOAID="&session("adminID")&" where (NC_Read=0 or NC_ReadOAID=0) and NC_ID="&NC_ID
                objConn.Execute sql
            ElseIf Request.ServerVariables("Url")<>"/Notification.gds" Then%>
                <script type="text/javascript">
                setTimeout(function() {Push();},500);//setTimeout 程序执行后500毫秒执行push,但是仅此一次。
                </script>
            <%End If%>
            <script type="text/javascript">
            setInterval(function() {Push();},30000);//二十秒后执行
            /*请求函数的ajax*/  
            function Push() {
                $.ajax({  
              
                    type: "POST",  
                    url: "menu_Data1.gds",//需要跳转到的界面 the page you want to post data  
                    data: {  
                        data: ''//要传给后台的数据 the data you should send to background  
                    },  
                    beforeSend: function() {},//在发送之前你可以进行相关操作 what you want to do before send  
                    success: function(data) {  
                        Notification=data.split("|");
                        //alert(Notification[1]);
                        //需要执行的操作 execute it  
                        Notification_Int=parseInt(Notification[0]);
                        if (Notification_Int>0){
                            //提示框弹出 以及 提示音播放
                            
                            document.getElementById("Notification_Int").innerHTML=Notification_Int;
                            document.getElementById("Notification_ID").value=Notification[1];
                            document.getElementById("Notification_TXT").innerHTML=Notification[3];
                            autoPlay();
                        }
                        else if (Notification_Int<0){
                            //提示框弹出
                            document.getElementById("Notification_Int").innerHTML=-Notification_Int;
                            document.getElementById("Notification_ID").value=Notification[1];
                            document.getElementById("Notification_TXT").innerHTML=Notification[3];
                            autoPlay1();
                        }
                    }
                })
                };
                </script>
            <style>
            .clear{clear: both;}
            .pageBox{width:100%;height:100%;margin: 0 auto;display:none;background:rgba(0,0,0,0.6);color:#2b2b2b;position: fixed;top:0;left: 0;z-index: 1000;}
            .pageBox1{width:400px;border-radius: 8px;background:#fff;margin: 0 auto;overflow:hidden;}
            .pageBoxP1{font-size:30px;text-align: center;border-bottom:1px solid #2B2B2B;line-height:2em;;}
            .pageBoxP2{font-size:28px;text-align: center;padding:2%;}
            .pageBoxBU{font-size:25px;width:45%;display: block;border:0;color:#fff;line-height:2em;border-radius:5px;margin:3% 0;cursor: pointer;text-align: center;}
            .pageBoxBU1{float: right;margin-right:3%;background:#1aad19;}
            .pageBoxBU2{float: left;margin-left: 3%;background:#858585;}
            </style>
            <script>
            /* 提示框弹出 以及 提示音播放 */
            function autoPlay(){
                var music = document.getElementById("myaudio");
                if(music.paused){
                    music.load(); //重新加载提示音
                    music.play(); //播放提示音
                    $('.pageBox').show();
                }else{
                    music.pause(); //停止提示音
                    $('.pageBox').hide();
                }
            }
            /* 提示框弹出 */
            function autoPlay1(){
                $('.pageBox').show();
            }
            /* 隐藏提示框 以及 关闭提示音 */
            function outPlay(){
                var music = document.getElementById("myaudio");
                $('.pageBox').hide();
                music.pause();
            }
            /* 隐藏提示框 以及 关闭提示音 标记已读 */
            function outPlay1(){
                var music = document.getElementById("myaudio");
                var Notification_ID = document.getElementById("Notification_ID").value;
                
                if (Notification_ID!="")
                {
                    $.ajax({  
                  
                        type: "POST",  
                        url: "menu_Data1.gds",//需要跳转到的界面 the page you want to post data  
                        data: {  
                            NC_ID: Notification_ID//要传给后台的数据 the data you should send to background  
                        },  
                        beforeSend: function() {},//在发送之前你可以进行相关操作 what you want to do before send  
                        success: function(data) {
                            //alert(data);
                        }
                    })
                }
                $('.pageBox').hide();
                music.pause();
            }
            </script>
            <div class="pageBox">
                <table width="100%" height="100%" ><tr><td valign="center" style="padding-top: 200px;">
                    <div class="pageBox1">
                        <input ID="Notification_ID" type="hidden" value="">
                        <p class="pageBoxP1">提示</p>
                        <p class="pageBoxP2">您有<span id="Notification_Int"><%=UnitOrdInt%></span>条通知未处理!</p>
                        <p class="pageBoxP2"><span id="Notification_TXT"><%=Notification_TXT%></span></p>
                        <a href="/Notification.gds" class="pageBoxBU1 pageBoxBU" style="width: 30%;">现在处理</a>
                        <button class="pageBoxBU2 pageBoxBU" onclick="outPlay()" style="width: 30%;">等下处理</button>
                        <button class="pageBoxBU2 pageBoxBU" onclick="outPlay1()" style="width: 30%;">设为已读</button>
                        <div class="clear"></div>
                    </div>
                </td></tr></table>
                <!--提示音-->
                <audio id="myaudio" src="1.mp3"></audio>
            </div>
            <!--新通知 end-->
            
            <li>
                <a href="/ServiceOrder_List.gds?OrdDateType=&OrdClassList=&h_menu1_1=1" title="客服中心" id="NEW_calendar"><span class="icon"><img src="resources/images/icons/calendar.png" alt="服务单" /></span><span>服务单 <%=UnitOrdInt%></span></a>
                <ul>
                    <%if isDepartment("020101")=1 then%><li><a href="ServiceOrder.gds?NEWOrder=1">新增地面服务单</a></li><%End if%>
                    <%if isDepartment("020101")=1 then%><li><a href="ServiceOrder.gds?OrdClass=AB&NEWOrder=1">新增航空服务单</a></li><%End if%>
                    <%if isDepartment("0201")=1 then%>
                    <li><a href="ServiceOrder_List.gds?OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1" class="childs">服务单查询</a>
                        <ul>
                            <li><a href="ServiceOrder_List.gds?OrdState=0&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">所有</a></li>
                            <li><a href="ServiceOrder_List.gds?OrdState=1&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">咨询单</a></li>
                            <li><a href="ServiceOrder_List.gds?OrdState=4&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">无效</a></li>
                            <li><a href="ServiceOrder_List.gds?OrdState=2&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">未调度</a></li>
                            <li class="last"><a href="ServiceOrder_List.gds?OrdState=3&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">已调度</a></li>
                        </ul>
                    </li>
                    <%End if%>
                    <%if isDepartment("020104")=1 then%><li><a href="CallRecord_List.gds">来电记录</a></li><%End if%>
                    <%if isDepartment("0202")=1 then%><li><a href="#">客户CRM</a></li><%End if%>
                    <%if isDepartment("0203")=1 then%><li class="last"><a href="#">呼叫中心</a></li><%End if%>
                </ul>
            </li>
            <%End if%>
 
            <%If isDepartment("03")=1 then%>
            <li>
                <a href="/DispatchOrder_List.gds?OrdDateType=&OrdClassList=&h_menu1_1=1" title="车辆调度"><span class="icon"><img src="resources/images/icons/page_white_copy.png" alt="调度单" /></span><span>调度单</span></a>
                <ul>
                    <%if isDepartment("030101")=1 then%><li><a href="ServiceOrder.gds?NEWOrder=2">新建调度单</a></li><%End if%>
                    <%if isDepartment("030101")=1 then%><li><a href="DispatchOrder.gds?OrdClass=SP">新建驻点单</a></li><%End if%>
                    <%if isDepartment("030103")=1 then%>
                    <li><a href="/DispatchOrder_List.gds?OrdDateType=&OrdClassList=&h_menu1_1=1" class="childs">调度单查询</a>
                        <ul>
                            <li><a href="DispatchOrder_List.gds?OrdState=&OrdDateType=<%=OrdDateType%>&OrdClassList=&h_menu1_1=1">全部</a></li>
                            <li><a href="DispatchOrder_List.gds?OrdState=1&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">等待调度</a></li>
                            <li><a href="DispatchOrder_List.gds?OrdState=2&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">等待确认</a></li>
                            <li><a href="DispatchOrder_List.gds?OrdState=3&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">等待出车</a></li>
                            <li><a href="DispatchOrder_List.gds?OrdState=4&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">服务中</a></li>
                            <li><a href="DispatchOrder_List.gds?OrdState=8_0&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">已返回(未审核)</a></li>
                            <li><a href="DispatchOrder_List.gds?OrdState=8_1&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">已完成(已审核)</a></li>
                            <li class="last"><a href="DispatchOrder_List.gds?OrdState=9&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>&h_menu1_1=1">跑空单</a></li>
 
                        </ul>
                    </li>
                    <li><a href="DispatchOrder_List.gds?OrdState=Visit&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>">回访记录</a></li>
                    <li><a href="DispatchOrder_List.gds?OrdState=Image&OrdDateType=<%=OrdDateType%>&OrdClassList=<%=OrdClassList%>">文书记录</a></li>
                    <%End if%>
                    <%if isDepartment("030201")=1 then%>
                    <li><a href="/PaidMoney_List.gds?h_menu1_1=2" class="childs">费用单</a>
                        <ul class="<%if session("h_menu1_1")="2" then%>expanded<%else%>collapsed<%end if%>">
                            <li><a href="/PaidMoney_List.gds?OrdType=1&h_menu1_1=2">收款单</a></li>
                            <li><a href="/PaidMoney_List.gds?OrdType=2&h_menu1_1=2">退款单</a></li>
                            <%if isDepartment("030206")=1 then%><li><a href="/Invoice_List.php?h_menu1_1=2&AuditStatus=-1&OrdDateType=7"">发票申请</a></li><%End if%>
                        </ul>
                    </li>
                    <%End if%>
                    <%if isDepartment("030115")=1 Or isDepartment("030116")=1 Or isDepartment("030117")=1 then%><li><a href="DispatchOtCheck_List.gds">加班申请单</a></li><%end if%>
                    <%if isDepartment("0506")=1 then%>
                        <%
                        sql="select ModuleID,ModuleName,ModuleReadme from OA_Module where ModuleID like '0506%' and ModuleLevel=3"
                        rs.open sql,objConn,1,1
                        do while not rs.Eof
                        ModuleID    = rs("ModuleID")
                        ModuleName    = rs("ModuleName")
                        ModuleReadme= rs("ModuleReadme")
                        If isDepartment(ModuleID)=1 Then
                        %>
                        <li><a href="http://sys.966120.com.cn:89/GPS.asp?GPS=<%=ModuleReadme%>" target="_blank"><%=ModuleName%></a></li>
                        <%End If
                        rs.movenext
                        loop
                        rs.close()%>
                    <%end if%>
                </ul>
            </li>
            <%End if%>
            
            <%If isDepartment("04")=1 then%>
            <li>
                <a href="/MRP_StockList.gds" title="仓库管理"><span class="icon"><img src="resources/images/icons/world_link.png" alt="仓库管理" /></span><span>仓库管理</span></a>
                <ul>
                    <%if isDepartment("0401")=1 then%>
                    <li><a href="#" class="childs">基本信息</a>
                        <ul>
                            <%if isDepartment("0401")=1 then%><li><a href="MRP_Warehouse.gds">仓库设定</a></li><%End If%>
                            <%if isDepartment("0403")=1 then%><li><a href="MRP_strItmClass.gds">分类设定</a></li><%End If%>
                            <%if isDepartment("0402")=1 then%><li><a href="MRP_Supplier.gds">供应商档案</a></li><%End If%>
                            <%if isDepartment("0403")=1 then%><li><a href="MRP_StItm.gds">物品资料</a></li><%End If%>
                            <%if isDepartment("0403")=1 then%><li><a href="MRP_WarehouseShelves.gds">货架信息</a></li><%End If%>
                        </ul>
                    </li>
                    <%end if%>
                    <%if isDepartment("0402")=1 then%>
                    <li><a href="#" class="childs">采购管理</a>
                        <ul>
                            <li><a href="MRP_PurchaseList.gds?OrdType=10">采购入库单</a></li>
                            <li><a href="MRP_PurchaseList.gds?OrdType=15">退货出库单</a></li>
                        </ul>
                    </li>
                    <%end if%>
                    <%if isDepartment("0403")=1 then%>
                    <li><a href="#" class="childs">领用管理</a>
                        <ul>
                            <li><a href="MRP_TradeList.gds?OrdType=11">领用出库单</a></li>
                            <li><a href="MRP_TradeList.gds?OrdType=16">领用归还单</a></li>
                        </ul>
                    </li>
                    <%end if%>
                    <%if isDepartment("0404")=1 then%>
                    <li><a href="#" class="childs">库存管理</a>
                        <ul>
                            <%if isDepartment("040401")=1 then%><li><a href="MRP_StockList.gds">库存查询</a></li><%End If%>
                            <%if isDepartment("040402")=1 then%><li><a href="MRP_ManoeuvreList.gds">转仓单</a></li><%End If%>
                            <%if isDepartment("040406")=1 then%><li><a href="MRP_StockAdjustList.gds">库存调整单</a></li><%End If%>
                            <%if isDepartment("040406")=1 then%><li><a href="MRP_StockShelves.gds">物品货架对照</a></li><%End If%>
                            <%if isDepartment("040401")=1 then%><li><a href="MRP_VE_List.gds">重点议器管理</a></li><%End If%>
                        </ul>
                    </li>
                    <%end if%>
                </ul>
            </li>
            <%End If%>
 
            <%If isDepartment("05")=1 then%>
            <li>
                <a href="#" title="车辆管理"><span class="icon"><img src="resources/images/icons/world_link.png" alt="车辆管理" /></span><span>车辆管理</span></a>
                <ul>
                    <%if isDepartment("0501")=1 then%><li><a href="CarData.gds?h_menu1=1">车辆管理</a></li><%end if%>
                    <%if isDepartment("0501")=1 then%><li><a href="CarOut.gds?h_menu1=1">出车记录</a></li><%end if%>
                    <%if isDepartment("0502")=1 then%><li><a href="CarRepair.gds?h_menu1=1">维修保养</a></li><%end if%>
                    <%if isDepartment("0503")=1 then%><li><a href="CarIllegal.gds?h_menu1=1">违章记录</a></li><%end if%>
                    <%if isDepartment("0504")=1 then%><li><a href="CarInsurance.gds?h_menu1=1">保险记录</a></li><%end if%>
                    <%if isDepartment("0505")=1 then%><li><a href="CarGas.gds?h_menu1=1">加油记录</a></li><%end if%>
                    <%if isDepartment("0506")=1 then%>
                        <%
                        sql="select ModuleID,ModuleName,ModuleReadme from OA_Module where ModuleID like '0506%' and ModuleLevel=3"
                        rs.open sql,objConn,1,1
                        do while not rs.Eof
                        ModuleID    = rs("ModuleID")
                        ModuleName    = rs("ModuleName")
                        ModuleReadme= rs("ModuleReadme")
                        If isDepartment(ModuleID)=1 Then
                        %>
                        <li><a href="http://sys.966120.com.cn:89/GPS.asp?GPS=<%=ModuleReadme%>" target="_blank"><%=ModuleName%></a></li>
                        <%End If
                        rs.movenext
                        loop
                        rs.close()%>
                    <%end if%>
                </ul>
            </li>
            <%End If%>
 
            <%If isDepartment("06")=1 then%>
            <li>
                <a href="#" title="基础资料"><span class="icon"><img src="resources/images/icons/application_double.png" alt="基础资料" /></span><span>基础资料</span></a>
                <ul>
                    <%if isDepartment("0601")=1 then%><li><a href="/AdminUser_Department.gds?h_menu1=1">部门管理</a></li><%End if%>
                    <%if isDepartment("060203")=1 Then
                    Set header_rs = Server.CreateObject("ADODB.Recordset")
                    %>
                    <li><a href="/AdminUser_List.gds?departmentID=<%=session("adminDepartmentID")%>&h_menu1_1=1" class="childs">员工管理</a>
                        <ul>
                            <%
                            sql="select id,vID,vtext,vType,vOrder,vtitle,parentInt=(select count(id) from dictionary as b where b.vtitle='OA_Department' and b.vType=a.vID) from dictionary as a where vtitle='OA_Department' and vType=1 order by vOrder"
                            rs.open sql,objConn,1,1
                            do while not rs.Eof
                            header_departmentID    = rs("vID")
                            aa=header_departmentID
                            header_departmentName    = rs("vtext")
                            header_parentInt    = rs("parentInt")
                            %>
                            <li><a href="/AdminUser_List.gds?departmentID=<%=header_departmentID%>&h_menu1_1=1"><%=header_departmentName%></a></li>
                            <%If header_parentInt>0 Then
                                sql="select id,vID,vtext,vType,vOrder,vtitle from dictionary where vtitle='OA_Department' and vType="&aa&" order by vOrder"
                                header_rs.open sql,objConn,1,1
                                do while not header_rs.Eof
                                header_departmentID    = header_rs("vID")
                                header_departmentName    = header_rs("vtext")
                                %>
                                <li><a href="/AdminUser_List.gds?departmentID=<%=header_departmentID%>&h_menu1_1=1">--<%=header_departmentName%></a></li>
                                <%If header_parentInt>0 Then
                                End If
                                header_rs.movenext
                                loop
                                header_rs.close()
                            End If
                            rs.movenext
                            loop
                            rs.close()%>
                        </ul>
                    </li>
                    <%ElseIf isDepartment("0602")=1 then%>
                    <li><a href="/AdminUser_List.gds?departmentID=<%=session("adminDepartmentID")%>">部门员工</a></li>
                    <%End if%>
                    <%If isDepartment("0603")=1 then%>
                    <li><a href="#" class="childs">员工排班</a>
                        <ul>
                            <%If isDepartment("060301")=1 then%><li><a href="/AdminUser_Schedules.gds?CompetencyID=3&h_menu1_1=1">医生排班</a></li><%End if%>
                            <%If isDepartment("060302")=1 then%><li><a href="/AdminUser_Schedules.gds?CompetencyID=4&h_menu1_1=1">护士排班</a></li><%End if%>
                            <%If isDepartment("060303")=1 then%><li><a href="/AdminUser_Schedules.gds?CompetencyID=2&h_menu1_1=1">司机排班</a></li><%End if%>
                        </ul>
                    </li>
                    <%End if%>
                    <%if isDepartment("0604")=1 then%><li><a href="/HospData.gds?h_menu1=1">医院名录</a></li><%End if%>
                    <%if isDepartment("0605")=1 then%><li><a href="/IntroducerData.gds?h_menu1=1">介绍人名录</a></li><%End if%>
                    <%if isDepartment("0606")=1 then%><li><a href="/IntroducerUnitData.gds?h_menu1=1">合作公司名录</a></li><%End if%>
                    <%if isDepartment("0604")=1 then%><li><a href="/ICD10.php">诊断情况标签</a></li><%End if%>
                    <%If isDepartment("0604")=1 then%><li><a href="/HospitalDepartment.php">医院科室</a></li><%end if%>
                </ul>
            </li>
            <%End if%>
            
            <%If isDepartment("07")=1 then%>
            <li>
                <a href="#" title="报表统计"><span class="icon"><img src="resources/images/icons/world_link.png" alt="报表统计" /></span><span>报表统计</span></a>
                <ul>
                <%If isDepartment("070110")=1 then%>
                <li><a href="#" class="childs">系统汇总数据下载</a>
                    <ul>
                        <%sql="select id,vID,vtext,vType,vMono,vOrder,vtitle from dictionary where vtitle='FalseReport' and vType>=1 order by vOrder"
                        rs.open sql,objConn,1,1
                        do while not rs.Eof
                        header_Name    = rs("vtext")
                        header_URL    = rs("vMono")
                        %>
                        <li><a href="<%=header_URL%>"><%=header_Name%></a></li>
                        <%
                        rs.movenext
                        loop
                        rs.close()
                        %>
                    </ul>
                </li>
                <%End If%>
                <%If isDepartment("070101")=1 then%>
                <li><a href="/Report_DispatchPerfomance.gds">出车绩效统计明细</a></li>
                <li><a href="/Report_DispatchPerfomanceSum.gds">出车绩效汇总</a></li>
                <li><a href="/Report_DispatchMoneySum.gds">出车绩效提成汇总</a></li>
                <li><a href="/Report_MileageSum.gds">里程绩效提成汇总</a></li>
                <li><a href="/Report_MileageMan.php">员工里程统计</a></li>
                <li><a href="/Report_MileageOrd.php">订单里程统计</a></li>
                <%End If%>
                <%If isDepartment("070104")=1 then%><li><a href="/Report_DailyTurnover.gds">每日营业额报表</a></li><%End If%>
                <%If isDepartment("070103")=1 Or isDepartment("070107")=1 then%><li><a href="/Report_Hosp.gds">医院转运分析报告</a></li><%End If%>
                <%If isDepartment("070105")=1 then%><li><a href="/Report_Staff.gds">个人转运分析报告</a></li><%End If%>
                <%If isDepartment("070105")=1 then%><li><a href="/Report_StaffScore.php">个人打赏评分流水</a></li><%End If%>
                <%If isDepartment("070102")=1 then%><li><a href="/CallCenter_dictionary.gds">呼叫中心数据报表</a></li><%End If%>
                <%If isDepartment("070103")=1 then%><li><a href="/Report_Dispatch.gds">调度单类型地区统计</a></li><%End If%>
                <%If isDepartment("070103")=1 then%><li><a href="/Report_DispatchSum.gds">业务量统计</a></li><%End If%>
                <%If isDepartment("070103")=1 then%><li><a href="/Report_DispatchDetailed.php">业务明细汇总</a></li><%End If%>
                <%If isDepartment("070106")=1 then%><li><a href="/Report_CancelAnalysis.php">订单取消分析</a></li><%End If%>
                <%If isDepartment("070103")=1 then%><li><a href="/Report_OTProportion.gds">加班提成占比统计</a></li><%End If%>
                <%If isDepartment("070103")=1 then%><li><a href="/Report_OT.php">加班情况统计</a></li><%End If%>
                <%If isDepartment("070103")=1 then%><li><a href="/Report_Respirator.php">呼吸机使用情况统计</a></li><%End If%>
                <%If isDepartment("070111")=1 then%><li><a href="/Report_CarGPSMilestat.php">车辆里程统计</a></li><%End If%>
                <%If isDepartment("070112")=1 then%><li><a href="/Report_DispatchTime.php">调度出车时间统计</a></li><%End If%>
                
                </ul>
            </li>
            <%End if%>
 
            <%If isDepartment("08")=1 then%>
            <li>
                <a href="AdminUser.gds" title="系统管理"><span class="icon"><img src="resources/images/icons/cog.png" alt="系统管理" /></span><span>系统管理</span></a>
                <ul>
                <%if isDepartment("0801")=1 then%>
                    <li><a href="#" class="childs">权限模板</a>
                        <ul>
                            <%
                            sql="select ModuleID,ModuleName from OA_Module where ModuleLevel=1 order by id"
                            rs.open sql,objConn,1,1
                            do while not rs.Eof
                            herder_ModuleID=rs("ModuleID")
                            herder_ModuleName=rs("ModuleName")
                            %>
                            <li><a href="Admin_Module.gds?ModuleID=<%=herder_ModuleID%>&ModuleLevel=1&h_menu1_1=1"><%=herder_ModuleName%></a></li>
                            <%rs.movenext
                            loop
                            rs.close()%>
                        </ul>
                    </li>
                <%End if%>
                <%If isDepartment("0801")="1" Then%><li><a href="Admin_dictionary.gds">系统字典</a></li><%End If%>
                <%If isDepartment("080301")="1" Then%><li><a href="SMS_List.gds">短信发送记录</a></li><%End If%>
                <%If isDepartment("080303")="1" Then%><li class="last"><a href="#">操作记录</a></li><%End If%>
                </ul>
            </li>
            <%End if%>
        </ul>
        <!-- end quick -->
        <div class="corner tl"></div>
        <div class="corner tr"></div>
    </div>
</div>
<!-- end header -->
 
<!--来电窗口-->
<script LANGUAGE="javascript">
    //打开来电窗口
    function JS_PhoneOpen()
    {
    var sTop=document.documentElement.scrollTop;
        if (sTop==0) {sTop=document.body.scrollTop;}
    var sLeft= document.documentElement.scrollLeft;
        if (sLeft==0) {sLeft=document.body.scrollLeft;}
    var dTop = document.getElementById("NewPhone").getBoundingClientRect().top;
    var dLeft = document.getElementById("NewPhone").getBoundingClientRect().left;
    if (dTop<200) {dTop=200;}
    if (dLeft<120) {dLeft=120;}
    PhoneCreate_body.style.display="block";
    document.all.PhoneCreate_body.style.width=document.body.clientWidth+'px';
    document.all.PhoneCreate_body.style.height=document.body.clientHeight+'px';
 
    //PhoneCreate.style.left=(dLeft-230)+"px";
    //PhoneCreate.style.top=(sTop+dTop-50)+"px";
    //document.getElementById("NewPhone").focus();
    PhoneCreate.style.display="block";
    document.NewPhoneForm.NewPhone.focus();
    }
 
    //来电窗口-关闭上传窗口
    function JS_PhoneCreateClose()
    {
    PhoneCreate_body.style.display="none";
    PhoneCreate.style.display="none";
    }
    //来电窗口-保存
    function JS_PhoneCreateSave()
    {
        var a = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/
        var b = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2})$/
 
        if(document.NewPhoneForm.NewPhone.value=='' || document.NewPhoneForm.NewPhone.value=='0') {
            alert('请输入电话!!');
            return false;
        }
            window.location.href = "/ServiceOrder.gds?Phone="+document.NewPhoneForm.NewPhone.value; 
            //document.NewPhoneForm.action = "admin_save.gds";
            //NewPhoneForm.submit();
            return false;
    }
</script>
<script type="text/javascript" language="javascript">
function xKeyEvent(e){   //通用的兼容各个浏览器的响应键盘事件函数  
//FUNCTION: do the EVENT of KEY   
var e = e || window.event;  //事件处理  
switch(e.keyCode | e.which | e.charCode)  //按键 ASCII 码值  
    {  
            
     case 113: //响应F2键 // 码112--123对应F1--F12  
          {  
          //...x operation...   
          JS_PhoneOpen();
          break;  
          } 
     default:  
      //...default operation...   
    }  
</script>
<!--来电窗口-->
<div id="PhoneCreate_body" name="PhoneCreate_body" style="position:absolute;top:0px;opacity: 0.7;background-color:#777;z-index:59999;left:0px;display:none;"></div>
<div class="dialogJ  dialogJfix dialogJshadow" id="PhoneCreate" style="width: 370px;left: 600px; top: 150px;display:none;z-index: 60000;">
    <form id="NewPhoneForm" name="NewPhoneForm" action="/ServiceOrder.gds" method="post" onsubmit="return JS_PhoneCreateSave();">
    <div class="dialogJtitle">
        <a href="javascript:JS_PhoneCreateClose();" class="dialogJclose" title="关闭本窗口">&nbsp;</a>
        <span class="dialogJtxt" id="EditPhotoTXT">新来电</span>
    </div>
    <div class="dialogJcontent">
        <div class="dialogJbody" id="dialogJbody" style="height: 0px;">
            <div class="modify-album-name">
                <span>电话:</span>
                <input id="NewPhone" name="NewPhone" class="text" type="text" value="" style="width: 165px;" maxlength="99/">
            </div>
        </div>
    </div>
    <div class="dialogJanswers">
        <input type="button" class="dialogJbtn first-child" onclick="JS_PhoneCreateSave()" value="确定"> 
        <input type="button" class="dialogJbtn" onclick="JS_PhoneCreateClose()" value="取消">
    </div>
    </form>
</div>
<!--来电窗口 end-->
 
<!--发送企业微信信息-->
<script LANGUAGE="javascript">
    //新建企业微信发送-关闭上传窗口
    function JS_WorkWXCreateClose()
    {
    WorkWXCreate.style.display="none";
    }
    //企业微信发送
    function JS_WorkWXCreateSave()
    {
    formWorkWX.submit();
    }
    //显示发送企业微信窗口
    function JS_WorkWXTosend(Send_OAid,Send_OAName,Send_Text,Send_URL)
    {
        var sTop=document.documentElement.scrollTop;
            if (sTop==0) {sTop=document.body.scrollTop;}
        var sLeft= document.documentElement.scrollLeft;
            if (sLeft==0) {sLeft=document.body.scrollLeft;}
        var dTop = document.getElementById("form1").getBoundingClientRect().top;
        var dLeft = document.getElementById("form1").getBoundingClientRect().right;
        if (dTop<200) {dTop=400;}
        if (dLeft<120) {dLeft=500;}
        WorkWXCreate.style.display="block";
        WorkWXCreate.style.right="100px";
        WorkWXCreate.style.top=(sTop+dTop-200)+"px";
        document.getElementById('New_WorkWXSend_Text').innerHTML = Send_Text;
        document.formWorkWX.Entourage_WorkWX.value=Send_OAid;
        document.formWorkWX.EntourageName_WorkWX.value=Send_OAName;
        document.formWorkWX.WX_URL.value=Send_URL;
    }
 
</script>
<div class="dialogJ  dialogJfix dialogJshadow" id="WorkWXCreate" style="width:500px; right: 300px; top: 150px;display:none;z-index: 1000;">
    <div class="dialogJtitle">
        <a href="javascript:JS_WorkWXCreateClose();" class="dialogJclose" title="关闭本窗口">&nbsp;</a>
        <span class="dialogJtxt" id="EditPhotoTXT">内部信息发送</span>
    </div>
    <form id="formWorkWX" name="formWorkWX" action="/weixin/message_send_WorkWX.gds" method="post">
    <input name="R_URL" type="hidden" value="<%=Request.ServerVariables("URL")&"?"&Request.ServerVariables("Query_String")%>">
    <input name="WX_URL" type="hidden" value="">
    <div class="dialogJcontent">
        <div class="dialogJbody" id="dialogJbody">
            <div class="modify-album-name" style="border-bottom: 1px solid #cdcdcd;padding: 10px 21px;">
                <span>收信人:</span>
                <input id="Entourage_WorkWX" name="wx_OAID" type="hidden" value="">
                <input type="text" id="EntourageName_WorkWX" name="wx_OAName" class="small" onclick="javascript:JS_EntourageOpen('WorkWX','-11');" style="width:80px;" value="" readonly="true">
            </div>
            <div class="modify-album-name" style="border-bottom: 1px solid #cdcdcd;padding: 0px 21px;">
                <span>发送内容:</span>
                <textarea name="Send_Text" id="New_WorkWXSend_Text" style="width:380px;height:200px;"></textarea>
            </div>
        </div>
    </div>
    </form>
    <div class="dialogJanswers" style="padding: 10px 20px 13px 18px;">
        <input type="button" id="formWorkWX_submit" class="dialogJbtn first-child" onclick="JS_WorkWXCreateSave()" value="发送"> 
        <input type="button" class="dialogJbtn" onclick="JS_WorkWXCreateClose()" value="取消">
    </div>
</div>
<!--发送企业微信信息  end-->