📄 entercode.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/IncludeBeginMD.jsp" %>
<%
String lTitle = (String) Configure.getConfigure(sIe_Language, "PrintBOL").get("Title");
String lBLNO = (String) Configure.getConfigure(sIe_Language, "PrintBOL").get("lBLNO");
String lBOL = (String) Configure.getConfigure(sIe_Language, "PrintBOL").get("lBOL");
String lInvoice = (String) Configure.getConfigure(sIe_Language, "PrintBOL").get("lInvoice");
String lPackList = (String) Configure.getConfigure(sIe_Language, "PrintBOL").get("lPackList");
String lCertificate = (String) Configure.getConfigure(sIe_Language, "PrintBOL").get("lCertificate");
String lBillto = (String) Configure.getConfigure(sIe_Language, "PrintBOL").get("lBillto");
String lShipto = (String) Configure.getConfigure(sIe_Language, "PrintBOL").get("lShipto");
String Submit = (String) Configure.getConfigure(sIe_Language, "PrintBOL").get("Submit");
%>
<html>
<head>
<title><%=lTitle%>
</title>
</head>
<script language=javascript>
function shows()
{
var blno = document.all.blno.value;
var Billto = PopPage("/Billing/printBOL/GetBillto.jsp?BLNO=" + blno + "&rand=" + randomNumber(), "", "");
myarr = Billto.split("|");
document.all.Billto.value = myarr[0];
document.all.Shipto.value = myarr[1];
document.all.acct.value = myarr[2];
document.all.add2.value = myarr[3];
document.all.add1.value = myarr[4];
}
function prints()
{
var BOL = document.all.BOL.value;
var Invoice = document.all.Invoice.value;
var PackList = document.all.PackList.value;
var Certificate = document.all.Certificate.value;
var wantworks = document.all.wantworks.value;
var blno = document.all.blno.value;
OpenComp("Billing", "/Billing/printBOL/Print.jsp", "wantworks=" + wantworks + "&Certificate=" + Certificate + "&PackList=" + PackList + "&Invoice=" + Invoice + "&BOL=" + BOL + "&BLNO=" + blno + "&rand=" + randomNumber(), "right", "");
}
function exit()
{
OpenPage('/Blank.jsp?TextToShow=Please click the list on left', 'right', '');
self.close();
return;
}
function submit1() //ok
{
var blno = document.all.blno.value;
if (blno == "")
{
alert("please enter blno!");
document.all.blno.focus();
return;
}
var isEmpty = PopPage("/Billing/printBOL/CheckCode.jsp?BLNO=" + blno + "&rand=" + randomNumber(), "", "");
if (isEmpty == "invoicefalse")
{
alert("Invoice has not been verified!. Unable to print at this time.");
document.all.blno.focus();
return;
}
if (isEmpty == "shipmentfalse")
{
alert("Invoice/Bill of Lading number not found!");
document.all.blno.focus();
return;
}
if (isEmpty == "HILL")
{
document.all.item("div1").style.display = "block";
document.all.Certificate.focus();
return;
}
if (document.all.BOL.value == "") {
document.all.BOL.value = 0;
}
if (document.all.Invoice.value == "") {
document.all.Invoice.value = 0;
}
if (document.all.PackList.value == "") {
document.all.PackList.value = 0;
}
if ((document.all.BOL.value == 0 && document.all.Invoice.value == 0 && document.all.PackList.value == 0 ))
{
exit();
return;
}
shows();
document.all.item("div2").style.display = "block";
if (confirm("Ready to submit request?"))
{
prints();
self.close();
} else
{
exit();
}
}
function submit2() //ok
{
if (document.all.Certificate.value == "") {
document.all.Certificate.value = 0;
}
if (( document.all.Certificate.value == 0 && document.all.BOL.value == 0 && document.all.Invoice.value == 0 && document.all.PackList.value == 0 ))
{
exit();
return;
}
shows();
document.all.item("div2").style.display = "block";
if (confirm("Ready to submit request?")) //
{
prints();
self.close();
} else
{
exit();
}
}
function BOLFocus(arg)
{
if (window.event.keyCode == 13) {
document.all.BOL.focus();
}
}
function InvoiceFocus(arg)
{
if (window.event.keyCode == 13) {
document.all.Invoice.focus();
}
}
function PackListFocus(arg)
{
if (window.event.keyCode == 13) {
document.all.PackList.focus();
}
}
function wantworksFocus()
{
if (window.event.keyCode == 13) {
document.all.wantworks.focus();
}
}
</script>
<body bgcolor="#DCDCDC">
<table border="1" width=100% align="center" bordercolor='#999999' bordercolordark='#FFFFFF'>
<TR>
<TD colspan="3"><%= lTitle %>
</TD>
</TR>
<TR>
<TD colspan="3"></TD>
</TR>
<tr>
<td nowarp align="right" bgcolor="#D8D8AF" width=35%><%=lBLNO%>
</td>
<td bgcolor="#F0F1DE" colspan='2'><input type=text name=blno size=6 maxlength=6
onKeyPress="BOLFocus()"></td>
</tr>
<tr>
<td nowarp align="right" bgcolor="#D8D8AF" width=35%><%=lBOL%>
</td>
<td bgcolor="#F0F1DE" colspan='2'><input type=text name=BOL size=1 maxlength=1 value=0
onKeyPress="InvoiceFocus()"></td>
</tr>
<tr>
<td nowarp align="right" bgcolor="#D8D8AF" width=35%><%=lInvoice%>
</td>
<td bgcolor="#F0F1DE" colspan='2'><input type=text name=Invoice size=1 maxlength=1 value=0
onKeyPress="PackListFocus()"></td>
</tr>
<tr>
<td nowarp align="right" bgcolor="#D8D8AF" width=35%><%=lPackList%>
</td>
<td bgcolor="#F0F1DE" colspan='2'><input type=text name=PackList size=1 value=0
maxlength=1<%-- onKeyPress="submit1()"--%>></td>
</tr>
<tr>
<TD colspan="3">
<input type="button" value="<%=Submit%>" onClick="submit1()"
style="font-size:9pt;padding-top:3;padding-left:5;padding-right:5;background-image:url(../../Resources/functionbg.gif); border: #DCDCDC; border-style: outset; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px"
border='1'>
</TD>
</tr>
</table>
<div id=div1 style="display:none">
<table border="1" width=100% align="center" bordercolor='#999999' bordercolordark='#FFFFFF'>
<tr>
<td nowarp align="right" bgcolor="#D8D8AF" width=35%><%=lCertificate%>
</td>
<td bgcolor="#F0F1DE"><input type=text name=Certificate size=1 maxlength=1 value=0
onKeyPress="wantworksFocus()"></td>
<td bgcolor="#F0F1DE"><input type=text name=wantworks size=6 maxlength=6
onKeyPress="submit2()"></td>
</tr>
</table>
</div>
<div id=div2 style="display:none">
<table border="1" width=100% align="center" bordercolor='#999999' bordercolordark='#FFFFFF'>
<tr>
<td bgcolor="#D8D8AF" colspan='3'><%=lBillto%>
</td>
</tr>
<tr>
<td bgcolor="#D8D8AF" colspan='3'><input type=text name=Billto size=40></td>
</tr>
<tr>
<td bgcolor="#D8D8AF" colspan='3'><%=lShipto%>
</td>
</tr>
<tr>
<td bgcolor="#D8D8AF" colspan='3'><input type=text name=Shipto size=40></td>
</tr>
<tr>
<td bgcolor="#D8D8AF" colspan='3'><input type=text name=acct size=40></td>
</tr>
<tr>
<td bgcolor="#D8D8AF" colspan='3'><input type=text name=add1 size=40></td>
</tr>
<tr>
<td bgcolor="#D8D8AF" colspan='3'><input type=text name=add2 size=40></td>
</tr>
</table>
</div>
</body>
</html>
<%@ include file="/IncludeEnd.jsp" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -