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

📄 ullageproductupdate.jsp

📁 (Java+SQL)-大型企业JAVA的ERP系统
💻 JSP
字号:
<jsp:useBean id="global" class="src.com.MyGlobal" scope="session"/>
<jsp:useBean id="ullageProduct" class="src.wuyang.UllageProduct" scope="page"/>
<jsp:useBean id="ullage" class="src.wuyang.Ullage" scope="page"/>
<jsp:setProperty name="ullageProduct" property="*" />

<% 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">
<script language ="javascript" src='../pub/pub.js' type=text/javascript></script>
</head>

<script language="JavaScript">
function VerifyInput(e)
{
	if(isEmpty(e.productName.value))
	{    
		alert("请输入产品名称");
		e.productName.focus();  
		return false;
	}  
	if(isEmpty(e.productType.value))
	{    
		alert("请输入规格/型号");
		e.productType.focus();  
		return false;
	}  
	if(noFloat(e.appQuantity.value))
	{    
		alert("请输入正确的数量");
		e.appQuantity.focus();  
		return false;
	}  
	if(noFloat(e.appPrice.value))
	{    
		alert("请输入正确的预计单价");
		e.appPrice.focus();  
		return false;
	}  
}
</script>

<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" > <b class="textb"> </b>
      <blockquote><b class="textb"> <%
	int rtcode = 0;
	String mode = request.getParameter("mode");
	String ullageId = request.getParameter("ullageId");
	
	ullageProduct.setGlobal(global);
	
	if (request.getParameter("update")!=null && mode.equals("update") ) { 
		rtcode = ullageProduct.update();
		}
			
	if (request.getParameter("delete")!=null && mode.equals("update") ) { 
		rtcode = ullageProduct.delete();
		}
			
	if (request.getParameter("insert")!=null && mode.equals("insert") ) { 
		rtcode = ullageProduct.insert();
		}
			
   	ullage.load(ullageId);
%> </b>
        <table border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" width="739" cellpadding="0" cellspacing="0">
          <caption align = "center" class="textb"><b>采购产品列表</b></caption>
          <tr> 
            <td class="text" bgcolor="#949b93" width="154"> 
              <div align="center"><b>产品名称</b></div>
            </td>
            <td class="text" bgcolor="#949b93" width="154"> 
              <div align="center"><b>规格/型号</b></div>
            </td>
            <td class="text" bgcolor="#949b93" width="82"> 
              <div align="center"><b>预计数量</b></div>
            </td>
            <td class="text" bgcolor="#949b93" width="82"> 
              <div align="center"><b>预计单价</b></div>
            </td>
            <td class="text" bgcolor="#949b93" width="154"> 
              <div align="center"><b>备注</b></div>
            </td>
            <td class="text" bgcolor="#949b93" width="46"> 
              <div align="center"><b>&nbsp;</b></div>
            </td>
            <td class="text" bgcolor="#949b93" width="42"> 
              <div align="center"><b>&nbsp;</b></div>
            <td width="8"> 
          </tr>
          <tr> <% 
	ullageProduct.query("ullageId='"+ullageId+"'" ,"");
	while(ullageProduct.next()>0) { %> 
            <form method="post"  action="UllageProductUpdate.jsp" onsubmit="return VerifyInput(this);">
              <input type="hidden"  name="mode" value="update"/>
              <input type="hidden"  name="no" value="<%=ullageProduct.getNo()%>"/>
              <input type="hidden" name="ullageId" value="<%=ullageId%>">
              <td class="textb" width="154"> 
                <div align="center"> <font size="-5"> 
                  <input type="text" name="productName" value="<%=ullageProduct.getProductName()%>">
                  </font></div>
              </td>
              <td width="154"> 
                <div align="center"> <font size="-5"> 
                  <input type="text" name="productType" value=<%=ullageProduct.getProductType()%>>
                  </font></div>
              </td>
              <td width="82"> 
                <div align="center"> <font size="-5"> 
                  <input type="text" name="appQuantity" value="<%=ullageProduct.doubleFormat(ullageProduct.getAppQuantity(),2)%>" size="12" maxlength="12">
                  </font></div>
              </td>
              <td width="82"> 
                <div align="center"> <font size="-5"> 
                  <input type="text" name="appPrice" value="<%=ullageProduct.doubleFormat(ullageProduct.getAppPrice(),2)%>" size="12" maxlength="12">
                  </font></div>
              </td>
              <td width="154"> 
                <div align="center"> <font size="-5"> 
                  <input type="text" name="comment" value="<%=ullageProduct.getComment()%>">
                  </font></div>
              </td>
              <td width="46"> 
                <div align="center"> <font size="-5"> 
                  <input type="submit" name="update" value="修改">
                  </font></div>
              </td>
              <td width="42"> 
                <div align="center"> <font size="-5"> 
                  <input type="submit" name="delete" value="删除">
                  </font></div>
              </td>
            </form>
          </tr>
          <%  
	}
%> 
          <tr> 
            <form method="post"  action="UllageProductUpdate.jsp" onsubmit="return VerifyInput(this);">
              <input type="hidden"  name="mode" value="insert"/>
              <input type="hidden" name="ullageId" value="<%=ullageId%>">
              <td class="textb" width="154"> 
                <div align="center"> <font size="-5"> 
                  <input type="text" name="productName">
                  </font></div>
              </td>
              <td width="154"> 
                <div align="center"> <font size="-5"> 
                  <input type="text" name="productType">
                  </font></div>
              </td>
              <td width="82"> 
                <div align="center"> <font size="-5"> 
                  <input type="text" name="appQuantity" size="12" maxlength="12">
                  </font></div>
              </td>
              <td width="82"> 
                <div align="center"> <font size="-5"> 
                  <input type="text" name="appPrice" size="12" maxlength="12">
                  </font></div>
              </td>
              <td width="154"> 
                <div align="center"> <font size="-5"> 
                  <input type="text" name="comment">
                  </font></div>
              </td>
              <td width="46"> 
                <div align="center"> <font size="-5"> 
                  <input type="submit" name="insert" value="增加">
                  </font></div>
              </td>
              <td width="46"> 
                <div align="center"> <font size="-5">&nbsp; </font></div>
              </td>
            </form>
          </tr>
        </table>
        <b class="textb"><b><span class="textb">预计总价:</span></b><%=ullage.doubleFormat(ullage.getAppMoney(),2)%> 
        </b> </blockquote>
</td>
</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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