📄 addbol.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBeginMD.jsp"%>
<%
String sTitle = (String)Configure.getConfigure(sIe_Language, "AddBol").get("Title");
String sBol = (String)Configure.getConfigure(sIe_Language, "AddBol").get("Bol");
String sCurrency = (String)Configure.getConfigure(sIe_Language, "AddBol").get("Currency");
String sFrghtFrwd = (String)Configure.getConfigure(sIe_Language, "AddBol").get("FrghtFrwd");
String sShipDate = (String)Configure.getConfigure(sIe_Language, "AddBol").get("ShipDate");
String sBroker = (String)Configure.getConfigure(sIe_Language, "AddBol").get("Broker");
String sCountry = (String)Configure.getConfigure(sIe_Language, "AddBol").get("Country");
String sCarrier = (String)Configure.getConfigure(sIe_Language, "AddBol").get("Carrier");
String sPriceList = (String)Configure.getConfigure(sIe_Language, "AddBol").get("PriceList");
String sCustomer = (String)Configure.getConfigure(sIe_Language, "AddBol").get("Customer");
String sInvoiceDate= (String)Configure.getConfigure(sIe_Language, "AddBol").get("InvoiceDate");
String sRoute= (String)Configure.getConfigure(sIe_Language, "AddBol").get("Route");
String sInvoiceTo= (String)Configure.getConfigure(sIe_Language, "AddBol").get("InvoiceTo");
String sShipto= (String)Configure.getConfigure(sIe_Language, "AddBol").get("Shipto");
String sName = (String)Configure.getConfigure(sIe_Language, "AddBol").get("name");
String sExitpt = (String)Configure.getConfigure(sIe_Language, "AddBol").get("exitpt");
String sSubmit = (String)Configure.getConfigure(sIe_Language, "AddBol").get("Submit");
String sReedit = (String)Configure.getConfigure(sIe_Language, "AddBol").get("Reedit");
String sAbort = (String)Configure.getConfigure(sIe_Language, "AddBol").get("Abort");
%>
<html>
<head>
<title><%=sTitle%></title>
</head>
<script language=javascript>
function Che_acc()
{
if(AccountForm.Bol.value.length<1){
alert("");
AccountForm.Bol.focus();
return;
}
vBol = AccountForm.Bol.value;
sInvdate = AccountForm.sInvdate.value;
sReturn_isEmpty = PopPage("/Billing/addBol/CheckBol.jsp?Bol="+vBol+"&Invdate="+sInvdate +"&rand="+randomNumber(),"","");
if(sReturn_isEmpty == "false&false"||sReturn_isEmpty=="false&true")
{
alert("Invoice already exists!");
return;
}
else
if(sReturn_isEmpty == "true&true")
{
alert("Shipment records for BLNO not found!");
return;
}
}
function pressEnter(arg){
if(window.event.keyCode==13){
Che_acc();
}
}
function pressSubmit() {
sBol=document.all.Bol.value;
sCurrency=document.all.Currency.value;
sFrghtFrwd=document.all.FrghtFrwd.value;
sShipDate=document.all.ShipDate.value;
sBroker=document.all.Broker.value;
sCountry=document.all.Country.value;
sCarrier=document.all.Carrier.value;
sPriceList=document.all.PriceList.value;
sCustomer=document.all.Customer.value;
sInvoiceDate=document.all.InvoiceDate.value;
sRoute=document.all.Route.value;
sInvoiceTo=document.all.InvoiceTo.value;
sShipto=document.all.Shipto.value;
if(sCarrier.length<0)
{
alert("Carrier name must be entered. For customer pickups, please enter CUSTOMER.");
document.all.Carrier.focus();
return;
}
if(sBroker.length<0)
{
alert("Broker name must be entered.");
document.all.Broker.focus();
return;
}
if (Che_acc()){
OpenComp("ExistBol", "/Billing/addBol/EditAddBol.jsp", "Bol=" + sBol
+"&Currency="+ sCurrency
+"&FrghtFrwd="+ sFrghtFrwd
+"&ShipDate="+ sShipDate
+"&Broker="+ sBroker
+"&Country="+ sCountry
+"&Carrier="+ sCarrier
+"&PriceList="+ sPriceList
+"&Customer="+ sCustomer
+"&InvoiceDate="+ sInvoiceDate
+"&Route="+ sRoute
+"&InvoiceTo="+ sInvoiceTo
+"&Shipto="+ sShipto
+ "&rand=" + randomNumber(), "right", "");
}
}
function pressReedit() {
sBol=document.all.Bol.value;
OpenComp("ExistBol", "/Billing/addBol/addBol.jsp", "Bol=" + sBol+"&rand="+randomNumber(),"right","");
}
function pressAbort() {
OpenComp("ExistBol", "/Billing/addBol/addBol.jsp", "&rand=" + randomNumber(), "right", "");
}
</script>
<body bgcolor="#DCDCDC">
<br>
<table border="1" width=100% align="center" bordercolor='#999999' bordercolordark='#FFFFFF'>
<form name="AccountForm" >
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sBol%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="Bol" onKeyPress="javascript:pressEnter(1);" size="40"></input> </td>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sCurrency%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="Currency" size="40"></input> </td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sFrghtFrwd%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="FrghtFrwd%" size="40"></input> </td>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sShipDate%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="ShipDate%" size="40"></input> </td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sBroker%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="Broker" size="40"></input> </td>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sCountry%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="Country" size="40"></input> </td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sCarrier%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="Carrier" size="40"></input> </td>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sPriceList%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="PriceList" size="40"></input> </td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sCustomer%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="Customer" size="40"></input> </td>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sInvoiceDate%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="InvoiceDate" size="40"></input> </td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sRoute%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="Route" size="40"></input> </td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sInvoiceTo%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="InvoiceTo" size="40"></input> </td>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sShipto%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="Shipto" size="40"></input> </td>
</tr>
<tr align="center">
<td colspan="5" align="center">
<input type="button" name="submit" onClick="pressSubmit();" value="<%=sSubmit%>" style="font-size:9pt;padding-top:3;padding-left:5;padding-right:5; border: #DCDCDC; border-style: outset; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px" border='1'>
<input type="button" name="submit" onClick="pressReedit();" value="<%=sReedit%>" style="font-size:9pt;padding-top:3;padding-left:5;padding-right:5; border: #DCDCDC; border-style: outset; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px" border='1'>
<input name="Abort" type="button" id="Abort" value="<%=sAbort%>" onclick="javascript:OpenPage('/Blank.jsp?TextToShow=Please click the list on left','right','');" style="font-size:9pt;padding-top:3;padding-left:5;padding-right:5; 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>
</form>
</table>
</body>
</html>
<%@ include file="/IncludeEnd.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -