📄 product_store_compiles.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="top.asp"-->
<!--#include file="checkuser.asp"-->
<head>
<style type="text/css">
<!--
.select {
color: #FFFFFF;
background-color: #08246b;
}
.offline {
filter: Gray;
}
-->
</style>
<title>∷企业生产管理信息系统∷</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/main.css" rel="stylesheet" type="text/css">
<SCRIPT language=JavaScript src="css/User_Info_Modify.js"></SCRIPT>
</head>
<body >
<TABLE width=800 align=center border="1" cellspacing="0" cellpadding="0" bordercolor="#0055E6">
<tr><td align="center">
<%if request("action")<>"search" then%>
<table width="800" border="0" cellpadding="0" cellspacing="0" >
<tr >
<td height=26 background="images/background.gif">
<b><font color="#ffffff">库存信息普通查询</font></b>
</td>
</tr>
</table>
<table width="800" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
<form name="powersearch" method="post" action="product_store_Compiles.asp?action=search" >
<tr><td width="20%" height="30" ><input type="checkbox" name="SeachModel" value=1>按仓库</td><td>
<select name='cangku' style='width:130'>
<option selected value="">请选择仓库</option>
<%
set rs1=server.createobject("adodb.recordset")
rs1.open "select * from chengpincangku",conn,1,1
if not rs1.eof then
do while not rs1.eof
%>
<option value="<%=rs1("cangkuname")%>"><%=rs1("cangkuname")%></option>
<%
rs1.movenext
loop
end if
rs1.close
set rs1=nothing
%></select></td>
<td align="center" colspan="2" height=36><input type="submit" name="Submit" value="查询" style="font-size: 9pt; color: #000000; background-color: #EAEAF4; solid #EAEAF4" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#EAEAF4'" title="查询"></td></tr>
</form>
</table>
<br><br><br>
<%else%>
<%
dim SeachModel
SeachModel=request.form("SeachModel")
pinming=trim(request.form("pinming"))
cangku1=request.form("cangku")
guige=request.form("guige")
'查询代码开始
names=Split(SeachModel,", ")
i=0
sql="select * from product_Store where"
for each name in names
if names(i)="1" then
sql=sql+" and cangku like '"&cangku1&"'"
end if
if names(i)="2" then
sql=sql+" and pinming like '%"&pinming&"%'"
end if
if names(i)="3" then
sql=sql+" and guige = '"&guige&"'"
end if
i=i+1
next
sql=sql+" order by -id"
set rs=server.createobject("adodb.recordset")
sql=Replace(sql, "where and", "where")
%>
<table width="800" border="0" cellpadding="0" cellspacing="0" >
<tr >
<td height=26 background="images/background.gif">
<b><font color="#ffffff">查 询 结 果 列 表</font></b>
</td>
</tr>
</table>
<table id = "PrintA" width="800" border="1" cellpadding="0" cellspacing="1" bordercolor="#EFEADD">
<tr class="but">
<td width="200" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">仓库</td>
<td width="100" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">优级品数</td>
<td width="100" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">一级品数</td>
<td width="100" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">合格品数</td>
<td width="100" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">等外品数</td>
<td width="200" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">电石产量</td>
</tr>
<tr valign="top">
<td colspan="6" align="center" class="iframe">
<table width="800" border="1" cellpadding="0" cellspacing="1" bordercolor="#EFEADD">
<%
dim i
i=0
num=0
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<tr><td><br><br><center>还没有符合条件的查询!</center><br><br></td></tr>"
else
do while not rs.eof
i=i+1
%>
<tr onmouseover="this.bgColor='#73A475';" onmouseout="this.bgColor=''"">
<td height="18" width="200" align="center"><%=rs("cangku")%></td>
<td width="100" align="center"><%=Formatnumber(rs("youjipin_num"),2,-1,0,0)%></td>
<td width="100" align="center"><%=Formatnumber(rs("yijipin_num"),2,-1,0,0)%></td>
<td width="100" align="center"><%=Formatnumber(rs("hegepin_num"),2,-1,0,0)%></td>
<td width="100" align="center"><%=Formatnumber(rs("dengwaipin_num"),2,-1,0,0)%></td>
<td width="200" align="center"><%=Formatnumber(rs("number"),2,-1,0,0)%></td>
</tr>
<%
num=num+rs("number")
youji=youji+rs("youjipin_num")
yiji=yiji+rs("yijipin_num")
hege=hege+rs("hegepin_num")
dengwai=dengwai+rs("dengwaipin_num")
cangku=rs("cangku")
rs.movenext
loop
end if
%>
<tr><td colspan="6" height="30"> 符合查询条件的库存记录总共为 <font color="#cc0000"><%=i%></font> 条</td></tr>
<td height="18" width="200" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'" ><font color="#CC3300"><%=cangku%></font></td>
<td width="100" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=Formatnumber(youji,2,-1,0,0)%></td>
<td width="100" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=Formatnumber(yiji,2,-1,0,0)%></td>
<td width="100" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=Formatnumber(hege,2,-1,0,0)%></td>
<td width="100" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=Formatnumber(dengwai,2,-1,0,0)%></td>
<td width="200" align="center" class="but1" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but1'"><%=Formatnumber(num,2,-1,0,0)%></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellpadding="0">
<form name="search" method="post" action="product_store_Detail.asp" target="_blank" >
<tr><td>
<input name="SeachModel" type="hidden" value="<%=SeachModel%>">
<input name="pinming" type="hidden" value="<%=pinming%>">
<input name="class" type="hidden" value="<%=class1%>">
<input name="cangku" type="hidden" value="<%=cangku%>">
<input name="Supplier" type="hidden" value="<%=Supplier%>">
<input name="uptime" type="hidden" value="<%=uptime%>">
<input name="uptime1" type="hidden" value="<%=uptime1%>">
<input name="nian" type="hidden" value="<%=nian%>">
<input type="submit" name="sub" value="生成明细表"></td></tr></form></table>
<%end if%>
</TD></TR>
</table>
</body>
</html>
<!--#include file="footer.htm"--></TD>
</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -