In_Compiles.asp
资源名称:4s.rar [点击查看]
上传用户:apresys
上传日期:2021-03-30
资源大小:813k
文件大小:12k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
DOS
- <!--#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="100%" border="1" cellspacing="0" bordercolor="#D6D3CE">
- <tr><td align="center">
- <%if request("action")<>"search" then%>
- <fieldset style="width:95%"><legend>详细入库信息查询</legend>
- <table width="90%" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
- <form name="powersearch" method="post" action="In_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 class",conn,1,1
- if not rs1.eof then
- do while not rs1.eof
- %>
- <option value="<%=rs1("classnumber")%>"><%=rs1("classnumber")%></option>
- <%
- rs1.movenext
- loop
- end if
- rs1.close
- set rs1=nothing
- %></select></td><td width="20%"><input type="checkbox" name="SeachModel" value=2>
- 按配件名称</td>
- <td width="30%">
- <input name="pinming" type="text" size="20">
- </td>
- </tr>
- <tr><td height="30" >
- <input type="checkbox" name="SeachModel" value=3>
- 按车型</td>
- <td><input name="guige" type="text" size="20"></td>
- <td><input type="checkbox" name=SeachModel value=4>按供应商</td>
- <td><select name="Supplier" style='width:130'>
- <%
- set rs=server.createobject("adodb.recordset")
- sql="select * from Supplier"
- rs.open sql,conn,1,1
- if not rs.eof then
- do while not rs.eof
- %>
- <option value="<%=rs("Supplier_name")%>"><%=rs("Supplier_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><td height="30" ><input type="checkbox" name=SeachModel value=6>按结帐日期</td><td ><INPUT name="end_time" onFocus="show_cele_date(end_time,'','',end_time)" value="<%=year(now())%>-<%=month(now())%>-<%=day(now())%>" size="8"> 到 <INPUT name="end_time1" onFocus="show_cele_date(end_time1,'','',end_time1)" value="<%=year(now())%>-<%=month(now())%>-<%=day(now())%>" size="8"></td></tr>
- <tr><td><input type="checkbox" name=SeachModel value=7>按仓库</td>
- <td><select name='storage' style='width:130'>
- <%
- set rs1=server.createobject("adodb.recordset")
- rs1.open "select * from storage order by storage",conn,1,1
- if not rs1.eof then
- do while not rs1.eof
- %>
- <option value="<%=rs1("storage")%>"><%=rs1("storage")%></option>
- <%
- rs1.movenext
- loop
- end if
- rs1.close
- set rs1=nothing
- %></select>
- </td><td align="center" height="30" colspan="2"><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> </fieldset><br>
- <br>
- <fieldset style="width:95%"><legend>单月入库汇总查询</legend>
- <table width="90%" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
- <form name="powersearch" method="post" action="In_Compiles1.asp?action=search" >
- <tr><td height="30" width="30%" align="center">选择查询日期(1个自然月) </td><td width="30%"> <INPUT name="end_time" onFocus="show_cele_date(end_time,'','',end_time)" value="<%=year(now())%>-<%=month(now())%>-<%=day(now())%>" size="10"> 到 <INPUT name="end_time1" onFocus="show_cele_date(end_time1,'','',end_time1)" 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> </fieldset>
- <br>
- <br>
- <fieldset style="width:95%"><legend>年度入库汇总查询</legend>
- <table width="90%" border="0" cellpadding="0" cellspacing="0" bordercolor="#D4D0C8">
- <form name="powersearch" method="post" action="In_Compiles2.asp?action=search" >
- <tr><td height="30" width="30%" align="center">请输入查询年份 </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> </fieldset>
- <%else%>
- <%
- dim SeachModel
- SeachModel=request.form("SeachModel")
- pinming=trim(request.form("pinming"))
- Supplier=request.form("Supplier")
- class1=request.form("class")
- guige=request.form("guige")
- storage=request.form("storage")
- 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")))
- '查询代码开始
- names=Split(SeachModel,", ")
- i=0
- sql="select * from In_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)="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
- if names(i)="7" then
- sql=sql+" and storage = '"&storage&"'"
- 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="99%" border="0" cellpadding="1" cellspacing="0" bgcolor="#D4D0C8" class="tddown">
- <tr class="but">
- <td width="10%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">日期</td>
- <td width="10%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">类 别</td>
- <td width="12%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">配件名称</td>
- <td width="10%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">车 型</td>
- <td width="5%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">单 位</td>
- <td width="18%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">供应商</td>
- <td width="8%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">采购单价</td>
- <td width="8%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">数 量</td>
- <td width="9%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">总金额</td>
- <td width="10%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">结帐日期</td>
- </tr>
- <tr valign="top" bgcolor="#FFFFFF">
- <td colspan="12" align="center" class="iframe">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mouse">
- <%
- 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" ><a href="In_Store.Asp?id=<%=rs("ID")%>&action=edit"><%=rs("uptime")%></a></td>
- <td height="18" width="10%" align="center" ><font color="#CC3300"><%=rs("class")%></font><%if rs("class")="" then%> <%end if%></td>
- <td height="18" width="12%"> <a href="In_Store.Asp?id=<%=rs("ID")%>&action=edit"><font color="#000099"><%=rs("pinming")%></font></a></td>
- <td height="18" width="10%" align="center"> <%=rs("guige")%></td>
- <td height="18" width="5%" align="center"><font color="#009900"><%=rs("Unit")%></font><%if rs("Unit")="" then%> <%end if%></td>
- <td height="18" width="18%" > <font color="#666666"><%=rs("Supplier")%></font></td>
- <td height="18" width="8%" align="right" ><font color="#FF0000"><%=rs("use_price")%></font><%if rs("use_price")="" then%> <%end if%></td>
- <td height="18" width="8%" align="right"><%=rs("use_num")%> </td>
- <td height="18" width="9%" align="right"><font color="#FF6600"><%=rs("use_Amount")%></font> </td>
- <td height="18" width="10%" align="center"><%if rs("end_time")="1980-1-1" then%><font color="#FF0000">未结帐</font><%else%><%=rs("end_time")%><%end if%></td>
- </tr>
- <%
- use_num=use_num+rs("use_num")
- use_Amount=use_Amount+rs("use_Amount")
- rs.movenext
- loop
- end if
- %>
- <tr><td colspan="6" height="30"> 符合查询条件的入库记录总共为 <font color="#cc0000"><%=i%></font> 条</td><td align="right">总计:</td><td align="right"><font color="#cc0000"><%=use_num%></font></td><td align="right"><font color="#cc0000"><%=use_Amount%></font></td></tr>
- </table>
- </td>
- </tr>
- </table>
- <br>
- <table cellpadding="0">
- <form name="search" method="post" action="In_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="guige" type="hidden" value="<%=guige%>">
- <input name="Supplier" type="hidden" value="<%=Supplier%>">
- <input name="storage" type="hidden" value="<%=storage%>">
- <input name="uptime" type="hidden" value="<%=uptime%>">
- <input name="uptime1" type="hidden" value="<%=uptime1%>">
- <input name="end_time" type="hidden" value="<%=end_time%>">
- <input name="end_time1" type="hidden" value="<%=end_time1%>">
- <input type="submit" name="sub" value="生成明细表"></td></tr></form></table>
- <%end if%>
- </TD></TR>
- </table>
- </body>
- </html>
- <!--#include file="footer.htm"--></TD>
- </BODY></HTML>