📄 entercode.jsp
字号:
<%--
Created by IntelliJ IDEA.
User: jtgao
Date: 2006-5-26
Time: 11:55:11
To change this template use File | Settings | File Templates.//
--%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBeginMD.jsp"%>
<%@ page import="com.hexiesoft.utils.StringUtils" %>
<script language=javascript src="<%=sResourcesPath%>/keyevent.js"> </script>
<%
String alert_1 = (String)Configure.getConfigure(sIe_Language,"Shipping_EditPN").get("Alert_1");
String alert_2 = (String)Configure.getConfigure(sIe_Language,"Shipping_EditPN").get("Alert_2");
String alert_3 = (String)Configure.getConfigure(sIe_Language,"Shipping_EditPN").get("Alert_3");
String sTitle = (String)Configure.getConfigure(sIe_Language,"Shipping_EditPN").get("Title_2");
String sLabel = (String)Configure.getConfigure(sIe_Language,"Shipping_EditPN").get("Label_20");
String butLabel1 = (String)Configure.getConfigure(sIe_Language,"Shipping_EditPN").get("butlabel_4");
String butLabel2 = (String)Configure.getConfigure(sIe_Language,"Shipping_EditPN").get("butlabel_5");
%>
<script language=javascript>
function Che_acc()
{
spnno=document.all.Pnno.value;
if(spnno.length<1){
alert('<%=alert_1%>');
document.all.Pnno.focus();
return;
}
sReturn = PopPage("/ShippingManager/PackingNote/editPackingNote/CheckCode.jsp?Pnno="+spnno+"&rand="+randomNumber(),"","");
//检查结果正常
if(sReturn =="" || sReturn == "false")
{ //alert(sReturn);
OpenComp('<%=sTitle%>',"/ShippingManager/PackingNote/editPackingNote/EditPackingNote.jsp","Pnno="+spnno+"&rand="+randomNumber(),"right","");
self.close();
self.returnValue="OK";
return;
}
//检查结果错误1: 没有该编号
else if(sReturn == "true") {
alert('<%=alert_2%>');
document.all.Pnno.focus();
return;
}
//检查结果错误2: 该编号帐未结,不允许编辑
else {
alert('<%=alert_3%>'+sReturn);
document.all.Pnno.focus();
return;
}
}
function pressEnter(arg){
if(window.event.keyCode==13){
Che_acc();
}
}
</script>
<html>
<head>
<title><%=sTitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor="#DCDCDC">
<br>
<table border="1" width=100% align="center" bordercolor='#999999' bordercolordark='#FFFFFF'>
<tr>
<td nowrap align="right" class="black9pt" bgcolor="#D8D8AF" > <%=sLabel%> </td>
<td nowrap bgcolor="#F0F1DE" >
<input type="text" name="Pnno" size="10" onKeyPress="javascript:pressEnter(1);" maxlength="10" onKeyDown="NumberInput()">
</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="next2" value="<%=butLabel2%>" 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="Cancel2" value="<%=butLabel1%>" onClick="javascript:self.returnValue='_none_';self.close()" 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 + -