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

📄 creditdocupdate.jsp

📁 (Java+SQL)-大型企业JAVA的ERP系统
💻 JSP
字号:
<jsp:useBean id="creditdoc" class="src.wuyang.CreditDoc" 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>
<%	}
%>


<%
System.out.println("OK");
String protocolId=request.getParameter("protocolId");
if (request.getParameter("update")!=null)
	{
%>
<jsp:setProperty name="creditdoc" property="*" />
<%	
	creditdoc.setGlobal(global);
	creditdoc.update();
	String message="编号为" + protocolId + "的协议修改成功";
%>
	<jsp:forward page="UpdateCreditDoc.jsp" > 
		<jsp:param name="errorName" value="<%=message%>" />
		<jsp:param name="protocolId" value="" />
	</jsp:forward>
<%	}

creditdoc.load(protocolId);
System.out.println(creditdoc.getBankMoney());
%>

<html>
<head>
<title>产品信息</title>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language ="javascript" src='../pub/pub.js' type=text/javascript></script>
<link rel="stylesheet" href="css.css" type="text/css">
</head>

<script language="JavaScript">
function VerifyInput(e)
	{
	if(isEmpty(e.contractId.value))
		{    
		alert("请输入合同编号");
		e.contractId.focus();  
		return false;
		}  
	if(isEmpty(e.bank.value))	
		{    
		alert("请输开户行");
		e.bank.focus();  
		return false;
		}  	
	if(isEmpty(e.creditBank.value))	
		{    
		alert("请输信用行");
		e.creditBank.focus();  
		return false;
		}  	
	if(noFloat(e.bankMoney.value))	
		{    
		alert("输入数据无效");
		e.bankMoney.focus();  
		return false;
		}  	
	if(noFloat(e.creditMoney.value))	
		{    
		alert("输入数据无效");
		e.creditMoney.focus();  
		return false;
		}  	
	if(isEmpty(e.documentId.value))	
		{    
		alert("请输进口批文文号");
		e.documentId.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" > 
<br><br>
<form method="POST" action="CreditDocUpdate.jsp" onsubmit="return VerifyInput(this);">
<blockquote>
        <table width="300" border="0" cellpadding="0" cellspacing="0">
          <tr> 
            <td class="textb"><b>协议书编号:</b></td>
              <td class="textb"><%=creditdoc.getProtocolId()%> </td>
          </tr>
          <tr> 
            <td class="textb"><b>合同编号:</b></td>
            <td> 
              <input type="text" name="contractId" value="<%=creditdoc.getContractId()%>" />
            </td>
          </tr>
          <tr> 
            <td class="textb"><b>开户行:</b></td>
            <td> 
              <input type="text" name="bank" value="<%=creditdoc.getBank()%>" />
            </td>
          </tr>
          <tr> 
            <td class="textb"><b>信用行:</b></td>
            <td> 
              <input type="text" name="creditBank" value="<%=creditdoc.getCreditBank()%>" />
            </td>
          </tr>
          <tr> 
            <td class="textb"><b>开证金额:</b></td>
            <td> 
              <input type="text" name="bankMoney" value="<%=creditdoc.getBankMoney()%>" />
            </td>
          </tr>
          <tr> 
            <td class="textb"><b>保证金: </b></td>
            <td> 
              <input type="text" name="creditMoney" value="<%=creditdoc.getCreditMoney()%>" />
            </td>
          </tr>
          <tr> 
            <td class="textb"><b>远期/即期:</b></td>
            <td> 
              <select name="dateType">
                <option value="1"  <%if(creditdoc.getDateType()==1){%> selected <%}%> >近期 
                </option>
                <option value="0"  <%if(creditdoc.getDateType()==0){%> selected <%}%> >远期 
                </option>
              </select>
            </td>
          </tr>
          <tr> 
            <td class="textb"><b>用途: </b></td>
            <td> 
              <input type="text" name="useway" value="<%=creditdoc.getUseway()%>" />
            </td>
          </tr>
          <tr> 
            <td class="textb"><b>进口批文文号:</b></td>
            <td> 
              <input type="text" name="documentId" value="<%=creditdoc.getDocumentId()%>" />
            </td>
          </tr>
          <tr> 
            <td colspan="2"> 
              <div align="center"> <br>
                <input type="submit" name="update" value="修改" />
                <input type="reset" value="重置" name="reset" />
              </div>
            </td>
          </tr>
        </table>
          <input type="hidden" name="protocolId" value="<%=creditdoc.getProtocolId()%>" />
          <p>&nbsp; </p>
          <p> <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
        </p>
        <p>&nbsp; 
		</blockquote>
      </form>
</td>
</tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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