<%@ Page Title="" Language="C#" MasterPageFile="~/Master/officeMaster.master" AutoEventWireup="true" CodeFile="Detail_Transfer.aspx.cs" Inherits="A_Detail_Detail_Transfer" EnableEventValidation="false" %>
<%@ Register Src="~/Ucontrol/UcAccount.ascx" TagName="Account" TagPrefix="ucl" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <%--<table class="usertableborder" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th>
                转账
            </th>
        </tr>
    </table>--%>
    <div style="font-size: 15px;">
        <asp:Button ID="btnAllDetail" runat="server" Text="全 部" Style="
            width: 80px; height: 30px;" OnClick="btnAllDetail_Click" />
        <asp:Button ID="btnExpenditure" runat="server" Text="支 出" Style="
            width: 80px; height: 30px;" OnClick="btnExpenditure_Click" />
        <asp:Button ID="btnIncome" runat="server" Text="收 入" Style="width: 80px; height: 30px;"
            OnClick="btnIncome_Click" />
        <asp:Button ID="btnTransfer" runat="server" Text="转 账" Style="font-weight: bold;width: 80px; height: 30px;"
            OnClick="btnTransfer_Click" />
        <asp:Button ID="btnLoan" runat="server" Text="借 贷" Style="width: 80px; height: 30px;"
            OnClick="btnLoan_Click" />
    </div>
    <br />
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <td>
                从
                <asp:TextBox ID="txtStateTime" runat="server" onfocus="WdatePicker()" Width="140"></asp:TextBox>
                到
                <asp:TextBox ID="txtEndTime" runat="server" onfocus="WdatePicker()" Width="140"></asp:TextBox>
                转账总额：￥<span id="spanTransferCount" runat="server"></span>
            </td>
        </tr>
        <tr>
            <td>
                转出账户：<ucl:Account ID="uclAccount" runat="server" OpenAjaxUrl="../Ajax/Ajax_CreditCard.aspx"
                    OpenSavingsCardAjaxUrl="../Ajax/Ajax_SavingsCard.aspx"/>
                转入账户：<ucl:Account ID="uclAccountEnter" runat="server" OpenAjaxUrl="../Ajax/Ajax_CreditCard.aspx"
                    OpenSavingsCardAjaxUrl="../Ajax/Ajax_SavingsCard.aspx"/>
                <asp:Button ID="btnSelect" runat="server" Text="查 询"  Width="72" BackColor="#CCCCCC" 
                    onclick="btnSelect_Click"  />
            </td>
        </tr>
    </table>
    <br />
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="90%" border="0">
        <tr>
            <td width="20%">
                时间
            </td>
            <td width="10%">
                |金额
            </td>
            <td width="15%">
                |转入账户
            </td>
            <td width="15%">
                |转出账户
            </td>
            <td width="25%">
                |备注
            </td>
            <td width="15%">
                |操作
            </td>
        </tr>
        <asp:Repeater ID="rptDetailTransfer" runat="server" 
            onitemcommand="rptDetailTransfer_ItemCommand" >
            <ItemTemplate>
            <tr  onmousemove="this.style.backgroundColor='#0099CC'" onmouseout="this.style.backgroundColor='white'">
                <td><%#Eval("RTransferDateTime")%></td>
                <td style="color:blue;">￥<%#Eval("RecordTransferMoney")%></td>
                <td><%#Eval("RTEnterAccountName")%></td>
                <td><%#Eval("RTOutAccountName")%></td>
                <td><%#Eval("RTransferRemarks")%></td>
                <td>
                    <asp:HiddenField ID="hfRecordTransferId" runat="server" Value='<%#Eval("RecordTransferId") %>' />
                    <asp:HiddenField ID="hfRecordTransferMoney" runat="server" Value='<%#Eval("RecordTransferMoney") %>' />
                    <asp:HiddenField ID="hfRTEnterAccountTypeId" runat="server" Value='<%#Eval("RTEnterAccountTypeId") %>' />
                    <asp:HiddenField ID="hfRTEnterAccountId" runat="server" Value='<%#Eval("RTEnterAccountId") %>' />
                    <asp:HiddenField ID="hfRTOutAccountTypeId" runat="server" Value='<%#Eval("RTOutAccountTypeId") %>' />
                    <asp:HiddenField ID="hfRTOutAccountId" runat="server" Value='<%#Eval("RTOutAccountId") %>' />
                    <asp:LinkButton ID="lbtnEdit" runat="server" CommandName="edit" Text="编辑"></asp:LinkButton>
                    <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="delete" Text="删除"  OnClientClick="return confirm('确认要删除吗？')"></asp:LinkButton>
                </td>
            </tr>
            </ItemTemplate>
        </asp:Repeater>
         <tr>
            <td colspan="6" align="center">
                <span>当前<span id="spanPageCurrent" runat="server">1</span>/<span id="spanPageCount" runat="server"></span>页</span>
                <asp:LinkButton ID="lbtnPageFirst" runat="server" Text="首页"  BackColor="Silver" Width="56px"
                    onclick="lbtnPageFirst_Click"></asp:LinkButton>
                <asp:LinkButton ID="lbtnPageUp" runat="server" Text="上页"  BackColor="Silver" Width="56px"
                    onclick="lbtnPageUp_Click"></asp:LinkButton>
                <asp:LinkButton ID="lbtnPageDown" runat="server" Text="下页" BackColor="Silver" Width="56px" 
                    onclick="lbtnPageDown_Click"></asp:LinkButton>
                <asp:LinkButton ID="lbtnPageLast" runat="server" Text="末页"  BackColor="Silver" Width="56px"
                    onclick="lbtnPageLast_Click"></asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>