<%@ Page language="c#" Codebehind="MyFinance.aspx.cs" AutoEventWireup="true" Inherits="XpShop.WebUI.MyFinance" %>
<%@ 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">
<!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/encoding.inc"-->
		<title>推广提成财务记录</title>
		<!--#include file="../../inc/head.inc"-->
		<link href="<%=webSite %>Template/<%=config.TemplateFolder%>/style/member.css" type="text/css" rel="stylesheet" />
	</HEAD>
	<body>
		<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>
                            推广提成状态：<br />
                            不可结款：已付款的先款后货的订单，或是经过商城确认的货到付款的订单，此时提成状态为不可结款，表示推广员暂时不能获得这个订单的提成。<br />
                            无须结款：已付款的先款后货的订单，或是经过商城确认的货到付款的订单，后来被取消，此种状态为无须结款，表示推广员不能获得这个订单的提成。<br />
                            待结款：交易已完成的订单，此种状态为待结款，推广员可以获得这个订单的提成，等待商城工作人员处理这个订单提成。<br />
                            已结款：此种状态下，商城工作人员已把这个订单的提成提交到推广员电子账号。   <br />                        
                            </div>
                            <br />           
                            <asp:Label id="lblInfo" runat="server" CssClass="tableHeaderText">推广提成财务记录</asp:Label>
           
				            <form id="Form1" method="post" runat="server">
<%--                            <div class="page" style="margin-bottom:10px">
                            </div>--%>
                            <div class="mctab clear">
                                <ul>
                                    <li class="<%=XpShop.Common.Utils.ReqIntParams("flag",2)==-1 ? "curr" : "out"%>">
                                        <s></s>
                                        <b></b>
                                        <a href="MyFinance--1.<%=config.html%>">无须结款</a>
                                    </li>
                                    <li class="<%=XpShop.Common.Utils.ReqIntParams("flag",2)==0 ? "curr" : "out"%>">
                                        <s></s>
                                        <b></b>
                                        <a href="MyFinance-0.<%=config.html%>">不可结款</a>
                                    </li>
                                    <li class="<%=XpShop.Common.Utils.ReqIntParams("flag",2)==2 ? "curr" : "out"%>">
                                        <s></s>
                                        <b></b>
                                        <a href="MyFinance-2.<%=config.html%>">待结款</a>
                                    </li>
                                    <li class="<%=XpShop.Common.Utils.ReqIntParams("flag",2)==4 ? "curr" : "out"%>">
                                        <s></s>
                                        <b></b>
                                        <a href="MyFinance-4.<%=config.html%>">已结款</a>
                                    </li>
                                 </ul>
                            </div>
                            <% if (XpShop.Common.Utils.ReqIntParams("flag", 2) < 4)
                               {%>
					            <asp:datagrid id="dgAgentFinanceList1" CssClass="dgborder" runat="server"
						        AutoGenerateColumns="False" DataKeyField="fid" Width="100%" HorizontalAlign="Center" BorderWidth="1"
						        BorderColor="#d6d6d6">
						        <ItemStyle BackColor="White"></ItemStyle>
			                    <HeaderStyle BackColor="#fff7d3" Height="20px"></HeaderStyle>
						        <Columns>
							        <asp:TemplateColumn HeaderText="订单编号">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="15%" Height="20px"></ItemStyle>
								        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "OrderNo") %>
								        </ItemTemplate>
							        </asp:TemplateColumn>	
						            <asp:TemplateColumn HeaderText="购买人">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="15%" Height="20px"></ItemStyle>
								        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "Name") %>
								        </ItemTemplate>
							        </asp:TemplateColumn>
							        <asp:BoundColumn DataField="OrderTime" HeaderText="购买时间" DataFormatString="{0:yyyy-MM-dd}" >
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="15%"></ItemStyle>
							        </asp:BoundColumn>
						            <asp:TemplateColumn HeaderText="商品价格">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="15%" Height="20px"></ItemStyle>
								        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "ProductPrice") %>
								        </ItemTemplate>
							        </asp:TemplateColumn>
							        <asp:TemplateColumn HeaderText="结算期数">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="15%" Height="20px"></ItemStyle>
								        <ItemTemplate>
										        <%# DataBinder.Eval(Container.DataItem, "Issue") %>
								        </ItemTemplate>
							        </asp:TemplateColumn>
							        <asp:TemplateColumn HeaderText="结算金额">
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
								        <ItemTemplate>
									        <%# DataBinder.Eval(Container.DataItem, "Finance") %>
								        </ItemTemplate>
							        </asp:TemplateColumn>							    
							        <asp:BoundColumn DataField="PayTime" HeaderText="结算时间" DataFormatString="{0:yyyy-MM-dd}" >
								        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								        <ItemStyle HorizontalAlign="Center" Width="15%"></ItemStyle>
							        </asp:BoundColumn>
							     </Columns>
					        </asp:datagrid>
                            <% }
                               else 
                               {%>
                            <%} %>
                            
					        <asp:datagrid id="dgAgentFinanceList2" CssClass="dgborder" runat="server"
						    AutoGenerateColumns="False" DataKeyField="fid" Width="100%" HorizontalAlign="Center" BorderWidth="1"
						    BorderColor="#d6d6d6">
						    <ItemStyle CssClass="datagrid-item"></ItemStyle>
		                    <HeaderStyle CssClass="datagrid-header"></HeaderStyle>
						    <Columns>
							    <asp:TemplateColumn HeaderText="结算期数">
								    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								    <ItemStyle HorizontalAlign="Center" Width="15%" Height="20px"></ItemStyle>
								    <ItemTemplate>
										    <%# DataBinder.Eval(Container.DataItem, "Issue") %>
								    </ItemTemplate>
							    </asp:TemplateColumn>
							    <asp:TemplateColumn HeaderText="结算金额">
								    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								    <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
								    <ItemTemplate>
									    <%# DataBinder.Eval(Container.DataItem, "Finance") %>
								    </ItemTemplate>
							    </asp:TemplateColumn>							    
							    <asp:BoundColumn DataField="PayTime" HeaderText="结算时间" DataFormatString="{0:yyyy-MM-dd}" >
								    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								    <ItemStyle HorizontalAlign="Center" Width="15%"></ItemStyle>
							    </asp:BoundColumn>
							    <asp:TemplateColumn HeaderText="查看详情">
								    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
								    <ItemStyle HorizontalAlign="Center" Width="10%"></ItemStyle>
								    <ItemTemplate>
									    <a href="MyAgentPay-<%# DataBinder.Eval(Container.DataItem, "FID") %>.<%=config.html%>">查看</a>
								    </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="plNoProduct" 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>
		<uc1:Helper id="Helper1" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
	</body>
</HTML>
