【调度系统】广东民航医疗快线调度系统源代码
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
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<!--#include virtual="/inc/chkadmin.gds"-->
<!--#include virtual="/inc/function.gds"-->
<%
 
 
searchTXT=SafeRequest(Request("searchTXT"))
StockWarehouseID=SafeRequest(Request("StockWarehouseID"))
strItmID=SafeRequest(Request("strItmID"))
 
if isDepartment("040401")=0 Or strItmID="" then
  Response.Redirect "/"
  Response.End()
end If
 
Set rs = Server.CreateObject("ADODB.Recordset")
Set rsDt = Server.CreateObject("ADODB.Recordset")
 
'各种返回信息
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 StockWarehouseID="" Or StockWarehouseID="0" Then
  StockWarehouseName="全部"
  StockWarehouseID=0
End If
StockWarehouseTypes = "0,全部|"
sql="select WarehouseID,WarehouseName from MRP_Warehouse order by WarehouseID desc"
rs.open Sql,objConn,1,1
do while not rs.Eof
    If CInt(StockWarehouseID)=rs("WarehouseID") Then StockWarehouseName    = rs("WarehouseName")
    StockWarehouseTypes = StockWarehouseTypes & rs("WarehouseID") &","& rs("WarehouseName") & "|"
rs.movenext
Loop
rs.close()
StockWarehouseTypes = left(StockWarehouseTypes,len(StockWarehouseTypes)-1)
StockWarehouseTypesPS = SPLIT(StockWarehouseTypes,"|")
 
'物品信息
sql="select * from tblStItm where strItmID="&strItmID
rs.open Sql,objConn,1,1
if not rs.Eof Then
    strItmName=rs("strItmName")
End If
rs.close()
 
page_URL="&searchTXT="&searchTXT&"&StockWarehouseID="&StockWarehouseID&"&strItmID="&strItmID
%>
<!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><%=strItmName%> 记录流水</h5>
                        <ul class="links">
                            <li>
                                <%
                                '下拉菜单设定
                                DownMenuName="仓库"            '菜单名称
                                DownMenuNameID="StockWarehouseID"    '菜单ID
                                DownMenuOldName=StockWarehouseName    '默认值名称
                                DownMenuOldID=StockWarehouseID    '默认值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(StockWarehouseTypesPS)
                                          StockWarehouseTypesPS1=SPLIT(StockWarehouseTypesPS(z),",")
                                          vID=StockWarehouseTypesPS1(0)
                                          vtext=StockWarehouseTypesPS1(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=" where (strItmName like '%"&searchTXT&"%' or strItmNo='"&searchTXT&"' or strItmBarcode='"&searchTXT&"' or strItmPinyin like '"&searchTXT&"%') "
            else
              'searchSql=" where strItmState<>0 "
            end If
            If StockWarehouseID<>"" And StockWarehouseID<>"0" Then
              searchSql=searchSql&" and WarehouseID="&StockWarehouseID
            End If
            If strItmClassID<>"" and strItmClassID<>"0" Then
              searchSql=searchSql&" and strItmClassID="&strItmClassID
            End If
            If InStr(searchSql," and ")=1 Then
                searchSql="|"&searchSql
                searchSql=Replace(searchSql,"| and"," where")
            End If
 
            sql="select OrderRemarks,MRP_OrderID,OutWarehouseID,InWarehouseID,StItmIDPK,OD_QtyA,InTime,InTime_OAid,OutTime,OutTime_OAid,OD_Remarks from MRP_OrderManoeuvre,MRP_OrderDetail where MRP_OrderID=MRP_OrderIDPK and (OutWarehouseID="&StockWarehouseID&" or InWarehouseID="&StockWarehouseID&") and StItmIDPK="&strItmID&" 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>操作时间</th>
                                    <th>操作人员</th>
                                    <th>操作数量</th>
                                    <th class="last">操作</th>
                                </tr>
                            </thead>
                            <tbody>
            
            <%i=1
            do while not rs.Eof and i<=QuantityInt
              OrderRemarks        = rs("OrderRemarks")    '大单备注/对应调度单号
              MRP_OrderID        = rs("MRP_OrderID")        '单据编号
              OutWarehouseID    = rs("OutWarehouseID")    '出库仓ID
              InWarehouseID        = rs("InWarehouseID")    '入库仓ID
              StItmIDPK            = rs("StItmIDPK")        '商品ID
              OD_QtyA            = rs("OD_QtyA")            '操作数量
              OutTime            = rs("OutTime")            '出库时间
              OutTime_OAid        = rs("OutTime_OAid")    '出库人
              InTime            = rs("InTime")            '入库时间
              InTime_OAid        = rs("InTime_OAid")        '入库人
              OD_Remarks        = rs("OD_Remarks")        '子单备注/对应调度单ID
              
              is_CompulsoryReturn=0
              If CInt(OutWarehouseID)=CInt(StockWarehouseID) then
                OrderTime=OutTime
                OrderTime_OAid=OutTime_OAid
                OrderTXT="出库"
                If IsNumeric(OD_Remarks) Then
                    sql="select MRP_ODID from MRP_OrderDetail where MRP_OrderIDPK='MRP-14-"&OD_Remarks&"In' and StItmIDPK="&StItmIDPK
                    rsDt.open sql,objConn,1,1
                    if rsDt.Eof then
                        is_CompulsoryReturn=1
                    End If
                    rsDt.close()
                 End If
              Else
                OrderTime=InTime
                OrderTime_OAid=InTime_OAid
                OrderTXT="入库"
              End If
              i=i+1
 
              %>
 
              <tr style="white-space: nowrap;">
                <td class="category"><%=MRP_OrderID%></td>
                <td class="category"><%If IsNumeric(OD_Remarks) Then%><a href="/DispatchOrder.gds?DispatchOrdID=<%=OD_Remarks%>" target="_blank"><%=OrderRemarks%></a><%Else%><%=OrderRemarks%><%End If%></td>
                <td class="selected"><%=OrderTXT%></td>
                <td class="category"><%=OrderTime%></td>
                <td class="category"><%=OAUser(OrderTime_OAid,"UserName")%></td>
                <td class="category"><%=OD_QtyA%></td>
                <td class="category category2 last"><%If is_CompulsoryReturn=1 then%><input type="button" name="submit51" id="PaidMoneyAdd" value="强制归返" class="ui-button ui-widget ui-state-default ui-corner-all" role="button" aria-disabled="false" onclick="JavaScript:window.location.href='/admin_save.gds?admin_save=105&DispatchOrdID=<%=OD_Remarks%>&StItmID=<%=StItmIDPK%>&WarehouseID=<%=StockWarehouseID%>';"><%End If%></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 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>