?? insertcustomsdoc.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 companyId=request.getParameter("companyId");
System.out.println(companyId);
if (request.getParameter("insert")!= null)
{
%>
<jsp:setProperty name="customsdoc" property="*" />
<%
String commitDocId = customsdoc.getCommitDocId();
customsdoc.setGlobal(global);
int rtcode = customsdoc.insert();
if (rtcode != 0)
{
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="<%= rtcode %>" />
</jsp:forward>
<%
}
%>
<jsp:forward page="CustomsDocProduct.jsp" >
<jsp:param name="contractId" value="<%=customsdoc.getContractId()%>" />
<jsp:param name="pageName" value="InsertCustomsDoc.jsp" />
</jsp:forward>
<%
}
%>
<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">
</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("請輸入報關(guān)委托書編號");
e.commitDocId.focus();
return false;
}
if(isEmpty(e.contractId.value))
{
alert("請輸入合同編號");
e.contractId.focus();
return false;
}
if(isEmpty(e.employeeId.value))
{
alert("請輸經(jīng)辦人");
e.employeeId.focus();
return false;
}
if(isEmpty(e.flight.value))
{
alert("請輸航名/航次");
e.flight.focus();
return false;
}
}
</script>
<br><br>
<form method="post" action="InsertCustomsDoc.jsp">
<blockquote>
<table width="372" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="textb" width="158"><b>委托單位: </b></td>
<td width="160">
<div align="left">
<select name="companyId" >
<%
company.query("", "");
while (company.next() == 1)
{
%>
<option value="<%=company.getCompanyId()%>" <%if (company.getCompanyId().equals(companyId) == true){%> selected <%}%>>
<%=company.getCompanyName()%> </option>
<%
}
%>
</select>
</div>
</td>
<td width="54">
<div align="left">
<input type="submit" name="select2" value="選定" />
</div>
</td>
</tr>
</table>
</blockquote>
</form>
<form name="doc" method="post" action="InsertCustomsDoc.jsp" onsubmit="return VerifyInput(this);">
<blockquote>
<table width="323" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="158" class="textb"><b>報關(guān)委托書編號:</b></td>
<td width="165">
<input type="text" name="commitDocId" />
</td>
</tr>
<tr>
<td width="158" class="textb"><b>合同編號: </b></td>
<td width="165">
<input type="text" name="contractId" />
</td>
</tr>
<tr>
<td width="158" class="textb"> <b>銀行帳號: </b></td>
<td width="165">
<select name="accountId" />
<%
account.query("companyId='"+companyId+"'", "");
while (account.next() == 1)
{
%>
<option value="<%=account.getBankAccount()%>" > <%=account.getBank()%><%=account.getBankAccount()%>
</option>
<%
}
%>
</select>
</td>
</tr>
<tr>
<td width="158" class="textb"><b>經(jīng)辦人: </b></td>
<td width="165">
<input type="text" name="employeeId" />
</td>
</tr>
<tr>
<td width="158" class="textb"><b>貿(mào)易性質(zhì):</b></td>
<td width="165">
<select name="tradeCharacter">
<option value="1">進(jìn)口 </option>
<option value="0">一般 </option>
</select>
</td>
</tr>
<tr>
<td width="158" class="textb"><b>是否退稅:</b></td>
<td width="165">
<select name="isDrawback">
<option value="1">是 </option>
<option value="0">否 </option>
</select>
</td>
</tr>
<tr>
<td width="158" class="textb"><b>航名/航次:</b></td>
<td width="165">
<input type="text" name="flight" />
</td>
</tr>
<tr>
<td width="158" class="textb"><b>合同份數(shù):</b></td>
<td width="165">
<input type="text" name="contractNum" />
</td>
</tr>
<tr>
<td width="158" class="textb"><b>發(fā)票份數(shù):</b></td>
<td width="165">
<input type="text" name="invoiceNum" />
</td>
</tr>
<tr>
<td width="158" class="textb"><b>裝箱單份數(shù):</b> </td>
<td width="165">
<input type="text" name="incaseNum" />
</td>
</tr>
<tr>
<td height="14" width="158" class="textb"><b>登記手冊份數(shù): </b></td>
<td height="14" width="165">
<input type="text" name="liberNum" />
</td>
</tr>
<tr>
<td width="158" class="textb"><b>許可證份數(shù):</b></td>
<td width="165">
<input type="text" name="linenceNum" />
</td>
</tr>
<tr>
<td width="158" class="textb"><b>機(jī)電證明份數(shù):</b></td>
<td width="165">
<input type="text" name="provementNum" />
</td>
</tr>
<tr>
<td width="158" class="textb"><b>商檢證份數(shù):</b></td>
<td width="165">
<input type="text" name="checkDocNum" />
</td>
</tr>
<tr>
<td width="158" class="textb"><b>被委托單位編號:</b></td>
<td width="165">
<input type="text" name="commitedComId" />
</td>
</tr>
<tr>
<td width="158"><span class="textb"><b>被<span class="textb">委托經(jīng)辦人:</span></b></span></td>
<td width="165">
<input type="text" name="commitedAccountId" />
</td>
</tr>
<tr>
<td width="158" class="textb"><b>被委托人的身份證號:</b></td>
<td width="165">
<input type="text" name="commitedIdNum" />
</td>
</tr>
<tr>
<td colspan="2" height="14">
<div align="center"> <br>
<input type="submit" name="insert" value="新增" />
<input type="reset" value="重置" name="reset" />
</div>
</td>
</tr>
</table>
<p> </p>
<p> <br>
<br>
<input type="hidden" name="companyId" value="<%=companyId%>" />
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</p>
<p> <br>
</blockquote>
</form>
<%
if (request.getParameter("commitDocId") != null)
{
%>
進(jìn)出口貨物代理報關(guān)委托增加成功
<%
}
%>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -