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

📄 enterdate.jsp

📁 财务说明的管理
💻 JSP
📖 第 1 页 / 共 3 页
字号:
            totorder = rsOrditem.getDouble("kgs") * rsOrditem.getDouble("priceprem") + rsOrditem.getDouble("kgs") * rsOrditem.getDouble("pricemetal") + rsOrditem.getDouble("kgs") * rsOrditem.getDouble("pricefab");
        }
    }
    nvalue = invunit * nett;

    subtot = collect - freight + otherfees + sundry + fsurcharge;
%>
<html>
<head>
    <title><%=lTitle%>
    </title>

</head>
<script type="text/javascript">
function totals()
{
    var fabpr = parseFloat(document.all.item("fabpr").value);
    var metalpr = parseFloat(document.all.item("metalpr").value);
    var premiumpr = parseFloat(document.all.item("premiumpr").value);
    var tinningpr = parseFloat(document.all.item("tinningpr").value);
    var Duty = parseFloat(document.all.item("Duty").value);
    document.all.Total.value = fabpr + metalpr + premiumpr + tinningpr + Duty;
    document.all.Extended.value =<%=invextend%>;
}
function Che_acc()
{
    var InvoiceDate = document.all.InvoiceDate.value;
    var a = new Date(InvoiceDate);
    var b = new Date("<%=m_shipdt.substring(0,10)%>");
    var isEmpty = PopPage("/Billing/EditVerifyBolAndInvoice/CheckDate.jsp?txtInvBLNo=<%=txtInvBLNo%>&InvoiceDate=" + InvoiceDate + "&rand=" + randomNumber(), "", "");
    //    if(a < b )
    if (isEmpty == "false")
    {
        alert("Invoice date can not be earlier than ship date!");
        document.all.InvoiceDate.focus();
        return false;
    } else {
        if (document.all.item("div1").style.display == "none")
        {
            document.all.item("div1").style.display = "block";
        }
        if (document.all.item("div2").style.display == "block")
        {
            document.all.item("div2").style.display = "none";
        }
        if (document.all.item("div3").style.display == "block")
        {
            document.all.item("div3").style.display = "none";
        }
    }
    document.all.submit11111.disabled = true;
}
function pressSubmit()
{

    var FrghtFrwd = document.all.FrghtFrwd.value;
    var Exitpt = document.all.Exitpt.value;
    var Broker = document.all.Broker.value;
    var Carrier = document.all.Carrier.value;
    var Customer = document.all.Customer.value;
    var ExitFreight = document.all.ExitFreight.value;
    if (Carrier.length < 1)
    {
        alert("Carrier name must be entered.  For customer pickups, please enter CUSTOMER.");
        document.all.Carrier.focus();
        return;
    }
    if (Broker.length < 1)
    {
        alert("Broker name must be entered.");
        document.all.Broker.focus();
        return;
    }
    if (Exitpt.length < 1)
    {
        alert("Exitpt name must be entered.");
        document.all.Exitpt.focus();
        return;
    }
    var isEmpty = PopPage("/Billing/EditVerifyBolAndInvoice/UpdateShip.jsp?txtInvBLNo='<%=txtInvBLNo%>'" +
                          "&FrghtFrwd=" + FrghtFrwd +
                          "&Exitpt=" + Exitpt +
                          "&Broker=" + Broker +
                          "&Exitpt=" + Exitpt +
                          "&Carrier=" + Carrier +
                          "&Customer=" + Customer +
                          "&ExitFreight=" + ExitFreight +
                          "&rand=" + randomNumber(), "", "");
    document.all.item("div1").style.display = "none";
    document.all.item("div2").style.display = "block";

}
function pressSubmit1()
{
    document.all.submit11111.disabled = true;
    totals();
    var fabpr = document.all.fabpr.value;
    var metalpr = document.all.metalpr.value;
    var premiumpr = document.all.premiumpr.value;
    var tinningpr = document.all.tinningpr.value;
    if ((fabpr == 0.0 || metalpr == 0.0 || premiumpr == 0.0) && (<%=plant.equals("HILL")%>))
    {
        alert("Fab, Metal and Premium must be greater than zero. Is this a no charge item?");
        document.all.fabpr.focus();
        return;
    }
    if ((fabpr == 0.0 || metalpr == 0.0 ) && (<%=plant.equals("FERG")%>))
    {
        alert("Fab and Metal must be greater than zero.   Is this a no charge item?");
        document.all.fabpr.focus();
        return;
    }
    var isEmpty = PopPage("/Billing/EditVerifyBolAndInvoice/UpdateOrd.jsp?txtInvBLNo='<%=txtInvBLNo%>'&worksno='<%=worksno%>'" +
                          "&nvalue=<%=nvalue%>" +

                          "&rand=" + randomNumber(), "", "");
    document.all.item("div1").style.display = "none";
    document.all.item("div2").style.display = "none";
    document.all.item("div3").style.display = "block";
}
function pressSubmit3()
{
    var isEmpty = PopPage("/Billing/EditVerifyBolAndInvoice/UpdateLast.jsp?txtInvBLNo='<%=txtInvBLNo%>'" +
                          "&duty=<%=duty%>" +
                          "&Broker=" + Broker +
                          "&Carrier=" + Carrier +
                          "&FrghtFrwd=" + FrghtFrwd +
                          "&coils=<%=coils%>" +
                          "&gross=<%=gross%>" +
                          "&Customer=" + Customer +
                          "&invextend=<%=invextend%>" +
                          "&rand=" + randomNumber(), "", "");

    OpenPage('/Blank.jsp?TextToShow=Please click the list on left', 'right', '');
}
function pressReedit()
{
    document.all.InvoiceDate.focus();
}
function pressReedit1()
{
    document.all.fabpr.focus();
}

function pressReedit3()
{
    document.all.Amount.focus();
}

function cc()
{
    document.all.Collect.value = <%=invextend%>-parseFloat(document.all.Amt.value)
}

function Allowance()
{
    document.all.SubTotal.value =<%=subtot%>;
}
</script>
<body bgcolor="#DCDCDC">
<br>
<table border="0" width="100%" align="center" bordercolor="#999999" bordercolordark="#FFFFFF">
    <tr>
        <td>

            <tr>
                <td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"><%=lInvBLNo%>
                </td>
                <td nowarp align="left" class="black9pt" bgcolor="#DCDCDC"><%=txtInvBLNo%>
                </td>
                <td nowarp align="left" class="black9pt" bgcolor="#DCDCDC"><%=lExitpt%>
                </td>
                <td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"><%=lCurrency%>
                </td>
                <td nowarp align="left" class="black9pt" bgcolor="#DCDCDC"><%=currency%>
                </td>
            </tr>
            <tr>
                <td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"><%=lFrghtFrwd%>
                </td>
                <td nowarp align="left" bgcolor="#DCDCDC"><input type="text" name="FrghtFrwd" size="20"
                                                                 value="<%=StringUtils.nullToEmpty(forward)%>"></td>
                <td nowarp align="left" bgcolor="#DCDCDC"><input type="text" name="Exitpt" size="9"
                                                                 value="<%= StringUtils.nullToEmpty(exitpt)%>"></td>
                <td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"><%=lShipDate%>
                </td>
                <td nowarp align="left" class="black9pt" bgcolor="#DCDCDC"><%=m_shipdt.substring(0, 10)%>
                </td>
            </tr>
            <tr>
                <td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"><%=lBroker%>
                </td>
                <td nowarp align="left" bgcolor="#DCDCDC"><input type="text" name="Broker" size="20"
                                                                 value="<%=StringUtils.nullToEmpty(broker)%>"></td>
                <td nowarp align="left" class="black9pt" bgcolor="#DCDCDC"><%=lExitFreight%>
                </td>
                <td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"><%=lCountry%>
                </td>
                <td nowarp align="left" class="black9pt" bgcolor="#DCDCDC"><%=country%>
                </td>
            </tr>
            <tr>
                <td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"><%=lCarrier%>
                </td>
                <td nowarp align="left" bgcolor="#DCDCDC"><input type="text" name="Carrier" size="20"
                                                                 value="<%=StringUtils.nullToEmpty(carrier)%>"></td>
                <td nowarp align="left" bgcolor="#DCDCDC"><input type="text" name="ExitFreight" size="9"
                                                                 value="<%=exitfr%>"></td>
                <td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"><%=lPriceList%>
                </td>
                <td nowarp align="left" class="black9pt" bgcolor="#DCDCDC"><%=pricelist%>
                </td>
            </tr>
            <tr>
                <td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"><%=lCustomer%>
                </td>
                <td nowarp colspan=2 align="left" bgcolor="#DCDCDC"><input type="text" name="Customer" size="40"
                                                                           value="<%=customer%>"></td>
                <td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"><%=lInvoiceDate%>
                </td>
                <td nowarp align="left" bgcolor="#DCDCDC"><input type="text"
                                                                 name="InvoiceDate" <%--onKeyPress="pressEnter(1)"--%>
                                                                 size="9" value="<%=m_shipdt.substring(0,10)%>"></td>
            </tr>
            <tr>
                <TD>
                    <input type="button" name="submit11111" value="<%=Submit%>" onClick="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'>
                </TD>
            </tr>


        </td>
    </tr>

</table>
<div id="div1" style="display:none">
    <table>
        <form action="" name=formadd>
            <tr>
                <td colspan="2" nowarp align="right" class="black9pt" bgcolor="#DCDCDC"><%=lRoute%>
                </td>
                <td colspan=2 nowarp bgcolor="#DCDCDC"><input type="text" name="Route" size="20"
                                                              value=<%=route%>></input></td>

            </tr>
            <tr>
                <td nowarp align="left" class="black9pt" bgcolor="#DCDCDC"><%=lInvoiceTo%>
                </td>
                <td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"></td>
                <td nowarp align="left" class="black9pt" bgcolor="#DCDCDC"><%=lShipto%>
                </td>
                <td nowarp align="right" class="black9pt" bgcolor="#DCDCDC"></td>
            </tr>
            <tr>

⌨️ 快捷键说明

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