⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 statbyid.jsp

📁 是一个企业的进销存系统。账号问1001密码为123456
💻 JSP
字号:
<%@ page language="java" import="java.util.*,com.jxc.vo.*" pageEncoding="UTF-8"%>
<html>
<head>
  
  
  <style type="text/css">
<!--
.style1 {
	font-size: 12px;
	font-weight: bold;
	color: #FF0000;
}
.style7 {font-size: 12px}
.style9 {font-size: 12px; color: #FF00FF; }
.style10 {color: #FF0000}
.style11 {color: #0000FF}
-->
  </style></head>
  <body  bgcolor="#F1F4F8">
  <table width="660" height="480" border="0">
    <tr>
      <td height="30"  bgcolor="#FFCCFF">
      <jsp:include page="stat_top.jsp"></jsp:include>
</td>
    </tr>
    <tr>
      <td height="25"><span class="style1">----&gt;统计全部商品&lt;----</span></td>
    </tr>
    <tr>
      <td height="35">
        <div align="center">
          <form action="StatById" method="post" name="form1" class="style7">
          初始日期:  <input name="d1" type="text" size="8">&nbsp;&nbsp;&nbsp;&nbsp;
           终止日期: <input name="d2" type="text" size="8">
           &nbsp;商品编号:&nbsp;
           <input name="sid" type="text" size="6">
           &nbsp;&nbsp;
            <input type="submit" name="Submit" value="提交检索">
(<span class="style10">日期格式为xxxx-xx-xx) </span>                    
          </form>
          <span class="style9">
        
  
      </span></div></td>
    </tr>
    <tr>
    
      <td height="360" align="center" valign="baseline"><span class="style9">
      <%
        if(session.getAttribute("erro")=="null"){
         %>
      请将信息填写完整!
      <%
         session.removeAttribute("erro");
         }else if(session.getAttribute("erro")=="erro"){
          %>
        时间格式输入有误!
        <%
         session.removeAttribute("erro");
         
         }
           %>
      <%if(session.getAttribute("stat")!=null&&session.getAttribute("lirun")!=null) {
      StatM statM=(StatM)session.getAttribute("stat");
      StatN statN=(StatN)session.getAttribute("statN");
      %>
        </span>        <table bgcolor="#CCCCCC" width="312" height="282" border="0">
          <tr>
            <td height="25" colspan="4"  bgcolor="#F1F4F8"><div align="center" class="style11"><span class="style7">商品编号:<a href="../Shopping/ShoppingSelectById?id=<%=session.getAttribute("sid") %>&method=see"><%=session.getAttribute("sid") %></a></span></div></td>
          </tr>
          <tr>
            <td width="73" height="25" bgcolor="#F1F4F8">&nbsp;</td>
            <td width="22" height="25" bgcolor="#F1F4F8">&nbsp;</td>
            <td width="94" height="25" bgcolor="#F1F4F8"><div align="center" class="style11"><span class="style7">数量</span></div></td>
            <td width="105" height="25" bgcolor="#F1F4F8"><div align="center" class="style11"><span class="style7">金额</span></div></td>
          </tr>
          <tr>
            <td height="25" bgcolor="#F1F4F8"><div align="right" class="style11"><span class="style7">进货:</span></div></td>
            <td height="25" bgcolor="#F1F4F8">&nbsp;</td>
            <td height="25" bgcolor="#F1F4F8"><div align="center" class="style11"><span class="style7"><%=statN.getIn() %></span></div></td>
            <td height="25" bgcolor="#F1F4F8"><div align="center" class="style11"><span class="style7"><%=statM.getIn() %></span></div></td>
          </tr>
          <tr>
            <td height="25" bgcolor="#F1F4F8"><div align="right" class="style11"><span class="style7">进货退货:</span></div></td>
            <td height="25" bgcolor="#F1F4F8">&nbsp;</td>
            <td height="25" bgcolor="#F1F4F8"><div align="center" class="style11"><span class="style7"><%=statN.getInback() %></span></div></td>
            <td height="25" bgcolor="#F1F4F8"><div align="center" class="style11"><span class="style7"><%=statM.getInback() %></span></div></td>
          </tr>
          <tr>
            <td height="25" bgcolor="#F1F4F8"><div align="right" class="style11"><span class="style7">销售:</span></div></td>
            <td height="25" bgcolor="#F1F4F8">&nbsp;</td>
            <td height="25" bgcolor="#F1F4F8"><div align="center" class="style11"><span class="style7"><%=statN.getOut() %></span></div></td>
            <td height="25" bgcolor="#F1F4F8"><div align="center" class="style11"><span class="style7"><%=statM.getOut() %></span></div></td>
          </tr>
          <tr>
            <td height="25" bgcolor="#F1F4F8"><div align="right" class="style11"><span class="style7">销售退货:</span></div></td>
            <td height="25" bgcolor="#F1F4F8">&nbsp;</td>
            <td height="25" bgcolor="#F1F4F8"><div align="center" class="style11"><span class="style7"><%=statN.getOutback() %></span></div></td>
            <td height="25" bgcolor="#F1F4F8"><div align="center" class="style11"><span class="style7"><%=statM.getOutback() %></span></div></td>
          </tr>
          <tr>
            <td height="25" bgcolor="#F1F4F8"><div align="right" class="style11"><span class="style7">报废:</span></div></td>
            <td height="25" bgcolor="#F1F4F8">&nbsp;</td>
            <td height="25" bgcolor="#F1F4F8"><div align="center" class="style11"><span class="style7"><%=statN.getReject()%></span></div></td>
            <td height="25" bgcolor="#F1F4F8"><div align="center" class="style11"><span class="style7"><%=statM.getReject() %></span></div></td>
          </tr>
          <tr>
            <td height="25" bgcolor="#F1F4F8"><div align="right" class="style11"><span class="style7">利润:</span></div></td>
            <td height="25" bgcolor="#F1F4F8">&nbsp;</td>
            <td height="25"  bgcolor="#F1F4F8"><div align="center" class="style11"><%=session.getAttribute("lirunN") %></div></td>
          <td height="25"  bgcolor="#F1F4F8"><div align="center" class="style11"><%=session.getAttribute("lirun") %></div></td>
          </tr>
        </table>
        
     <%}session.removeAttribute("sid");
      session.removeAttribute("lirun");
      session.removeAttribute("stat");
      session.removeAttribute("lirunN");
      session.removeAttribute("statN");
       %></td></tr>
    <tr>
      <td height="30">&nbsp;</td>
    </tr>
  </table>
    
  </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -