【调度系统】广东民航医疗快线调度系统源代码
wanglizhong
2025-04-21 b8349bc19da36ab153c5466db7d089888a89f955
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
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<!--#include virtual="/inc/chkadmin.gds"-->
<!--#include virtual="/inc/function.gds"-->
<%
if isDepartment("0604")=0 then
  Response.Redirect "/"
  Response.End()
end If
 
'各种返回信息
SystemMessageType=trim(Request("SystemMessageType"))
SMT=trim(Request("SMT"))
if SMT="1" then
  SystemMessageTXT="数据不足!!!"
elseif SMT="2" then
  SystemMessageTXT="医院资料修改完成"
elseif SMT="3" then
  SystemMessageTXT="新建医院资料完成"
elseif SMT="4" then
  SystemMessageTXT="医院资料删除完成"
elseif SMT="5" then
  SystemMessageTXT="医院资料重复"
elseif SMT="6" then
  SystemMessageTXT="请选择需要修改的项目"
elseif SMT="7" then
  SystemMessageTXT="医院资料合并完成"
elseif SMT="8" then
  SystemMessageTXT="请选择需要合并的项目"
end if
 
searchTXT=trim(Request("searchTXT"))
HospSearchID=trim(Request("HospSearchID"))
Set rs = Server.CreateObject("ADODB.Recordset")
 
'医院等级列表
HospLevels = ""
sql="select vId,vtext from dictionary where vType=1 and vtitle='HospLevel' order by vOrder"
rs.open Sql,objConn,1,1
do while not rs.Eof
    HospLevels = HospLevels & rs("vID") &","& rs("vtext") & "|"
rs.movenext
Loop
rs.close()
HospLevels = left(HospLevels,len(HospLevels)-1)
HospLevelsPS = SPLIT(HospLevels,"|")
 
