?? canceldocupdate.jsp
字號:
<jsp:useBean id="canceldoc" class="src.wuyang.CancelDoc" 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>
<% }
%>
<%
String countupMode[]={"信用證","現金"};
String cancelDocId = request.getParameter("cancelDocId");
if (request.getParameter("update")!= null)
{
%>
<jsp:setProperty name="canceldoc" property="*" />
<%
int rtcode = canceldoc.update();
%>
<jsp:forward page="UpdateCancelDoc.jsp" >
</jsp:forward>
<%
}
canceldoc.load(cancelDocId);
%>
<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>
<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>
<script language="JavaScript">
function VerifyInput(e)
{
if(isEmpty(e.contractId.value))
{
alert("請輸入合同編號");
e.contractId.focus();
return false;
}
}
</script>
<form method="post" action="CancelDocUpdate.jsp" onsubmit="return VerifyInput(this);">
<blockquote>
<table width="302" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="textb"> <b>
<input type="hidden" name="cancelDocId" value="<%=cancelDocId%>"/>
核銷單號:</b></td>
<td class="textb"><%=cancelDocId%></td>
</tr>
<tr>
<td class="textb"><b>合同編號: </b></td>
<td>
<input type="text" name="contractId" value="<%=canceldoc.getContractId()%>" />
</td>
</tr>
<tr>
<td class="textb"><b>銀行帳號:</b></td>
<td>
<select name="countupMode" />
<% for(int i=0;i<2;i++) { %>
<option value="<%=i%>" <% if(canceldoc.getCountupMode()==i){%> selected <%}%>><%=countupMode[i]%></option>
<%}%>
</select>
</td>
</tr>
<tr>
<td class="textb"><b>備注: </b></td>
<td>
<textarea name="comment" rows=3 cols=30 ><%=canceldoc.getComment()%></textarea>
</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>
<p> </p>
<p> <br>
<br>
<br>
<br>
</p>
<p>
</blockquote>
</form>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -