【调度系统】广东民航医疗快线调度系统源代码
wlzboy
2025-09-06 2decf5219e3476e30095fd9dbf6e49c55e105563
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
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
<div class="zhezhao" id="zhezhao"></div> 
 <div class="login" id="login"><img src="/resources/images/loading.gif" border="0" alt=""></div>  
<!-- 
<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">
            <form action="OrdSearch.gds" name="OrdSearch" method="post">
                <div class="input">
                    <select name="OrdSearchType" >
                        <option value="1"<%If Request("OrdSearchType")="1" Then Response.Write " selected"%>>服务单</option>    
                        <option value="2"<%If Request("OrdSearchType")="2" Then Response.Write " selected"%>>调度单</option>
                    </select><input type="text" id="OrdSearch" name="OrdSearch" value="<%=searchTXT%>" /><input type="submit" name="submit" value="订单搜索" />
                </div>
            </form>
        </li>
    
        <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="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%>
                    <%if isDepartment("0105")=1 then%><li><a href="CouponAdminList.php">优惠券</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();},120000);//三十秒后执行
            /*请求函数的ajax*/  
            function Push() {
                $.ajax({  
              
                    type: "POST",  
                    url: "menu_Data.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];
                            document.getElementById("Notification_URL").href=Notification[4];
                            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];
                            document.getElementById("Notification_URL").href=Notification[4];
                            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_Data.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" id="Notification_URL" 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 And 1=2 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>
                            <li class="last"><a href="ServiceOrder_List.gds?OrdState=3_1&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>
                            <%if isDepartment("030127")=1 Then%><li><a href="DispatchOrder_List.gds?OrdState=8_5&h_menu1_1=1<%=collapsible_URL%>">已完成(待财务审核)</a></li><%End If%>
                            <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("030125")=1 then%><li><a href="SpecialOrderList.gds">特殊任务批量审核</a></li><%end if%>
                    <%if isDepartment("0302")=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=3&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%>
                            <li><a href="/PaidMoney_List2.gds?OrdType=1&h_menu1_1=2&OrdClassList=2">费用单审核</a></li>
                            <li><a href="/PaidMoneyFA_List.gds?h_menu1_1=2">任务单财务审核</a></li>
                            <li><a href="/UserPoints_List.php">用户积分提现</a></li>
                        </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%>
                    <li><a href="https://www.gpsoo.net/" target="_blank">车辆位置监控</a></li>
                    <li><a href="http://183.6.154.122:8088/" target="_blank">车辆视频监控</a></li>
                        <%'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
                        'Response.Write "<li><a href=""https://www.gpsoo.net/"" 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%>
                    <li><a href="https://www.gpsoo.net/" target="_blank">车辆位置监控</a></li>
                    <li><a href="http://183.6.154.122:8088/" target="_blank">车辆视频监控</a></li>
                </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
                    %>
                    <li><a href="/AdminUser_List.gds?departmentID=<%=session("adminDepartmentID")%>&h_menu1_1=1" class="childs">员工管理</a>
                        <ul id="HeaderDepartmentList"></ul>
                    </li>
                    <script LANGUAGE="javascript">
                    $.ajax({
                        type: "POST",  
                        url: "/AdminUser_Department_json.php",
                        dataType: 'json',
                        beforeSend: function() {},
                        success: function(data) {
                            var OADepartmentList="";
                            for (i = 0; i < data.length; i++) {
                                 //console.log(data[i].name);
                                 MenuLevel="";
                                 for(x=0;x<data[i].level;x++) {MenuLevel=MenuLevel+"--";}
                                 OADepartmentList=OADepartmentList+"<li><a href='/AdminUser_List.gds?departmentID="+data[i].id+"&h_menu1_1=1'>"+MenuLevel+data[i].name+"</a></li>"
                            } 
                            document.getElementById("HeaderDepartmentList").innerHTML=OADepartmentList;
                        }
                    })
                    </script>
                    <%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("0607")=1 then%><li><a href="/BranchUnitData.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%>
                    <%If isDepartment("0608")=1 then%><li><a href="/OrderPriceSetUPv2.gds">自动报价设定 </a></li><%end if%>
                    <%If isDepartment("0608")=1 then%><li><a href="/UserPoints_List.gds">用户积分流水 </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_WorkingHoursMan.php">员工工时统计</a></li>
                -->
                <li><a href="/Report_MileageMan.php">员工里程统计(21年7月前)</a></li>
                <li><a href="/Report_MileageMan3.php">员工里程统计(21年8月后)</a></li>
                <li><a href="/Report_KPISum1.php">绩效汇总A版</a></li>
                <!--
                <li><a href="/Report_MileageMan2.php">员工里程统计2</a></li>
                <li><a href="/Report_MileageOrd.php">订单里程统计</a></li>
                <li><a href="/Report_OrdMileageTime.php">路程和转运时间对照表</a></li>
                <li><a href="/Report_CheckinData.php">员工打卡记录</a></li>
                -->
                <%End If%>
                <!--<%If isDepartment("070118")=1 then%><li><a href="/Report_Equipment.php">出车物品使用统计</a></li><%End If%>-->
                <%If isDepartment("070117")=1 then%><li><a href="/Report_FrontLine.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("070105")=1 then%><li><a href="/Report_StaffScoreSum.php">订单评价汇总</a></li><%End If%>
                <%If isDepartment("070126")=1 then%><li><a href="/Report_StaffScoreUserSum.php">客服评价数量统计</a></li><%End If%>
                <!--<%If isDepartment("070102")=1 then%><li><a href="/CallCenter_dictionary.gds">呼叫中心数据报表</a></li><%End If%>-->
                <%If isDepartment("070116")=1 then%><!--<li><a href="/Report_Dispatch.gds">调度单类型地区统计</a></li>--><%End If%>
                <%If isDepartment("070116")=1 then%><li><a href="/Report_DispatchSum.gds">业务量统计(按区域)</a></li><%End If%>
                <%If isDepartment("070116")=1 then%><li><a href="/Report_DispatchUnitSum.gds">业务量统计(按业务类型)</a></li><%End If%>
                <%If isDepartment("070116")=1 then%><li><a href="/Report_DispatchDetailed.php">业务明细汇总(新)</a></li><%End If%>
                <%If isDepartment("070121")=1 then%><li><a href="/Report_DispatchSpecialDetailed.php">特殊单明细汇总</a></li><%End If%>
                <%If isDepartment("070106")=1 then%><li><a href="/Report_CancelAnalysis.php">订单取消分析</a></li><%End If%>
                <!--<%If isDepartment("070113")=1 then%><li><a href="/Report_OTProportion.gds">加班提成占比统计</a></li><%End If%>-->
                <%If isDepartment("070113")=1 then%><li><a href="/Report_OT.php">加班情况统计</a></li><%End If%>
                <%If isDepartment("070113")=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%>-->
                <!--<%If isDepartment("070114")=1 then%><li><a href="/Report_UserRecommend.php">个人用户推广汇总</a></li><%End If%>-->
                <%If isDepartment("070115")=1 then%><li><a href="/Report_OrdReport.php">查看手机报表情况</a></li><%End If%>
                <%If isDepartment("070119")=1 then%><li><a href="/Report_BranchUnitSum.gds">机构年度营业数据</a></li><%End If%>
                <!--
                <%If isDepartment("070120")=1 then%><li><a href="/Report_NucleicAcid.gds">核酸记录</a></li><%End If%>
                <%If isDepartment("070120")=1 then%><li><a href="/Report_Sterilize.gds">消杀记录</a></li><%End If%>
                -->
                <%If isDepartment("070125")=1 then%><li><a href="/Report_WXCXOrdAnalysis.php">小程序订单分析</a></li><%End If%>
                <%If isDepartment("070111")=1 then%><li><a href="/Report_CarGas.gds">车辆油耗报表</a></li><%End If%>
                <%If isDepartment("070123")=1 then%>
                <li><a href="#" class="childs">优惠券相关</a>
                    <ul>
                        <li><a href="/Report_CouponUserInt.php">获取优惠券的客户数量统计</a></li>
                        <!--<li><a href="/Report_WXCXCoupon.php">使用优惠券的任务单统计</a></li>-->
                        <li><a href="/Report_CouponOrdDetailed.php">使用优惠券的任务单明细及统计</a></li>
                    </ul>
                </li>
                <%End If%>
                <%If isDepartment("070124")=1 then%>
                <li><a href="#" class="childs">用户积分相关</a>
                    <ul>
                        <li><a href="/Report_PointsInstitutionSum.php">各机构积分成本汇总表</a></li>
                        <li><a href="/Report_PointsInstitution.php">各机构积分出入流水表</a></li>
                        <li><a href="/Report_PointsUserSum.php">用户积分汇总表</a></li>
                        <li><a href="/Report_PointsUser.php">用户积分流水表</a></li>
                    </ul>
                </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-->
 
<%If InStr(admin_OrderClass,"BF")>0 Then%>
<!--来电记录 -->
 
 
<style type="text/css"> 
.qq-client{position:fixed;right:0px;top:50%;margin-top:-80px;}
.qq-client a{width:50px;height:160px;text-align:center;border:#ebebeb solid 1px;padding:0px 0px;line-height:40px;display:block;}
.qq-client-content{position:fixed;right:-250px;top:38%;border:#ebebeb solid 1px;width:200px;display:none;background:#ffffff;}
.qq-client-content h1{font-size:14px;width:90%;margin:0px auto;text-align:center;height:50px;line-height:50px;border-bottom:#ebebeb solid 1px;position:relative;}
.qq-client-content h1 span{font-size:12px;font-weight:normal;position:absolute;left:-30px;top:-20px;cursor:pointer;background:#ffffff;border:#ebebeb solid 1px;width:40px;height:40px;line-height:40px;border-radius:20px;text-align:center;}
.qq-client-list{background:#ffffff;}
.client-list{overflow:hidden;line-height:40px;width:90%;margin:0px auto;border-bottom:dashed 1px #ebebeb;}
.client-list a:hover{color:red;}
.client-list span{float:left;}
.client-list label{float:left;width:42px;text-align:right;padding-right:10px;}
</style>
<div class="qq-client" style="display: block;">
    <a href="javascript:void(0);" class="qq-client-open">电<br>话<br>登<br>记</a>
</div>
<div class="qq-client-content" style="display: none; right: 0px;">
    <h1>来电客户<span class="qq-client-close">关闭</span></h1>
    <div class="qq-client-list">
        <div class="client-list"><label>号码:</label><span><input type="text" name="CallRecord_Phine" id='CallRecord_Phine' value="<%=Request.Cookies("CAME_Phone")("Phone")%>" style="width: 120px;"></span></div>
        <div class="client-list"><label>时间:</label><span><input type="text" name="CallRecord_PhineTime" id='CallRecord_PhineTime' value="<%=Request.Cookies("CAME_Phone")("PhoneTime")%>" style="width: 120px;"></span></div>
        <div class="client-list"><label>类型:</label>
            <input type="radio" id="CallRecord_InAndOut_0" value="0" name="CallRecord_InAndOut" checked="checked"><label for="CallRecord_InAndOut_0" style="float: none;padding-right: 0;">呼入</label>&nbsp;<input type="radio" id="CallRecord_InAndOut_1" value="1" name="CallRecord_InAndOut"><label for="CallRecord_InAndOut_1" style="float: none;padding-right: 0;">呼出</label>
        </div>
        <div class="client-list"><label>来源:</label><span>
            <select name="CallRecord_Source" id="CallRecord_Source">
                <%sql="select vId,vtext from dictionary where vType=1 and vtitle='CallRecord_Source' order by vOrder"
                rs.open sql,objConn,1,1
                do while not rs.Eof
                    CallRecord_SourceID=rs(0)
                    CallRecord_SourceName=rs(1)
                    %>
                        <option value="<%=CallRecord_SourceID%>"<%if Clng(CallRecord_Source)=Clng(CallRecord_SourceID) then Response.Write " selected"%>><%=CallRecord_SourceName%></option>
                    <%
                rs.movenext
                loop
                rs.close()%>
            </select>
        </span></div>
        <div class="client-list"><label>单号:</label><span><input type="text" name="CallRecord_OrdID" id='CallRecord_OrdID' value="<%=ServiceOrdID_TXT&ServiceOrdIDDt_TXT%>" style="width: 120px;"></span></div>
        <div class="client-list" style="border-bottom: none;text-align: center;"><a href="javascript:JS_PhoneDateUpdate()">提交记录</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:JS_PhoneDateDel()">取消记录</a></div>
    </div>
</div>
<script type="text/javascript">
$(function(){
    H_qqServer={};
    H_qqServer.clickOpenServer = function () {
        $('.qq-client-open').click(function(){
            $('.qq-client-content').css('display','block');
            $('.qq-client').css('display','none');
            <%if Request.Cookies("CAME_Phone")("PhoneTime")="" then%>
                var myDate = new Date;
                var year = myDate.getFullYear(); //获取当前年
                var mon = myDate.getMonth() + 1; //获取当前月
                var date = myDate.getDate(); //获取当前日
                var h = myDate.getHours();//获取当前小时数(0-23)
                var m = myDate.getMinutes();//获取当前分钟数(0-59)
                var s = myDate.getSeconds();//获取当前秒
                $("#CallRecord_PhineTime").attr('value',year+"/"+mon+"/"+date+" "+h+":"+m+":"+s);
            <%end if%>
            /*
            $('.qq-client').animate({
                right: '-50'
            },400);
            $('.qq-client-content').animate({
                right: '0',
                opacity: 'show'
            }, 800 );
            */
        });
        $('.qq-client-close').click(function(){
            $('.qq-client-content').css('display','none');
            $('.qq-client').css('display','block');
            /*
            $('.qq-client').animate({
                right: '0',
                opacity: 'show'
            },400);
            $('.qq-client-content').animate({
                right: '-250',
                opacity: 'show'
            }, 800 );
            */
        });
    };
    H_qqServer.run= function () {
        this.clickOpenServer();
    };
    H_qqServer.run();
});
function JS_PhoneDateUpdate() {
    var CallRecord_Phine = $('#CallRecord_Phine').val();
    var CallRecord_StartTime = $('#CallRecord_PhineTime').val();
    var CallRecord_InAndOut = getRadioValue("CallRecord_InAndOut");
    var CallRecord_Source = $('#CallRecord_Source option:selected').val();
    var CallRecord_OrdID = $('#CallRecord_OrdID').val();
    //console.log(CallRecord_Phine);
    $.ajax({  
        type: "POST",
        dataType:'json',
        url: "admin_save.gds",
        data: {  
            admin_save: "138_json",
            CallRecord_Phine: CallRecord_Phine,
            CallRecord_StartTime: CallRecord_StartTime,
            CallRecord_InAndOut: CallRecord_InAndOut,
            CallRecord_Source: CallRecord_Source,
            OrdID: CallRecord_OrdID
        },  
        beforeSend: function() {},
        success: function(data) {
            if (data!='')
            {
                $('.qq-client-content').css('display','none');
                $('.qq-client').css('display','block');
                var myDate = new Date;
                var year = myDate.getFullYear(); //获取当前年
                var mon = myDate.getMonth() + 1; //获取当前月
                var date = myDate.getDate(); //获取当前日
                var h = myDate.getHours();//获取当前小时数(0-23)
                var m = myDate.getMinutes();//获取当前分钟数(0-59)
                var s = myDate.getSeconds();//获取当前秒
                $("#CallRecord_PhineTime").attr('value',year+"/"+mon+"/"+date+" "+h+":"+m+":"+s);
                $("#CallRecord_Phine").attr('value','');
                alert("提交成功");
            }
        }
    })
    
};
function JS_PhoneDateDel() {
    $.ajax({  
        type: "POST",
        dataType:'json',
        url: "admin_save.gds",
        data: {  
            admin_save: "137_json"
        },  
        beforeSend: function() {},
        success: function(data) {
            if (data!='')
            {
                $('.qq-client-content').css('display','none');
                $('.qq-client').css('display','block');
                var myDate = new Date;
                var year = myDate.getFullYear(); //获取当前年
                var mon = myDate.getMonth() + 1; //获取当前月
                var date = myDate.getDate(); //获取当前日
                var h = myDate.getHours();//获取当前小时数(0-23)
                var m = myDate.getMinutes();//获取当前分钟数(0-59)
                var s = myDate.getSeconds();//获取当前秒
                $("#CallRecord_PhineTime").attr('value',year+"/"+mon+"/"+date+" "+h+":"+m+":"+s);
                $("#CallRecord_Phine").attr('value','');
            }
        }
    })
};
function getRadioValue(name){
    var radioes = document.getElementsByName(name);
    for(var i=0;i<radioes.length;i++)
    {
         if(radioes[i].checked){
          return radioes[i].value;
         }
    }
    return false;
}
<%If Request.Cookies("CAME_Phone")("Phone")<>"" Then
    Response.Write "$('.qq-client-content').css('display','block');$('.qq-client').css('display','none');"
End If%>
</script>
 
<!--来电记录  end-->
<%End If%>