<%@ Page language="c#" Codebehind="AgencyFinance.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.Admin.AgencyFinance" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
	    <!--#include file="inc/head.inc"-->
		<title>AgencyFinance</title>
        <script type="text/javascript" src="../inc/calendar.js"></script>
	</head>
	<body>
	    <div class="container">
		<div class="sub_container">
		<div class="sub_container_title"><a href="../default.aspx" target="_blank">桌面</a><img src="images/admin_title.jpg" height=9px width=8px align="absmiddle" /><asp:label id="lblTitleInfo" Runat="server" CssClass="tableHeaderText">财务记录</asp:label></div>
		<div class="sub_container_content">
		<form id="Form1" method="post" runat="server">
		    <div class="frame">
		        <div class="frame_title"><asp:Label id="lblAction" runat="server" CssClass="tableHeaderText">财务记录</asp:Label></div>
		        <div class="frame_content">
			        <table class="tableBorder" cellspacing="0" cellpadding="0" width="98%" align="center" border="0">
				        <tr>
                            <td align="Left">
                                选择期号：<asp:DropDownList ID="ddlPeriodNum" runat="server"></asp:DropDownList>
                                <asp:Button ID="btnSearch" runat="server" Text="查看"></asp:Button>
                                <br /><br />
                            </td>
				        </tr>
				        <tr>
					        <td height="23" class="forumRowHighlight">
						        <asp:datagrid id="dgAgencyFinance" runat="server" AllowPaging="False" PagerStyle-Mode="NumericPages"
							        AutoGenerateColumns="False" DataKeyField="AgencyFinanceID" Width="100%" HorizontalAlign="Center"
							        HeaderStyle-CssClass="summary-title">
							        <HeaderStyle Font-Bold="True"></HeaderStyle>
							        <Columns>
								        <asp:TemplateColumn HeaderText="会员名称">
									        <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Left" Width="120px"></ItemStyle>
									        <ItemTemplate>
										        <%# GetMemberName(int.Parse(DataBinder.Eval(Container.DataItem, "MemberID").ToString()))%>
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="期号">
									        <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Left"></ItemStyle>
									        <ItemTemplate>
									            <%# DataBinder.Eval(Container.DataItem, "PeriodNum") %>
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="结算提成">
									        <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Left"></ItemStyle>
									        <ItemTemplate>
									            <%# DataBinder.Eval(Container.DataItem, "Finance")%>
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="帐户余额">
									        <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Left"></ItemStyle>
									        <ItemTemplate>
									            <%# DataBinder.Eval(Container.DataItem, "Balance")%>
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="操作时间">
									        <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Left"></ItemStyle>
									        <ItemTemplate>
									            <%# DataBinder.Eval(Container.DataItem, "AddTime")%>
									        </ItemTemplate>
								        </asp:TemplateColumn>
								        <asp:TemplateColumn HeaderText="备注">
									        <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
									        <ItemStyle HorizontalAlign="Left"></ItemStyle>
									        <ItemTemplate>
									            <%# DataBinder.Eval(Container.DataItem, "Remark")%>
									        </ItemTemplate>
								        </asp:TemplateColumn>
							        </Columns>
							        <PagerStyle Mode="NumericPages"></PagerStyle>
						        </asp:datagrid>
					        </td>
				        </tr>
			        </table>
		        </div>
	        </div>
		</form>
		</div>
		</div>
		</div>
	</body>
</html>
