【调度系统】广东民航医疗快线调度系统源代码
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
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<!--#include virtual="/inc/chkadmin.gds"-->
<!--#include virtual="/inc/function.gds"-->
<%
If isDepartment("0608")=0 Then Response.Redirect "/"
'各种返回信息
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"))
OrderClass=trim(Request("OrderClass"))
IROrdClass=trim(Request("IROrdClass"))
If IROrdClass="" Then OrdClassName="全部"
Set rs = Server.CreateObject("ADODB.Recordset")
Set rsDt = Server.CreateObject("ADODB.Recordset")
'医护级别类型表列
NursingLevels = "0,基础|"
sql="select vID,vtext,vOrder2 from dictionary where vType>=1 and vtitle='NursingLevel' order by vOrder"
rs.open Sql,objConn,1,1
do while not rs.Eof
    NursingLevelName=rs("vtext")
    If rs("vOrder2")<>"" Then NursingLevelName=NursingLevelName&"-"&rs("vOrder2")
    NursingLevels = NursingLevels & rs("vID") &","& NursingLevelName & "|"
rs.movenext
Loop
rs.close()
NursingLevels = left(NursingLevels,len(NursingLevels)-1)
NursingLevelPS = SPLIT(NursingLevels,"|")
'分管权限
admin_UnitID=""
AdminUnits=""
If Len(admin_OrderClass)<=10 Then
    sql="select UnitID,UnitName from dbo.IntroducerUnitData where '"&admin_OrderClass&"' like '%'+ServiceBranch+'%' and ServiceBranch<>'' order by UnitState desc,UnitID desc"
    rs.open Sql,objConn,1,1
    do while not rs.Eof
        admin_UnitID = admin_UnitID&","&rs("UnitID")
        AdminUnits = AdminUnits & rs("UnitID") &","& rs("UnitName") & "|"
    rs.movenext
    Loop
    rs.close()
    If admin_UnitID<>"" Then
        admin_UnitID=Mid(admin_UnitID,2)
        SqlUnit=" and IRUnitID in ("&admin_UnitID&") "
    End If
Else
    AdminUnits = "0,无|"
    sql="select UnitID,UnitName from dbo.IntroducerUnitData where ServiceBranch<>'' and UnitState<>3 order by UnitState desc,UnitID desc"
    rs.open Sql,objConn,1,1
    do while not rs.Eof
        AdminUnits = AdminUnits & rs("UnitID") &","& rs("UnitName") & "|"
    rs.movenext
    Loop
    rs.close()
End If
 
