<%@ Page language="c#" Codebehind="AgencyFinanceAdd.aspx.cs" AutoEventWireup="false" Inherits="XpShop.WebUI.Admin.AgencyFinanceAdd" %>
<!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>AgencyFinanceAdd</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">
                                <span>
                                    时间：从
                                    <asp:TextBox ID="txtDateFrom" runat="server" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;" onClick="javascript:show_calendar('Form1.txtDateFrom');" Width="100px"></asp:TextBox>
                                    至
                                    <asp:TextBox ID="txtDateTo" runat="server" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;" onClick="javascript:show_calendar('Form1.txtDateTo');" Width="100px"></asp:TextBox>
                                    <asp:Button ID="btnSearch" runat="server" Text="查看"></asp:Button>
                                    <br />
                                    <% =info%>
                                </span>
                            </td>
				        </tr>
				        <tr>
					        <td height="23" class="forumRowHighlight">
						        <asp:datagrid id="dgAgencyFinance" runat="server" AllowPaging="False" PagerStyle-Mode="NumericPages"
						            AutoGenerateColumns="False" DataKeyField="AgentMemberID" Width="100%" HorizontalAlign="Center"
						            HeaderStyle-CssClass="summary-title" Visible="false">
						            <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, "AgentMemberID").ToString()))%>
								            </ItemTemplate>
							            </asp:TemplateColumn>
							            <asp:TemplateColumn HeaderText="提成比例">
								            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
								            <ItemStyle HorizontalAlign="Left"></ItemStyle>
								            <ItemTemplate>
								                <%# DataBinder.Eval(Container.DataItem, "AgentDis")%>％
								            </ItemTemplate>
							            </asp:TemplateColumn>
							            <asp:TemplateColumn HeaderText="提成">
								            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
								            <ItemStyle HorizontalAlign="Left"></ItemStyle>
								            <ItemTemplate>
								                <%# DataBinder.Eval(Container.DataItem, "MemberIDFinance")%>
								            </ItemTemplate>
							            </asp:TemplateColumn>
							            <asp:TemplateColumn HeaderText="身份">
								            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
								            <ItemStyle HorizontalAlign="Left"></ItemStyle>
								            <ItemTemplate>
								                <%# DataBinder.Eval(Container.DataItem, "AgentIdentify").ToString() == "1" ? "代理负责人" : "代销员"%>
								            </ItemTemplate>
							            </asp:TemplateColumn>
						            </Columns>
						            <PagerStyle Mode="NumericPages"></PagerStyle>
					            </asp:datagrid>
					        </td>
				        </tr>
				        <tr>
                            <td align="center">
                                <br />
                                <asp:Button ID="btnSave" runat="server" Text="确认结算" Visible="false"></asp:Button>
                            </td>
                        </tr>
			        </table>
		        </div>
	        </div>
		</form>
		</div>
		</div>
		</div>
	</body>
</html>
