【调度系统】广东民航医疗快线调度系统源代码
wzp
2025-05-14 a023d5daed320eb4dbf6cfb8c28529d41cf5f9c3
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
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<!--#include virtual="/inc/chkadmin.gds"-->
<!--#include virtual="/inc/function.gds"-->
<%
if isDepartment("040103")=0 then
  Response.Redirect "/"
  Response.End()
end If
 
searchTXT=SafeRequest(Request("searchTXT"))
strItmClassID=SafeRequest(Request("strItmClassID"))
OldvID=SafeRequest(Request("OldvID"))
 
Set rs = Server.CreateObject("ADODB.Recordset")
'默认显示字段
If OrdState="" Then OrdState=0
If OrdClassList="" Then OrdClassList="0"
If OrdClassList="0" Then
    OrdClassName="未审核"
ElseIf OrdClassList="1" Then
    OrdClassName="已审核"
Else
    OrdClassName="全部"
End if
 
'各种返回信息
SystemMessageType=trim(Request("SystemMessageType"))
SMT=trim(Request("SMT"))
if SystemMessageType<>"" then
    if SMT="1" then
      SystemMessageTXT="物料名称不可以为空!!"
    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="启用物料完成!!"
    elseif SMT="9" then
      SystemMessageTXT="条码重复!!"
    end if
end if
 
 
If OrdState<>"0" then
    OrdListName    = ServiceOrdStateA(OrdState)&"记录"
Else
    OrdListName    = "物品资料"
End If
 
'物品类型表列
If strItmClassID="" Then
  strItmClassName="全部"
  strItmClassID=0
End If
strItmClassTypes = "0,全部|"
sql="select vID,vtext,vType,vOrder2,vOrderInt=(select right('0000'+convert(nvarchar(5),count(strItmID)+1),4) from tblStItm where strItmClassID=vID) from dictionary where vtitle='strItmClass' and vType>0 order by vOrder"
rs.open Sql,objConn,1,1
do while not rs.Eof
    ClassName=rs("vtext")
    vType=rs("vType")
    vOrder2=rs("vOrder2")
    vOrderInt=rs("vOrderInt")
    If vOrder2<>"" Then
        NewClassID=vOrder2&vOrderInt
    Else
        NewClassID=ClassName&vOrderInt
    End If
    If vType>1 Then
        vTypeTXT=""
        For I = 2 to vType
            vTypeTXT=vTypeTXT&"--"
        Next
        ClassName=vTypeTXT&ClassName
    End If
    If CInt(strItmClassID)=rs("vID") Then strItmClassName    = ClassName
    strItmClassTypes = strItmClassTypes & rs("vID") &","& ClassName &","& NewClassID & "|"
