📄 entermorecondition_1.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");
String vBol = DataConvert.toRealString(iPostChange,(String)request.getParameter("Bol"));
String m_shipdt = DataConvert.toRealString(iPostChange,(String)request.getParameter("shipdt"));
String InvoiceDate = DataConvert.toRealString(iPostChange,(String)request.getParameter("InvoiceDate"));
String name = DataConvert.toRealString(iPostChange,(String)request.getParameter("name"));
String broker = DataConvert.toRealString(iPostChange,(String)request.getParameter("broker"));
String exitfr = DataConvert.toRealString(iPostChange,(String)request.getParameter("exitfr"));
String bladd1 = DataConvert.toRealString(iPostChange,(String)request.getParameter("bladd1"));
String bladd2 = DataConvert.toRealString(iPostChange,(String)request.getParameter("bladd2"));
String bladd3 = DataConvert.toRealString(iPostChange,(String)request.getParameter("bladd3"));
String bladd4 = DataConvert.toRealString(iPostChange,(String)request.getParameter("bladd4"));
String currency = DataConvert.toRealString(iPostChange,(String)request.getParameter("currency"));
String country = DataConvert.toRealString(iPostChange,(String)request.getParameter("country"));
String pricelist = DataConvert.toRealString(iPostChange,(String)request.getParameter("pricelist"));
String route = DataConvert.toRealString(iPostChange,(String)request.getParameter("route"));
%>
<html>
<head>
<title><%=sTitle%></title>
</head>
<script language=javascript>
function pressEnter(arg){
if(window.event.keyCode==13){
Che_acc();
}
}
function Che_acc()
{
InvoiceDate=document.all.InvoiceDate.value ;
if(InvoiceDate<<%=m_shipdt%>)
{
alert("Invoice date can not be earlier than ship date!");
document.all.InvoiceDate.focus();
return;
}
}
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 align="right" class="black9pt" bgcolor="#D8D8AF" ><%=vBol%></td>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sExitpt%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="Exitpt%" size="40" ></input> </td>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sCurrency%></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" ><%=sFrghtFrwd%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="exitfr%" size="40" value=<%=exitfr%>></input> </td>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sShipDate%></td>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=m_shipdt%></td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sBroker%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="Broker" size="40" value="<%=broker%>"></input> </td>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sCountry%></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>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sCustomer%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="Customer" size="40" value="<%=name%>"></input> </td>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sInvoiceDate%></td>
<td nowarp bgcolor="#F0F1DE" ><input type="text" name="InvoiceDate" size="40" value=<%=InvoiceDate%> onKeyPress="javascript:pressEnter(1);" ></input> </td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sRoute%></td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sInvoiceTo%></td>
<td nowarp align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sShipto%></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 + -