📄 product_out_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_out_Compiles.asp?action=search" >
<tr><td width="20%" height="30" ><input type="checkbox" name="SeachModel" value=1>按仓库</td><td>
<select name='class' 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>
</tr>
<tr><td height="30" >
<input type="checkbox" name="SeachModel" value=3>按车号</td>
<td><input name="chehao" type="text" size="20"></td>
</tr>
<tr>
<td><input type="checkbox" name=SeachModel value=4>按购货单位</td>
<td><select name="use_dep" >
<%
set rs=server.createobject("adodb.recordset")
sql="select * from owner"
rs.open sql,conn,1,1
if not rs.eof then
do while not rs.eof
%>
<option value="<%=rs("owner_name")%>"><%=rs("owner_name")%></option>
<%
rs.movenext
loop
rs.close
set rs=nothing
end if
%>
</select>
</td>
</tr>
<tr><td height="30" ><input type="checkbox" name=SeachModel value=5>按出库日期</td><td ><INPUT name="uptime" onFocus="show_cele_date(uptime,'','',uptime)" value="<%=year(now())%>-<%=month(now())%>-<%=day(now())%>" size="8"> 到 <INPUT name="uptime1" onFocus="show_cele_date(uptime1,'','',uptime1)" value="<%=year(now())%>-<%=month(now())%>-<%=day(now())%>" size="8"></td></tr><tr><td align="center" height="30" colspan="8"><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>
</td>
</tr>
</table>
<br><br>
<TABLE width=800 align=center border="1" cellspacing="0" cellpadding="0" bordercolor="#0055E6">
<tr>
<td>
<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_Out_Compiles.asp?action=search" >
<tr><td height="40" valign="middle" width="30%" align="center"><input type="checkbox" name=SeachModel value=7>选择查询日期(1个自然月) </td><td width="30%"> <INPUT name="uptime" onFocus="show_cele_date(uptime,'','',uptime)" value="<%=year(now())%>-<%=month(now())%>-<%=day(now())%>" size="10"> 到 <INPUT name="uptime1" onFocus="show_cele_date(uptime1,'','',uptime1)" value="<%=year(now())%>-<%=month(now())%>-<%=day(now())%>" size="10"></td><td height="30" width="40%"><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="查询"> * 如:2006年8月则选择2006-8-1到2006-8-31</td></tr>
</form>
</table>
</td>
</tr>
</table>
<br><br>
<TABLE width=800 align=center border="1" cellspacing="0" cellpadding="0" bordercolor="#0055E6">
<tr>
<td>
<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="90%" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
<form name="powersearch" method="post" action="product_out_Compiles.asp?action=search" >
<tr><td height="40" valign="middle" width="30%" align="center"><input type="checkbox" name=SeachModel value=8>请输入查询年份 </td><td width="30%"> <INPUT name="nian" value="<%=year(now())%>" onKeyUp="value=value.replace(/[^\d\.]/g,'')" maxlength="4" size="6"> </td><td height="30" width="40%"><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>
<%else%>
<%
dim SeachModel
SeachModel=request.form("SeachModel")
pinming=trim(request.form("pinming"))
use_dep=request.form("use_dep")
class1=request.form("class")
chehao=request.form("chehao")
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 product_out_store where"
for each name in names
if names(i)="1" then
sql=sql+" and class = '"&class1&"'"
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 end_time between #"&end_time&"# and #"&end_time1&"#"
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 use_dep = '"&use_dep&"'"
end if
if names(i)="3" then
sql=sql+" and chehao = '"&chehao&"'"
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="100" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">出库日期</td>
<td width="75" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">仓库</td>
<td width="75" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">优级品</td>
<td width="75" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">一级品</td>
<td width="75" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">合格品</td>
<td width="75" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">等外品</td>
<td width="75" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">总量</td>
<td width="170" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">购货单位</td>
<td width="80" 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="9" align="center" class="iframe">
<table width="800" border="1" cellpadding="0" cellspacing="1" bordercolor="#EFEADD">
<%
dim i
i=0
Loan_num=0
Loan_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 onmouseover="this.bgColor='#73A475';" onmouseout="this.bgColor=''"">
<td height="18" align="center" width="100"><%=rs("uptime")%></td>
<td align="center" width="75"><%=rs("class")%></td>
<td align="center" width="75"><%=Formatnumber(rs("youjipin"),2,-1,0,0)%></td>
<td align="center" width="75"><%=Formatnumber(rs("yijipin"),2,-1,0,0)%></td>
<td align="center" width="75"><%=Formatnumber(rs("hegepin"),2,-1,0,0)%></td>
<td align="center" width="75"><%=Formatnumber(rs("dengwaipin"),2,-1,0,0)%></td>
<td align="center" width="75"><%=Formatnumber(rs("Loan_num"),2,-1,0,0)%></td>
<td align="center" width="170"><%=rs("use_dep")%></td>
<td align="center" width="80"><%=rs("chehao")%></td>
</tr>
<%
youjipin_num=youjipin_num+rs("youjipin")
yijipin_num=yijipin_num+rs("yijipin")
hegepin_num=hegepin_num+rs("hegepin")
dengwaipin_num=dengwaipin_num+rs("dengwaipin")
Loan_num=Loan_num+rs("Loan_num")
rs.movenext
loop
end if
%>
<tr><td colspan="9" height="30"> 符合查询条件的出库记录总共为 <font color="#cc0000"><%=i%></font> 条</td></tr>
<tr>
<td height="18" colspan="2" align="center" width="150"><font color="red">总计:</font></td>
<td align="center" width="75"><font color="red"><%=youjipin_num%></font></td>
<td align="center" width="75"><font color="red"><%=yijipin_num%></font></td>
<td align="center" width="75"><font color="red"><%=hegepin_num%></font></td>
<td align="center" width="75"><font color="red"><%=dengwaipin_num%></font></td>
<td align="center" width="75"><font color="red"><%=Loan_num%></font></td>
<td align="center" width="150"> </td>
<td align="center" width="100"> </td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding="0">
<form name="search" method="post" action="product_Out_Detail.asp" target="_blank" >
<tr><td>
<input name="SeachModel" type="hidden" value="<%=SeachModel%>">
<input name="pinming" type="hidden" value="<%=pinming%>">
<input name="use_dep" type="hidden" value="<%=use_dep%>">
<input name="class" type="hidden" value="<%=class1%>">
<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 + -