⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 entercode.jsp

📁 财务说明的管理
💻 JSP
字号:
<%@ page import="sun.util.calendar.BaseCalendar" %>

<%@ page import="java.text.SimpleDateFormat, java.util.Date" %>
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/IncludeBeginMD.jsp" %>
<%
    String lTitle = (String) Configure.getConfigure(sIe_Language, "WarehouseShipmentAndInvoice").get("Title");
    String lWHSEBLNO = (String) Configure.getConfigure(sIe_Language, "WarehouseShipmentAndInvoice").get("lWHSEBLNO");
    String lWAREHOUSE = (String) Configure.getConfigure(sIe_Language, "WarehouseShipmentAndInvoice").get("lWAREHOUSE");
    String lShipDt = (String) Configure.getConfigure(sIe_Language, "WarehouseShipmentAndInvoice").get("lShipDt");
    String lBLNO = (String) Configure.getConfigure(sIe_Language, "WarehouseShipmentAndInvoice").get("lBLNO");
    String lCustomer = (String) Configure.getConfigure(sIe_Language, "WarehouseShipmentAndInvoice").get("lCustomer");
    String lLOT = (String) Configure.getConfigure(sIe_Language, "WarehouseShipmentAndInvoice").get("lLOT");
    String lGROSSLOT = (String) Configure.getConfigure(sIe_Language, "WarehouseShipmentAndInvoice").get("lGROSSLOT");
    String lGROSS = (String) Configure.getConfigure(sIe_Language, "WarehouseShipmentAndInvoice").get("lGROSS");
    String save = (String) Configure.getConfigure(sIe_Language, "WarehouseShipmentAndInvoice").get("save");
    String reedit = (String) Configure.getConfigure(sIe_Language, "WarehouseShipmentAndInvoice").get("reedit");
    String abort = (String) Configure.getConfigure(sIe_Language, "WarehouseShipmentAndInvoice").get("abort");
    String Submit = (String) Configure.getConfigure(sIe_Language, "EditVerifyBolAndInvoice").get("Submit");
    Calendar today = Calendar.getInstance();
    SimpleDateFormat timeFormat = new SimpleDateFormat("yyyy-MM-dd");
    SimpleDateFormat tf = new SimpleDateFormat("HH:mm:ss");
    String sToday = timeFormat.format(today.getTime());
    boolean firsttime = true;
    String tdshipdt = "";
    String name = "";

    if (firsttime == true) {
        tdshipdt = sToday;
    } else {
        tdshipdt = "";
    }
    String tblno = "NEW   ";
%>

<html>
<head>
    <title><%=lTitle%>
    </title>

</head>
<script language=javascript>
function CheckNull(arg)
{

    var invbin = document.all.invbin.value;
    var whblno = document.all.whblno.value;
    if (document.all.invbin.value.length <= 0)
    {
        alert("Warehouse code must be entered.");
        document.all.whblno.focus();
        return;
    }
    if (document.all.whblno.value.length <= 0)
    {
        alert("Warehouse bill of lading must be entered.");
        document.all.whblno.focus();
        return;
    }
    returnValue = PopPage("/Billing/WarehouseShipmentAndInvoice/Checkinvbin.jsp?invbin=" + invbin + "&rand=" + randomNumber(), "", "");
    if (returnValue == "false")
    {
        alert("Warehouse code does not exist.");
        document.all.whblno.focus();
        return;
    } else
    {
        document.all.wname.value = returnValue;

    }
    if (document.all.item("div1").style.display == "block")
    {
        document.all.item("div1").style.display = "none";
    }
    if (document.all.item("div2").style.display == "none")
    {
        document.all.item("div2").style.display = "block";

    }
    document.all.ShipDt.focus();
    // }
}
function Check()
{
    /*  if(window.event.keyCode==13)
    {*/
    var invbin = document.all.invbin.value;
    var whblno = document.all.whblno.value;
    var account = document.all.account.value;
    var subacct = document.all.subacct.value;
    var shipdt=document.all.ShipDt.value;
    returnValue = PopPage("/Billing/WarehouseShipmentAndInvoice/Checkwhblno.jsp?whblno=" + whblno + "&rand=" + randomNumber(), "", "");
    if (returnValue == "true")
    {
        alert("Warehouse bill of lading has been previously used.");
        document.all.whblno.focus();
        return;
    } else
    {
        if (document.all.account.value.length <= 0 || document.all.subacct.value.length <= 0)
        {
            alert("Customer code must be entered");
            document.all.account.focus();
            return;
        } else
        {

            rValue = PopPage("/Billing/WarehouseShipmentAndInvoice/Checkcustomer.jsp?subacct=" + subacct + "&account=" + account + "&rand=" + randomNumber(), "", "");
            if (rValue == "false")
            {
                alert("Customer code not found.  Try again.");
                document.all.account.focus();
                return;
            }

        }
    }
    OpenComp("WarehouseShipmentAndInvoice", "/Billing/WarehouseShipmentAndInvoice/ExistQuery.jsp", "blno=" + whblno + "&warehouse=" + invbin + "&subacct=" + subacct + "&account=" + account +"&shipdt=" + shipdt +"&rand=" + randomNumber(), "right", "");
    self.close();
    // }
}
function invbinFocus()
{
    whblno = document.all.whblno.value;
    if (isNaN(whblno))
    {
        document.all.whblno.value = "";

        return;

    }
    if (window.event.keyCode == 13)
    {
        document.all.invbin.focus();
    }
}

