📄 entercodewithwarehousecode.jsp
字号:
<%@ page import="com.hexiesoft.utils.Consts" %>
<%--
Created by IntelliJ IDEA.
User: RuiLei
Date: 2006-5-20
Time: 14:42:31
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/IncludeBeginMD.jsp" %>
<%
String title = (String) Configure.getConfigure(sIe_Language, "BillingChangeShipmentToWarehouse").get("TITLE");
String alertErrorBLNONull = (String) Configure.getConfigure(sIe_Language, "BillingChangeShipmentToWarehouse").get("ERROR_BLNO_NULL");
String alertErrorBLNOEmpty = (String) Configure.getConfigure(sIe_Language, "BillingChangeShipmentToWarehouse").get("ERROR_BLNO_EMPTY");
String alertErrorWarehouseCodeNull = (String) Configure.getConfigure(sIe_Language, "BillingChangeShipmentToWarehouse").get("ERROR_WAREHOUSE_CODE_NULL");
String alertErrorWarehouseCodeEmpty = (String) Configure.getConfigure(sIe_Language, "BillingChangeShipmentToWarehouse").get("ERROR_WAREHOUSE_CODE_EMPTY");
String pagePromptEnterCode = (String) Configure.getConfigure(sIe_Language, "BillingChangeShipmentToWarehouse").get("PAGE_PROMPT_ENTER_CODE");
String pagePromptEnterWarehouseCode = (String) Configure.getConfigure(sIe_Language, "BillingChangeShipmentToWarehouse").get("PAGE_PROMPT_ENTER_WAREHOUSE_CODE");
String submitOK = (String) Configure.getConfigure(sIe_Language, "BillingChangeShipmentToWarehouse").get("SUBMIT_OK");
String submitAbort = (String) Configure.getConfigure(sIe_Language, "BillingChangeShipmentToWarehouse").get("SUBMIT_ABORT");
String code = DataConvert.toRealString(iPostChange, CurPage.getParameter("Code"));
String warehouseCode = DataConvert.toRealString(iPostChange, CurPage.getParameter("sWarehouseCode"));
String db_wname = Consts.STR_EMPTY;
String db_shcity = Consts.STR_EMPTY;
String db_shprovst = Consts.STR_EMPTY;
String db_shcountry = Consts.STR_EMPTY;
String querySql = "select * from whouse where wcode = '" + warehouseCode + "'";
ASResultSet rs = Sqlca.getASResultSet(querySql);
if (rs != null && rs.next()) {
if (rs.getString("wname") != null) {
db_wname = rs.getString("wname").trim();
}
if (rs.getString("shcity") != null) {
db_shcity = rs.getString("shcity").trim();
}
if (rs.getString("shprovst") != null) {
db_shprovst = rs.getString("shprovst").trim();
}
if (rs.getString("shcountry") != null) {
db_shcountry = rs.getString("shcountry").trim();
}
}
%>
<html>
<head>
<title><%=title%></title>
</head>
<script language=javascript>
alert("<%=alertErrorBLNOEmpty%>");
function Che_acc()
{
if (document.all.code.value.length < 1) {
alert("<%=alertErrorBLNONull%>");
document.all.code.focus();
return;
}
if (document.all.warehouseCode.value.length < 1) {
alert("<%=alertErrorWarehouseCodeNull%>");
document.all.warehouseCode.focus();
return;
}
sWarehouseCode = document.all.warehouseCode.value;
sWarehouseCode_isEmpty = PopPage("/Billing/changeShipmentToWarehouse/CheckCode.jsp?Code=" + sWarehouseCode + "&CheckType=<%=Consts.WAREHOUSE_CODE_EMPTY%>&rand=" + randomNumber(), "", "");
if (sWarehouseCode_isEmpty == "true") {
alert("<%=alertErrorWarehouseCodeEmpty%>");
return;
}
sCode = document.all.code.value;
sCode_isEmpty = PopPage("/Billing/changeShipmentToWarehouse/CheckCode.jsp?Code=" + sCode + "&CheckType=<%=Consts.BLNO_EMPTY%>&rand=" + randomNumber(), "", "");
if (sCode_isEmpty == "false") {
OpenComp("ExistOrder", "/Billing/changeShipmentToWarehouse/ChangeShipmentToWarehouse.jsp", "Code=" + sCode + "&sWarehouseCode="+sWarehouseCode+"&rand=" + randomNumber(), "right", "");
self.close();
return;
} else if(sWarehouseCode_isEmpty == "false"){
self.close();
OpenComp("ExistOrder", "/Billing/changeShipmentToWarehouse/EnterCodeWithWarehouseCode.jsp", "Code=" + sCode + "&sWarehouseCode="+sWarehouseCode+"&rand=" + randomNumber(), "right", "");
return;
} else {
alert("<%=alertErrorBLNOEmpty%>");
return;
}
}
</script>
<body class="pagebackground" bgcolor="#DCDCDC">
<br>
<table border="1" width=100% align="center" bordercolor='#999999' >
<tr>
<td nowrap align="right" class="black9pt" bgcolor="#D8D8AF"><%=pagePromptEnterCode%>: </td>
<td nowrap bgcolor="#F0F1DE">
<input type="text" name="code" size="40" value="<%=code%>">
</td>
</tr>
<tr>
<td nowrap align="right" class="black9pt" bgcolor="#D8D8AF"><%--<%=pagePromptEnterWarehouseCode%>:--%> </td>
<td nowrap bgcolor="#F0F1DE">
<input type="text" name="warehouseCode"
size="40" value="<%=warehouseCode%>">
</td>
</tr>
<tr>
<td nowrap align="right" class="black9pt" bgcolor="#D8D8AF"><%=db_wname%></td>
<td nowrap bgcolor="#F0F1DE"> </td>
</tr>
<tr>
<td nowrap align="right" class="black9pt" bgcolor="#D8D8AF"><%=db_shcity+db_shprovst%></td>
<td nowrap bgcolor="#F0F1DE"> </td>
</tr>
<tr>
<td nowrap align="right" class="black9pt" bgcolor="#D8D8AF"><%=db_shcountry%></td>
<td nowrap bgcolor="#F0F1DE"> </td>
</tr>
<tr align="center">
<td nowrap align="right" class="black9pt" bgcolor="#D8D8AF" height="25"> </td>
<td nowrap bgcolor="#F0F1DE" height="25">
<input type="button" name="next" value="<%=submitOK%>" onClick="javascript:Che_acc()"
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'>
<input type="button" name="Cancel" value="<%=submitAbort%>"
onClick="javascript: OpenPage('/Blank.jsp?TextToShow=Please click the list on left','right',''); self.close(); "
>
</td>
</tr>
</table>
</body>
</html>
<%@ include file="/IncludeEnd.jsp" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -