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

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