<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyFinanceLog.aspx.cs" Inherits="XpShop.WebUI.MyFinanceLog" %>

<%@ Register TagPrefix="uc1" TagName="MemberMenu" Src="Modules/MemberMenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Helper" Src="Modules/Helper.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Modules/Footer.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<!--#include file="../../inc/encoding.inc"-->
		<title>我的提成金额</title>
		<!--#include file="../../inc/head.inc"-->
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/member.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div id="container">
			<uc1:Header id="Header1" runat="server"></uc1:Header>
			<div class="xp-w clear">
			    <!--位置导航开始-->
			    <div class="path"><a href="<%=webSite %><%if(config.html==""){%>default.aspx<%}else{%>Index.<%=config.html%><%}%>"><%=GetResourceString("Home")%></a>&nbsp;&gt;&nbsp;<a href="<%=webSite %>Center.<%=config.html %>"><%=GetResourceString("MemberCenter")%></a>&nbsp;&gt;&nbsp;我的提成金额</div>
			    <!--位置导航结束-->
				<div class="member_left">
					<!--会员中心导航开始-->
					<uc1:MemberMenu id="MemberMenu1" runat="server"></uc1:MemberMenu>
					<!--会员中心导航结束-->
				</div>
				<div class="member_middle_right">
					<!--内容开始-->
					<div class="mframe">
			            <div class="tl"></div>
			            <div class="tr"></div>
			            <div class="tm">我的提成金额</div>
			            <div class="ml"></div>
			            <div class="mr"></div>
			            <div class="mm">
						    <div class="topright">当前的金额：<%=currentFinance%></div>
						    <form id="Form1" method="post" runat="server">
							    <asp:datagrid id="dgList" CssClass="dgborder" runat="server" BorderColor="#d6d6d6" BorderWidth="1" HorizontalAlign="Center"
								    Width="100%" DataKeyField="SLID" AutoGenerateColumns="False" PageSize="20">
			                        <ItemStyle BackColor="White"></ItemStyle>
			                        <HeaderStyle BackColor="#fff7d3" Height="20px"></HeaderStyle>
								    <Columns>
									    <asp:TemplateColumn HeaderText="日期">
										    <HeaderStyle HorizontalAlign="Center" Width="100px"></HeaderStyle>
										    <ItemStyle HorizontalAlign="Center" Height="20px"></ItemStyle>
										    <ItemTemplate>
											    <%# DataBinder.Eval(Container.DataItem, "GenerateTime")%>
										    </ItemTemplate>
									    </asp:TemplateColumn>
									    <asp:TemplateColumn HeaderText="获得金额">
										    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
										    <ItemStyle HorizontalAlign="Center"></ItemStyle>
										    <ItemTemplate>
										    <%# DataBinder.Eval(Container.DataItem, "Flag").ToString() == "1" ? DataBinder.Eval(Container.DataItem, "Finance", "{0:F2}") : "-"%>
										    </ItemTemplate>
									    </asp:TemplateColumn>
									    <asp:TemplateColumn HeaderText="消耗金额">
										    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
										    <ItemStyle HorizontalAlign="Center"></ItemStyle>
										    <ItemTemplate>
										    <%# DataBinder.Eval(Container.DataItem, "Flag").ToString() == "-1" ? DataBinder.Eval(Container.DataItem, "Finance", "{0:F2}") : "-"%>
										    </ItemTemplate>
									    </asp:TemplateColumn>
									    <asp:TemplateColumn HeaderText="当前金额">
										    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
										    <ItemStyle HorizontalAlign="Center"></ItemStyle>
										    <ItemTemplate>
										    <%# DataBinder.Eval(Container.DataItem, "TotalFinance","{0:F2}")%>
										    </ItemTemplate>
									    </asp:TemplateColumn>
									    <asp:TemplateColumn HeaderText="操作人">
										    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
										    <ItemStyle HorizontalAlign="Center"></ItemStyle>
										    <ItemTemplate>
											    <%# DataBinder.Eval(Container.DataItem, "AddUserName") %>
										    </ItemTemplate>
									    </asp:TemplateColumn>
									    <asp:TemplateColumn HeaderText="备注">
										    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
										    <ItemStyle HorizontalAlign="Center"></ItemStyle>
										    <ItemTemplate>
											    <%# DataBinder.Eval(Container.DataItem, "Remark") %>
										    </ItemTemplate>
									    </asp:TemplateColumn>
								    </Columns>
							    </asp:datagrid>
    							<asp:panel id="plPage" visible="true" runat="server">
				                <!-- 翻页开始-->
				                <div class="page clear">
                                    <div class="fpage">
                                        <asp:Label ID="lbPage" class="lb-page" runat="server"></asp:Label>
                                    </div>                                
				                </div>
				                <!-- 翻页结束-->
				                </asp:panel>        						
						        <asp:panel id="plNoRecord" visible="false" runat="server">
							        <div style="margin:20px;">
								        <h3>抱歉，没有找到符合条件的记录！</h3>
							        </div>
						        </asp:panel>
						    </form>
						</div>
			            <div class="bl"></div>
			            <div class="br"></div>
			            <div class="bm"></div>
			        </div>
					<!--内容结束-->
				</div>
				<div style="clear:both;"></div>
			</div>
			<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
			<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
		</div>
		
		
		
	</body>
</html>
