<%@ Page Language="C#" MasterPageFile="~/Admin/Guide.master" AutoEventWireup="true"
    Inherits="PowerEasy.Module.General.WebSite.Admin.User.BankrollItemListGuide" Codebehind="BankrollItemListGuide.aspx.cs"
    Title="资金明细查询向导" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphTitle" runat="Server">
    资金明细查询
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphSubMenu" runat="Server">
    <div class="guideexpand" onclick="Switch(this)">
        快速查找</div>
    <div class="guide">
        <ul>
             <li><a href="BankrollItemList.aspx?SearchType=0" target="main_right">所有资金明细记录</a></li>
            <li><a href="BankrollItemList.aspx?SearchType=1" target="main_right">10天内的资金明细记录</a></li>
            <li><a href="BankrollItemList.aspx?SearchType=2" target="main_right">当前月的资金明细记录</a></li>  
        </ul>
    </div>
    <div class="guideexpand" onclick="Switch(this)">
        复杂查询</div>
    <div class="guide">
        <ul>
            <li><a href="BankrollItemListSearch.aspx" target="main_right">复杂查询</a></li>
        </ul>
    </div>
    <div class="guideexpand" onclick="Switch(this)">
        高级查询</div>
    <div class="guidesearch">
        <ul>
            <li>
                <select id="SelField" style="width: 140px">
                    <option selected="selected" value="0">客户名称</option>
                    <option value="1">用户名称</option>
                    <option value="2">银行名称</option>
                    <option value="3">交易日期</option>
                    <option value="9">跟单员</option>
                </select>
            </li>
            <li>
                <input id="TxtKeyWord" style="width: 134px;" type="text" class="inputtext" />
            </li>
            <li>
                <input id="BtnSearch" type="button" class="inputbutton" value="查询" onclick="OpenMainRight()" />
            </li>
        </ul>
    </div>

    <script type="text/javascript">

   
    function OpenMainRight()
    {
        var field=0;
        var keyword = document.getElementById("TxtKeyWord").value.trim();
        var objSel = document.getElementById("SelField");
        field = objSel.options[objSel.selectedIndex].value;
        if(field=="3" && (!isDate(keyword)))
        {
            alert("请输入有效日期，日期格式如：YYYY-MM-DD");
            return;
        }
        var url = "BankrollItemList.aspx?SearchType=10&Field="+field+"&KeyWord="+escape(keyword);
      JumpToMainRight(url);
    }

 
   </script>

</asp:Content>
