<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CommonPayApplicationAudit.aspx.cs" Inherits="DSWeb.Settlements.CommonPayApplicationAudit" %>

<!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 id="Head1" 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;
    }
    </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 language="javascript" type="text/javascript" src="../js/date/calendar.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/CommonPayApplicationAudit.js" type="text/javascript"></script>

    <link href="../theme/dhtmlxcombo.css" type="text/css" rel="Stylesheet" media="screen"/>
</head>
<body onload="initCombos();createTotal();createOrder();" style="background-color:#ecf2ff;">
    <div style="width:100%;height:100%;" oncontextmenu="return false">
    <div class="btn-content">
        <div class="btn-blank"></div>
        <div class="xbtn">
          <div id="Div1" class="btntxt" onclick="financialAudit()" runat="server">财务审核</div>
        </div>
        <div class="xbtn">
          <div class="btntxt" onclick="auditPass()" runat="server" id="btn_accept">批准支付</div>
        </div>
        <div class="xbtn">
          <div class="btntxt" onclick="auditReject()" runat="server" id="btn_reject">驳回申请</div>
        </div>
        <div  class="xbtn-img"  onclick="printInvoice()">
          <div class="btnimg"><img src="../images/icons/print.gif" width="16px" title="打印付费审批"/></div>
        </div>
    </div>
    <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="SetDate(this,'yyyy-MM-dd')"/></td>
						<td style="height:15px;"><div>~</div></td>
						<td style="height:15px;"><input type="text" id="txt_endTime" class="txtTab" style="width:75px" onclick="SetDate(this,'yyyy-MM-dd')"/></td>
					</tr>
				</table>
			</td>
			<td style="width:15%" rowspan="3">
			    <table>
			        <tr>
			            <td style="width:100px;">
			                <div onclick="initSearch()" style="margin-left:5px;height:20px;width:100%;">
				            <div style="width:17px; height:17px; float:left;" style="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;" style="background-color:#ecf2ff;"><img src="../images/icons/search.gif" title="查询费用"/></div>
				            <div style="float:left; font-size:12px; cursor:default;">查询费用</div>
				            </div>
			            </td>
			        </tr>
			    </table>
				
			</td>				
			<td style="width:50px;"></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>
			<td style="width:50px;"></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="9">报关业务</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">收</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>
			<td style="width:50px;"></td>
		</tr>
        <tr>
          <td style="width:80px;"><div id="divCHEQUENUMREMARK" runat="server" style=" text-align:right; width:80px; font-size:12px;">支票号备注:</div></td>
          <td colspan="5"><input type="text" runat="server" class="txtTab"  id="txt_CHEQUENUMREMARK" readonly="readonly" disabled="disabled" style=" width:99%" /></td>
        </tr>
        
    </table>
    
    <table style="border:0; padding:0; margin:0;">
        <tr>
            <td colspan="2"><div style="float:left;"><div id="mygrid_container_total" style="width:500px; height:100px;" runat="server"></div></div><div style="float:left;width:50px;">&nbsp;&nbsp;备注:</div>
            <div style="float:left;"><textarea id="txt_remark" runat="server" style="width:470px; height:100px;" class="txtTab" disabled = 1></textarea></div></td>
        </tr>
        <tr>
            <td style="border:0; padding:0; margin:0;"><div id="mygrid_container_order" style="width:500px; height:450px;" runat="server"></div></td>
            <td style="border:0; padding:0; margin:0;"><div id="mygrid_container_fee" style="width:570px; height:450px;" runat="server"></div></td>
        </tr>
    </table>
    <div style="float:left"></div>
    <div style="float:left"></div>
    <div style="float:right"></div>

    </div>
    <form id="form1" runat="server">
    <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_mod" runat="server" />
    <input type="hidden" id="h_total" runat="server" />
    <input type="hidden" id="h_id" runat="server" />
    <input type="hidden" id="h_billno" runat="server" />
    <input type="hidden" id="h_user" runat="server" />
    <input type="hidden" id="h_audit" runat="server" />
    <input type="hidden" id="h_settlecustomer" runat="server" />
    <div id="dvResult"></div>
    </div>    
    </form>
</body>
</html>