page_URL="&searchTXT="&searchTXT&"&HospSearchID="&HospSearchID&"&h_menu1_1=1"
%>
<!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="AdminUser_menu_left.gds" -->
            <!-- content / right -->
            <div id="right" style="margin: -10px 60px 0 60px;">
                <!-- table -->
                <div class="box">
                    <!-- box / title -->
                    <div class="title">
                        <h5>医院名录</h5>
                        <ul class="links">
                            <%If isDepartment("060402")=1 Then%>
                            <li><a onclick="javascript:HospCreate.style.display='block';">新建</a></li>
                            <li><a onClick="form1_Hosp_merge()">合并</a></li>
                            <li><a onClick="form1_Hosp_update()">修改</a></li>
                            <li><a onClick="form1_Hosp_delete()">删除</a></li>
                            <%End If%>
                            <div class="search">
                            <form action="HospData.gds?h_menu1_1=<%=session("h_menu1_1")%>" method="post">
                                <div class="input">
                                    <input type="text" id="search" name="searchTXT" value="<%=searchTXT%>" />
                                </div>
                                <div class="button">
                                    <input type="submit" name="submit" value="搜索" />
                                </div>
                            </form>
                            </div>
                        </ul>
                        <script LANGUAGE="javascript">
                        //合并医院
                        function form1_Hosp_merge(){
                        document.form1.action = "admin_save.gds";
                        document.form1.admin_save.value = "95";
                        form1.submit();
                        }
                        //修改医院
                        function form1_Hosp_update(){
                        document.form1.action = "admin_save.gds";
                        document.form1.admin_save.value = "48";
                        form1.submit();
                        }
                        //删除医院
                        function form1_Hosp_delete(){
                        document.form1.action = "admin_save.gds";
                        document.form1.admin_save.value = "49";
                        form1.submit();
                        }
                        //选择修改医院
                        function form1_Hosp_Edit(id){
                            if (document.getElementById('Show_HospShort_'+id).style.display=="none")
                            {
                                document.getElementById('Show_HospName_'+id).style.display='';
                                document.getElementById('Edit_HospName_'+id).style.display='none';
                                document.getElementById('HospName_'+id).disabled=true;
                                document.getElementById('Show_HospShort_'+id).style.display='';
                                document.getElementById('Edit_HospShort_'+id).style.display='none';
                                document.getElementById('HospShort_'+id).disabled=true;
                                document.getElementById('Show_HospLevel_'+id).style.display='';
                                document.getElementById('Edit_HospLevel_'+id).style.display='none';
                                document.getElementById('HospLevel_'+id).disabled=true;
                                document.getElementById('Show_HopsProvince_'+id).style.display='';
                                document.getElementById('Edit_HopsProvince_'+id).style.display='none';
                                document.getElementById('HopsProvince_'+id).disabled=true;
                                document.getElementById('Show_HopsArea_'+id).style.display='';
                                document.getElementById('Edit_HopsArea_'+id).style.display='none';
                                document.getElementById('HopsArea_'+id).disabled=true;
                                document.getElementById('Show_HopsCity_'+id).style.display='';
                                document.getElementById('Edit_HopsCity_'+id).style.display='none';
                                document.getElementById('HopsCity_'+id).disabled=true;
                                document.getElementById('Show_HospAddress_'+id).style.display='';
                                document.getElementById('Edit_HospAddress_'+id).style.display='none';
                                document.getElementById('HospAddress_'+id).disabled=true;
                                document.getElementById('Show_HospTEL_'+id).style.display='';
                                document.getElementById('Edit_HospTEL_'+id).style.display='none';
                                document.getElementById('HospTEL_'+id).disabled=true;
                                document.getElementById('Show_HospOAID_'+id).style.display='';
                                document.getElementById('Edit_HospOAID_'+id).style.display='none';
                                document.getElementById('HospOAID_'+id).disabled=true;
                                document.getElementById('Show_HospIntroducerID_'+id).style.display='';
                                document.getElementById('Edit_HospIntroducerID_'+id).style.display='none';
                                document.getElementById('HospIntroducerID_'+id).disabled=true;
                            }
                            else
                            {
                                document.getElementById('Show_HospName_'+id).style.display='none';
                                document.getElementById('Edit_HospName_'+id).style.display='';
                                document.getElementById('HospName_'+id).disabled=false;
                                document.getElementById('Show_HospShort_'+id).style.display='none';
                                document.getElementById('Edit_HospShort_'+id).style.display='';
                                document.getElementById('HospShort_'+id).disabled=false;
                                document.getElementById('Show_HospLevel_'+id).style.display='none';
                                document.getElementById('Edit_HospLevel_'+id).style.display='';
                                document.getElementById('HospLevel_'+id).disabled=false;
                                document.getElementById('Show_HopsProvince_'+id).style.display='none';
                                document.getElementById('Edit_HopsProvince_'+id).style.display='';
                                document.getElementById('HopsProvince_'+id).disabled=false;
                                document.getElementById('Show_HopsCity_'+id).style.display='none';
                                document.getElementById('Edit_HopsCity_'+id).style.display='';
                                document.getElementById('HopsCity_'+id).disabled=false;
                                document.getElementById('Show_HopsArea_'+id).style.display='none';
                                document.getElementById('Edit_HopsArea_'+id).style.display='';
                                document.getElementById('HopsArea_'+id).disabled=false;
                                document.getElementById('Show_HospAddress_'+id).style.display='none';
                                document.getElementById('Edit_HospAddress_'+id).style.display='';
                                document.getElementById('HospAddress_'+id).disabled=false;
                                document.getElementById('Show_HospTEL_'+id).style.display='none';
                                document.getElementById('Edit_HospTEL_'+id).style.display='';
                                document.getElementById('HospTEL_'+id).disabled=false;
                                document.getElementById('Show_HospOAID_'+id).style.display='none';
                                document.getElementById('Edit_HospOAID_'+id).style.display='';
                                document.getElementById('HospOAID_'+id).disabled=false;
                                document.getElementById('Show_HospIntroducerID_'+id).style.display='none';
                                document.getElementById('Edit_HospIntroducerID_'+id).style.display='';
                                document.getElementById('HospIntroducerID_'+id).disabled=false;
                            }
 
                            
                        }
                        //新建医院-关闭窗口
                        function JS_HospCreateClose()
                        {
                        HospCreate.style.display="none";
                        }
                        //新建医院-保存
                        function JS_HospCreateSave()
                        {
                        form2.submit();
                        }
                    </script>
                    </div>
                    <div class="dialogJ  dialogJfix dialogJshadow" id="HospCreate" style="width: 370px; right: 300px; top: 150px;display:none;">
                        <div class="dialogJtitle">
                            <a href="javascript:JS_HospCreateClose();" class="dialogJclose" title="关闭本窗口">&nbsp;</a>
                            <span class="dialogJtxt" id="EditPhotoTXT">新建医院资料</span>
                        </div>
                        <form id="form2" name="form2" action="admin_save.gds" method="post">
                        <input name="admin_save" type="hidden" value="47">
                        <input name="searchTXT" type="hidden" value="<%=searchTXT%>">
                        <input name="page" type="hidden" value="<%=request("page")%>">
                        <div class="dialogJcontent">
                            <div class="dialogJbody" id="dialogJbody" style="height: 322px;">
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>名称:</span>
                                    <input id="HospName" name="HospName" type="text" value="" maxlength="99/">
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>简称:</span>
                                    <input id="HospShort" name="HospShort" type="text" value="" maxlength="99/">
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>级别:</span>
                                    <select id="HospLevel" name="HospLevel" style="padding: 5px 0 5px 8px;">
                                        <option value="0">请选择</option>
                                        <%for z = 0 to UBOUND(HospLevelsPS)
                                          HospLevelsPS1=SPLIT(HospLevelsPS(z),",")
                                          HospLevelID=HospLevelsPS1(0)
                                          HospLevelName=HospLevelsPS1(1)
                                          %>
                                          <option value="<%=HospLevelID%>"><%=HospLevelName%></option>
                                        <%next%>
                                    </select>
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>省份:</span>
                                    <input id="HopsProvince" name="HopsProvince" type="text" value="" maxlength="99/" style="width: 248px;">
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>城市:</span>
                                    <input id="HopsCity" name="HopsCity" type="text" value="" maxlength="99/" style="width: 248px;">
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>地区:</span>
                                    <input id="HopsArea" name="HopsArea" type="text" value="" maxlength="99/" style="width: 248px;">
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>地址:</span>
                                    <input id="HospAddress" name="HospAddress" type="text" value="" maxlength="99/" style="width: 248px;">
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>电话:</span>
                                    <input id="HospTEL" name="HospTEL" type="text" value="" maxlength="99/" style="width: 248px;">
                                </div>
                            </div>
                        </div>
                        </form>
                        <div class="dialogJanswers">
                            <input type="button" class="dialogJbtn first-child" onclick="JS_HospCreateSave()" value="确定"> 
                            <input type="button" class="dialogJbtn" onclick="JS_HospCreateClose()" value="取消">
                        </div>
                    </div>
                    <!-- end box / title -->
            <%
            acc1=request("page")
            if acc1=empty then acc1=clng(1)
            QuantityInt = 20
            acc2=0
            acc3=0
 
            
            If searchTXT<>"" Then
                sql="select IntroducerID from IntroducerData where IntroducerName='"&searchTXT&"'"
                rs.open sql,objConn,1,1
                if not rs.eof Then
                    searchSql=" and HospIntroducerID="&rs(0)
                Else
                    searchTXT1 = Replace(searchTXT," ","%")
                    searchSql=" and (HospName like '%"&searchTXT1&"%' or HospShort like '%"&searchTXT1&"%' or HopsProvince like '%"&searchTXT1&"%' or HopsCity like '%"&searchTXT1&"%' or HopsArea like '%"&searchTXT1&"%')"
                End If
                rs.close()
            End If
 
            If HospSearchID<>"" Then
            sql="select * from HospData where HospState>0 AND HospID="&HospSearchID&" order by HospID desc"
            else
            sql="select * from HospData where HospState>0"&searchSql&" order by HospID desc"
            End If
            'Response.Write sql
            rs.open sql,objConn,1,1
            if not rs.eof then
            rs.pagesize=QuantityInt
            rs.absolutepage=acc1
            acc2=rs.pagecount
            acc3=rs.recordcount
            else
            SystemMessageType=2
            SystemMessageTXT="数据库中相关无数据!"
            end if
            %>
                    <!--#include virtual="/inc/SystemMessages.gds" -->
                    <div class="table">
                        <form id="form1" name="form1" action="" method="post">
                        <input name="admin_save" type="hidden" value="48">
                        <input name="HospSearchID" type="hidden" value="<%=HospSearchID%>">
                        <input name="searchTXT" type="hidden" value="<%=searchTXT%>">
                        <input name="page" type="hidden" value="<%=request("page")%>">
                        <table>
                            <thead>
                                <tr>
                                    <th class="selected"><input type="checkbox" class="checkall" /></th>
                                    <th>名称</th>
                                    <th>简称</th>
                                    <th>分管人员</th>
                                    <th>分属介绍人</th>
                                    <th>级别</th>
                                    <th>省份</th>
                                    <th>城市</th>
                                    <th>地区</th>
                                    <th>地址</th>
                                    <th>电话</th>
                                    <th class="last">状态</th>
                                </tr>
                            </thead>
                            <tbody>
            
            <%i=1
            do while not rs.Eof and i<=QuantityInt
              HospID        = rs("HospID")
              HospName        = rs("HospName")    '名称
              HospCityID    = rs("HospCityID")    '城市ID
              HospShort        = rs("HospShort")    '简称
              HopsProvince    = rs("HopsProvince")'省
              HopsCity        = rs("HopsCity")    '市
              HopsArea        = rs("HopsArea")    '区
              HospAddress    = rs("HospAddress")    '地址
              HospTEL        = rs("HospTEL")        '电话
              HospOAID        = rs("HospOAID")    '分管人员ID
              HospIntroducerID= rs("HospIntroducerID")    '分属介绍人ID
              HospState        = rs("HospState")    '状态(0删除,1正常)
              HospLevel        = rs("HospLevel")    '医院级别
              If HospState="1" Then
                HospState="正常"
              ElseIf HospState="2" Then
                HospState="保养维修"
              End If
              HospOAName=OAUser(HospOAID,"UserName")
              If HospIntroducerID="" Or HospIntroducerID="0" Or isnull(HospIntroducerID) Then
                HospIntroducerName="--"
              Else
                HospIntroducerName=IntroducerData(HospIntroducerID)
              End If
              i=i+1
              %>
              <tr>
                <td class="selected"  style='white-space: nowrap;'><input type="checkbox" id="HospID_<%=HospID%>" name="HospID" value="<%=HospID%>" onclick="javascript:form1_Hosp_Edit('<%=HospID%>')"/></td>
                <td class="category" id="Show_HospName_<%=HospID%>" style="width: 20%;"><A HREF="#"><%=HospName%></A></td>
                <td class="category" id="Edit_HospName_<%=HospID%>" style="display:none;"><input id="HospName_<%=HospID%>" name="HospName_<%=HospID%>" class="small" style="width:200px;text-align: center;" value="<%=HospName%>" type="text" disabled="true"></td>
                <td class="category" id="Show_HospShort_<%=HospID%>"><A HREF="#"><%=HospShort%></A></td>
                <td class="category" id="Edit_HospShort_<%=HospID%>" style="display:none;"><input id="HospShort_<%=HospID%>" name="HospShort_<%=HospID%>" class="small" style="width:120px;text-align: center;" value="<%=HospShort%>" type="text" disabled="true"></td>
                <td class="category" id="Show_HospOAID_<%=HospID%>"  style="width: 5%;"><%=Replace(HospOAName,",","<br>")%></td>
                <td class="category" id="Edit_HospOAID_<%=HospID%>" style="display:none;"><input id="HospOAID_<%=HospID%>" name="HospOAID_<%=HospID%>" class="small" style="width:50px;text-align: center;" value="<%=HospOAID%>" type="text" disabled="true" onclick="javascript:JS_EntourageOpen('<%=HospID%>','-128');"></td>
                <td class="category" id="Show_HospIntroducerID_<%=HospID%>"  style="width: 5%;white-space: nowrap;"><%=HospIntroducerName%></td>
                <td class="category" id="Edit_HospIntroducerID_<%=HospID%>" style="display:none;"><input id="HospIntroducerID_<%=HospID%>" name="HospIntroducerID_<%=HospID%>" class="small" style="width:50px;text-align: center;" value="<%=HospIntroducerID%>" type="text" disabled="true" onclick="javascript:JS_IntroducerOpen('<%=HospID%>','-128');"></td>
                <td class="category" id="Show_HospLevel_<%=HospID%>"   style="width: 5%;"><A HREF="#"><%=HospLevelA(HospLevel)%></A></td>
                <td class="category" id="Edit_HospLevel_<%=HospID%>" style="display:none;">
                    <select id="HospLevel_<%=HospID%>" name="HospLevel_<%=HospID%>" disabled="true">
                        <%If CInt(HospLevel)=0 Then Response.Write "<option value=""0"">请选择</option>"%>
                        <%for z = 0 to UBOUND(HospLevelsPS)
                          HospLevelsPS1=SPLIT(HospLevelsPS(z),",")
                          HospLevelID=HospLevelsPS1(0)
                          HospLevelName=HospLevelsPS1(1)
                          %>
                          <option value="<%=HospLevelID%>"<%If CInt(HospLevelID)=CInt(HospLevel) Then Response.Write " selected"%>><%=HospLevelName%></option>
                        <%next%>
                    </select>
                </td>
                <td class="category" id="Show_HopsProvince_<%=HospID%>" style="width: 5%;white-space: nowrap;"><A HREF="#"><%=HopsProvince%></A></td>
                <td class="category" id="Edit_HopsProvince_<%=HospID%>" style="display:none;"><input id="HopsProvince_<%=HospID%>" name="HopsProvince_<%=HospID%>" class="small" style="width:80px;text-align: center;" value="<%=HopsProvince%>" type="text" disabled="true"></td>
                <td class="category" id="Show_HopsCity_<%=HospID%>" style="width: 5%;white-space: nowrap;"><A HREF="#"><%=HopsCity%></A></td>
                <td class="category" id="Edit_HopsCity_<%=HospID%>" style="display:none;"><input id="HopsCity_<%=HospID%>" name="HopsCity_<%=HospID%>" class="small" style="width:80px;text-align: center;" value="<%=HopsCity%>" type="text" disabled="true"></td>
                <td class="category" id="Show_HopsArea_<%=HospID%>"  style='width: 5%;white-space: nowrap;'><A HREF="#"><%=HopsArea%></A></td>
                <td class="category" id="Edit_HopsArea_<%=HospID%>" style="display:none;"><input id="HopsArea_<%=HospID%>" name="HopsArea_<%=HospID%>" class="small" style="width:80px;text-align: center;" value="<%=HopsArea%>" type="text" disabled="true"></td>
                <td class="category" id="Show_HospAddress_<%=HospID%>" ><%=HospAddress%></td>
                <td class="category" id="Edit_HospAddress_<%=HospID%>" style="display:none;"><input id="HospAddress_<%=HospID%>" name="HospAddress_<%=HospID%>" class="small" style="width:200px;" value="<%=HospAddress%>" type="text" disabled="true"></td>
                <td class="category" id="Show_HospTEL_<%=HospID%>"  style='white-space: nowrap;'><%=HospTEL%></td>
                <td class="category" id="Edit_HospTEL_<%=HospID%>" style="display:none;"><input id="HospTEL_<%=HospID%>" name="HospTEL_<%=HospID%>" class="small" style="width:100px;text-align: center;" value="<%=HospTEL%>" type="text" disabled="true"></td>
                
                <td class="category last" style="width: 5%;"><%=HospState%></td>
              </tr>
            <%rs.movenext
            loop
            rs.close()
            %>
            <%for j=i to 21%>
            <tr>
                <td class="selected">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <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%>
            <%If HospSearchID<>"" Then%>
            <script>
            document.getElementById("HospID_<%=HospSearchID%>").checked=true;
            form1_Hosp_Edit('<%=HospSearchID%>');
            
            </script>
            <%End If%>
                            </tbody>
                        </table>
                        
                        </form>
                    </div>
            
            <div class="dialogJ  dialogJfix dialogJshadow" id="window_Entourage" style="z-index: 50007; width: 350px; left: 0px; top: 0px;display:none;">
            <div class="dialogJtitle">
                <a href="javascript:JS_EntourageClose();" class="dialogJclose" title="关闭本窗口">&nbsp;</a>
                <span class="dialogJtxt">选择人员</span>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="EntourageSearchTXT" name="EntourageSearchTXT" value="<%=EntourageSearchTXT%>" style="width: 100px;" onkeyup="JS_EntourageSearch();"/>&nbsp;<input type="button" name="button3" value="查询" onclick="JS_EntourageSearch();">&nbsp;<input type="button" name="button3" value="清空" onclick="JS_EntourageDel();">
            </div>
            <div class="dialogJcontent">
                <div class="box">
                        <div class="table" style="padding: 0px;">
                            <input name="window_EntourageID" type="hidden" value="">
                            <input name="window_OA_CompetencyID" type="hidden" value="">
                            <table>
                                <thead>
                                    <tr>
                                        <th class="selected left">&nbsp;</th>
                                        <th class="category" style="text-align: center;">姓名</th>
                                        <th class="category last" style="text-align: center;">手机</th>
                                    </tr>
                                </thead>
                                <tbody id="EntourageList">
                                    <%for j=0 to 6%>
                                        <tr>
                                            <td class="selected">&nbsp;</td>
                                            <td class="category">&nbsp;</td>
                                            <td class="category last">&nbsp;</td>
                                        </tr>
                                    <%next%>
                                </tbody>
                            </table>
                    </div>
            </div>
            </div>
            </div>
            <script LANGUAGE="javascript">
            //打开选择人员窗口
            function JS_EntourageOpen(id,OA_CompetencyID)
            {
            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("HospOAID_"+id).getBoundingClientRect().top;
            if (dTop<200) {dTop=110;}
            var dLeft = document.getElementById("HospOAID_"+id).getBoundingClientRect().left;
            if (dLeft<200) {dLeft=200;}
            window_Entourage.style.display="block";
            window_Entourage.style.left=(dLeft-100)+"px";
            window_Entourage.style.top=(sTop+dTop+30)+"px";
            document.all.window_EntourageID.value=id;
            document.all.window_OA_CompetencyID.value=OA_CompetencyID;
            if (OA_CompetencyID!=0){window.HiddenFrame.location.replace('AdminUserSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID='+OA_CompetencyID);}
            document.getElementById('EntourageSearchTXT').focus();
            }
            //关闭选择人员窗口
            function JS_EntourageClose()
            {
            document.all.EntourageSearchTXT.value='';
            document.all.window_EntourageID.value="";
            window_Entourage.style.display="none";
            }
            //选择人员查询
            function JS_EntourageSearch()
            {
            EntourageSearchTXT=document.all.EntourageSearchTXT.value;
            OA_CompetencyID=document.all.window_OA_CompetencyID.value;
            window.HiddenFrame.location.replace('AdminUserSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID='+OA_CompetencyID+'&EntourageSearchTXT='+EntourageSearchTXT);
            }
            function EnterPress(e){ //传入 event 
            var e = e || window.event; 
            if(e.keyCode == 13){JS_EntourageSearch();} 
            } 
            //选择人员
            function JS_EntourageSave(OA_UserID,OA_UserName)
            {
                id=document.all.window_EntourageID.value;
                OA_UserID_old=document.getElementById("HospOAID_"+id).value;
                if (OA_UserID_old=='') {
                    document.getElementById("HospOAID_"+id).value=OA_UserID;
                }else{
                    if (OA_UserID_old.indexOf(OA_UserID) == -1)
                    {
                        document.getElementById("HospOAID_"+id).value=document.getElementById("HospOAID_"+id).value+","+OA_UserID;
                    }
                }
            }
            //选择人员清空
            function JS_EntourageDel()
            {
                id=document.all.window_EntourageID.value;
                document.getElementById("HospOAID_"+id).value='';
            }
            //显示人员列表窗口
            function JS_EntourageList(EntourageListArray,acc1,acc2,EntourageSearchTXT,OA_CompetencyID,OA_CompetencyName)
            {
                var EntourageListHTML = "";
                var i = 0;
                if (EntourageListArray.length>0)
                {
                    for (var i=0;i<EntourageListArray.length;i++)
                    {
                        EntourageListHTML = EntourageListHTML+"<tr onclick='JS_EntourageSave("+EntourageListArray[i][0]+",\""+EntourageListArray[i][1]+"\")' style='cursor:pointer'><td class='selected'><img src='"+EntourageListArray[i][3]+"' style='max-width:29px;max-height: 29px;'></td><td class='category'>"+EntourageListArray[i][1]+"</td><td class='selected last1'>"+EntourageListArray[i][2]+"</td></tr>";
                    }
                }
                if (acc2>1)
                {
                    i=i+1;
                    EntourageListHTML = EntourageListHTML+"<tr><td class='selected'>&nbsp;</td><td colspan='2' style='text-align:center;'>";
                    if (acc1>1){EntourageListHTML = EntourageListHTML+"<a href='javascript:window.HiddenFrame.location.replace(\"AdminUserSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID="+OA_CompetencyID+"&EntourageSearchTXT="+EntourageSearchTXT+"&page="+(acc1-1)+"\");'>上一页</a>";}else{EntourageListHTML = EntourageListHTML+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";}
                    if (acc1<acc2){EntourageListHTML = EntourageListHTML+"&nbsp;&nbsp;&nbsp;&nbsp;<a href='javascript:window.HiddenFrame.location.replace(\"AdminUserSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID="+OA_CompetencyID+"&EntourageSearchTXT="+EntourageSearchTXT+"&page="+(acc1+1)+"\");'>下一页</a></td></tr>";}
                }
                
                for (var j=i;j<=6;j++)
                {
                    EntourageListHTML = EntourageListHTML+"<tr><td class='selected'>&nbsp;</td><td class='price'>&nbsp;</td><td class='selected last1'>&nbsp;</td></tr>";
                }
                document.getElementById("EntourageList").innerHTML=EntourageListHTML;
                
            }
            </script>
                <!-- pagination -->
                        <div class="pagination pagination-left" style="padding-left: 20px;padding-right:20px;">
                            <div class="results">
                                <%
                                ShowingLeast = (acc1-1)*QuantityInt+1
                                ShowingMax = QuantityInt*acc1
                                if ShowingMax>acc3 then ShowingMax=acc3
                                %>
                                <span><%="显示&nbsp;"& ShowingLeast &"-"& ShowingMax &"&nbsp;of&nbsp;"&acc3%></span>
                            </div>
                            <%if acc2>1 then%>
                            <ul class="pager">
                                <%if acc1=1 then%>
                                  <li class="disabled">&laquo; 上页</li>
                                <%else%>
                                  <li><a href="?page=<%=acc1-1%><%=page_URL%>">&laquo; 上页</a></li>
                                <%end if%>
                                <%
                                acc4=""
                                for i=1 to acc2
                                  if acc2<=9 then
                                    acc4=acc4&","&i
                                  else
                                    if i=1 then
                                      acc4=acc4&","&i
                                    elseif acc1<=5 and i<=7 then
                                      acc4=acc4&","&i
                                    elseif acc1<=acc2-4 and i>=acc2-6 then
                                      acc4=acc4&","&i
                                    elseif i>=acc1-2 and i<=acc1+2 then 
                                      acc4=acc4&","&i
                                    elseif i=acc2 then
                                      acc4=acc4&","&i
                                    elseif i=2 or i=acc2-1 then
                                      acc4=acc4&",0"
                                    end if
                                  end if
                                next
                                acc4SP=SPLIT(acc4,",")
                                for i = 1 to UBOUND(acc4SP)%>
                                  <%if acc4SP(i)="0" then%>
                                    <li class="separator">...</li>
                                  <%elseif cint(acc1)=cint(acc4SP(i)) then%>
                                    <li class="current"><%=acc4SP(i)%></li>
                                  <%else%>
                                    <li><a href="?page=<%=acc4SP(i)%><%=page_URL%>"><%=acc4SP(i)%></a></li>
                                  <%end if%>
                                <%next%>
                                <%if CInt(acc1)>=CInt(acc2) then%>
                                  <li class="disabled">下页 &raquo;</li>
                                <%else%>
                                  <li><a href="?page=<%=acc1+1%><%=page_URL%>">下页 &raquo;</a></li>
                                <%end if%>
                             <li>
                            <form action="?1=1<%=page_URL%>" method="post">&nbsp;
                                    <input type="text" name="page" value="<%=acc1%>" style="width: 20px;" />
                                    <input type="submit" name="submit" value="转跳" />
                            </form>
                            </li>
                            </ul>
                            <%end if%>
                            
                            </div>
                        </div>
                        <!-- end pagination -->
 
            <div class="dialogJ  dialogJfix dialogJshadow" id="window_Introducer" style="z-index: 50007; width: 350px; left: 0px; top: 0px;display:none;">
            <div class="dialogJtitle">
                <a href="javascript:JS_IntroducerClose();" class="dialogJclose" title="关闭本窗口">&nbsp;</a>
                <span class="dialogJtxt">选择介绍人</span>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" id="IntroducerSearchTXT" name="IntroducerSearchTXT" value="<%=IntroducerSearchTXT%>" style="width: 100px;" onkeyup="JS_IntroducerSearch();"/>&nbsp;<input type="button" name="button3" value="查询" onclick="JS_IntroducerSearch();">&nbsp;<input type="button" name="button3" value="清空" onclick="JS_IntroducerDel();">
            </div>
            <div class="dialogJcontent">
                <div class="box">
                        <div class="table" style="padding: 0px;">
                            <input name="window_IntroducerID" type="hidden" value="">
                            <input name="window_OA_CompetencyID" type="hidden" value="">
                            <table>
                                <thead>
                                    <tr>
                                        <th class="selected left" style="text-align: center;">ID</th>
                                        <th class="category last" style="text-align: center;">姓名</th>
                                    </tr>
                                </thead>
                                <tbody id="IntroducerList">
                                    <%for j=0 to 6%>
                                        <tr>
                                            <td class="selected">&nbsp;</td>
                                            <td class="category last">&nbsp;</td>
                                        </tr>
                                    <%next%>
                                </tbody>
                            </table>
                    </div>
            </div>
            </div>
            </div>
            <script LANGUAGE="javascript">
            //打开选择介绍人窗口
            function JS_IntroducerOpen(id,OA_CompetencyID)
            {
            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("HospIntroducerID_"+id).getBoundingClientRect().top;
            if (dTop<200) {dTop=110;}
            var dLeft = document.getElementById("HospIntroducerID_"+id).getBoundingClientRect().left;
            if (dLeft<200) {dLeft=200;}
            window_Introducer.style.display="block";
            window_Introducer.style.left=(dLeft-100)+"px";
            window_Introducer.style.top=(sTop+dTop+30)+"px";
            document.all.window_IntroducerID.value=id;
            document.all.window_OA_CompetencyID.value=OA_CompetencyID;
            if (OA_CompetencyID!=0){window.HiddenFrame.location.replace('IntroducerSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID='+OA_CompetencyID);}
            document.getElementById('IntroducerSearchTXT').focus();
            }
            //关闭选择介绍人窗口
            function JS_IntroducerClose()
            {
            document.all.IntroducerSearchTXT.value='';
            document.all.window_IntroducerID.value="";
            window_Introducer.style.display="none";
            }
            //选择介绍人查询
            function JS_IntroducerSearch()
            {
            IntroducerSearchTXT=document.all.IntroducerSearchTXT.value;
            OA_CompetencyID=document.all.window_OA_CompetencyID.value;
            window.HiddenFrame.location.replace('IntroducerSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID='+OA_CompetencyID+'&IntroducerSearchTXT='+IntroducerSearchTXT);
            }
            function EnterPress(e){ //传入 event 
            var e = e || window.event; 
            if(e.keyCode == 13){JS_IntroducerSearch();} 
            } 
            //选择介绍人
            function JS_IntroducerSave(OA_UserID,OA_UserName)
            {
                id=document.all.window_IntroducerID.value;
                document.getElementById("HospIntroducerID_"+id).value=OA_UserID;
            }
            //选择介绍人清空
            function JS_IntroducerDel()
            {
                id=document.all.window_IntroducerID.value;
                document.getElementById("HospIntroducerID_"+id).value='';
            }
            //显示介绍人列表窗口
            function JS_IntroducerList(IntroducerListArray,acc1,acc2,IntroducerSearchTXT,OA_CompetencyID,OA_CompetencyName)
            {
                var IntroducerListHTML = "";
                var i = 0;
                if (IntroducerListArray.length>0)
                {
                    for (var i=0;i<IntroducerListArray.length;i++)
                    {
                        IntroducerListHTML = IntroducerListHTML+"<tr onclick='JS_IntroducerSave("+IntroducerListArray[i][0]+",\""+IntroducerListArray[i][1]+"\")' style='cursor:pointer'><td class='selected'>"+IntroducerListArray[i][0]+"</td><td class='price last1'>"+IntroducerListArray[i][1]+"</td></tr>";
                    }
                }
                if (acc2>1)
                {
                    i=i+1;
                    IntroducerListHTML = IntroducerListHTML+"<tr><td class='selected'>&nbsp;</td><td colspan='2' style='text-align:center;'>";
                    if (acc1>1){IntroducerListHTML = IntroducerListHTML+"<a href='javascript:window.HiddenFrame.location.replace(\"IntroducerSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID="+OA_CompetencyID+"&IntroducerSearchTXT="+IntroducerSearchTXT+"&page="+(acc1-1)+"\");'>上一页</a>";}else{IntroducerListHTML = IntroducerListHTML+"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";}
                    if (acc1<acc2){IntroducerListHTML = IntroducerListHTML+"&nbsp;&nbsp;&nbsp;&nbsp;<a href='javascript:window.HiddenFrame.location.replace(\"IntroducerSearch.gds?OrdClass=<%=ServiceOrdClass%>&OA_CompetencyID="+OA_CompetencyID+"&IntroducerSearchTXT="+IntroducerSearchTXT+"&page="+(acc1+1)+"\");'>下一页</a></td></tr>";}
                }
                
                for (var j=i;j<=6;j++)
                {
                    IntroducerListHTML = IntroducerListHTML+"<tr><td class='selected'>&nbsp;</td><td class='price last1'>&nbsp;</td></tr>";
                }
                document.getElementById("IntroducerList").innerHTML=IntroducerListHTML;
                
            }
            </script>
 
                </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>