【调度系统】广东民航医疗快线调度系统源代码
wzp
2024-12-05 8a09f655eace34e9c90bbfc711eedb7a69e4e068
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
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Session.CodePage=65001%>
<!--#include virtual="/inc/chkadmin.gds"-->
<!--#include virtual="/inc/function.gds"-->
<script language=javascript>
var ShelvesListArray=new Array()
<%
ShelvesSearchTXT=trim(Request("ShelvesSearchTXT"))
WarehouseID=trim(Request("WarehouseID"))
InWarehouseID=trim(Request("InWarehouseID"))
OrdType=trim(Request("OrdType"))
acc1=trim(Request("page"))
if acc1="" then acc1=1
acc2=1
i=0
acc3=0
Set rs = Server.CreateObject("ADODB.Recordset")
if WarehouseID<>"" then
  SqlStock="(select isnull(sum(StockQty),0) from MRP_Stock where StItmIDPK=strItmID and StockWarehouseID="&WarehouseID&")"
else
  SqlStock="'--'"
end if
if InWarehouseID<>"" then
  SqlInStock="(select isnull(sum(StockQty),0) from MRP_Stock where StItmIDPK=strItmID and StockWarehouseID="&InWarehouseID&")"
else
  SqlInStock="'--'"
end if
if len(ShelvesSearchTXT)>0 then
    sql="select id,vID,vtext,vtitle,vType,vMono,vOrder,vOrder2,WarehouseName from dictionary,MRP_Warehouse where WarehouseID=vOrder and vtitle in ('WarehouseShelves') and (vtext like '%"&searchTXT&"%' or vtitle='"&searchTXT&"' or vOrder in (select WarehouseID from MRP_Warehouse where WarehouseName like '%"&searchTXT&"%')) "
else
    sql="select id,vID,vtext,vtitle,vType,vMono,vOrder,vOrder2,WarehouseName from dictionary,MRP_Warehouse where WarehouseID=vOrder and vtitle in ('WarehouseShelves') "
end if
    rs.open Sql,objConn,1,1
    if not rs.eof then
        rs.pagesize=10
        rs.absolutepage=acc1
        acc2=rs.pagecount
        acc3=rs.recordcount
    end if
    do while not rs.Eof and i<10
        ShelvesID    = rs("id")
        ShelvesName    = rs("vtext")
        vOrder    = rs("vOrder")
        vOrder2    = rs("vOrder2")
        WarehouseName    = rs("WarehouseName")
        %>
        ShelvesListArray[<%=i%>]=new Array("<%=ShelvesID%>","<%=ShelvesName%>","<%=vOrder%>","<%=vOrder2%>","<%=WarehouseName%>")
        <%i=i+1
        rs.movenext
    loop
    rs.close()
%>
parent.JS_ShelvesList(ShelvesListArray,<%=acc1%>,<%=acc2%>,'<%=ShelvesSearchTXT%>',<%=acc3%>);
</script> 
<%Response.End%>