You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
JiCangHai/PingTai/DSWeb/Invoice/CommonInvoiceApplication.aspx

258 lines
16 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CommonInvoiceApplication.aspx.cs" Inherits="DSWeb.Invoice.CommonInvoiceApplication" %>
<!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>
<style type="text/css">
html,body{font-size:12px;margin:0px;height:100%;}
td{
font-size:14px;
}
.txtTab{border:1px solid #A0A0A4; border-color:#6699CC;}
.ck{border:1px solid #A0A0A4; border-color:#6699CC;}
.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
}
dvTitle{
font-size:12px;
}
#ck_rmb
{
width: 20px;
margin-left: 0px;
}
.style1
{
width: 6px;
}
.style2
{
width: 70px;
}
</style>
<link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/page.css"/>
<link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
<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/dhtmlxgrid_drag.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_group.js" type="text/javascript"></script>
<script src="../js/dhtmlxgrid_mcol.js" type="text/javascript"></script>
<script src="../js/TGridCommon.js" type="text/javascript"></script>
<script src="../js/json2.js" type="text/javascript"></script>
<script type="text/javascript" src="../js/dhtmlxcombo.js"></script>
<script type="text/javascript" src="../js/dhtmlxcombo_whp.js"></script>
<script type="text/javascript" src="../js/m97date/wdatepicker.js"></script>
<script type="text/javascript">
window.dhx_globalImgPath="../images/";
function document.onkeydown(){
if(event.keyCode==116){
event.keyCode = 0;
event.cancelBubble = true;
return false;
}
}
</script>
<script src="../js/CommonInvoiceApplication.js" type="text/javascript"></script>
<link href="../theme/dhtmlxcombo.css" type="text/css" rel="Stylesheet" media="screen"/>
</head>
<body onload="createOrder();initCombos()" style="background-color:#ecf2ff;">
<div style="width:100%;height:100%;" oncontextmenu="return false">
<table style="border-width:0 1px 1px 0;padding:2px; width:100%; font-size:12px;margin-left:2px;margin-right:10px;">
<tr>
<td style="width:80px;"><div id="dvCustomer" runat="server" style="text-align:right;width:80px; font-size:12px;">结算单位:</div></td>
<td style="width:10%;"><select id="sel_customer" runat="server" style="width:180px;"></select></td>
<td style="width:80px;"><div id="dvBillNO" runat="server" style="text-align:right;width:80px; font-size:12px;">编号:</div></td>
<td style="width:10%;"><input type="text" id="txt_billNO" class="txtTab" style="width:98%;"/></td>
<td style="width:80px;"><div id="dvSettleTime" runat="server" style="text-align:right;width:80px; font-size:12px;">业务日期:</div></td>
<td style="width:10%; height:20px;">
<table style="width:180px; border:0; padding:0; height:20px;">
<tr>
<td style="height:15px;"><input type="text" id="txt_beginTime" class="txtTab" style="width:76px" onclick="WdatePicker()"/></td>
<td style="height:15px;"><div>~</div></td>
<td style="height:15px;"><input type="text" id="txt_endTime" class="txtTab" style="width:75px" onclick="WdatePicker()"/></td>
</tr>
</table>
</td>
<td style="width:30%" rowspan="3">
<table>
<tr>
<td style="width:150px;">
<div onclick="initSearch()" style="margin-left:5px;height:20px;width:100%;">
<div style="width:17px; height:17px; float:left; background-color:#ecf2ff;"></div>
<div style="float:left; font-size:12px; cursor:default;">清空条件</div>
</div>
</td>
</tr>
<tr>
<td>
<div onclick="searchOrder()" style="margin-left:5px;height:20px;">
<div style="width:17px; height:17px; float:left; background-color:#ecf2ff;"><img src="../images/icons/search.gif" title="查询费用"/></div>
<div style="float:left; font-size:12px; cursor:default;">查询费用</div>
</div>
</td>
</tr>
<tr><td><span><input type="checkbox" id="chec_FeeKind" checked="checked" /><asp:Label runat="server" ID="labe_FeeKind" Font-Size="12px" Text="是否包含垫付费用"></asp:Label></span></td></tr>
</table>
</td>
</tr>
<tr>
<td style="width:80px;"><div id="dvVessel" runat="server" style="text-align:right;width:80px;font-size:12px;">船名:</div></td>
<td style="width:10%;"><select id="sel_vessel" runat="server" style="width:180px;"></select></td>
<td style="width:80px;"><div id="dvVoyno" runat="server" style="text-align:right;width:80px;font-size:12px;">航次:</div></td>
<td style="width:10%;"><select id="sel_voyno" runat="server" style="width:180px;"></select></td>
<td style="width:80px;"><div id="dvFeeName" runat="server" style="text-align:right;width:80px;font-size:12px;">费用名称:</div></td>
<td style="width:10%;"><select id="sel_feename" runat="server" style="width:180px;"></select></td>
</tr>
<tr>
<td style="width:80px;"><div id="dvBSType" runat="server" style="text-align:right;width:80px;font-size:12px;">业务类型:</div></td>
<td style="width:10%;"><select id="sel_bstype" runat="server" style="width:180px;"><option value="0">全部</option><option value="1">海运出口</option><option value="2">海运进口</option><option value="3">空运出口</option><option value="4">空运进口</option><option value="5">陆运托运</option><option value="9">陆运派车</option><option value="6">仓储费</option><option value="7">仓储入库</option><option value="8">仓储出库</option><option value="11">报关业务</option><option value="12">大宗散货</option></select></td>
<td style="width:80px;"><div id="dvFeeType" runat="server" style="text-align:right;width:80px;font-size:12px;">收/付:</div></td>
<td style="width:10%;"><select id="sel_feetype" runat="server" style="width:180px;"><option value="0">全部</option><option value="1" selected=1>收</option><option value="2">付</option></select></td>
<td style="width:80px;"><div id="dvCurrency" style="text-align:right;width:80px;font-size:12px;">币别:</div></td>
<td style="width:10%;"><select id="sel_currency" runat="server" style="width:180px;"><option value="0">全部</option><option value="1">RMB</option><option value="2">USD</option></select></td>
</tr>
<tr>
<td style="width:80px;"><div id="dvACCDATE" runat="server" style="text-align:right;width:80px; font-size:12px;">会计期间:</div></td>
<td style="width:10%;">
<table style="width:180px; border:0; padding:0; height:20px;">
<tr>
<td colspan="3" style="height:15px;"><input type="text" id="txt_Accdate" class="txtTab" style="width:176px" onclick="WdatePicker({ dateFmt: 'yyyy-M', isShowToday: false, isShowClear: false })"/></td>
</tr>
</table>
</td>
<td style="width:80px;"></td>
<td style="width:10%;"></td>
<td style="width:80px;"></td>
<td style="width:10%;"></td>
<td style="width:50px;"></td>
</tr>
</table>
<table style="border:0; padding:0; margin:0;">
<tr>
<td style="border:0; padding:0; margin:0;"><div id="mygrid_container_order" style="width:440px; height:300px;" runat="server"></div></td>
<td style="border:0; padding:0; margin:0;"><div id="mygrid_container_fee" style="width:520px; height:300px;" runat="server"></div></td>
</tr>
<tr>
<td><div id="dvOrderCountName" style="float:left;" runat="server"></div><div id="dvOrderCount" style="float:left;" runat="server"></div></td>
<td><div id="dvFeeTotalName" style="float:left;" runat="server"></div><div id="dvFeeCount" style="float:left;" runat="server"></div></td>
</tr>
</table>
<form id="form1" runat="server">
<table style="border-width:0 1px 1px 0;padding:2px; width:100%; font-size:12px;margin-left:2px;margin-right:10px;">
<tr>
<td style="width:100px; height:20px;"><div id="dvTotalRecvAmount" style="font-size:12px;width:100px;text-align:right;">合计应收金额:</div></td>
<td style="width:40px;"></td>
<td style="width:60px"><div id="dvTotalRecvRMB" style="width:60px;font-size:12px;">RMB</div></td>
<td style="width:8%"><div id="dvTotalRecvRMBVal" style="width:100%;text-align:left;font-size:12px;"></div></td>
<td style="width:60px"><div id="dvTotalRecvUSD" style="width:60px;font-size:12px;">USD</div></td>
<td style="width:8%"><div id="dvTotalRecvUSDVal" style="width:100%;text-align:left;font-size:12px;"></div></td>
<td style="width:60%"></td>
</tr>
<tr>
<td style="width:100px;height:20px;"><div id="dvTotalPayAmount" style="font-size:12px;width:100px;text-align:right;">合计应付金额:</div></td>
<td style="width:40px;"></td>
<td style="width:60px"><div id="dvTotalPayRMB" style="width:60px;font-size:12px;">RMB</div></td>
<td style="width:8%"><div id="dvTotalPayRMBVal" style="width:100%;text-align:left;font-size:12px;"></div></td>
<td style="width:60px"><div id="dvTotalPayUSD" style="width:60px;font-size:12px;">USD</div></td>
<td style="width:8%"><div id="dvTotalPayUSDVal" style="width:100%;text-align:left;font-size:12px;"></div></td>
<td style="width:60%"></td>
</tr>
<tr>
<td style="width:100px;height:20px;"><div id="dvTotalSettleAmount" style="width:100px;font-size:12px;text-align:right;">合计开票金额:</div></td>
<td style="width:40px;"></td>
<td style="width:60px"><div id="dvTotalSettleRMB" style="width:100%;text-align:left;font-size:12px;">RMB</div></td>
<td style="width:8%"><div id="dvTotalSettleRMBVal" style="width:100%;text-align:left;font-size:12px;"></div></td>
<td style="width:60px"><div id="dvTotalSettleUSD" style="width:60px;font-size:12px;">USD</div></td>
<td style="width:8%"><div id="dvTotalSettleUSDVal" style="width:100%;text-align:left;font-size:12px;"></div></td>
<td style="width:60%"></td>
</tr>
</table>
<table style="border-width:0 1px 1px 0;padding:2px; width:1000; font-size:12px;margin-left:2px;margin-right:10px; margin-bottom:10px;">
<tr>
<td width="100px" height="20px"><div id="dvInvoiceCurrency" style="width:100px;font-size:12px;text-align:right;">发票币别:</div></td>
<td width="120px"><div style="float:left; border:0;width:20px;"><input type="checkbox" id="ck_rmb" onclick="doCheck('ck_rmb','ck_usd')" runat="server" checked=1 /></div><div id="dvEquRmb" style="width:60px;font-size:12px;float:left; padding-top:2px; padding-left:5px;">RMB</div>
</td>
<td width="120px"><div style="float:left; border:0;width:20px;"><input type="checkbox" id="ck_usd" onclick="doCheck('ck_usd','ck_rmb')" runat="server"/></div><div id="dvEquUsd" style="font-size:12px;width:80px;float:left;">USD</div>
</td>
<td width="80px"></td>
<td width="60px" align="right"></td>
<td width="50%">
</td>
</tr>
<tr>
<td width="100px" height="20px"><div id="dvInvoiceContent" style="width:100px;font-size:12px;text-align:right;">发票内容:</div></td>
<td width="120px"><div style="float:left; border:0; padding-left:2px;"><input type="checkbox" id="ck_detaillist" onclick="doCheck('ck_detaillist','ck_rename')" runat="server" checked=1 /></div><div id="dvDetailList" style="width:60px;font-size:12px;float:left;padding-left:2px;padding-top:2px;">明细数据</div></td>
<td width="120px"><div style="float:left; border:0; padding-left:2px;"><input type="checkbox" id="ck_rename" onclick="doCheck('ck_rename','ck_detaillist')" runat="server" style="padding:0;"/></div><div id="dvRename" style="font-size:12px;width:80px;float:left;padding-left:2px;">自定义名称</div>
</td>
<td width="80px"><input type="text" id="txt_rename" class="txtTab" runat="server" style="width:100%;"/></td>
<td width="60px" align="right"></td>
<td width="50%">
<div style="float:left"><input type="checkbox" id="ck_custno" runat="server" checked=1/></div>
<div id="dvAutoAddInfo" style="font-size:12px;width:60px;text-align:left; padding-top:3px;float:left;">委托编号</div>
<div style="float:left"><input type="checkbox" id="ck_vessel" runat="server" checked=1/></div>
<div id="dvCkVessel" style="font-size:12px;width:60px;text-align:left; padding-top:3px;float:left;">船名航次</div>
<div style="float:left"><input type="checkbox" id="ck_mblno" runat="server" checked=1/></div>
<div id="dvCkMblno" style="font-size:12px;width:60px;text-align:left; padding-top:3px;float:left;">提单号</div>
<div style="float:left"><input type="checkbox" id="ck_etd" runat="server" checked=0/></div>
<div id="dvCkEtd" style="font-size:12px;width:150px;text-align:left; padding-top:3px;float:left;">出口开船日期/进口到港日期</div>
</td>
</tr>
<tr>
<td width="100px" height="20px"></td>
<td width="120px"></td>
<td width="120px"></td>
<td width="80px"></td>
<td width="60px" align="right"></td>
<td width="50%">
<div style="float:left"><input type="checkbox" id="ck_pol" runat="server" checked=0/></div>
<div id="dvCkPol" style="font-size:12px;width:60px;text-align:left; padding-top:3px;float:left;">起运港</div>
<div style="float:left"><input type="checkbox" id="ck_pod" runat="server" checked=0/></div>
<div id="dvCkPod" style="font-size:12px;width:60px;text-align:left; padding-top:3px;float:left;">卸货港</div>
</td>
</tr>
</table>
<div style=" margin-left:30px;">
<input type="button" id="btn_settle" class="btn" value="申请发票" onclick="doApplicationInvoice()"/>
</div>
<div>
<input type="hidden" id="h_bsno" runat="server"/>
<input type="hidden" id="h_customer" runat="server"/>
<input type="hidden" id="h_vessel" runat="server" />
<input type="hidden" id="h_voyno" runat="server" />
<input type="hidden" id="h_feename" runat="server" />
<input type="hidden" id="h_feecache" runat="server" />
<input type="hidden" id="h_sessionid" runat="server" />
<input type="hidden" id="h_exrmbtousd" runat="server" />
<input type="hidden" id="h_exusdtormb" runat="server" />
<input type="hidden" id="h_ordercache" runat="server" />
<input type="hidden" id="h_cachename" runat="server" />
<input type="hidden" id="h_postsession" runat="server" />
<input type="hidden" id="h_refreshstate" runat="server" />
<input type="hidden" id="h_totalcache" runat="server" />
<input type="hidden" id="h_bsnocache" runat="server" />
</div>
<div id="dvResult"></div>
</form>
</div>
</body>
</html>