📄 customsdocupdate.jsp
字号:
<jsp:useBean id="customsdoc" class="src.wuyang.CustomsDoc" scope="page"/>
<jsp:useBean id="company" class="src.wuyang.Company" scope="page"/>
<jsp:useBean id="account" class="src.wuyang.CompanyAccount" 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 commitDocId = request.getParameter("commitDocId");
String companyId=request.getParameter("companyId");
if (request.getParameter("update")!= null)
{
%>
<jsp:setProperty name="customsdoc" property="*" />
<%
customsdoc.setGlobal(global);
int rtcode = customsdoc.update();
%>
<jsp:forward page="CustomsDocProduct.jsp" >
<jsp:param name="contractId" value="<%=customsdoc.getContractId()%>" />
<jsp:param name="pageName" value="UpdateCustomsDoc.jsp" />
</jsp:forward>
<%
}
customsdoc.load(commitDocId);
if ((companyId!=null)==false)
companyId=customsdoc.getCompanyId();
%>
<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" >
<script language="JavaScript">
function VerifyInput(e)
{
if(isEmpty(e.commitDocId.value))
{
alert("请输入报关委托书编号");
e.commitDocId.focus();
return false;
}
if(isEmpty(e.contractId.value))
{
alert("请输入合同编号");
e.contractId.focus();
return false;
}
if(isEmpty(e.employeeId.value))
{
alert("请输经办人");
e.employeeId.focus();
return false;
}
if(isEmpty(e.flight.value))
{
alert("请输航名/航次");
e.flight.focus();
return false;
}
}
</script>
<br><br>
<form method="post" action="CustomsDocUpdate.jsp" onsubmit="return VerifyInput(this);">
<blockquote>
<table width="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<input type="hidden" name="commitDocId2" value="<%=commitDocId%>"/>
<b><span class="textb">委托单位: </span></b></td>
<td>
<select name="select" >
<%
company.query("", "");
while (company.next() == 1)
{
%>
<option value="<%=company.getCompanyId()%>" <%if (company.getCompanyId().equals(companyId) == true){%> selected <%}%>>
<%=company.getCompanyName()%> </option>
<%
}
%>
</select>
<input type="submit" name="select" value="选定" />
</td>
</tr>
</table>
</blockquote>
</form>
<form name="doc" method="post" action="CustomsDocUpdate.jsp">
<blockquote>
<table width="345" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="157" class="textb"><b>报关委托书编号: </b></td>
<td width="172" class="textb">
<input type="hidden" name="commitDocId" value="<%=commitDocId%>"/>
<%=commitDocId%> </td>
</tr>
<tr>
<td width="157" class="textb"><b>合同编号:</b></td>
<td width="172">
<input type="text" name="contractId" value="<%=customsdoc.getContractId()%>" />
</td>
</tr>
<tr>
<td width="157" class="textb"> <b>
<input type="hidden" name="companyId" value="<%=companyId%>" />
银行帐号: </b></td>
<td width="172">
<select name="accountId" />
<%
account.query("companyId='"+companyId+"'", "");
while (account.next() == 1)
{
%>
<option value="<%=account.getBankAccount()%>" <%if (account.getBankAccount().equals(customsdoc.getAccountId()) == true){%> selected <%}%> >
<%=account.getBank()%><%=account.getBankAccount()%> </option>
<%
}
%>
</select>
</td>
</tr>
<tr>
<td width="157" class="textb"><b>经办人: </b></td>
<td width="172">
<input type="text" name="employeeId" value="<%=customsdoc.getEmployeeId()%>" />
</td>
</tr>
<tr>
<td width="157" class="textb"><b>贸易性质:</b></td>
<td width="172">
<select name="tradeCharacter">
<option value="1" <%if (customsdoc.getTradeCharacter()==1){%> selected <%}%>>其他
</option>
<option value="0" <%if (customsdoc.getTradeCharacter()==0){%> selected <%}%>>一般
</option>
</select>
</td>
</tr>
<tr>
<td width="157" class="textb"><b>是否退税:</b></td>
<td width="172">
<select name="isDrawback">
<option value="1" <%if (customsdoc.getIsDrawback()==1){%> selected <%}%>>是
</option>
<option value="0" <%if (customsdoc.getIsDrawback()==0){%> selected <%}%>>否
</option>
</select>
</td>
</tr>
<tr>
<td width="157" class="textb"><b>航名/航次:</b></td>
<td width="172">
<input type="text" name="flight" value="<%=customsdoc.getFlight()%>" />
</td>
</tr>
<tr>
<td width="157" class="textb"><b>合同份数:</b></td>
<td width="172">
<input type="text" name="contractNum" value="<%=customsdoc.getContractNum()%>" />
</td>
</tr>
<tr>
<td width="157" class="textb"><b>发票份数:</b></td>
<td width="172">
<input type="text" name="invoiceNum" value="<%=customsdoc.getInvoiceNum()%>" />
</td>
</tr>
<tr>
<td width="157" class="textb"><b>装箱单份数:</b></td>
<td width="172">
<input type="text" name="incaseNum" value="<%=customsdoc.getIncaseNum()%>" />
</td>
</tr>
<tr>
<td width="157" class="textb"><b>登记手册份数: </b></td>
<td width="172">
<input type="text" name="liberNum" value="<%=customsdoc.getLiberNum()%>" />
</td>
</tr>
<tr>
<td width="157" class="textb"><b>许可证份数:</b></td>
<td width="172">
<input type="text" name="linenceNum" value="<%=customsdoc.getLinenceNum()%>" />
</td>
</tr>
<tr>
<td width="157" class="textb"><b>机电证明份数: </b></td>
<td width="172">
<input type="text" name="provementNum" value="<%=customsdoc.getProvementNum()%>" />
</td>
</tr>
<tr>
<td width="157" class="textb"><b>商检证份数: </b></td>
<td width="172">
<input type="text" name="checkDocNum" value="<%=customsdoc.getCheckDocNum()%>" />
</td>
</tr>
<tr>
<td width="157" class="textb"><b>被委托单位编号: </b></td>
<td width="172">
<input type="text" name="commitedComId" value="<%=customsdoc.getCommitedComId()%>" />
</td>
</tr>
<tr>
<td width="157" class="textb"><b>被委托经办人:</b></td>
<td width="172">
<input type="text" name="commitedAccountId" value="<%=customsdoc.getCommitedAccountId()%>" />
</td>
</tr>
<tr>
<td width="157" class="textb"><b>被委托人的身份证号:</b></td>
<td width="172">
<input type="text" name="commitedIdNum" value="<%=customsdoc.getCommitedIdNum()%>" />
</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> <br>
</p>
<p>
</blockquote>
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -