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

📄 delivpurchreceiptlist.jsp

📁 (Java+SQL)-大型企业JAVA的ERP系统
💻 JSP
字号:
<jsp:useBean id="purch" class="src.wuyang.Purch" scope="page"/>
<jsp:useBean id="purchProduct" class="src.wuyang.PurchProduct" scope="page"/>
<jsp:useBean id="customer" class="src.wuyang.Customer" scope="page"/>
<jsp:useBean id="product" class="src.wuyang.Production" scope="page"/>
<jsp:useBean id="inventory" class="src.wuyang.Inventory" scope="page"/>
<jsp:useBean id="global" class="src.com.MyGlobal" scope="session"/>

<% if (global.isLogined == false) {
%>
<jsp:forward page="../pub/DBErr.jsp" > 
	<jsp:param name="rtcode" value="-4" />
</jsp:forward>
<%	}
%>


<html>
<head>
<title>采购凭证列表</title>
<link rel="stylesheet" href="css.css" type="text/css">
</head>


<body bgcolor="#949B93" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="1" height="90%" cellspacing="0" cellpadding="0" align="center" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" >
  <tr> 
    <td valign="top" > 
<br><br><blockquote>
<%
	String purchId = request.getParameter("purchId");
	String mode = request.getParameter("mode");
	String receiptType = "2";
	purch.load(purchId);
	String huodanNo=request.getParameter("huodanNo");
	String customerId = purch.getCustomerId();
	int rtcode = customer.load(customerId);
    if(mode==null){
	}else{
%>	
		<jsp:setProperty name="inventory" property="*" />
<%
		inventory.setGlobal(global);
		inventory.setReceiptType(2);  	
		System.out.println("receiptId "+inventory.getReceiptId());    
	    System.out.println("receiptType "+inventory.getReceiptType());    
		System.out.println("huodanNo "+inventory.getHuodanNo());    
	    rtcode = inventory.update();
    }
%>


 <table border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" cellpadding="0" cellspacing="0">        <caption align="center" class="textb"><b>调拨申请信息</b></caption>
        <tr bgcolor="#949b93"> 
          <td class="text"> 
            <div align="center"><b>状态</b></div>
          </td>
          <td class="text"> 
            <div align="center"><b>凭证编码</b></div>
          </td>
          <td class="text"> 
            <div align="center"><b>客户编码</b></div>
          </td>
          <td class="text"> 
            <div align="center"><b>客户名称</b></div>
          </td>
        </tr>
        <tr> 
          <td class="textb" height="18"> 采购</a></td>
          <td class="textb" height="18"><a href="PurchReceiptDetail.jsp?purchId=<%=purchId%>"><%= purch.getPurchId() %></a></td>
          <td class="textb" height="18"><%= purch.getCustomerId() %></td>
          <td class="textb" height="18"><%=customer.getCustomerName()%></td>
        </tr>
      </table> 
<br> 

<p>

 <table border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" cellpadding="0" cellspacing="0">        <caption align="center" class="textb"><b>产品列表</b></caption>
        <tr> 
          <td bgcolor="#949b93" class="text"> 
            <div align="center"><b>产品编码</b></div>
          </td>
          <td bgcolor="#949b93" class="text"> 
            <div align="center"><b>产品名称</b></div>
          </td>
          <td bgcolor="#949b93" class="text"> 
            <div align="center"><b>规格/型号</b></div>
          </td>
          <td bgcolor="#949b93" class="text"> 
            <div align="center"><b>包装</b></div>
          </td>
          <td bgcolor="#949b93" class="text"> 
            <div align="center"><b>数量</b></div>
          </td>
          <td bgcolor="#949b93" class="text"> 
            <div align="center"><b>出入库日期</b></div>
          </td>
          <td bgcolor="#949b93" class="text"> 
            <div align="center"><b>验证/送货单号</b></div>
          </td>
          <td></td>
        </tr>
        <%
    purchProduct.load(purchId);    
    do{
    String productId = purchProduct.getProductId();
    product.load(productId);
    inventory.load(purchId,receiptType,productId);   
%>
        <form method="post" action="DelivPurchReceiptList.jsp?purchId=<%=purchId%>">
          <input type="hidden" name="mode" value="insert">
          <input type="hidden" name="receiptId" value=<%=purchId%>>
          <input type="hidden" name="productId" value=<%=productId%>>
          <tr> 
            <td class="textb"><%= productId%></a></td>
            <td class="textb"><%= product.getProductName() %></td>
            <td class="textb"><%= product.getProductDesc() %></td>
            <td class="textb"><%= purchProduct.getPack() %></td>
            <td class="textb"><%= purchProduct.getActQuantity() %></td>
            <td class="textb"><%= inventory.getStringDate(inventory.getInventoryDate(),0)%></td>
            <td class="textb"> 
              <input type="text" name="huodanNo" value=<%=inventory.getHuodanNo()%>>
            </td>
            <td class="textb"> 
              <input type="submit" name="insert" value="增加">
            </td>
          </tr>
        </form>
        <%    } while(purchProduct.next()>0);    %>
      </table>
      <p>&nbsp;</p><table width="75%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td height="19"><form method="post" action="InsertDelivInfo.jsp?receiptId=<%=purchId%>&receiptType=2&huodanNo=<%=huodanNo%>&customerId=<%=customerId%>">
              <div align="center">
                <input type="submit" name="management" value="货单管理">
              </div>
            </form></td>
        </tr>
      </table>
      <p>&nbsp;</p>
      
</blockquote>
</td>
</tr>
</table>
</body>
</html>




⌨️ 快捷键说明

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