【调度系统】广东民航医疗快线调度系统源代码
wanglizhong
2025-06-16 ae5b0a8c63979351028215b8fe8cdf4b0766c272
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
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<!--#include virtual="/inc/chkadmin.gds"-->
<!--#include virtual="/inc/function.gds"-->
<%
if isDepartment("0402")=0 then
  Response.Redirect "/"
  Response.End()
end If
 
searchTXT=SafeRequest(Request("searchTXT"))
OrdType=SafeRequest(Request("OrdType"))
 
Set rs = Server.CreateObject("ADODB.Recordset")
'默认显示字段
If OrdType="" Then OrdType="14"
 
'各种返回信息
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="7" then
      SystemMessageTXT="启用物料完成!!"
    end if
end if
 
 
If OrdType="14" then
    OrdListName    = "库存调拨单"
    OrdTypeName    = "库存调拨"
    OrdTypeName1= "调拨"
End If
 
'物品类型表列
If strItmClassID="" Then
  strItmClassName="全部"
  strItmClassID=0
End If
strItmClassTypes = "0,全部|"
sql="select vID,vtext,vType 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")
    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 & "|"
rs.movenext
Loop
rs.close()
strItmClassTypes = left(strItmClassTypes,len(strItmClassTypes)-1)
strItmClassTypesPS = SPLIT(strItmClassTypes,"|")
 
 
page_URL="&searchTXT="&searchTXT&"&OrdType="&OrdType
%>
<!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%><%=OrdTypeName%>单查询 <%=searchTXT%><%else%><%=OrdDateTypeName1&" "&OrdListName%><%End if%></h5>
                        <ul class="links">
                            <%If isDepartment("040202")=1 Then%><li><a href="/MRP_TradeDetail.gds?OrdType=<%=OrdType%>">新建<%=OrdListName%></a></li><%End If%>
                            <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>
                    </div>
                    <!-- end box / title -->
            <%
            acc1=request("page")
            if acc1=empty then acc1=clng(1)
            QuantityInt = 20
            acc2=0
            acc3=0
 
            if searchTXT<>"" Then
              searchSql=" and (strItmName like '%"&searchTXT&"%' or strItmNo='"&searchTXT&"') "
            else
              searchSql=" and OrderState<>-1 "
            end If
            If strItmClassID<>"" and strItmClassID<>"0" Then
              searchSql=searchSql&" and strItmClassID="&strItmClassID
            End If
 
            sql="select * from MRP_OrderManoeuvre where SUBSTRING(MRP_OrderID,4,4)='-"&OrdType&"-' "&searchSql&" order by OrderTime 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>单据号</th>
                                    <th>状态</th>
                                    <th>转出仓库</th>
                                    <th class="selected">转入仓库</th>
                                    <th class="selected">开单时间</th>
                                    <th class="selected">审核时间</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
              MRP_OSID            = rs("MRP_OSID")            '流水ID
              MRP_OrderID        = rs("MRP_OrderID")            '单据号
              OutWarehouseID    = rs("OutWarehouseID")        '转出仓库ID
              InWarehouseID        = rs("InWarehouseID")        '转入仓库ID
              OrderState        = rs("OrderState")            '状态
              OrderTime            = rs("OrderTime")            '开单时间
              OrderTime_OAid    = rs("OrderTime_OAid")        '开单人员ID
              AuditTime            = rs("AuditTime")            '审核时间
              AuditTime_OAid    = rs("AuditTime_OAid")        '审核人员ID
              OutTime            = rs("OutTime")                '转出时间
              OutTime_OAid        = rs("OutTime_OAid")        '转出人员ID
              InTime            = rs("InTime")                '转入时间
              InTime_OAid        = rs("InTime_OAid")            '转入人员ID
              TotalMoney        = rs("TotalMoney")            '总金额
              TotalQty            = rs("TotalQty")            '总数量
              OrderRemarks        = rs("OrderRemarks")        '备注
 
              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 strItmState="0" Then 
                strItmStateTXT = "√"
              Else
                strItmStateTXT = ""
              End If
              i=i+1
 
              %>
 
              <tr style="white-space: nowrap;">
                <td class="category"><a href="MRP_TradeDetail.gds?MRP_OrderID=<%=MRP_OrderID%>"><%=MRP_OrderID%></a></td>
                <td class="selected"><%=TradeOrderState_A(OrderState,OrdType)%></td>
                <td class="category"><%=Warehouse_A(OutWarehouseID,"Name")%></td>
                <td class="category"><%=Warehouse_A(InWarehouseID,"Name")%></td>
                <td class="selected"><%=OrderTime%></td>
                <td class="selected"><%=AuditTime%></td>
                <td class="selected"><%=OutTime%></td>
                <td class="selected"><%=InTime%></td>
                <td class="selected"><%=TotalMoney%></td>
                <td class="selected"><%=TotalQty%></td>
                <td class="category category2 last"><%=OrderRemarks%></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 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>