📄 cailiao_in_detail.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="checkuser.asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="css/main.css" rel="stylesheet" type="text/css">
<title>∷企业生产管理信息系统::</title>
<!--media=print 这个属性可以在打印时有效-->
<style media=print>
.Noprint{display:none;}
.PageNext{page-break-after: always;}
</style>
</head>
<body leftmargin="30" topmargin="20">
<%
dim SeachModel
SeachModel=request.form("SeachModel")
pinming=trim(request.form("pinming"))
Supplier=request.form("Supplier")
fenlei1=request.form("fenlei")
caigouyuan=request.form("caigouyuan")
guige=request.form("guige")
uptime=cstr(trim(request.form("uptime")))
uptime1=cstr(trim(request.form("uptime1")))
end_time=cstr(trim(request.form("end_time")))
end_time1=cstr(trim(request.form("end_time1")))
nian=cstr(trim(request.form("nian")))
'查询代码开始
names=Split(SeachModel,", ")
i=0
sql="select * from cailiao_In_Store where"
for each name in names
if names(i)="1" then
sql=sql+" and fenlei = '"&fenlei1&"'"
end if
if names(i)="5" then
sql=sql+" and uptime between #"&uptime&"# and #"&uptime1&"#"
end if
if names(i)="6" then
sql=sql+" and caigouyuan = '"&caigouyuan&"'"
end if
if names(i)="7" then
sql=sql+" and uptime between #"&uptime&"# and #"&uptime1&"#"
end if
if names(i)="8" then
sql=sql+" and year(uptime) = '"&nian&"'"
end if
if names(i)="2" then
sql=sql+" and pinming like '%"&pinming&"%'"
end if
if names(i)="4" then
sql=sql+" and Supplier = '"&Supplier&"'"
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="960" border="1" cellpadding="0" cellspacing="0" bgcolor="#ffffff" bordercolor="#000000">
<tr><td height="35" colspan="12" align="center"><font size="4" face="黑体"><b>入库材料汇总明细</b></font></td></tr>
<tr>
<td width="60" height="22" align="center" >入库日期</td>
<td width="60" align="center" >类 别</td>
<td width="60" align="center" >品 名</td>
<td width="60" align="center" >规 格</td>
<td width="40" align="center" >单 位</td>
<td width="60" align="center" >存储库房</td>
<td width="190" align="center" >购货单位</td>
<td width="60" align="center" >单 价</td>
<td width="60" align="center" >数 量</td>
<td width="80" align="center" >金 额</td>
<td width="70" align="center" >采购员</td>
<td width="60" align="center">备 注</td>
</tr>
<%
dim i
i=0
use_num=0
use_Amount=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>
<td height="18" width="10%" align="center" ><%=rs("uptime")%></td>
<td align="center" ><%=rs("fenlei")%></td>
<td align="center"><%=rs("pinming")%></td>
<td align="center"><%=rs("guige")%></td>
<td align="center"><%=rs("Unit")%></td>
<td align="center"><%=rs("Supplier")%></td>
<td align="center"><%=rs("gonghuodanwei")%></td>
<td align="center"><%=FormatCurrency(rs("use_price"),2,-1,,0)%></td>
<td align="center"><%=Formatnumber(rs("use_num"),2,-1,0,0)%></td>
<td align="center"><%=FormatCurrency(rs("use_Amount"),2,-1,,0)%></td>
<td align="center"><%=rs("caigouyuan")%></td>
<td align="center"> <%=rs("content")%></td>
</tr>
<%
use_num=use_num+rs("use_num")
use_Amount=use_Amount+rs("use_Amount")
rs.movenext
loop
end if
%>
<tr><td colspan="7" height="30"> 符合查询条件的入库记录总共为 <font color="#cc0000"><%=i%></font> 条</td><td align="right">总计:</td><td align="center"><%=use_num%> </td><td align="center">
<%=FormatCurrency(use_Amount,2,,,0)%> </td><td> </td><td> </td></tr>
</table>
<table>
<tr><td height="30" colspan="10" align="center"><OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0 VIEWASTEXT>
</OBJECT>
<input type=button value=打印 onClick="document.all.WebBrowser.ExecWB(6,1)" class="NOPRINT">
<input type=button value=直接打印 onClick="document.all.WebBrowser.ExecWB(6,6)" class="NOPRINT">
<input type=button value=页面设置 onClick="document.all.WebBrowser.ExecWB(8,1)" class="NOPRINT">
<input type=button value=打印预览 onClick="document.all.WebBrowser.ExecWB(7,1)" class="NOPRINT">
</td></tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -