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

📄 allocatcost.jsp

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

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

<%!String str;%>
<% 
 	String allocatId = request.getParameter("allocatId");
	int type=Integer.parseInt(request.getParameter("type"));	
	String str3[]={"仓储费","力费","运费","仓储费"};

 	if (request.getParameter("update")!=null){
		int rtcode = Allocat.insertFee();
			
		if(rtcode>=0){
	   	    	str="CostRatifier.jsp?state="+type;	
	   	}else
	   		str="../pub/DBErr.jsp?rtcode=" + rtcode;
   	response.sendRedirect(str);
   	} 

 	if (request.getParameter("return")!=null){
	   	    	str="CostRatifier.jsp?state="+type;	
   	response.sendRedirect(str);
   	} 
%>
<html>
<link rel="stylesheet" href="css.css" type="text/css">
<script language ="javascript" src='../pub/pub.js' type=text/javascript></script>

<script language="JavaScript">
function VerifyInput(e)
	{
	if(noFloat(e.fee.value))	
		{    
		alert("输入数据无效");
		e.fee.focus();  
		return false;
		}  	
	}
</script>

<body bgcolor=#949b93><table width="100%" border="1" height="90%" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" cellpadding="0" cellspacing="0">
  <tr> 
    <td valign="top"><br>
<form method="post" action="AllocatCost.jsp" onsubmit="return VerifyInput(this);">
        <blockquote> <span class="textb">
          <input type="hidden" name="allocatId" value="<%=allocatId%>">
          <input type="hidden" name="type" value="<%=type%>">
          <%=str3[type]%>: </span> 
          <input type="text" name="fee">
<p>
<input type="submit" name="update" value="确认" >
<input type="button"  value="返回" onclick="history.back()"></blockquote>
</form>
<jsp:include page="AllocatDetail.jsp" flush="true">
<jsp:param name="allocatId" value="<%=allocatId%>"/>
      </jsp:include>
    </td>
</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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