📄 enterdate.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBeginMD.jsp"%>
<%
String sTitle = (String)Configure.getConfigure(sIe_Language, "BOL").get("Title");
String sBol = (String)Configure.getConfigure(sIe_Language, "BOL").get("Bol");
String sCurrency = (String)Configure.getConfigure(sIe_Language, "BOL").get("Currency");
String sFrghtFrwd = (String)Configure.getConfigure(sIe_Language, "BOL").get("FrghtFrwd");
String sShipDate = (String)Configure.getConfigure(sIe_Language, "BOL").get("ShipDate");
String sBroker = (String)Configure.getConfigure(sIe_Language, "BOL").get("Broker");
String sCountry = (String)Configure.getConfigure(sIe_Language, "BOL").get("Country");
String sCarrier = (String)Configure.getConfigure(sIe_Language, "BOL").get("Carrier");
String sPriceList = (String)Configure.getConfigure(sIe_Language, "BOL").get("PriceList");
String sCustomer = (String)Configure.getConfigure(sIe_Language, "BOL").get("Customer");
String sInvoiceDate= (String)Configure.getConfigure(sIe_Language, "BOL").get("InvoiceDate");
String sRoute= (String)Configure.getConfigure(sIe_Language, "BOL").get("Route");
String sInvoiceTo= (String)Configure.getConfigure(sIe_Language, "BOL").get("InvoiceTo");
String sShipto= (String)Configure.getConfigure(sIe_Language, "BOL").get("Shipto");
String sSubmit= (String)Configure.getConfigure(sIe_Language, "BOL").get("Submit");
String Bol = DataConvert.toRealString(iPostChange,CurPage.getParameter("Bol"));
String m_shipdt="";
String m_name="";
ASResultSet rs;
String sql="select ordertype,account,subacct,add1,add2,shipdt from "+
" shipment " +
" where blno ="+Bol +
" order by custpo,worksno";
rs=Sqlca.getASResultSet(sql);
if (rs != null && rs.next())
{
if(!rs.getString("ordertype").equals("REG"))
{
ASResultSet rsCustomer1=Sqlca.getASResultSet("select name from customer" +
" where account="+rs.getString("account")+
" and subacct="+rs.getString("subacct"));
if(rsCustomer1.next() )
{
m_name=rsCustomer1.getString("name");
}
}
ASResultSet rsCustomer=Sqlca.getASResultSet("select top 1 s.shipdt " +
" from " +
" shipment s left join customer c" +
" on s.account=c.account and s.subacct=c.subacct" +
" where s.blno="+Bol+" order by s.custpo,s.worksno");
if(rsCustomer.next() )
{
m_shipdt=rsCustomer.getString("shipdt");
}
}
%>
<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 ;
var a=new Date(InvoiceDate);
var b=new Date("<%=m_shipdt.substring(0,10)%>");
isEmpty = PopPage("/Billing/EditVerifyBolAndInvoice/CheckDate.jsp?txtInvBLNo=<%=Bol%>&InvoiceDate="+InvoiceDate +"&rand="+randomNumber(),"","");
// if(a < b )
if(isEmpty=="false")
{
alert("Invoice date can not be earlier than ship date!");
return;
}
else
{
OpenComp("addBOL","/Billing/addBOL/EnterConditions.jsp","Bol=<%=Bol%>&shipdt=<%=m_shipdt.substring(0,10)%>&InvoiceDate="+ InvoiceDate +"&rand="+randomNumber(),"right","");
self.close();
self.returnValue="OK";
return;
}
}
</script>
<body bgcolor="#DCDCDC">
<br>
<table border="0" width="100%" align="center" bordercolor="#999999" bordercolordark="#FFFFFF" >
<tr><td>
<form name="AccountForm" >
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC" ><%=sBol%> </td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC" ><%=Bol%></td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC" > <%=sCurrency%> </td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"> </td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC" ><%=sFrghtFrwd%></td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"> </td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC" ><%=sShipDate%></td>
<td nowarp align="left" class="black9pt" bgcolor="#DCDCDC" ><%=m_shipdt.substring(0,10)%></td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC" ><%=sBroker%></td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"> </td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC" ><%=sCountry%></td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"> </td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC" ><%=sCarrier%></td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"> </td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC" ><%=sPriceList%></td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"> </td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC" ><%=sCustomer%></td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"> </td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC" ><%=sInvoiceDate%></td>
<td nowarp bgcolor="#DCDCDC" ><input type="text" name="InvoiceDate" onKeyPress="pressEnter(1)" size="9" value="<%=m_shipdt.substring(0,10)%>" ></td>
</tr>
<tr>
<td colspan="2" nowarp align="right" class="black9pt" bgcolor="#DCDCDC" ><%=sRoute%></td>
</tr>
<tr>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC" ><%=sInvoiceTo%></td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"> </td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC" ><%=sShipto%></td>
<td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"> </td>
</tr>
</form>
</td></tr>
<tr>
<td nowrap bgcolor="#DCDCDC" height="25" align="center">
<input type="button" name="submit" value="<%=sSubmit%>" onClick="Che_acc();" style="font-size:9pt;padding-top:3;padding-left:5;padding-right:5; border-style: outset; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px" border="1">
</td>
</tr>
</table>
</body>
</html>
<%@ include file="/IncludeEnd.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -