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

<!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;
    }
    </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"/>
    <link href="../theme/style.css" type="text/css" rel="Stylesheet" media="screen"/>
    <link href="../theme/dhtmlxcombo.css" type="text/css" rel="Stylesheet" media="screen"/>
    <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/";
    </script>
	<script src="../js/InvoiceMakeOutModify.js" type="text/javascript"></script>
	
</head>
<body onload="createInfo();" style="background-color:#ecf2ff;">
    <div style="width:100%;height:100%;" oncontextmenu="return true">
    <div class="btn-content">
        <div class="btn-blank"></div>
        <div class="xbtn-img" onclick="addApplication()">
          <div class="btnimg"><img src="../images/icons/btn_add.gif" width="16px" height="16px" title="添加发票申请"/></div>
        </div>
        <div  class="xbtn-img" onclick="deleteFee()">
          <div class="btnimg"><img src="../images/icons/remove.gif" width="16px" title="删除明细"/></div>
        </div>
        <div  class="xbtn-img" onclick="invoiceAdapter()">
          <div class="btnimg"><img src="../images/icons/btnPrint.gif" width="16px" title="税控打印发票" /></div>
        </div>
        <div  class="xbtn-img" onclick="printInvoiceDetail()">
          <div class="btnimg"><img src="../images/icons/print.gif" width="16px" title="发票信息打印" /></div>
        </div>
        <div  class="xbtn-img" onclick="makeOutInvoice()" id="btn_makeout" runat="server">
          <div class="btnimg"><img src="../images/icons/save.gif" width="16px" title="开出发票"/></div>
        </div>
        <div  class="xbtn-small" onclick="postApplication()" id="btn_delete" runat="server">
          <div class="btntxt">废除</div>
        </div>
        <div  class="xbtn-large" onclick="importFee()" id="btn_import" runat="server">
          <div class="btntxt">引入业务费用</div>
        </div>
        <div  class="xbtn" onclick="invoiceAdapter()" id="btn_createinvoice" runat="server">
          <div class="btntxt">生成税控</div>
        </div>
        <div  class="xbtn-small" onclick="invoiceAdapter()" id="btn_lock" runat="server">
          <div class="btntxt" id="dvLockState" runat="server">未锁定</div>
        </div>
    </div>
    <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:80px;"><div id="dvInvoiceNO" runat="server" style="text-align:right; width:80px;font-size:12px;">发票号码:</div></td>
        <td width="30%">
            <select id="sel_invoiceno" runat="server" class="txtTab" style="width:180px;"></select>
        </td>
        <td style="width:80px;"><div id="dvCurrency" runat="server" style="text-align:right; width:80px;font-size:12px;">发票币别:</div></td>
        <td width="30%"><select id="sel_currency" runat="server" style="width:180px;"></select></td>
        <td style="width:80px;"><div id="dvInvoiceType" runat="server" style="text-align:right;width:80px;font-size:12px;">发票类型:</div></td>
        <td width="30%"><input type="text" id="txt_type" class="txtTab" style="width:98%;" runat="server" disabled=disabled/></td>
        <td style="width:50px;"></td>
    </tr>
	<tr>
    	<td style="width:80px;"></td>
        <td width="30%"><div style="float:left; border:0;"><input id="ck_deleted" type="checkbox" runat="server" disabled=disabled/></div><div style="float:left; border:0; padding-top:5px;font-size:12px;">是否废除</div></td>
        <td style="width:80px;"></td>
        <td width="30%"><div style="float:left; border:0;"><input id="ck_isfee" type="checkbox" runat="server" disabled=disabled/></div><div style="float:left; border:0; padding-top:5px;font-size:12px;">是否收款</div></td>
        <td style="width:80px;"></td>
        <td width="30%"><div style="float:left; border:0;"><input id="ck_isprint" type="checkbox" runat="server" disabled=disabled/></div><div style="float:left; border:0; padding-top:5px;font-size:12px;">是否打印</div></td>
        <td style="width:50px;"></td>
    </tr>
	<tr>
    	<td style="width:80px;"><div id="dvBank" runat="server" style="text-align:right; width:80px;font-size:12px;">开户银行:</div></td>
        <td width="30%"><select id="sel_bank" runat="server" style="width:180px;"></select></td>
        <td style="width:80px;"><div id="dvAccount" runat="server" style="text-align:right;font-size:12px;">银行账户:</div></td>
        <td width="30%"><select id="sel_account" runat="server" style="width:180px;"></select></td>
        <td style="width:80px;"></td>
        <td width="30%"></td>
        <td style="width:50px;"></td>
    </tr>
	<tr>
    	<td style="width:80px;"><div id="dvPayCustomer" runat="server" style="text-align:right; width:80px;font-size:12px;">付款单位:</div></td>
        <td width="30%"><select id="sel_customer" runat="server" style="width:180px;"></select></td>
        <td style="width:80px;"><div id="dvMakeOutTime" runat="server" style="text-align:right; width:80px;font-size:12px;">开票日期:</div></td>
        <td width="30%"><input type="text" id="txt_makeouttime" runat="server" class="txtTab" style="width:98%;" disabled=disabled/></td>
        <td style="width:80px;"><div id="dvCUSTNO" runat="server" style="text-align:right; width:80px;font-size:12px;">委托编号:</div></td>
        <td width="30%"><input type="text" id="txt_custno" runat="server" class="txtTab" style="width:98%;" disabled=disabled/></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 width="30%"><input type="text" id="txt_vesselvoyage" runat="server" class="txtTab" style="width:98%;"/></td>
        <td style="width:80px;"><div id="dvMblno" runat="server" style="text-align:right; width:80px;font-size:12px;">提单号:</div></td>
        <td width="30%"><input type="text" id="txt_mblno" runat="server" class="txtTab" style="width:98%;"/></td>
        <td style="width:80px;"><div id="dvEtd" runat="server" style="text-align:right; width:80px;font-size:12px;">开船日期:</div></td>
        <td width="30%"><input type="text" id="txt_etd" runat="server" class="txtTab" style="width:98%;"/></td>
        <td style="width:50px;"></td>
    </tr>
	<tr>
    	<td style="width:80px;"><div id="dvPol" runat="server" style="text-align:right; width:80px;font-size:12px;">起运港:</div></td>
        <td width="30%"><input type="text" id="txt_pol" runat="server" class="txtTab" style="width:98%;"/></td>
        <td style="width:80px;"><div id="dvPod" runat="server" style="text-align:right;width:80px;font-size:12px;">卸货港:</div></td>
        <td width="30%"><input type="text" id="txt_pod" runat="server" class="txtTab" style="width:98%;"/></td>
        <td style="width:80px;"></td>
        <td width="30%"></td>
        <td style="width:50px;"></td>
    </tr>
</table>
    <table style=" margin-left:30px; margin-top:20px; margin-bottom:20px; border-spacing:0;">
        <tr>
            <td colspan="2">
            <div>
                <div class="btn-blank"></div>
                <div class="xbtn-img" onclick="addFee()">
                  <div class="btnimg"><img src="../images/icons/btn_add.gif" width="16px" height="16px" title="添加费用"/></div>
                </div>
                <div  class="xbtn-img" onclick="deleteFee()">
                  <div class="btnimg"><img src="../images/icons/remove.gif" width="16px" title="删除费用"/></div>
                </div>
            </div>
            </td >
            <td style="padding:0; height:26px; border:0; border-spacing:0;font-size:12px;">备注</td>
        </tr>
        <tr>
            <td align="left" width="400px" colspan="2" style="border-spacing:0;border:0;padding:0;"><div id="mygrid_container_fname" style="width:400px; height:150px;" runat="server"></div></td>
            <td align="center" width="200px" style="border-spacing:0;border:0;"><textarea id="txt_remark" runat="server" style="width:200px; height:150px;"></textarea></td>
        </tr>
    </table>
    
    <table style=" margin-left:50px; height:20px;">
        <tr>
            <td><div id="dvAmountCapital" runat="server" style="font-size:12px;">金额大写</div></td>
            <td><input type="text" id="txt_amountcapital" runat="server" style="width:250px;" class="txtTab" disabled="1"/></td>
            <td width="30px;"></td>
            <td><div id="dvTotal" runat="server" style="font-size:12px;">金额合计</div></td>
            <td><input type="text" id="txt_total" runat="server" class="txtTab"/></td>
        </tr>
    </table>
    <input type="hidden" id="h_billno" runat="server"/>
    <input type="hidden" id="h_feecache" runat="server" />
    <input type="hidden" id="h_settlecurrency" runat="server" />
    <input type="hidden" id="h_settleinfo" runat="server" />
    <input type="hidden" id="h_enter" runat="server" />
    <input type="hidden" id="h_currency" runat="server" />
    <input type="hidden" id="h_amount" runat="server" />
    <input type="hidden" id="h_account" runat="server" />
    <input type="hidden" id="h_usdtormb" runat="server" />
    <input type="hidden" id="h_rmbtousd" runat="server" />
    <input type="hidden" id="h_bankinfo" runat="server" />
    <input type="hidden" id="h_opinfo" runat="server" />
    <input type="hidden" id="h_showdetail" runat="server" />
    <input type="hidden" id="h_action" runat="server" />
    <input type="hidden" id="h_list" runat="server" />
    <input type="hidden" id="h_handle" runat="server" />
    <input type="hidden" id="h_customer" runat="server" />
    <input type="hidden" id="h_bank" runat="server" />
    <input type="hidden" id="h_rename" runat="server" />
    <input type="hidden" id="h_link" runat="server" />
    <input type="hidden" id="h_saved" runat="server" />
    <input type="hidden" id="h_posted" runat="server" />
    <input type="hidden" id="h_invoiceappid" runat="server" />
    <input type="hidden" id="h_vesselvoyage" runat="server" />
    <input type="hidden" id="h_mblno" runat="server" />
    <input type="hidden" id="h_etd" runat="server" />
    <input type="hidden" id="h_pod" runat="server" />
    <input type="hidden" id="h_pol" runat="server" />
    <input type="hidden" id="h_custno" runat="server" />
    <input type="hidden" id="h_total" runat="server" />
    <input type="hidden" id="h_capitial" runat="server" />
    <input type="hidden" id="h_payable" runat="server" />
    <input type="hidden" id="h_isvessel" runat="server" />
    <input type="hidden" id="h_ismblno" runat="server" />
    <input type="hidden" id="h_isetd" runat="server" />
    <input type="hidden" id="h_ispod" runat="server" />
    <input type="hidden" id="h_ispol" runat="server" />
    <input type="hidden" id="h_iscustno" runat="server" />
    <input type="hidden" id="h_invoiceid" runat="server" />
    <input type="hidden" id="h_license" runat="server" />
    <input type="hidden" id="h_taxcode" runat="server" />
    <input type="hidden" id="h_exrmbtousd" runat="server" />
    <input type="hidden" id="h_exusdtormb" runat="server" />
    <input type="hidden" id="h_printcapital" runat="server" />
    <input type="hidden" id="h_printamount" runat="server" />
    <input type="hidden" id="h_cachename" runat="server" />
    <input type="hidden" id="h_isdetail" runat="server" />
    <input type="hidden" id="h_customername" runat="server" />
    <input type="hidden" id="h_invoiceno" runat="server" />
    </form>
    </div>
</body>
</html>