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

<!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">
        .txtTab{border:1px solid #A0A0A4; border-color:#6699CC;}
        .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>
    <link rel="STYLESHEET" type="text/css" href="../theme/buttons.css"/>
    <link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxgrid.css"/>
    <link rel="STYLESHEET" type="text/css" href="../theme/progressbar.css" />
    <link rel="STYLESHEET" type="text/css" href="../theme/page.css"/>
    <link rel="STYLESHEET" type="text/css" href="../theme/button/default/Fee.css"/>
    <link rel="STYLESHEET" type="text/css" href="../theme/dhtmlxcombo.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/m97date/wdatepicker.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">
       window.dhx_globalImgPath="../images/";
    </script>
    <script type="text/javascript" src="../js/browser.js" ></script>
    <script type="text/javascript" src="../js/TCombo.js" ></script>
    <script src="../js/jsGridCwVouchersOpSeaeList.js" type="text/javascript"></script>
    <script type="text/javascript">
        //回车键控制
        document.onkeypress=function()
        {
            if(event.keyCode==13)
            {
                search();
            }
        }  
    </script>
    <!--下拉菜单-->
    <style type="text/css">
        .anylinkcss
        {
            position:absolute;
            visibility: hidden;
            border:1px solid #C0C0C0;
            border-bottom-width: 0;
            font:normal 12px Verdana;
            line-height: 18px;
            z-index: 100;
            background-color: #ECF4FF;
            width: 60px;
        }
        .anylinkcss a
        {
            width: 100%;
            display: block;
            text-indent: 3px;
            border-bottom: 1px solid #C0C0C0;
            padding: 1px 0;
            text-decoration: none;
            font-weight: bold;
            text-indent: 5px;
        }
        .anylinkcss a:hover
        {
            background-color: #C0C0C0;
            color: white;
        }
        .btncss 
        {
	        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;
        }
        .style1
        {
            width: 10px;
            height: 17px;
        }
        .style2
        {
            width: 60px;
            height: 17px;
        }
        .style3
        {
            width: 110px;
            height: 17px;
        }
        .style4
        {
            width: 30px;
            height: 17px;
        }
        .style5
        {
            width: 102px;
            height: 17px;
        }
        .style6
        {
            width: 50px;
            height: 17px;
        }
        .style8
        {
            width: 100px;
            height: 17px;
        }
        .style9
        {
            width: 20px;
            height: 17px;
        }
    </style>
</head>
<body onload="resizeGrid('mygrid_container_seae','gridContain','dvContainer',250);reInitJs();">
    <div style=" width:100%; height:100%; position:relative;" oncontextmenu="return true" id="dvContainer">
    <form id="form1" runat="server">
    <div>
        <table style="border:0; padding:0;">
            <tr>
                <td class="style1"></td>
                <td class="style2"><div style="width:60px;">委托编号:</div></td>
                <td class="style3">
                    <asp:TextBox ID="txt_no" runat="server" MaxLength="30" Width="100px" CssClass="txtTab"></asp:TextBox>
                </td>
                <td class="style9"><div style="width:20px;" class="cssfont">至</div></td>
                <td class="style3">
                    <asp:TextBox ID="txt_no2" runat="server" MaxLength="30" Width="100px" CssClass="txtTab"></asp:TextBox>
                </td>
                <td class="style2"><div style="width:60px;">会计期间:</div></td>
                <td class="style3">
                    <asp:TextBox ID="txt_accdate" runat="server" Width="100px" CssClass="txtTab" ToolTip="例:‘2011-04’" onclick="WdatePicker({dateFmt:'yyyy-MM'});" ReadOnly="True"></asp:TextBox>
                </td>
                <td class="style6"><div style="width:50px;" class="cssfont">至</div></td>
                <td class="style3">
                    <asp:TextBox ID="txt_accdate2" runat="server" ToolTip="例:‘2011-04’" onclick="WdatePicker({dateFmt:'yyyy-MM'});" ReadOnly="True" Width="100px" CssClass="txtTab"></asp:TextBox>
                </td>
                <td width="90px">
                    <asp:CheckBox ID="cbISVOU" runat="server" Width="90px" Text="包含已生成" />
                </td>
                <td class="style8">
                    <div class="buttons" onclick="search()" style="float:left; height: 28px;"><a href="javascript:void(0)" class="regular" ><img src="../images/icons/btnSearch.gif" title="查询"/>查询</a></div>
                </td>
             </tr>
            <tr>
                <td></td>
                <td><div style="width:60px;">开船日期:</div></td>
                <td>
                    <asp:TextBox ID="txt_beginetd" runat="server" onclick="WdatePicker()" Width="100px" ReadOnly=true CssClass="txtTab"></asp:TextBox>
                </td>
                <td><div style="width:20px;" class="cssfont">至</div></td>
                <td>
                    <asp:TextBox ID="txt_endetd" runat="server" onclick="WdatePicker()" Width="100px" ReadOnly=true CssClass="txtTab"></asp:TextBox>
                </td>
                <td><div style="width:50px;">船名:</div></td>
                <td>
                    <select id="sel_vessel" runat="server" class="txtTab" style="width: 102px"></select>
                </td>
                <td><div style="width:50px;" class="cssfont">航次:</div></td>
                <td>
                    <select id="sel_voyno" runat="server" class="txtTab" style="width:102px"></select>  
                </td>
                <td class="style8">
                    <div class="buttons" onclick="searchMultiple()" style="float:left; height: 28px;"><a href="javascript:void(0)" class="regular"><img src="../images/icons/btnSearch.gif" title="综合查询"/>综合查询</a></div>
                </td>
             </tr>
             <tr>
                <td></td>
                <td><div style="width:60px;">凭证编号:</div></td>
                <td>
                    <asp:TextBox ID="txt_vouno" runat="server" MaxLength="30" Width="100px" CssClass="txtTab"></asp:TextBox>
                </td>
                <td><div style="width:20px;" class="cssfont">至</div></td>
                <td>
                    <asp:TextBox ID="txt_vouno2" runat="server" MaxLength="30" Width="100px" CssClass="txtTab"></asp:TextBox>
                </td>
                <td><div style="width:60px;" class="cssfont">主提单号:</div></td>
                <td>
                    <asp:TextBox ID="txt_mblno" runat="server" MaxLength="30" Width="100px" CssClass="txtTab"></asp:TextBox>
                </td>
                <td><div style="width:50px;">揽货人:</div></td>
                <td>
                    <select id="sel_sale" name="sel_sale" runat="server" class="txtTab" style="width:102px"></select>
                </td>
                <td class="style8">
                    <div class="buttons" onclick="initSearch()" style="float:left; height: 28px;"><a href="javascript:void(0)" class="regular" ><img src="../images/icons/btnDel.gif" title="清空条件"/>清空条件</a></div>
                </td>
            </tr>
        </table>
    </div>
    <div class="btn-content">
        <div class="btn-blank"></div>
        <div  class="xbtn-img" id=divfresh runat=server onclick="refreshOrder()">
          <div class="btnimg"><img src="../images/icons/refresh.gif" width="16px" title="刷新列表" class="cssfont"/></div>
        </div>
        <div  class="xbtn-img" onclick="editOpSeae()">
          <div class="btnimg"><img src="../images/icons/example.gif" width="16px" title="编辑海运出口委托信息"/></div>
        </div>
        <div  class="xbtn-img" onclick="editGridSetting()">
          <div class="btnimg"><img src="../images/icons/SET.gif" width="16px" title="设置列表信息"/></div>
        </div>
        <div class="xbtn">
            <input id="imgAdd" runat="server" type="button" value="生成凭证" onclick="ShowDetailAdd();" style="width:70px; height:20px;" class="btncss"/>
        </div>
    </div>
    
    <div class="grid-ie7" id="gridContain"><div id="mygrid_container_seae" style="width:6500px; height:400px;" runat="server"></div></div>
    <div id="pager" style="width: 100%; margin: 0px; padding: 4px; border: 0px solid #999;">
    </div>
    <div id="info" style="text-align: center; width: 100%; margin: 0 2px; padding: 4px; border: 1px solid #999; display:none;"></div>    
    <div>      
        <input type="hidden" id="hid_setting" runat="server"/>
        <input type="hidden" id="hid_header" runat="server" />
        <div id="dvSaveState" runat="server"></div>
        <div id="divh" style="display: none;">
            <div class="box">
                <div id="tit"></div>
                <div id="bod"></div>
                <div id="bot"></div>
            </div>
        </div>
    </div>
    <div>
        <input id="h_vessel" type="hidden" runat="server" />
        <input id="h_voyno" type="hidden" runat="server" />
        <input id="h_sale" type="hidden" runat="server" />
        <input id="h_uid" type="hidden" runat="server" />
        <input id="h_searchcache" type="hidden" runat="server"/>
        
        <input id="hdRangeV" type="hidden" runat="server"/>
        <input id="hdRangeO" type="hidden" runat="server"/>
        <input id="hdRange" type="hidden" runat="server"/>
        <input type="hidden" id="h_oplb" runat ="server"/>          
    </div>
    </form>
    </div>
    <div id="progressBar" class="progressBar">数据正在加载中……</div>
</body>
</html>