📄 enterworksno.jsp
字号:
<%@ page contentType="text/html; charset=GBK" language="java" %>
<%@ include file="/IncludeBegin.jsp" %>
<html>
<head>
<title>Enter Worksno</title>
</head>
<body class="pagebackground" text="#000000">
<%
String error1 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ERROR1");
String error2 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ERROR2");
String error3 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ERROR3");
String error4 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ERROR4");
String error5 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ERROR5");
String error6 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ERROR6");
String alert1 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ALERT1");
String alert2 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ALERT2");
String alert3 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ALERT3");
String alert4 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ALERT4");
String worksnoEmpty = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ALERT_WORKSNO_EMPTY");
String shipdtEmpty = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ALERT_SHIPDT_EMPTY");
String confirm1 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("CONFIRM1");
String confirm2 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("CONFIRM4");
String confirm3 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("CONFIRM5");
String label1 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ENTERWORKSNO_LABEL_1");
String label2 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ENTERWORKSNO_LABEL_2");
String label3 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ENTERWORKSNO_LABEL_3");
String label4 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ENTERWORKSNO_LABEL_4");
String label10 = (String) Configure.getConfigure(sIe_Language, "AddShippingList").get("ENTERWORKSNO_LABEL_10");
%>
<%
String sWarehouse = DataConvert.toRealString(iPostChange, (String) CurPage.getParameter("warehouse"));
if (sWarehouse == null) {
sWarehouse = "REG";
}
Locale location = Locale.CHINA;
SimpleDateFormat timeFormat = new SimpleDateFormat("yyyy-MM-dd", location);
java.util.Date time = new java.util.Date();
String shipdt = timeFormat.format(time);
%>
<script language="javascript" src="<%=sResourcesPath%>/keyevent.js"></script>
<script type="text/javascript">
function checkworksno()
{
if (document.all.worksno.value.length < 1)
{
alert('<%=worksnoEmpty%>');
document.all.worksno.focus();
return;
}
if (document.all.shipdt.value.length < 1)
{
alert('<%=shipdtEmpty%>');
document.all.shipdt.focus();
return;
}
var sWorksno = document.all.worksno.value;
var shipdt = document.all.shipdt.value;
var sWarehouse = "<%=sWarehouse%>";
sReturn = PopPage("/ShippingManager/ShippingList/addShippingList/checkworksno.jsp?worksno=" + sWorksno + "&warehouse=" + sWarehouse + "&rand=" + randomNumber(), "", "");
sReturn1 = PopPage("/ShippingManager/ShippingList/addShippingList/checkstatus.jsp?worksno=" + sWorksno + "&warehouse=" + sWarehouse + "&rand=" + randomNumber(), "", "");
//alert(sReturn+sReturn1);
if (sReturn == "error1")
{
alert('<%=error1%>');
document.all.worksno.focus();
return;
}
else if (sReturn == "error2")
{
alert("<%=error2%>");
document.all.worksno.focus();
return;
}
else if (sReturn == "error3")
{
alert('<%=error3%>');
document.all.worksno.focus();
return;
}
else if (sReturn == "error4")
{
alert('<%=error4%>');
document.all.worksno.focus();
return;
}
else if (sReturn == "error5")
{
alert('<%=error5%>');
document.all.worksno.focus();
return;
}
else if (sReturn1.length > 8) {
if (sReturn.substr(0, 8) == "confirm2") {
if (!confirm('<%=confirm2%>'))
{
document.all.worksno.focus();
return;
}
} else{
if (!confirm('<%=confirm3%>'))
{
document.all.worksno.focus();
return;
}
}
if (!confirm('<%=confirm1%>'))
{
document.all.worksno.focus();
return;
}
}
else if (sReturn1.length == 8) {
if (sReturn1 == "confirm1")
{
if (!confirm('<%=confirm1%>'))
{
document.all.worksno.focus();
return;
}
}
else {
if (!confirm('<%=confirm2%>'))
{
document.all.worksno.focus();
return;
}
}
}
if (sReturn == "error6")
{
alert('<%=error6%>');
document.all.worksno.focus();
return;
}
else if (sReturn.substr(0, 6) == "alert1")
{
alert('<%=alert1%>' + sReturn.substr(6));
document.all.worksno.focus();
return;
}
else if (sReturn.substr(0, 6) == "alert2")
{
alert('<%=alert2%>' + sReturn.substr(6));
document.all.worksno.focus();
return;
}
else if (sReturn.substr(0, 6) == "alert3")
{
alert('<%=alert3%>' + sReturn.substr(6));
document.all.worksno.focus();
return;
}
else if (sReturn.substr(0, 6) == "alert4")
{
alert('<%=alert4%>' + sReturn.substr(6));
document.all.worksno.focus();
return;
}
OpenComp("addshipppinglist", "/ShippingManager/ShippingList/addShippingList/addShippingList.jsp", "warehouse=" + sWarehouse + "&worksno=" + sWorksno + "&shipdt=" + shipdt + "&rand=" + randomNumber(), "right", "");
self.returnValue = "OK";
self.close();
return;
}
</script>
<body>
<table width="80%" border="0">
<tr>
<td width="23%">O.I.S.M</td>
<td width="51%">HILL</td>
<td width="26%"><%=shipdt%>
</td>
</tr>
</table>
<table width="80%" border="0">
<tr>
<td width="12%">
<div align="right"><%=label1%>
</div>
</td>
<td width="14%">NEW</td>
<td width="74%"><%=label2%>
</td>
</tr>
<tr>
<td>
<div align="right"><%=label3%>
</div>
</td>
<td><input name="shipdt" type="text" size="10" maxlength="10" value="<%=shipdt%>" onKeydown="DateInput()"></td>
<td> </td>
</tr>
<tr>
<td>
<div align="right"><%=label4%>
</div>
</td>
<td><input name="worksno" type="text" size="6" maxlength="6" onKeydown="NumberInput()">
</td>
<td><input type="button" name="next"
value="<%=(String)Configure.getConfigure(sIe_Language,"Common").get("SUBMIT")%>"
onClick="javascript:checkworksno()"
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="reedit"
value="<%=(String)Configure.getConfigure(sIe_Language,"Common").get("REEDIT")%>"
onClick="javascript:window.location.href = window.location.href"
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="<%=(String)Configure.getConfigure(sIe_Language,"Common").get("ABORT")%>"
onClick="javascript:OpenPage('/Blank.jsp?TextToShow=', 'right','');"
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>
</body>
</html>
<%@ include file="/IncludeEnd.jsp" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -