inputaccountdialog.jsp

来自「运输模块代码」· JSP 代码 · 共 98 行

JSP
98
字号

<%--
  Created by IntelliJ IDEA.
  User: Ligang Wu
  Date: 2006-5-20
  Time: 12:10:44
  To change this template use File | Settings | File Templates.
--%>
<%@ include file="/IncludeBeginMD.jsp"%>
<%
	String sTitle = DataConvert.toRealString(iPostChange,(String)request.getParameter("Title"));
%>
<html>
<head>
<title>Stock On Hand
</title>
</head>
<script language=javascript>
	function ChkForm()
	{
        var account =  document.all.Account.value;
        var subacc =  document.all.Subacct.value;
        if(account.length<1){
			alert("The account is null!");
			document.all.Account.focus();
			return;
		}
		if(subacc.length<1){
			alert("The subacc is null!");
			document.all.Subacct.focus();
			return;
		}
		sReturn_isEmpty = PopPage("/ShippingManager/stockonhand/CheckAccount.jsp?Account="+account+"&Subacct="+subacc+"&rand="+randomNumber(),"","");
		if(sReturn_isEmpty == 1)
		{
			alert("Customer Code does not exist, Try Again");
			return;
		}
		else if(sReturn_isEmpty = 2)
		{
//            alert("Success!");
            //跳转到一览页面
           self.returnValue = account+"@"+subacc;
           OpenComp("DisplayResult","/ShippingManager/stockonhand/DisplayResult.jsp","Account="+account+"&Subacct="+subacc+"&rand="+randomNumber(),"right","");
            self.close();
		}
	}
	function pressEnter(arg){
		if(window.event.keyCode==13){
			ChkForm();
		}
	}
</script>
<%
    System.out.println("start");
    String Page_Title = (String) Configure.getConfigure(sIe_Language, "ShippingManager_Stockonhand").get("TITLE") + "HILL";
    System.out.println("Page_Title"+Page_Title);
    String sAccountLabel = (String) Configure.getConfigure(sIe_Language, "ShippingManager_Stockonhand").get("ACCOUNT");
    String sSubaccLabel = (String) Configure.getConfigure(sIe_Language, "ShippingManager_Stockonhand").get("SUBACC");

%>
<body   bgcolor="#DCDCDC">
<br>
<table border="1" width=100% align="center" bordercolor='#999999' bordercolordark='#FFFFFF'>
  
      <tr>
          <td colspan="2">
             <table border="0" width="100%">
                  <tr>
                      <td align="center" > <%=Page_Title%></td>
                  </tr>
             </table>
          </td>
      </tr>
            <tr>
              <td nowrap align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sAccountLabel%> &nbsp;&nbsp; </td>
              <td nowrap bgcolor="#F0F1DE" >
                    &nbsp;&nbsp;&nbsp;<input type="text" name="Account"  size="40">
              </td>
            </tr>
            <tr>
              <td nowrap align="right" class="black9pt" bgcolor="#D8D8AF" ><%=sSubaccLabel%> &nbsp;&nbsp;</td>
              <td nowrap bgcolor="#F0F1DE" >
                    &nbsp;&nbsp;&nbsp;<input type="text" name="Subacct"  size="40">
              </td>
            </tr>
            <tr align="center">
              <td nowrap align="right" class="black9pt" bgcolor="#D8D8AF" height="25" >&nbsp;</td>
              <td nowrap bgcolor="#F0F1DE" height="25">
                <input type="button" name="next" value="Submit" onClick="javascript:ChkForm()" 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="Cancel" 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 + =
减小字号Ctrl + -
显示快捷键?