rs.movenext
Loop
rs.close()
strItmClassTypes = left(strItmClassTypes,len(strItmClassTypes)-1)
strItmClassTypesPS = SPLIT(strItmClassTypes,"|")
 
 
page_URL="&searchTXT="&searchTXT&"&strItmClassID="&strItmClassID
%>
<!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="MRP_menu_left.gds" -->
            <!-- content / right -->
            <div id="right">
                <!-- table -->
                <div class="box">
                    <!-- box / title -->
                    <div class="title">
                        <h5><%If searchTXT<>"" then%>物品资料查询 <%=searchTXT%><%else%><%=OrdDateTypeName1&" "&OrdListName%><%End if%></h5>
                        <ul class="links">
                            <%If isDepartment("040103")=1 Then%><li><a onclick="javascript:dictionaryCreate.style.display='block';document.all.strItmBarcode.focus();">新建</a></li><%End If%>
                            <%If isDepartment("040103")=1 Then%><li><a onClick="form1_dictionary_update()">修改</a></li><%End If%>
                            <%If isDepartment("040103")=1 Then%><li><a onClick="javascript:JS_StItmDel()">停用</a></li><li><a onClick="javascript:JS_StItmEnable()">启用</a></li><%End If%>
                            <li><a href="?searchTXT=常用物品">常用物品</a></li>
                            <li>
                                <%
                                '下拉菜单设定
                                DownMenuName="分类"            '菜单名称
                                DownMenuNameID="strItmClassID"    '菜单ID
                                DownMenuOldName=strItmClassName    '默认值名称
                                DownMenuOldID=strItmClassID    '默认值ID
                                %>
                                <div class="search">
                                <div name="DownMenu_container" id="<%=DownMenuNameID%>_container" class="select-container" style="overflow: hidden;cursor:pointer" onclick="JS_DownMenu('<%=DownMenuNameID%>')">
                                    <span class="select-content" style="width: 46px;"><%=DownMenuName%>:<%=DownMenuOldName%></span><span class="arrow" id="<%=DownMenuNameID%>_arrow" name="DownMenu_arrow"></span>
                                </div>
                                <div name="DownMenu_list" id="<%=DownMenuNameID%>_list" class="select-list scroll-pane" style="overflow: hidden; position: absolute; background-color: white; width: 90px; display: none;background-position: initial initial; background-repeat: initial initial;margin-left: 69px;">
                                    <div class="jspContainer" style="width: 90px;">
                                        <div style="padding: 0px; top: 0px; width: 90px;">
                                        <%for z = 0 to UBOUND(strItmClassTypesPS)
                                          strItmClassTypesPS1=SPLIT(strItmClassTypesPS(z),",")
                                          vID=strItmClassTypesPS1(0)
                                          vtext=strItmClassTypesPS1(1)
                                          %>
                                          <span title="<%=vtext%>" name="DownMenu_<%=DownMenuNameID%>" onmouseover="JS_DownMenuMouseover('<%=DownMenuNameID%>',<%=z%>)" onclick="JS_DownMenuJump('<%="?"&mid(page_URL,2)%>','<%=DownMenuOldID%>','<%=DownMenuNameID%>','<%=vID%>')" class="list-option<%if vID=DownMenuOldID then Response.Write "  option"%>"><%=vtext%></span>
                                        <%next%>
                                        </div>
                                    </div>
                                </div>
                                </div>
                            <input id="DownMenuTime" type="hidden" value="">
                            </li>
                            <div class="search">
                            <form action="?" method="post">
                                <div class="input">
                                    <input type="text" id="searchTXT" name="searchTXT" value="<%=searchTXT%>" />
                                </div>
                                <div class="button">
                                    <input type="submit" name="submit" value="搜索" />
                                </div>
                            </form>
                            </div>
                        </ul>
                    <script LANGUAGE="javascript">
                        //修改字典
                        function form1_dictionary_update(){
                        document.form1.action = "admin_save.gds";
                        document.form1.admin_save.value="69"
                        form1.submit();
                        }
                        //停用字典
                        function JS_StItmDel(){
                        document.form1.action = "admin_save.gds?State=0";
                        document.form1.admin_save.value="71"
                        form1.submit();
                        }
                        //启用字典
                        function JS_StItmEnable(){
                        document.form1.action = "admin_save.gds?State=1";
                        document.form1.admin_save.value="71"
                        form1.submit();
                        }
                        //选择修改字典
                        function form1_dictionary_Edit(id){
                            if (document.getElementById('Show_strItmNo_'+id).style.display=="none")
                            {
                                document.getElementById('Show_strItmNo_'+id).style.display='';
                                document.getElementById('Edit_strItmNo_'+id).style.display='none';
                                document.getElementById('strItmNo_'+id).disabled=true;
                                document.getElementById('Show_strItmBarcode_'+id).style.display='';
                                document.getElementById('Edit_strItmBarcode_'+id).style.display='none';
                                document.getElementById('strItmBarcode_'+id).disabled=true;
                                document.getElementById('Show_strItmPinyin_'+id).style.display='';
                                document.getElementById('Edit_strItmPinyin_'+id).style.display='none';
                                document.getElementById('strItmPinyin_'+id).disabled=true;
                                document.getElementById('Show_strItmName_'+id).style.display='';
                                document.getElementById('Edit_strItmName_'+id).style.display='none';
                                document.getElementById('strItmName_'+id).disabled=true;
                                document.getElementById('Show_strItmUnit_'+id).style.display='';
                                document.getElementById('Edit_strItmUnit_'+id).style.display='none';
                                document.getElementById('strItmUnit_'+id).disabled=true;
                                document.getElementById('Show_strItmClass_'+id).style.display='';
                                document.getElementById('Edit_strItmClass_'+id).style.display='none';
                                document.getElementById('strItmClassID_'+id).disabled=true;
                                document.getElementById('Show_PurchasePrice_'+id).style.display='';
                                document.getElementById('Edit_PurchasePrice_'+id).style.display='none';
                                document.getElementById('PurchasePrice_'+id).disabled=true;
                                document.getElementById('Show_SellingPrice_'+id).style.display='';
                                document.getElementById('Edit_SellingPrice_'+id).style.display='none';
                                document.getElementById('SellingPrice_'+id).disabled=true;
                                document.getElementById('Show_CreditsPrice_'+id).style.display='';
                                document.getElementById('Edit_CreditsPrice_'+id).style.display='none';
                                document.getElementById('CreditsPrice_'+id).disabled=true;
                                document.getElementById('Show_strItmRemarks_'+id).style.display='';
                                document.getElementById('Edit_strItmRemarks_'+id).style.display='none';
                                document.getElementById('strItmRemarks_'+id).disabled=true;
                                document.getElementById('Show_isCarStItm_'+id).style.display='';
                                document.getElementById('Edit_isCarStItm_'+id).style.display='none';
                                document.getElementById('isCarStItm_'+id).disabled=true;
                            }
                            else
                            {
                                document.getElementById('Show_strItmNo_'+id).style.display='none';
                                document.getElementById('Edit_strItmNo_'+id).style.display='';
                                document.getElementById('strItmNo_'+id).disabled=false;
                                document.getElementById('Show_strItmBarcode_'+id).style.display='none';
                                document.getElementById('Edit_strItmBarcode_'+id).style.display='';
                                document.getElementById('strItmBarcode_'+id).disabled=false;
                                document.getElementById('Show_strItmPinyin_'+id).style.display='none';
                                document.getElementById('Edit_strItmPinyin_'+id).style.display='';
                                document.getElementById('strItmPinyin_'+id).disabled=false;
                                document.getElementById('Show_strItmName_'+id).style.display='none';
                                document.getElementById('Edit_strItmName_'+id).style.display='';
                                document.getElementById('strItmName_'+id).disabled=false;
                                document.getElementById('Show_strItmUnit_'+id).style.display='none';
                                document.getElementById('Edit_strItmUnit_'+id).style.display='';
                                document.getElementById('strItmUnit_'+id).disabled=false;
                                document.getElementById('Show_strItmClass_'+id).style.display='none';
                                document.getElementById('Edit_strItmClass_'+id).style.display='';
                                document.getElementById('strItmClassID_'+id).disabled=false;
                                document.getElementById('Show_PurchasePrice_'+id).style.display='none';
                                document.getElementById('Edit_PurchasePrice_'+id).style.display='';
                                document.getElementById('PurchasePrice_'+id).disabled=false;
                                document.getElementById('Show_SellingPrice_'+id).style.display='none';
                                document.getElementById('Edit_SellingPrice_'+id).style.display='';
                                document.getElementById('SellingPrice_'+id).disabled=false;
                                document.getElementById('Show_CreditsPrice_'+id).style.display='none';
                                document.getElementById('Edit_CreditsPrice_'+id).style.display='';
                                document.getElementById('CreditsPrice_'+id).disabled=false;
                                document.getElementById('Show_strItmRemarks_'+id).style.display='none';
                                document.getElementById('Edit_strItmRemarks_'+id).style.display='';
                                document.getElementById('strItmRemarks_'+id).disabled=false;
                                document.getElementById('Show_isCarStItm_'+id).style.display='none';
                                document.getElementById('Edit_isCarStItm_'+id).style.display='';
                                document.getElementById('isCarStItm_'+id).disabled=false;
                            }
                        }
                        //新建字典-关闭上传窗口
                        function JS_dictionaryCreateClose()
                        {
                        dictionaryCreate.style.display="none";
                        }
                        //新建字典-保存
                        function JS_dictionaryCreateSave()
                        {
                        form2.submit();
                        }
                    </script>
                    </div>
                    <div class="dialogJ  dialogJfix dialogJshadow" id="dictionaryCreate" style="width: 370px; right: 300px; top: 150px;display:none;">
                        <div class="dialogJtitle">
                            <a href="javascript:JS_dictionaryCreateClose();" class="dialogJclose" title="关闭本窗口">&nbsp;</a>
                            <span class="dialogJtxt" id="EditPhotoTXT">新建物料资料</span>
                        </div>
                        <%'默认物料号
                        sql="select top 1 strItmNo from tblStItm where strItmNo is not null order by strItmID desc"
                        rs.open sql,objConn,1,1
                        if not rs.eof then
                        strItmNo=rs("strItmNo")
                            MyString = strItmNo
                            MyNum = 0
                            For I = 1 to Len(MyString)
                                MyTemp = Mid(MyString,i,1)
                                If not IsNumeric(MyTemp) Then
                                    myNum = MyNum + 1
                                Else
                                    exit for
                                End If
                            Next
                            If IsNumeric(Mid(strItmNo,myNum+1)) Then
                                NewStrItmNo=Mid(strItmNo,1,myNum)&(Mid(strItmNo,myNum+1)+1)
                            End If
                        end If
                        rs.close()
                        NewPurchasePrice=0
                        NewSellingPrice=0
                        NewCreditsPricee=0
                        If session("strItmNo")<>"" Then NewStrItmNo=session("strItmNo")
                        If session("PurchasePrice")<>"" Then NewPurchasePrice=session("PurchasePrice")
                        If session("SellingPrice")<>"" Then NewSellingPrice=session("SellingPrice")
                        If session("CreditsPricee")<>"" Then NewCreditsPricee=session("CreditsPricee")
                        %>
                        <form id="form2" name="form2" action="admin_save.gds" method="post">
                        <input name="admin_save" type="hidden" value="70">
                        <input name="searchTXT" type="hidden" value="<%=searchTXT%>">
                        <input name="page" type="hidden" value="<%=acc1%>">
                        <div class="dialogJcontent">
                            <div class="dialogJbody" id="dialogJbody" style="height: 335pxpx;">
                                <div class="modify-album-name">
                                    <span style="margin-left: 12px;">物料号:</span>
                                    <input id="strItmNo" name="strItmNo" type="text" value="<%=NewStrItmNo%>" maxlength="99/" style="width:80px;">
                                </div>
                                <div class="modify-album-name">
                                    <span style="margin-left: 24px;">名称:</span>
                                    <input id="strItmName" name="strItmName" type="text" value="<%=session("strItmName")%>" maxlength="99/">
                                </div>
                                <div class="modify-album-name">
                                    <span style="margin-left: 12px;">拼音码:</span>
                                    <input id="strItmPinyin" name="strItmPinyin" type="text" value="<%=session("strItmPinyin")%>" maxlength="99/" style="width:80px;">
                                </div>
                                <div class="modify-album-name">
                                    <span style="margin-left: 12px;">条形码:</span>
                                    <input id="strItmBarcode" name="strItmBarcode" type="text" value="<%=session("strItmBarcode")%>" maxlength="99/">
                                </div>
                                
                                <div class="modify-album-name">
                                    <span style="margin-left: 24px;">单位:</span>
                                    <input id="strItmUnit" name="strItmUnit" type="text" value="<%=session("strItmUnit")%>" maxlength="99/" style="width:80px;">
                                    <span>&nbsp;&nbsp;分类:</span>
                                    <select name="strItmClassID" id="strItmClassID" style="padding: 5px 0 5px 8px;" onchange="form2_FromClass()">
                                        <%for z = 1 to UBOUND(strItmClassTypesPS)
                                          strItmClassTypesPS1=SPLIT(strItmClassTypesPS(z),",")
                                          vID=strItmClassTypesPS1(0)
                                          vtext=strItmClassTypesPS1(1)
                                          %>
                                          <option value="<%=vID%>"<%If OldvID=vID Then Response.Write " selected"%>><%=vtext%></option>
                                        <%next%>
                                    </select>
                                    <script LANGUAGE="javascript">
                                        function form2_FromClass(){
                                            strItmClassID = document.form2.strItmClassID.value;
                                            NewStrItmNo='';
                                            <%
                                            for z = 1 to UBOUND(strItmClassTypesPS)
                                                strItmClassTypesPS1=SPLIT(strItmClassTypesPS(z),",")
                                                %>
                                                if(strItmClassID=='<%=strItmClassTypesPS1(0)%>') {
                                                    NewStrItmNo='<%=strItmClassTypesPS1(2)%>';
                                                }
                                            <%Next%>
                                            document.form2.strItmNo.value = NewStrItmNo;
                                            lbs_driving();
                                        }
                                    </script>
                                </div>
                                <div class="modify-album-name">
                                    <span>标准进价:</span>
                                    <input id="PurchasePrice" name="PurchasePrice" type="text" value="<%=NewPurchasePrice%>" maxlength="99/" style="width:50px;">&nbsp;元
                                </div>
                                <div class="modify-album-name">
                                    <span>销售价:</span>
                                    <input id="SellingPrice" name="SellingPrice" type="text" value="<%=NewSellingPrice%>" maxlength="99/" style="width:50px;">&nbsp;元
                                    <span>&nbsp;&nbsp;&nbsp;&nbsp;积分:</span>
                                    <input id="CreditsPrice" name="CreditsPrice" type="text" value="<%=NewCreditsPrice%>" maxlength="99/" style="width:50px;">
                                </div>
                                <div class="modify-album-name">
                                    <span style="margin-left: 24px;">备注:</span>
                                    <input id="strItmRemarks" name="strItmRemarks" type="text" value="<%=session("strItmRemarks")%>" maxlength="200/">
                                </div>
                            </div>
                        </div>
                        </form>
                        <div class="dialogJanswers">
                            <input type="button" class="dialogJbtn first-child" onclick="JS_dictionaryCreateSave()" value="确定"> 
                            <input type="button" class="dialogJbtn" onclick="JS_dictionaryCreateClose()" value="取消">
                        </div>
                    </div>
                    <%If SMT="3" Or SMT="9" Or SMT="7" Or SMT="2" Then%><script LANGUAGE="javascript">dictionaryCreate.style.display='block';document.all.strItmBarcode.focus();</script><%End If%>
                    <!-- end box / title -->
            <%
            acc1=request("page")
            if acc1=empty then acc1=clng(1)
            QuantityInt = 20
            acc2=0
            acc3=0
 
            If searchTXT="常用物品" Then
              searchSql=" and strItmState=1 and isCarStItm=1 "
            elseif searchTXT<>"" Then
              searchSql=" and (strItmName like '%"&searchTXT&"%' or strItmNo='"&searchTXT&"' or strItmPinyin like '%"&searchTXT&"%') "
            else
              searchSql=" and strItmState=1 "
            end If
            If strItmClassID<>"" and strItmClassID<>"0" Then
              searchSql=searchSql&" and strItmClassID="&strItmClassID
            End If
 
            sql="select * from tblStItm,dictionary where strItmClassID=vID and vtitle='strItmClass'"&searchSql&" order by strItmID desc"
            '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" style="overflow:auto">
                        <form id="form1" name="form1" action="" method="post">
                        <input name="admin_save" type="hidden" value="52">
                        <input name="Car_Check" type="hidden" value="">
                        <input name="searchTXT" type="hidden" value="<%=searchTXT%>">
                        <input name="page" type="hidden" value="<%=acc1%>">
                        <table>
                            <thead>
                                <tr style="white-space: nowrap;">
                                    <th class="selected"><input type="checkbox" class="checkall" /></th>
                                    <th>物料号</th>
                                    <th>条形码</th>
                                    <th>拼音码</th>
                                    <th>物品名称</th>
                                    <th class="selected">单位</th>
                                    <th class="selected">分类</th>
                                    <th class="selected">标准进价</th>
                                    <th class="selected">销售价</th>
                                    <th class="selected">积分</th>
                                    <th>说明备注</th>
                                    <th class="selected">常用物品</th>
                                    <th class="selected last">停用状态</th>
                                </tr>
                            </thead>
                            <tbody>
            
            <%i=1
            do while not rs.Eof and i<=QuantityInt
              strItmID            = rs("strItmID")            '物品ID
              id                = strItmID                    '物品ID
              strItmNo            = rs("strItmNo")            '物料号
              strItmPinyin        = rs("strItmPinyin")        '拼音码
              strItmName        = rs("strItmName")            '物品名称
              strItmBarcode        = rs("strItmBarcode")        '条形码
              PurchasePrice        = FN(rs("PurchasePrice"))        '标准进价
              SellingPrice        = FN(rs("SellingPrice"))        '标准售价
              CreditsPrice        = FN(rs("CreditsPrice"))        '积分售价
              strItmUnit        = rs("strItmUnit")            '单位
              strItmClassID        = rs("strItmClassID")        '分类ID
              strItmClass        = rs("vtext")                '分类名称
              strItmRemarks        = rs("strItmRemarks")        '说明备注
              strItmState        = rs("strItmState")            '停用状态 (0停用,1正常)
              isCarStItm        = rs("isCarStItm")            '常用物品(0否,1是)
 
              If PurchasePrice="" Or PurchasePrice="0" Then 
                PurchasePriceTXT = "--"
              Else
                PurchasePriceTXT = PurchasePrice&"元"
              End If
              If SellingPrice="" Or SellingPrice="0" Then 
                SellingPriceTXT = "--"
              Else
                SellingPriceTXT = SellingPrice&"元"
              End If
              If CreditsPrice="" Or CreditsPrice="0" Then 
                CreditsPriceTXT = "--"
              Else
                CreditsPriceTXT = CreditsPrice
              End If
              If strItmState="0" Then 
                strItmStateTXT = "√"
              Else
                strItmStateTXT = ""
              End If
              If isCarStItm="1" Then 
                isCarStItmTXT = "√"
              Else
                isCarStItmTXT = ""
              End If
              i=i+1
 
              %>
 
              <tr style="white-space: nowrap;">
                <input name="strItmID_<%=id%>" type="hidden" value="<%=strItmID%>">
                <td class="selected"><input type="checkbox" id="ID_<%=id%>" name="ID" value="<%=id%>" onclick="javascript:form1_dictionary_Edit('<%=id%>')"/></td>
                <td class="selected" id="Show_strItmNo_<%=id%>"><%=strItmNo%></td>
                <td class="selected" id="Edit_strItmNo_<%=id%>" style="display:none;"><input id="strItmNo_<%=id%>" name="strItmNo_<%=id%>" class="small" style="width:60px;text-align: center;" value="<%=strItmNo%>" type="text" disabled="true"></td>
                <td class="selected" id="Show_strItmBarcode_<%=id%>"><%=strItmBarcode%></td>
                <td class="selected" id="Edit_strItmBarcode_<%=id%>" style="display:none;"><input id="strItmBarcode_<%=id%>" name="strItmBarcode_<%=id%>" class="small" style="width:118px;text-align: center;" value="<%=strItmBarcode%>" type="text" disabled="true"></td>
                <td class="selected" id="Show_strItmPinyin_<%=id%>"><%=strItmPinyin%></td>
                <td class="selected" id="Edit_strItmPinyin_<%=id%>" style="display:none;"><input id="strItmPinyin_<%=id%>" name="strItmPinyin_<%=id%>" class="small" style="width:60px;text-align: center;" value="<%=strItmPinyin%>" type="text" disabled="true"></td>
                <td class="category" id="Show_strItmName_<%=id%>"><%=strItmName%></td>
                <td class="category" id="Edit_strItmName_<%=id%>" style="display:none;"><input id="strItmName_<%=id%>" name="strItmName_<%=id%>" class="small" style="width:200px;text-align: center;" value="<%=strItmName%>" type="text" disabled="true"></td>
                <td class="selected" id="Show_strItmUnit_<%=id%>"><%=strItmUnit%></td>
                <td class="selected" id="Edit_strItmUnit_<%=id%>" style="display:none;"><input id="strItmUnit_<%=id%>" name="strItmUnit_<%=id%>" class="small" style="width:50px;text-align: center;" value="<%=strItmUnit%>" type="text" disabled="true"></td>
                <td class="selected" id="Show_strItmClass_<%=id%>"><%=strItmClass%></td>
                <td class="selected" id="Edit_strItmClass_<%=id%>" style="display:none;"><select name="strItmClassID_<%=id%>" id="strItmClassID_<%=id%>" style="padding: 5px 0 5px 8px;" disabled="true">
                                        <%for z = 1 to UBOUND(strItmClassTypesPS)
                                          strItmClassTypesPS1=SPLIT(strItmClassTypesPS(z),",")
                                          vID=strItmClassTypesPS1(0)
                                          vtext=strItmClassTypesPS1(1)
                                          %>
                                          <option value="<%=vID%>"<%If CInt(vID)=strItmClassID Then Response.Write " selected"%>><%=vtext%></option>
                                        <%next%>
                                    </select></td>
                <td class="selected" id="Show_PurchasePrice_<%=id%>"><%=PurchasePriceTXT%></td>
                <td class="selected" id="Edit_PurchasePrice_<%=id%>" style="display:none;"><input id="PurchasePrice_<%=id%>" name="PurchasePrice_<%=id%>" class="small" style="width:50px;text-align: center;" value="<%=PurchasePrice%>" type="text" disabled="true"></td>
                <td class="selected" id="Show_SellingPrice_<%=id%>"><%=SellingPriceTXT%></td>
                <td class="selected" id="Edit_SellingPrice_<%=id%>" style="display:none;"><input id="SellingPrice_<%=id%>" name="SellingPrice_<%=id%>" class="small" style="width:50px;text-align: center;" value="<%=SellingPrice%>" type="text" disabled="true"></td>
                <td class="selected" id="Show_CreditsPrice_<%=id%>"><%=CreditsPriceTXT%></td>
                <td class="selected" id="Edit_CreditsPrice_<%=id%>" style="display:none;"><input id="CreditsPrice_<%=id%>" name="CreditsPrice_<%=id%>" class="small" style="width:50px;text-align: center;" value="<%=CreditsPrice%>" type="text" disabled="true"></td>
                <td class="category" id="Show_strItmRemarks_<%=id%>"><%=strItmRemarks%></td>
                <td class="category" id="Edit_strItmRemarks_<%=id%>" style="display:none;"><input id="strItmRemarks_<%=id%>" name="strItmRemarks_<%=id%>" class="small" style="width:300px;text-align: center;" value="<%=strItmRemarks%>" type="text" disabled="true"></td>
                <td class="selected" id="Show_isCarStItm_<%=id%>"><%=isCarStItmTXT%></td>
                <td class="selected" id="Edit_isCarStItm_<%=id%>" style="display:none;"><input type="checkbox" id="isCarStItm_<%=id%>" name="isCarStItm_<%=id%>" value="1"<%If isCarStItm="1" Then Response.Write " checked"%> disabled="true"></td>
                <td class="selected category2 last"><%=strItmStateTXT%></td>
              </tr>
            <%rs.movenext
            loop
            rs.close()
            %>
            <%for j=i to 20%>
            <tr>
                <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>&nbsp;</td>
                <td class="last">&nbsp;</td>
            </tr>
            <%next%>
                            </tbody>
                        </table>
                        <!-- pagination -->
                        <div class="pagination pagination-left">
                            <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 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 acc1>=acc2 then%>
                                  <li class="disabled">下页 &raquo;</li>
                                <%else%>
                                  <li><a href="?page=<%=acc1+1%><%=page_URL%>">下页 &raquo;</a></li>
                                <%end if%>
                            </ul>
                            <%end if%>
                        </div>
                        <!-- end pagination -->
                        </form>
                    </div>
                </div>
                <!-- end table -->
 
 
                
            </div>
            <!-- end content / right -->
        </div>
        <!-- end content -->
        <!--#include FILE="vicgame.asp"-->
        <IFRAME id="HiddenFrame" name="HiddenFrame" WIDTH=0 HEIGHT=0 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=#ffffff></IFRAME>
    </body>
</html>