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

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"><font size="4"><%=year(request.Form("end_time"))%>年<%=month(request.Form("end_time"))%>月 配件入库汇总表</font></td>
  24.   </tr>
  25.   <tr><td align="center">
  26. <%
  27. end_time=request.Form("end_time")
  28. end_time1=request.Form("end_time1")
  29. Dim names(100)
  30. i=0
  31. set Rs=server.createobject("adodb.recordset")
  32. rs.open "select Supplier from In_Store where uptime  between  #"&end_time&"# and #"&end_time1&"# group by Supplier",conn,1,1
  33. if not rs.eof then 
  34. do while not rs.eof
  35. i=i+1
  36. names(i)=rs(0)
  37. rs.movenext
  38. loop
  39. end if
  40. rs.close
  41. set rs=nothing
  42. %>
  43. <table width="99%" border="0" cellpadding="1" cellspacing="0" bgcolor="#D4D0C8" class="tddown">
  44.           <tr class="but"> 
  45.             
  46.             <td width="120" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">送交单位</td>
  47. <%
  48. Dim cla(20)
  49. j=0
  50. set Rs=server.createobject("adodb.recordset")
  51. rs.open "select classnumber from class ",conn,1,1
  52. if not rs.eof then 
  53. do while not rs.eof
  54. j=j+1
  55. cla(j)=rs(0)
  56. %>
  57. <td width="60" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'"><%=cla(j)%></td>
  58. <%rs.movenext
  59. loop%>
  60. <%
  61. end if
  62. rs.close
  63. set rs=nothing
  64. %>
  65. <td width="60" height="18" align="center" class="but" onMouseDown="this.className='tddown'" onMouseUp="this.className='but'" onMouseOut="this.className='but'">合 计</td>
  66.           </tr>
  67.           
  68. <%
  69. Dim num(100,100)
  70. dim n(100)
  71. m=1
  72. f=1
  73. for m=1 to i
  74. %>
  75. <tr><td height="20" width="120" bgcolor="#FFFFFF"> <%=names(m)%></a></td>
  76. <%
  77. n(m)=0
  78. for f=1 to j
  79. set Rs=server.createobject("adodb.recordset")
  80. rs.open "select sum(use_Amount) from In_Store where supplier='"&names(m)&"' and class='"&cla(f)&"' and (uptime  between  #"&end_time&"# and #"&end_time1&"#) group by Supplier",conn,1,1
  81. if not rs.eof then 
  82. num(m,f)=rs(0)
  83. n(m)=n(m)+num(m,f)
  84. %>                
  85. <td  width="60" align="right"  bgcolor="#FFFFFF"><font color="#CC3300"><%=num(m,f)%>&nbsp;</td>
  86. <%
  87. else
  88. num(m,f)=0
  89. %>
  90. <td width="60" align="right" bgcolor="#FFFFFF"><%=num(m,f)%>&nbsp;</td>
  91. <%
  92. end if
  93. rs.close
  94. set rs=nothing
  95. next
  96. %>
  97. <td width="60" align="right" bgcolor="#FFFFFF"><font color="#FF6600"><%=n(m)%></font>&nbsp;</td>
  98. </tr>
  99. <tr><td colspan="18" height="1" bgcolor="#000000"></td></tr>
  100. <%
  101. next
  102. %>
  103.  <tr class="but"> 
  104.             
  105.             <td width="120" align="center"  bgcolor="#FFFFFF">合 计</td>
  106. <%
  107. y=0
  108. for f=1 to j
  109. %>
  110. <td width="60" height="20" align="right" bgcolor="#FFFFFF">
  111. <%
  112. w=0
  113. for m=1 to i
  114. w=w+num(m,f)
  115. y=y+num(m,f)
  116. next
  117. %><font color="#FF0000"><%=w%></font>&nbsp;</td>
  118. <%next%>
  119. <td width="60" align="right" bgcolor="#FFFFFF"><font color="#FF0000"><%=y%></font>&nbsp;</td>
  120.           </tr>
  121. <tr><td colspan="18" height="1" bgcolor="#000000"></td></tr>
  122. <tr><td colspan="16" height="30" bgcolor="#FFFFFF">  付单: <font color="#cc0000"><%=i%></font> 张</td></tr>
  123.         </table>
  124. <br>
  125. <table cellpadding="0">
  126. <form name="search" method="post" action="In_Detail1.asp" target="_blank" >
  127.   <tr><td>
  128.    <input name="end_time" type="hidden" value="<%=end_time%>">
  129.   <input name="end_time1" type="hidden" value="<%=end_time1%>">
  130.   <input type="submit" name="sub"  value="生成明细表"></td></tr></form></table>
  131. </TD></TR>
  132.   </table>
  133. </body>
  134. </html>
  135. <!--#include file="footer.htm"--></TD>
  136.  </BODY></HTML>