function accountFocus()
{
    if (window.event.keyCode == 13)
    {
        document.all.account.focus();
    }
}
function subacctFocus()
{
    if (window.event.keyCode == 13)
    {
        document.all.subacct.focus();
    }
}

</script>
<body bgcolor="#DCDCDC">
<table border="1" width=100% align="center" bordercolor='#999999' bordercolordark='#FFFFFF'>
    <form action="EnterCode.jsp" name=for>
        <TR>
            <TD colspan="2"><%= lTitle %>
            </TD>
        </TR>
        <TR>
            <TD colspan="2"></TD>

        </TR>
        <tr>
            <td nowarp align="right" bgcolor="#D8D8AF" width=35%><%=lWHSEBLNO%>
            </td>
            <td bgcolor="#F0F1DE"><input type="text" name=whblno size=6 maxlength=6 onKeyPress="invbinFocus()"></td>
        </tr>
        <tr>
            <td  nowarp align="right" bgcolor="#D8D8AF" width=35%><%=lWAREHOUSE%>
            </td>
            <td bgcolor="#F0F1DE"><input type=text name=invbin size=4 maxlength=4  style="text-transform:uppercase;"></td>
        </tr>

    </form>
</table>

<div id=div1 style="display:block">
    <table border="1" width=100% align="center" bordercolor='#999999' bordercolordark='#FFFFFF'>
        <tr>
            <td nowarp align="right" bgcolor="#D8D8AF" width=35%><%=lShipDt%>
            </td>
            <td bgcolor="#F0F1DE">&nbsp;
            </td>
        </tr>
        <tr>
            <td nowarp align="right" bgcolor="#D8D8AF" width=35%><%=lBLNO%>
            </td>
            <td bgcolor="#F0F1DE"><%=tblno%>
            </td>
        </tr>
        <tr>
            <td nowarp align="right" bgcolor="#D8D8AF" width=35%><%=lCustomer%>
            </td>
            <td  bgcolor="#F0F1DE">&nbsp;</td>
        </tr>
        <tr>
            <TD>
                <input type="button" value="<%=Submit%>" onClick="CheckNull()"
                       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>
</div>


<div id=div2 style="display:none">
    <table border="1" width=100% align="center" bordercolor='#999999' bordercolordark='#FFFFFF'>
        <tr>
            <td nowarp align="right" bgcolor="#D8D8AF" width=35%><%=lShipDt%>
            </td>
            <%--<%
            if(firsttime){ out.print("<td><input type=text name=ShipDt size=10 maxlength=10 value="+ tdshipdt +" onKeyPress='accountFocus()'><td>");   }
                else{ out.print("<td>"+ tdshipdt +"</td>"); }
            %>--%>
            <td bgcolor="#F0F1DE"><input type=text name=ShipDt size=10 maxlength=10
                       value=<%=tdshipdt%> onKeyPress="accountFocus()" ><input type=text name=wname size=40 readOnly></td>
        </tr>
        <tr>
            <td nowarp align="right" bgcolor="#D8D8AF" width=35%><%=lBLNO%>
            </td>
            <td><%=tblno%>
            </td>
        </tr>
        <tr>
            <td nowarp align="right" bgcolor="#D8D8AF" width=35%><%=lCustomer%>
            </td>
            <td bgcolor="#F0F1DE"><input type=text name=account size=6 maxlength=6 onKeyPress="subacctFocus()" style="text-transform : uppercase ; "><input
                    type=text name=subacct size=4 maxlength=4 style="text-transform : uppercase ; "></td>

        </tr>
        <tr>
            <TD colspan="2">
                <input type="button" value="<%=Submit%>" onClick="Check()"
                       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>
</div>


</body>
</html>
<%@ include file="/IncludeEnd.jsp" %>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -