|
|
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FeeEdit.aspx.cs" Inherits="DSWeb.Shipping.FeeEdit" %>
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" >
|
|
|
|
|
<head runat="server">
|
|
|
|
|
<title>海运出口应收应付费用</title>
|
|
|
|
|
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
|
|
|
|
|
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxmenu.css"/>
|
|
|
|
|
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
|
|
|
|
|
<link rel="STYLESHEET" type="text/css" href="../theme/progressbar.css" />
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
html,body{font-size:12px;margin:0px;height:100%;}
|
|
|
|
|
.mesWindow{border:#666 1px solid;background:#fff;}
|
|
|
|
|
.mesWindowTop{border-bottom:#eee 1px solid;margin-left:4px;padding:3px;font-weight:bold;text-align:left;font-size:12px;}
|
|
|
|
|
.mesWindowContent{margin:4px;font-size:12px;}
|
|
|
|
|
.mesWindow .close{height:15px;width:28px;border:none;cursor:pointer;text-decoration:underline;background:#fff}
|
|
|
|
|
.btn
|
|
|
|
|
{
|
|
|
|
|
width:100px;
|
|
|
|
|
BORDER-RIGHT: #2C59AA 1px solid;
|
|
|
|
|
PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid;
|
|
|
|
|
PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5);
|
|
|
|
|
BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px;
|
|
|
|
|
BORDER-BOTTOM: #2C59AA 1px solid
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function $(id){
|
|
|
|
|
return document.getElementById(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function document.onkeydown(){
|
|
|
|
|
if(event.keyCode == 8){
|
|
|
|
|
if(document.selection){
|
|
|
|
|
var range = document.selection.createRange();;
|
|
|
|
|
|
|
|
|
|
if(range.parentElement().name == null){
|
|
|
|
|
return false;
|
|
|
|
|
}else{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function initLoading(){
|
|
|
|
|
$("progressBar").style.display = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function finishLoading(){
|
|
|
|
|
$("progressBar").style.display = "none";
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<script src="../js/dhtmlxcommon.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../js/dhtmlxgrid.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../js/dhtmlxgridcell.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../js/dhtmlxcombo.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../js/dhtmlxgrid_keymap_excel.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../js/dhtmlxmenu.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../js/dhtmlxmenu_ext.js" type="text/javascript"></script>
|
|
|
|
|
<script src="../js/json2.js" type="text/javascript"></script>
|
|
|
|
|
<%--<script src="../js/feegrid.js" type="text/javascript"></script>--%>
|
|
|
|
|
<script src="../js/FeeCommonGrid.js" type="text/javascript"></script>
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
<body onload="initGrid();initDownFeeName();initMenu();getGain();">
|
|
|
|
|
<input type="hidden" id="h_oplb" runat="server" /><input type="hidden" id="h_wmsoutbsno" runat="server" />
|
|
|
|
|
<div>
|
|
|
|
|
<table width="90%" style="border-width:0 1px 1px 0;padding:1px;">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="10px"></td>
|
|
|
|
|
<td width="60px"><div id="dvOrderNumText" class="toplab">委托编号:</div></td>
|
|
|
|
|
<td width="100px"><div id="dvCUSTNO" runat="server" class="toplab"></div><input type="hidden" id="dvOrderNumVal" runat="server"/></td>
|
|
|
|
|
<td width="60px"><div id="dvOrderPrimaryText" class="toplab">主提单号:</div></td>
|
|
|
|
|
<td width="100px"><div id="dvOrderPrimaryVal" runat="server" class="toplab"></div></td>
|
|
|
|
|
<td width="60px"><div id="dvContainerText" class="toplab">箱型箱量:</div></td>
|
|
|
|
|
<td width="100px"><div id="dvContainerVal" runat="server" class="toplab"></div></td>
|
|
|
|
|
<td width="60px"><div id="dvPaymentText" class="toplab">付费方式:</div></td>
|
|
|
|
|
<td width="80px"><div id="dvPaymentVal" runat="server" class="toplab"></div></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="10px"></td>
|
|
|
|
|
<td width="60px"><div id="dvChannelSaleText" class="toplab">揽货人:</div></td>
|
|
|
|
|
<td width="100px"><div id="dvChannelSaleVal" runat="server" class="toplab"></div></td>
|
|
|
|
|
<td width="60px"><div id="dvOrderCellText" class="toplab">委托单位:</div></td>
|
|
|
|
|
<td width="100px"><div id="dvOrderCellVal" runat="server" class="toplab"></div></td>
|
|
|
|
|
<td width="60px"><div id="dvDischargePortText" class="toplab">卸货港:</div></td>
|
|
|
|
|
<td width="100px"><div id="dvDischargePortVal" runat="server" class="toplab"></div></td>
|
|
|
|
|
<td width="85px"><div id="dvPaymentMBLText" class="toplab">MBL付费方式:</div></td>
|
|
|
|
|
<td width="80px"><div id="dvPaymentMBLVAL" runat="server" class="toplab"></div></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="10px"></td>
|
|
|
|
|
<td width="60px"><div id="dvBssourceText" class="toplab">业务来源:</div></td>
|
|
|
|
|
<td width="100px"><div id="dvBssourceVal" runat="server" class="toplab"></div></td>
|
|
|
|
|
<td width="80px"><div id="dvLaneText" class="toplab">航线:</div></td>
|
|
|
|
|
<td width="100px"><div id="dvLaneVal" runat="server" class="toplab"></div></td>
|
|
|
|
|
<td width="80px"><div id="dvVesselText" class="toplab">船名:</div></td>
|
|
|
|
|
<td width="100px"><div id="dvVesselVal" runat="server" class="toplab"></div></td>
|
|
|
|
|
<td width="60px"><div id="dvVoynoText" class="toplab">航次:</div></td>
|
|
|
|
|
<td width="80px"><div id="dvVoynoVal" runat="server" class="toplab"></div></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="10px"></td>
|
|
|
|
|
<td width="60px"><div id="dvServiceItems" class="toplab">服务项目:</div></td>
|
|
|
|
|
<td colspan="7">
|
|
|
|
|
<div style="float:left;width:20px;"><input type="checkbox" id="ck_isfumigation" runat="server" style="width:20px;" disabled=1/></div>
|
|
|
|
|
<div style="float:left;width:40px; padding-top:4px;">熏蒸</div>
|
|
|
|
|
<div style="float:left;width:20px;"><input type="checkbox" id="ck_isstorage" runat="server" style="width:20px;" disabled=1/></div>
|
|
|
|
|
<div style="float:left;width:40px; padding-top:4px;">仓储</div>
|
|
|
|
|
<div style="float:left;width:20px;"><input type="checkbox" id="ck_island" runat="server" style="width:20px;" disabled=1/></div>
|
|
|
|
|
<div style="float:left;width:40px; padding-top:4px;">陆运</div>
|
|
|
|
|
<div style="float:left;width:20px;"><input type="checkbox" id="ck_iscustoms" runat="server" style="width:20px;" disabled=1/></div>
|
|
|
|
|
<div style="float:left;width:40px; padding-top:4px;">报关</div>
|
|
|
|
|
<div style="float:left;width:20px;"><input type="checkbox" id="ck_isinspection" runat="server" style="width:20px;" disabled=1/></div>
|
|
|
|
|
<div style="float:left;width:40px; padding-top:4px;">报检</div>
|
|
|
|
|
<div style="float:left;width:20px;"><input type="checkbox" id="ck_isbooking" runat="server" style="width:20px;" disabled=1/></div>
|
|
|
|
|
<div style="float:left;width:40px; padding-top:4px;">订舱</div>
|
|
|
|
|
<div style="float:left;width:20px;"><input type="checkbox" id="ck_isagent" runat="server" style="width:20px;" disabled=1/></div>
|
|
|
|
|
<div style="float:left;width:60px; padding-top:4px;">使用代理</div>
|
|
|
|
|
<div style="float:left;width:20px;"><input type="checkbox" id="ck_ishblno" runat="server" style="width:20px;" disabled=1/></div>
|
|
|
|
|
<div style="float:left;width:60px; padding-top:4px;">分单签单</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="btn-content">
|
|
|
|
|
<div class="btn-blank"></div>
|
|
|
|
|
<div class="xbtn-img" onclick="addRecvRow()" id="btn_recvadd">
|
|
|
|
|
<div class="btnimg"><img src="../images/icons/btn_add.gif" width="16px" height="16px" title="添加应收费用"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-img" onclick="saveAction()" id="btn_recvsave">
|
|
|
|
|
<div class="btnimg"><img src="../images/icons/save.gif" width="16px" title="保存修改"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-img" onclick="deleteRecvRow()" id="btn_recvdel">
|
|
|
|
|
<div class="btnimg"><img src="../images/icons/remove.gif" width="16px" title="删除费用"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-img" onclick="recoverRecvChange()" id="btn_recvcover">
|
|
|
|
|
<div class="btnimg"><img src="../images/icons/rollback.gif" width="16px" title="放弃修改"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-img" onclick="refreshRecv()" id="btn_recvrefresh">
|
|
|
|
|
<div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新列表"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-img" onclick="print_recv()" id="btn_recvprint">
|
|
|
|
|
<div class="btnimg"><img src="../images/icons/print.gif" width="16px" title="费用打印"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn">
|
|
|
|
|
<div class="btntxt" onclick="orderRecvAudit()" id="btn_recvaudit">提交审核</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn" style="visibility:hidden; display:none;">
|
|
|
|
|
<div class="btntxt" onclick="orderRecvModify()" id="btn_recvmodify" style="visibility:hidden; display:none;">申请修改</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn" style="visibility:hidden; display:none;">
|
|
|
|
|
<div class="btntxt" onclick="orderRecvDelete()" id="btn_recvorderdel" style="visibility:hidden; display:none;">申请删除</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn">
|
|
|
|
|
<div class="btntxt" onclick="applyRecvHistory()">历史申请</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn">
|
|
|
|
|
<div class="btntxt" onclick="checkRecvHistory()">查看信息</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-none" id="recvMenuObj" style="width:60px;">
|
|
|
|
|
<div class="btntxt">引入费用</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width:98%; overflow:hidden; position:relative;"><div id="mygrid_container_recv" style="width:99%; height:220px;" runat="server"></div></div>
|
|
|
|
|
<div class="btn-content">
|
|
|
|
|
<div class="btn-blank"></div>
|
|
|
|
|
<div class="xbtn-img" onclick="addPayRow()" id="btn_payadd">
|
|
|
|
|
<div class="btnimg"><img src="../images/icons/btn_add.gif" width="16px" height="16px" title="添加应付费用"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-img" onclick="saveAction()" id="btn_paysave">
|
|
|
|
|
<div class="btnimg"><img src="../images/icons/save.gif" width="16px" title="保存修改"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-img" onclick="deletePayRow()" id="btn_paydel">
|
|
|
|
|
<div class="btnimg"><img src="../images/icons/remove.gif" width="16px" title="删除费用"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-img" onclick="recoverPayChange()" id="btn_paycover">
|
|
|
|
|
<div class="btnimg"><img src="../images/icons/rollback.gif" width="16px" title="放弃修改"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-img" onclick="refreshPay()" id="btn_payrefresh">
|
|
|
|
|
<div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新列表"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-img" onclick="print_pay()" id="btn_payprint">
|
|
|
|
|
<div class="btnimg"><img src="../images/icons/print.gif" width="16px" title="费用打印"/></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn">
|
|
|
|
|
<div class="btntxt" onclick="orderPayAudit()" id="btn_payaudit">提交审核</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn" style="visibility:hidden; display:none;">
|
|
|
|
|
<div class="btntxt" onclick="orderPayModify()" id="btn_paymodify" style="visibility:hidden; display:none;">申请修改</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn" style="visibility:hidden; display:none;">
|
|
|
|
|
<div class="btntxt" onclick="orderPayDelete()" id="btn_payorderdel" style="visibility:hidden; display:none;">申请删除</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn">
|
|
|
|
|
<div class="btntxt" onclick="applyPayHistory()" id="btn_payapphistory">历史申请</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn">
|
|
|
|
|
<div class="btntxt" onclick="checkPayHistory()" id="btn_paycheck">查看信息</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xbtn-none" id="payMenuObj" style="width:60px;">
|
|
|
|
|
<div class="btntxt">引入费用</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width:98%; overflow:hidden; position:relative;"><div id="mygrid_container_pay" style="width:99%; height:220px;" runat="server"></div></div>
|
|
|
|
|
|
|
|
|
|
<form id="form1" runat="server">
|
|
|
|
|
<input type="hidden" id="h_IsFeeGain" runat="server" />
|
|
|
|
|
<input type="hidden" id="payContainer" runat="server" />
|
|
|
|
|
<input type="hidden" id="recvContainer" runat="server" />
|
|
|
|
|
<input type="hidden" id="gainContainer" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_post" runat="server" />
|
|
|
|
|
</form>
|
|
|
|
|
<br />
|
|
|
|
|
<div style="width:100%" id="dvGain">
|
|
|
|
|
<table width="100%" style="border-width:0 1px 1px 0;padding:2px;">
|
|
|
|
|
<tr>
|
|
|
|
|
<td width="80px"><div id="dvRMBText" runat="server" class="feeTitle">人民币</div></td>
|
|
|
|
|
<td width="2%"><div id="dvRMBValue" runat="server" class="feeAmount"></div></td>
|
|
|
|
|
<td width="90px"><div id="dvRecvRMBText" runat="server" class="feeTitle">应收人民币:</div></td>
|
|
|
|
|
<td width="80px"><div id="dvRecvRMBVal" runat="server" class="feeAmount"> </div></td>
|
|
|
|
|
<td width="90px"><div id="dvPayRMBText" runat="server" class="feeTitle">应付人民币:</div></td>
|
|
|
|
|
<td width="80px"><div id="dvPayRMBVal" runat="server" class="feePayAmount"></div></td>
|
|
|
|
|
<td width="90px"><div id="dvRMBProfitText" runat="server" class="feeTitle">人民币利润:</div></td>
|
|
|
|
|
<td width="80px"><div id="dvRMBProfitVal" runat="server" class="feeAmount"></div></td>
|
|
|
|
|
<td width="80px"></td>
|
|
|
|
|
<td width="80px"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><div id="dvUSText" runat="server" class="feeTitle">美元</div></td>
|
|
|
|
|
<td><div id="dvUSVal" runat="server" class="feeAmount"></div></td>
|
|
|
|
|
<td><div id="dvUSRecvText" runat="server" class="feeTitle">应收美元:</div></td>
|
|
|
|
|
<td><div id="dvUSRecvVal" runat="server" class="feeAmount"></div></td>
|
|
|
|
|
<td><div id="dvUSPayText" runat="server" class="feeTitle">应付美元:</div></td>
|
|
|
|
|
<td><div id="dvUSPayVal" runat="server" class="feePayAmount"></div></td>
|
|
|
|
|
<td><div id="dvUSProfitText" runat="server" class="feeTitle">美元利润:</div></td>
|
|
|
|
|
<td><div id="dvUSProfitVal" runat="server" class="feeAmount"></div></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><div id="dvOtherCurrencyText" runat="server" class="feeTitle">其他币别</div></td>
|
|
|
|
|
<td><div id="dvOtherCurrencyVal" runat="server" class="feeAmount"></div></td>
|
|
|
|
|
<td><div id="dvOtherCurrencyRecvText" runat="server" class="feeTitle">应收其他:</div></td>
|
|
|
|
|
<td><div id="dvOtherCurrencyRecvVal" runat="server" class="feeAmount"></div></td>
|
|
|
|
|
<td><div id="dvOtherCurrencyPayText" runat="server" class="feeTitle">应付其他:</div></td>
|
|
|
|
|
<td><div id="dvOtherCurrencyPayVal" runat="server" class="feePayAmount"></div></td>
|
|
|
|
|
<td><div id="dvOtherCurrencyProfitText" runat="server" class="feeTitle">其他利润:</div></td>
|
|
|
|
|
<td><div id="dvOtherCurrencyProfitVal" runat="server" class="feeAmount"></div></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><div id="dvRMBTotalText" runat="server" class="feeTitle">人民币合计</div></td>
|
|
|
|
|
<td><div id="dvRMBTotalVal" runat="server" class="feeAmount"></div></td>
|
|
|
|
|
<td><div id="dvRecTotalvText" runat="server" class="feeTitle">应收合计:</div></td>
|
|
|
|
|
<td><div id="dvRecvTotalVal" runat="server" class="feeAmount"></div></td>
|
|
|
|
|
<td><div id="dvPayTotalText" runat="server" class="feeTitle">应付合计:</div></td>
|
|
|
|
|
<td><div id="dvPaySumVal" runat="server" class="feePayAmount"></div></td>
|
|
|
|
|
<td><div id="dvProfitTotalText" runat="server" class="feeTitle">合计利润:</div></td>
|
|
|
|
|
<td><div id="dvProfitTotalVal" runat="server" class="feeAmount"></div></td>
|
|
|
|
|
<td><div id="dvProfitRateText" runat="server" class="feeTitle" onclick="totalDynamicFeeGain()">利润率:</div></td>
|
|
|
|
|
<td><div id="dvProfitRateVal" runat="server" class="feeAmount"></div></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<input type="hidden" id="addCache" />
|
|
|
|
|
<input type="hidden" id="h_bsno" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_cachename" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_cachetemplate" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_importtype" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_authority" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_enable" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_recvauthority" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_payauthority" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_feecache" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_custcache" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_cachehistory" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_historytype" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_historycachename" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_historyoptype" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_outbsno" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_checked" runat="server" />
|
|
|
|
|
<input type="hidden" id="h_mblno" runat="server" />
|
|
|
|
|
<div id="allDoc"></div>
|
|
|
|
|
<%-- <script type="text/javascript">
|
|
|
|
|
var Container = $("dvGain");
|
|
|
|
|
Container.attachEvent("onresize",function(){
|
|
|
|
|
$("back").style.width = parseInt(document.documentElement.scrollWidth);
|
|
|
|
|
$("back").style.height = parseInt(document.documentElement.scrollHeight);
|
|
|
|
|
});
|
|
|
|
|
</script>--%>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|