AdminUnits = left(AdminUnits,len(AdminUnits)-1)
AdminUnitPS = SPLIT(AdminUnits,"|")
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title><%=LindemanAdmin%></title>
        <!--#include virtual="/inc/ccs.gds"-->
        <script src="js/jquery-1.12.3.min.js"></script>
    </head>
    <body onkeydown="xKeyEvent(event)">
        <!--#INCLUDE FILE="menu_header.gds" -->
        <!-- content -->
        <div id="content" style="background: top;">
            <!-- content / right -->
            <div id="right" style="margin: -10px 60px 0 60px;">
                <!-- table -->
                <div class="box">
                    <!-- box / title -->
                    <div class="title">
                        <h5>自动报价设定</h5>
                        <%If isDepartment("060823")=1 Then%>
                        <ul class="links">
                            <li><a onclick="javascript:IRCreate.style.display='block';">新建</a></li>
                            <li><a onClick="form1_IR_update()">修改</a></li>
                            <li><a onClick="form1_IR_updateState()">PC启用/停用</a></li>
                            <li><a onClick="form1_IR_updatewxState()">自助启用/停用</a></li>
                            <li><a onClick="form1_IR_delete()">删除</a></li>
                        </ul>
 
                        <script LANGUAGE="javascript">
                    //全选按钮点击事件
                    function allCheck(allBoxName,itemBoxName) {
                     
                        if($("input[name="+allBoxName+"]").prop("checked")){
                            $("input[name=" + itemBoxName + "]").prop("checked",true);
                        } else {
                            $("input[name=" + itemBoxName + "]").prop("checked",false);
                        }
                    }
                     
                    //子项按钮点击事件
                    function itemCheck(allBoxName,itemBoxName) {
                        var hasNoSel = false;
                        var itemBoxArray = $("input[name="+itemBoxName+"]");
                        itemBoxArray.each(function() {
                            if(!$(this).prop("checked")){
                                hasNoSel = true;
                            }
                        });
                        if(hasNoSel){
                            $("input[name="+allBoxName+"]").prop("checked",false);
                        } else {
                            $("input[name="+allBoxName+"]").prop("checked",true);
                        }
                    }
                        //修改报价
                        function form1_IR_update(){
                        document.form1.action = "admin_save.gds";
                        document.form1.admin_save.value = "142_1";
                        form1.submit();
                        }
                        //PC启用/停用
                        function form1_IR_updateState(){
                        document.form1.action = "admin_save.gds";
                        document.form1.admin_save.value = "144_1";
                        form1.submit();
                        }
                        //微信小程序自助启用/停用
                        function form1_IR_updatewxState(){
                        document.form1.action = "admin_save.gds";
                        document.form1.admin_save.value = "144_1_wx";
                        form1.submit();
                        }
                        //删除报价
                        function form1_IR_delete(){
                        document.form1.action = "admin_save.gds";
                        document.form1.admin_save.value = "143_1";
                        form1.submit();
                        }
                        
                        //选择修改报价
                        function form1_IR_Edit(id){
                            if (document.getElementById('Show_IRPrice_'+id).style.display=="none")
                            {
                                document.getElementById('Show_IRProvince_'+id).style.display='';
                                document.getElementById('Edit_IRProvince_'+id).style.display='none';
                                document.getElementById('Show_IRCity_'+id).style.display='';
                                document.getElementById('Edit_IRCity_'+id).style.display='none';
                                document.getElementById('Show_IRArea_'+id).style.display='';
                                document.getElementById('Edit_IRArea_'+id).style.display='none';
                                document.getElementById('Show_IRkeyword_'+id).style.display='';
                                document.getElementById('Edit_IRkeyword_'+id).style.display='none';
                                document.getElementById('Show_Unitlimit_'+id).style.display='';
                                document.getElementById('Edit_Unitlimit_'+id).style.display='none';
                                document.getElementById('Show_IRPrice_'+id).style.display='';
                                document.getElementById('Edit_IRPrice_'+id).style.display='none';
                                document.getElementById('Show_IRNursingLevel_'+id).style.display='';
                                document.getElementById('Edit_IRNursingLevel_'+id).style.display='none';
                                document.getElementById('Show_IRDt_'+id).style.display='';
                                document.getElementById('Edit_IRDt_'+id).style.display='none';
                                document.getElementById('Show_IRVentilatorCost_'+id).style.display='';
                                document.getElementById('Edit_IRVentilatorCost_'+id).style.display='none';
                                document.getElementById('Show_IRWarmBoxCost_'+id).style.display='';
                                document.getElementById('Edit_IRWarmBoxCost_'+id).style.display='none';
                                document.getElementById('Show_IRLiftingCost_'+id).style.display='';
                                document.getElementById('Edit_IRLiftingCost_'+id).style.display='none';
                                document.getElementById('Show_IRWaitingCost_'+id).style.display='';
                                document.getElementById('Edit_IRWaitingCost_'+id).style.display='none';
                                document.getElementById('Show_IRFerryCost_'+id).style.display='';
                                document.getElementById('Edit_IRFerryCost_'+id).style.display='none';
                            }
                            else
                            {
                                document.getElementById('Show_IRProvince_'+id).style.display='none';
                                document.getElementById('Edit_IRProvince_'+id).style.display='';
                                document.getElementById('Show_IRCity_'+id).style.display='none';
                                document.getElementById('Edit_IRCity_'+id).style.display='';
                                document.getElementById('Show_IRArea_'+id).style.display='none';
                                document.getElementById('Edit_IRArea_'+id).style.display='';
                                document.getElementById('Show_IRkeyword_'+id).style.display='none';
                                document.getElementById('Edit_IRkeyword_'+id).style.display='';
                                document.getElementById('Show_Unitlimit_'+id).style.display='none';
                                document.getElementById('Edit_Unitlimit_'+id).style.display='';
                                document.getElementById('Show_IRPrice_'+id).style.display='none';
                                document.getElementById('Edit_IRPrice_'+id).style.display='';
                                document.getElementById('Show_IRNursingLevel_'+id).style.display='none';
                                document.getElementById('Edit_IRNursingLevel_'+id).style.display='';
                                document.getElementById('Show_IRDt_'+id).style.display='none';
                                document.getElementById('Edit_IRDt_'+id).style.display='';
                                document.getElementById('Show_IRVentilatorCost_'+id).style.display='none';
                                document.getElementById('Edit_IRVentilatorCost_'+id).style.display='';
                                document.getElementById('Show_IRWarmBoxCost_'+id).style.display='none';
                                document.getElementById('Edit_IRWarmBoxCost_'+id).style.display='';
                                document.getElementById('Show_IRLiftingCost_'+id).style.display='none';
                                document.getElementById('Edit_IRLiftingCost_'+id).style.display='';
                                document.getElementById('Show_IRWaitingCost_'+id).style.display='none';
                                document.getElementById('Edit_IRWaitingCost_'+id).style.display='';
                                document.getElementById('Show_IRFerryCost_'+id).style.display='none';
                                document.getElementById('Edit_IRFerryCost_'+id).style.display='';
                            }
 
                        }
                        //新建报价-关闭窗口
                        function JS_IRCreateClose()
                        {
                        IRCreate.style.display="none";
                        }
                        //新建报价-保存
                        function JS_IRCreateSave()
                        {
                        form2.submit();
                        }
                    </script>
                    <%End If%>
                    </div>
            <%
            If IROrdClass<>"" Then
                SearchSql=" and IROrdClass like '%"&IROrdClass&"%' "
            End If
            sql="select * from IntroducerRegion where IRState>=0"&SearchSql&SqlUnit&" order by IRid desc"
            rs.open sql,objConn,1,1
            if Not rs.eof Then
                IRid            = rs("IRid")
                IRUnitID        = rs("IRUnitID")        '所属分公司
                IRProvince        = rs("IRProvince")        '报价所属 省
                IRCity            = rs("IRCity")            '报价所属 市
                IRArea            = rs("IRArea")            '报价所属 区
                IRkeyword        = rs("IRkeyword")    '报价所属 地址关键词
                Unitlimit        = rs("Unitlimit")        '派车免费距离
                UnitPrice        = rs("UnitPrice")        '超距离费
                IRPrice            = rs("IRPrice")            '起步价
                IRNursingLevel    = rs("IRNursingLevel")    '医护护理级别
                IRVentilatorCost= rs("IRVentilatorCost")'呼吸机费用
                IRWarmBoxCost    = rs("IRWarmBoxCost")    '温箱费用
                IRLiftingCost    = rs("IRLiftingCost")    '每层抬楼费用
                IRWaitingCost    = rs("IRWaitingCost")    '每半小时等待费用
                IRFerryCost        = rs("IRFerryCost")        '轮渡费用
            end If
            rs.close()
            sql="select * from IntroducerRegionDt where IRDt_id="&IRid&" order by IRDtlimit"
            rsDt.open sql,objConn,1,1
            RegionDt=""
            r=1
            do while not rsDt.Eof
                RegionDt=RegionDt&rsDt("IRDtlimit")&"公里/"&rsDt("IRDtPrice")&"元"&chr(10)
                rsDt.movenext
                r=r+1
            loop
            rsDt.close()
            If r<5 Then r=5
            %>
                    <div class="dialogJ  dialogJfix dialogJshadow" id="IRCreate" style="width: 370px; right: 300px; top: 150px;display:none;">
                        <div class="dialogJtitle">
                            <a href="javascript:JS_IRCreateClose();" 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="141_1">
                        <div class="dialogJcontent">
                            <div class="dialogJbody" id="dialogJbody">
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>分管:</span>
                                    <select name="IRUnitID" id="IRUnitID">
                                        <%for z = 0 to UBOUND(AdminUnitPS)
                                          AdminUnitPS1=SPLIT(AdminUnitPS(z),",")
                                          vID=AdminUnitPS1(0)
                                          vtext=AdminUnitPS1(1)
                                          %>
                                          <option value="<%=vID%>"<%If CLng(vID)=CLng(IRUnitID) Then Response.Write " selected"%>><%=vtext%></option>
                                          <%
                                        next%>
                                    </select>
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>所属 省:</span>
                                    <input id="IRProvince" name="IRProvince" type="text" value="<%=IRProvince%>" maxlength="99/" style="width: 60px;">
                                    <span>市:</span>
                                    <input id="IRCity" name="IRCity" type="text" value="<%=IRCity%>" maxlength="99/" style="width: 60px;">
                                    <span>区:</span>
                                    <input id="IRArea" name="IRArea" type="text" value="<%=IRArea%>" maxlength="99/" style="width: 60px;">
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>地址关键词:</span>
                                    <input id="IRkeyword" name="IRkeyword" type="text" value="<%=IRkeyword%>" maxlength="99/" style="width: 180px;">
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>医护护理级别:</span>
                                    <select name="IRNursingLevel" id="IRNursingLevel">
                                        <%for z = 0 to UBOUND(NursingLevelPS)
                                          NursingLevelPS1=SPLIT(NursingLevelPS(z),",")
                                          vID=NursingLevelPS1(0)
                                          vtext=NursingLevelPS1(1)
                                          %>
                                          <option value="<%=vID%>"<%If CLng(vID)=CLng(IRNursingLevel) Then Response.Write " selected"%>><%=vtext%></option>
                                          <%
                                        next%>
                                    </select>
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>起步价:</span>
                                    <input id="IRPrice" name="IRPrice" type="text" value="<%=IRPrice%>" maxlength="99/" style="width: 60px;">&nbsp;元
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>转运距离界限/单价</span><br>
                                    <textarea id="IRDt" name="IRDt" rows="<%=r%>" cols="30" style="text-align: right;padding: 5px 5px 0 0;"><%=RegionDt%></textarea>
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>呼吸机费用:</span>
                                    <input id="IRVentilatorCost" name="IRVentilatorCost" type="text" value="<%=IRVentilatorCost%>" maxlength="99/" style="width: 100px;">&nbsp;元
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>温箱费用:</span>
                                    <input id="IRWarmBoxCost" name="IRWarmBoxCost" type="text" value="<%=IRWarmBoxCost%>" maxlength="99/" style="width: 100px;">&nbsp;元
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>每层抬楼费用:</span>
                                    <input id="IRLiftingCost" name="IRLiftingCost" type="text" value="<%=IRLiftingCost%>" maxlength="99/" style="width: 100px;">&nbsp;元
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>每半小时等待费用:</span>
                                    <input id="IRWaitingCost" name="IRWaitingCost" type="text" value="<%=IRWaitingCost%>" maxlength="99/" style="width: 100px;">&nbsp;元
                                </div>
                                <div class="modify-album-name">
                                    <p class="album-tips"></p>
                                    <span>轮渡费用:</span>
                                    <input id="IRFerryCost" name="IRFerryCost" type="text" value="<%=IRFerryCost%>" maxlength="99/" style="width: 100px;">元
                                </div>
                            </div>
                        </div>
                        </form>
                        <div class="dialogJanswers">
                            <input type="button" class="dialogJbtn first-child" onclick="JS_IRCreateSave()" value="确定"> 
                            <input type="button" class="dialogJbtn" onclick="JS_IRCreateClose()" value="取消">
                        </div>
                    </div>
                    <!-- end box / title -->
            <%
            If IROrdClass<>"" Then
                SearchSql=" and IROrdClass like '%"&IROrdClass&"%' "
            End If
            sql="select * from IntroducerRegion where IRState>=0"&SearchSql&SqlUnit&" order by IRProvince,IRCity,IRArea,IRUnitID,IRNursingLevel,IRid"
            rs.open sql,objConn,1,1
            if rs.eof then
                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="22">
                        <table>
                            <thead>
                                <tr style="white-space: nowrap;">
                                    <th class="selected"><input  type="checkbox" class="checkall"  name="checkAll"  onclick="allCheck('checkAll','IRid')"/></th>
                                    <th>状态</th>
                                    <th>所属 省</th>
                                    <th>所属 市</th>
                                    <th>所属 区</th>
                                    <th>地址关键词</th>
                                    <th>医护护理级别</th>
                                    <th>派车距离界限+单价</th>
                                    <th>起步价</th>
                                    <th>距离界限/单价</th>
                                    <th>呼吸机费用</th>
                                    <th>温箱费用</th>
                                    <th>每层<br>抬楼费用</th>
                                    <th>每半小时<br>等待费用</th>
                                    <th class="last">轮渡费用</th>
                                </tr>
                            </thead>
                            <tbody>
            
            <%i=1
            old_IRid=0
            old_IRUnitID    = -1
            old_IRProvince    = ""
            old_IRCity        = ""
            old_IRArea        = ""
            old_IRNursingLevel=""
            do while not rs.Eof
                IRid            = rs("IRid")            '报价方案ID
                IRUnitID        = rs("IRUnitID")        '所属分公司
                'If IRUnitID<>0 Then IRUnitID=39
                IRProvince        = rs("IRProvince")        '报价所属 省
                IRCity            = rs("IRCity")            '报价所属 市
                IRArea            = rs("IRArea")            '报价所属 区
                IRNursingLevel=rs("IRNursingLevel")
                IRkeyword        = rs("IRkeyword")        '报价所属 地址关键词
                IRVentilatorCost= rs("IRVentilatorCost")'呼吸机费用
                IRWarmBoxCost    = rs("IRWarmBoxCost")    '温箱费用
                IRLiftingCost    = rs("IRLiftingCost")    '每层抬楼费用
                IRWaitingCost    = rs("IRWaitingCost")    '每半小时等待费用
                IRFerryCost        = rs("IRFerryCost")        '轮渡费用
                IRState            = rs("IRState")            '状态 (1启用,0停用,-1删除)
                IRwxState        = rs("IRwxState")        '小程序状态 (1启用,0停用,-1删除)
                PriceArray = Array("0","0","0","0")
                i=i+1
                r=1
                If IRState=0 Then
                    IRStateTXT="停用"
                Else
                    IRStateTXT="启用"
                End If
                If IRwxState=0 Then
                    IRwxStateTXT="停用"
                Else
                    IRwxStateTXT="启用"
                End If
            If old_IRUnitID<>IRUnitID or old_IRProvince<>IRProvince or old_IRCity<>IRCity or old_IRArea<>IRArea or old_IRNursingLevel<>IRNursingLevel Then
            old_IRid    = IRid
            old_IRUnitID    = IRUnitID
            old_IRProvince    = IRProvince
            old_IRCity        = IRCity
            old_IRArea        = IRArea
            old_IRkeyword    = IRkeyword
            old_IRNursingLevel    = IRNursingLevel
            IRPrice        = ""
            IRids        = ""
            'IRNursingLevel=""
            new_IRUnitID        = rs("IRUnitID")        '所属分公司
            'new_IRUnitID=39
            'If new_IRUnitID<>0 Then new_IRUnitID=39
            new_IRProvince        = rs("IRProvince")        '报价所属 省
            new_IRCity            = rs("IRCity")            '报价所属 市
            new_IRArea            = rs("IRArea")            '报价所属 区
            new_IRkeyword        = rs("IRkeyword")        '报价所属 地址关键词
            new_IRNursingLevel    = rs("IRNursingLevel")
            do while not rs.Eof And old_IRUnitID=new_IRUnitID and old_IRProvince=new_IRProvince and old_IRCity=new_IRCity and old_IRArea=new_IRArea And  old_IRNursingLevel=new_IRNursingLevel 
                new_IRUnitID        = rs("IRUnitID")        '所属分公司
                'new_IRUnitID=39
                'If new_IRUnitID<>0 Then new_IRUnitID=39
                new_IRProvince        = rs("IRProvince")        '报价所属 省
                new_IRCity            = rs("IRCity")            '报价所属 市
                new_IRArea            = rs("IRArea")            '报价所属 区
                new_IRNursingLevel    = rs("IRNursingLevel")
                
                If old_IRUnitID=new_IRUnitID and old_IRProvince=new_IRProvince and old_IRCity=new_IRCity and old_IRArea=new_IRArea And  old_IRNursingLevel=new_IRNursingLevel  Then
                    IRids=IRids&","&rs("IRid")
                    If old_IRkeyword<>rs("IRkeyword") Then 
                        IRkeyword        = IRkeyword&","&rs("IRkeyword")    '报价所属 地址关键词 
                        old_IRkeyword= rs("IRkeyword")
                        r=r+1
                    end If
                    If InStr(IRPrice,rs("IRPrice"))=0 Then 
                        PriceArray(rs("IRNursingLevel"))=rs("IRPrice")
                        If IRPrice="" Then     '起步价
                            IRPrice            = rs("IRPrice")    
                            Unitlimit        = rs("Unitlimit")        '派车免费距离
                            UnitPrice        = rs("UnitPrice")        '超距离费
                        Else
                            IRPrice            = IRPrice&","&rs("IRPrice")    
                        End If
                    End If
                End If
            rs.movenext
            Loop
            If Len(IRids)>0 Then IRids=Mid(IRids,2)
            rs.MovePrevious
            rs.MovePrevious
            If r<4 Then r=4
              %>
              <tr style="white-space: nowrap;">
                <input name="IRUnitID_<%=IRid%>" type="hidden" value="<%=IRUnitID%>">
                <input name="IRids_<%=IRid%>" type="hidden" value="<%=IRids%>">
                <input name="IRState_<%=IRid%>" type="hidden" value="<%=IRState%>">
                <input name="IRwxState_<%=IRid%>" type="hidden" value="<%=IRwxState%>">
                <td class="selected" style="vertical-align: top;padding: 10px;"><input type="checkbox" id="IRid" name="IRid" value="<%=IRid%>" onclick="javascript:form1_IR_Edit('<%=IRid%>');itemCheck('checkAll','IRid');"/></td>
                <td class="category" style="vertical-align: top;">PC:<%=IRStateTXT%>&nbsp;自助:<%=IRwxStateTXT%><br><%=UnitUser(IRUnitID,"UnitName")%></td>
                <td class="category" style="vertical-align: top;" id="Show_IRProvince_<%=IRid%>"><%=IRProvince%></td>
                <td class="category" style="vertical-align: top;display:none;" id="Edit_IRProvince_<%=IRid%>"><input id="IRProvince_<%=IRid%>" name="IRProvince_<%=IRid%>" class="small" style="width:50px;text-align: center;" value="<%=IRProvince%>" type="text"></td>
                <td class="category" style="vertical-align: top;" id="Show_IRCity_<%=IRid%>"><%=IRCity%></td>
                <td class="category" style="vertical-align: top;display:none;" id="Edit_IRCity_<%=IRid%>"><input id="IRCity_<%=IRid%>" name="IRCity_<%=IRid%>" class="small" style="width:50px;text-align: center;" value="<%=IRCity%>" type="text"></td>
                <td class="category" style="vertical-align: top;" id="Show_IRArea_<%=IRid%>"><%=IRArea%></td>
                <td class="category" style="vertical-align: top;display:none;" id="Edit_IRArea_<%=IRid%>"><input id="IRArea_<%=IRid%>" name="IRArea_<%=IRid%>" class="small" style="width:50px;text-align: center;" value="<%=IRArea%>" type="text"></td>
                <td class="category" style="vertical-align: top;" id="Show_IRkeyword_<%=IRid%>"><%=Replace(IRkeyword,",","<br>")%></td>
                <td class="category" style="vertical-align: top;display:none;" id="Edit_IRkeyword_<%=IRid%>"><textarea id="IRkeyword_<%=IRid%>" name="IRkeyword_<%=IRid%>" rows="<%=r%>" cols="12" style="width:180px;padding: 5px;"><%=Replace(IRkeyword,",",chr(10))%></textarea></td>
                <td class="category" style="vertical-align: top;" id="Show_IRNursingLevel_<%=IRid%>">
                    <%for z = 0 to UBOUND(NursingLevelPS)
                      NursingLevelPS1=SPLIT(NursingLevelPS(z),",")
                      vID=NursingLevelPS1(0)
                      vtext=NursingLevelPS1(1)
                      If CLng(vID)=CLng(IRNursingLevel) Then 
                        Response.Write vtext
                      End If
                    next%>
                </td>
                <td class="category" style="vertical-align: top;text-align: left;display:none;" id="Edit_IRNursingLevel_<%=IRid%>">
                        <select name="IRNursingLevel_<%=IRid%>" id="IRNursingLevel_<%=IRid%>">
                        <%for z = 0 to UBOUND(NursingLevelPS)
                          NursingLevelPS1=SPLIT(NursingLevelPS(z),",")
                          vID=NursingLevelPS1(0)
                          vtext=NursingLevelPS1(1)
                          %>
                          <option value="<%=vID%>"<%If CLng(vID)=CLng(IRNursingLevel) Then Response.Write " selected"%>><%=vtext%></option>
                          <%
                        next%>
                    </select>
                </td>
                <td class="category" style="vertical-align: top;" id="Show_Unitlimit_<%=IRid%>"><%=Unitlimit%>公里 + <%=UnitPrice%>元/公里</td>
                <td class="category" style="vertical-align: top;display:none;" id="Edit_Unitlimit_<%=IRid%>"><input id="Unitlimit_<%=IRid%>" name="Unitlimit_<%=IRid%>" class="small" style="width:20px;text-align: center;" value="<%=Unitlimit%>" type="text">公里 + <input id="UnitPrice_<%=IRid%>" name="UnitPrice_<%=IRid%>" class="small" style="width:20px;text-align: center;" value="<%=UnitPrice%>" type="text">元/公里</td>
                <td class="category" style="vertical-align: top;" id="Show_IRPrice_<%=IRid%>"><%=IRPrice%></td>
                <td class="category" style="vertical-align: top;display:none;" id="Edit_IRPrice_<%=IRid%>"><input id="IRPrice_<%=IRid%>" name="IRPrice_<%=IRid%>" class="small" style="width:50px;text-align: center;" value="<%=IRPrice%>" type="text"></td>
                <%sql="select * from IntroducerRegionDt where IRDt_id="&IRid&" order by IRDtlimit"
                rsDt.open sql,objConn,1,1
                RegionDt=""
                r=1
                do while not rsDt.Eof
                    RegionDt=RegionDt&rsDt("IRDtlimit")&"公里/"&rsDt("IRDtPrice")&"元"&chr(10)
                    rsDt.movenext
                    r=r+1
                loop
                rsDt.close()
                If r<4 Then r=4
                %>
                <td class="category" style="vertical-align: top;text-align: right;" id="Show_IRDt_<%=IRid%>"><%=Replace(RegionDt,chr(10),"<br>")%></td>
                <td class="category" style="vertical-align: top;display:none;" id="Edit_IRDt_<%=IRid%>"><textarea id="IRDt_<%=IRid%>" name="IRDt_<%=IRid%>" rows="<%=r%>" cols="12" style="text-align: right;padding: 5px 5px 0 0;"><%=RegionDt%></textarea></td>
 
                <td class="category" style="vertical-align: top;" id="Show_IRVentilatorCost_<%=IRid%>"><%=IRVentilatorCost%></td>
                <td class="category" style="vertical-align: top;display:none;" id="Edit_IRVentilatorCost_<%=IRid%>"><input id="IRVentilatorCost_<%=IRid%>" name="IRVentilatorCost_<%=IRid%>" class="small" style="width:50px;text-align: center;" value="<%=IRVentilatorCost%>" type="text"></td>
                <td class="category" style="vertical-align: top;" id="Show_IRWarmBoxCost_<%=IRid%>"><%=IRWarmBoxCost%></td>
                <td class="category" style="vertical-align: top;display:none;" id="Edit_IRWarmBoxCost_<%=IRid%>"><input id="IRWarmBoxCost_<%=IRid%>" name="IRWarmBoxCost_<%=IRid%>" class="small" style="width:50px;text-align: center;" value="<%=IRWarmBoxCost%>" type="text"></td>
                <td class="category" style="vertical-align: top;" id="Show_IRLiftingCost_<%=IRid%>"><%=IRLiftingCost%></td>
                <td class="category" style="vertical-align: top;display:none;" id="Edit_IRLiftingCost_<%=IRid%>"><input id="IRLiftingCost_<%=IRid%>" name="IRLiftingCost_<%=IRid%>" class="small" style="width:50px;text-align: center;" value="<%=IRLiftingCost%>" type="text"></td>
                <td class="category" style="vertical-align: top;" id="Show_IRWaitingCost_<%=IRid%>"><%=IRWaitingCost%></td>
                <td class="category" style="vertical-align: top;display:none;" id="Edit_IRWaitingCost_<%=IRid%>"><input id="IRWaitingCost_<%=IRid%>" name="IRWaitingCost_<%=IRid%>" class="small" style="width:50px;text-align: center;" value="<%=IRWaitingCost%>" type="text"></td>
                <td class="category last" style="vertical-align: top;" id="Show_IRFerryCost_<%=IRid%>"><%=IRFerryCost%></td>
                <td class="category last" style="vertical-align: top;display:none;" id="Edit_IRFerryCost_<%=IRid%>"><input id="IRFerryCost_<%=IRid%>" name="IRFerryCost_<%=IRid%>" class="small" style="width:50px;text-align: center;" value="<%=IRFerryCost%>" type="text"></td>
              </tr>
            <%
            End If
            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>&nbsp;</td>
                <td class="last">&nbsp;</td>
                
            </tr>
            <%next%>
                            </tbody>
                        </table>
                        
                        </form>
                    </div>
                </div>
                <!-- end table -->
 
                
            </div>
            <!-- end content / right -->
        </div>
        <%if OrderClass<>"" then Response.Write "<script>IRCreate.style.display='block';</script>"%>    
        <!-- end content -->
        <!--#include FILE="vicgame.asp"-->
    </body>
</html>