<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="HL_Admin_Admin_ShopBankrollItemView, WebApp_deploy" title="资金明细" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 
<table class="adminheading">
   <tr>
      <th valign="middle" class="menus" align="left">帐户明细管理</th>
      <td align="right">
      <div style="width:400px">
            <a href="Admin_ShopSaleView.aspx" >销售明细</a>&nbsp;|&nbsp;
            <a href="Admin_ShopSaleOrderView.aspx">销售统计</a>&nbsp;|&nbsp;
            <a href="Admin_ShopBankrollItemView.aspx">资金明细</a>&nbsp;<br />                
      </div></td>
      <td class="rtdw"></td>          
   </tr>                     
</table>

    <table class="nick">
        <tr>
            <td colspan="4" class="tit"><b>资金明细列表</b></td>
        </tr>
        <tr>
            <td class="ltd">帐户名称：</td>
            <td class="rtd" style="width: 35%;"><asp:TextBox ID="TxtUserName" runat="server" OnTextChanged="OnSearch" AutoPostBack="True"/>
                </td>
            <td class="ltd">&nbsp;状态类型：</td>
            <td class="rtd" style="width: 35%;">
                &nbsp;<asp:DropDownList ID="Dropincome_output" runat="server" OnSelectedIndexChanged="OnSearch" AutoPostBack="True">
                    <asp:ListItem Value="">所有</asp:ListItem>
                    <asp:ListItem Value="1">收入</asp:ListItem>
                    <asp:ListItem Value="0">支出</asp:ListItem>
                    <asp:ListItem Value="-1">流动</asp:ListItem>
                </asp:DropDownList>
                </td>
        </tr>
        <tr>
            <td class="ltd">起始日期：</td>
            <td class="rtd" style="width: 35%;">
               <asp:TextBox ID="TxtBeginDate" runat="server"   ReadOnly="true"/>
               
            </td>
            <td class="ltd">结束日期：</td>
            <td class="rtd" style="width: 35%;">
               <asp:TextBox ID="TxtEndDate" runat="server"  ReadOnly="true" />
                <asp:Button runat="server" ID="but" OnClick="OnSearch" Text=" 查 找 " />
            </td>
        </tr>
    </table>
    <br />
    
    <asp:GridView ID="GridView1"  CssClass="adminlist" runat="server" AutoGenerateColumns="False"
        OnRowDataBound="GridView1_RowDataBound" DataKeyNames="ID" OnRowDeleting="GridView1_RowDeleting">
        <Columns>          
            <asp:HyperLinkField HeaderText="用户名" DataNavigateUrlFields="UserID" DataNavigateUrlFormatString="Admin_UserDetail.aspx?UserID={0}" DataTextField="UserName"   />
            <asp:BoundField DataField="CreateTime" HeaderText="发生时间" >
                <HeaderStyle Width="15%" />
            </asp:BoundField>
            <asp:BoundField DataField="cMoney" HeaderText="发生额">
                <HeaderStyle Width="10%" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="方式">
                <ItemTemplate>
                    <asp:Literal runat="server" ID="LitcType" Text='<%# (Eval("cType").ToString()=="1")?"收入":((Eval("cType").ToString()=="-1")?"流动":"支出") %>' />
                </ItemTemplate>
                <HeaderStyle Width="8%" />
            </asp:TemplateField>
            <asp:BoundField DataField="uBalance" HeaderText="帐户剩余">
                <HeaderStyle Width="12%" />
            </asp:BoundField>
            <asp:BoundField DataField="Remark" HeaderText="备注" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:LinkButton runat="server" ID="ButDel" Text="删除" CommandArgument='<%# Eval("ID") %>' OnClientClick="return confirm('确定删除？')" CommandName="Delete" />
                </ItemTemplate>
                <HeaderStyle Width="8%" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
                <tr>
                    <th>用户名</th>
                    <th>发生时间</th>
                    <th>发生额</th>
                    <th>方式</th>
                    <th>备注</th>
                    <th>操作</th>
                </tr>
                <tr><td colspan="8">暂无信息！</td></tr>
        </EmptyDataTemplate>
    </asp:GridView>
    <div style="margin-top:10px;">
        <asp:Label runat="server" ID="PagePanel" />
    </div>
    <br /><br />

</asp:Content>

