store_Compiles1.asp
上传用户:apresys
上传日期:2021-03-30
资源大小:813k
文件大小:5k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

DOS

  1. <!--#include file="conn.asp"-->
  2. <!--#include file="top.asp"-->
  3. <!--#include file="checkuser.asp"-->
  4. <head>
  5. <style type="text/css">
  6. <!--
  7. .select {
  8. color: #FFFFFF;
  9. background-color: #08246b;
  10. }
  11. .offline {
  12. filter: Gray;
  13. }
  14. -->
  15. </style>
  16. <title>查找结果</title>
  17. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  18. <link href="css/main.css" rel="stylesheet" type="text/css">
  19. <SCRIPT language=JavaScript src="css/User_Info_Modify.js"></SCRIPT>
  20. </head>
  21. <body >
  22.   <table width="100%" border="1" cellspacing="0" bordercolor="#D6D3CE">
  23.   <tr><td align="center" height="30">查询 <%=request.Form("class")%> 从 <%=request("end_time")%> 到 <%=request("end_time1")%> 的库存记录</td></tr><tr><td align="center">
  24. <table width="80%" border="0" cellpadding="1" cellspacing="0" bgcolor="#D4D0C8" class="tddown">
  25.           <tr class="but"> 
  26.             
  27.             <td width="20%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">类 别</td>
  28.             <td width="20%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">配件名称</td>
  29.             <td width="20%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">车 型</td>
  30.             <td width="10%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">入库量</td>
  31. <td width="10%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">出库量</td>
  32. <td width="20%" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">数 量</td>
  33.           </tr>
  34.           <tr valign="top" bgcolor="#FFFFFF"> 
  35.             <td colspan="12" align="center" class="iframe"> 
  36.                 <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mouse">
  37.                  <%
  38.  i=0
  39. end_time=request.Form("end_time")
  40. end_time1=request.Form("end_time1")
  41. class1=request.Form("class")
  42.  set Rs=server.createobject("adodb.recordset")
  43.  if class1="" then
  44.    rs.open "select class,pinming,guige,sum(use_num) as num1 from In_Store  where uptime  between  #"&end_time&"# and #"&end_time1&"# group by class,pinming,guige",conn,1,1
  45.    else
  46.    rs.open "select class,pinming,guige,sum(use_num) as num1 from In_Store  where class='"&class1&"' and (uptime  between  #"&end_time&"# and #"&end_time1&"#) group by class,pinming,guige",conn,1,1
  47.    end if
  48. if not rs.eof then 
  49. do while not rs.eof
  50. class1=rs("class")
  51. pinming=rs("pinming")
  52. guige=rs("guige")
  53. %>
  54. <% set Rs0=server.createobject("adodb.recordset")
  55.    rs0.open "select class,pinming,guige,sum(Loan_num) as num2 from out_Store  where class='"&class1&"' and pinming='"&pinming&"'   and guige='"&guige&"' and (uptime  between  #"&end_time&"# and #"&end_time1&"#) group by class,pinming,guige",conn,1,1
  56. if rs0.eof then
  57. num2=0
  58. else
  59. num2=rs0("num2")
  60. end if
  61. %>
  62.                   <tr <%if i mod 2 =0 then%> bgcolor="#EEEEEE"<%end if%>>
  63. <td height="18" width="20%" align="center" ><font color="#CC3300"><%=rs("class")%></font><%if rs("class")="" then%>&nbsp;<%end if%></td>
  64. <td height="18" width="20%">&nbsp;<font color="#000099"><%=rs("pinming")%></font></td>
  65. <td height="18" width="20%" align="center">&nbsp;<%=rs("guige")%></td>
  66. <td height="18" width="10%" align="right"> <%=rs("num1")%>&nbsp;</td>
  67. <td height="18" width="10%" align="right"><%=num2%>&nbsp;</td>
  68. <td height="18" width="20%" align="right" ><%=rs("num1")-num2%>&nbsp;</td>
  69. </tr>
  70.   
  71. <%
  72. rs0.close
  73. set rs0=nothing
  74. i=i+1
  75. %>
  76. <%rs.movenext%>
  77. <%loop%>
  78. <%
  79. end if
  80. rs.close
  81. set rs=nothing
  82. %>
  83.                    <tr><td colspan="3" height="30">  符合查询条件的库存记录总共为 <font color="#cc0000"><%=i%></font> 条</td><td  align="right"></td><td align="right"></td></tr>
  84. </table>
  85.               </td>
  86.           </tr>
  87.         </table>
  88. <br>
  89. <table cellpadding="0">
  90. <form name="search" method="post" action="store_Detail1.asp" target="_blank" >
  91.   <tr><td>
  92.   <input name="end_time" type="hidden" value="<%=end_time%>">
  93.   <input name="class" type="hidden" value="<%=class1%>">
  94.   <input name="end_time1" type="hidden" value="<%=end_time1%>">
  95.   <input type="submit" name="sub"  value="生成明细表"></td></tr></form></table>
  96. </TD></TR>
  97.   </table>
  98. </body>
  99. </html>
  100. <!--#include file="footer.htm"--></TD>
  101.  </BODY></HTML>