<%@ Page language="c#" Codebehind="FinanceDetailList.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Supplier.FinanceDetailList" %>
<%@ Register TagPrefix="uc1" TagName="Header" Src="Modules/Header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="SupplierMenu" Src="Modules/SupplierMenu.ascx" %>
<%@	Register TagPrefix="ftb" Namespace="FreeTextBoxControls" Assembly="FreeTextBox"	%>
<%@ 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/head.inc"-->
		<title>商家中心 <%=config.SiteTitle%></title>
        <script type="text/javascript" src="inc/commond.js"></script>
	</head>
	<body>
			<uc1:Header id="Header1" runat="server"></uc1:Header>
			 <!--位置导航开始-->
			 <div class="path"><a href="<%=webSite %>supplier/default.<%=config.html%>">商家桌面</a> > 资金管理 > 账户明细查询 > 
             <asp:Label ID="lblTitleInfo" runat="server" Text="账户明细查询"></asp:Label></div>
			<!--位置导航结束-->
			<div class="xp-w clear">
				<div class="content-left">
					<!--会员中心导航开始-->
					<uc1:SupplierMenu id="SupplierMenu1" runat="server"></uc1:SupplierMenu>
					<!--会员中心导航结束-->
				</div>
				<div class="content-middle">	
					<%--<h3>欢迎您,<%=CurrentSupplier.RealName%></h3>
					<hr class="itemhr" />--%>
					<div class="rframe">
					    <div class="tm">账户明细查询</div>
					    <div class="mm clear">
					        <div class="pro_hlist">
							    <asp:DataList id="dlFinanceDetail" CellPadding="4" RepeatColumns="1" 
                                    RepeatDirection="Horizontal" Width="100%" runat="server" 
                                    ForeColor="#333333" BorderWidth="1px" Font-Bold="False" Font-Italic="False" 
                                    Font-Overline="False" Font-Strikeout="False" Font-Underline="False" 
                                    GridLines="Both" HorizontalAlign="Center" BorderColor="#c8dcf4">
								    <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
                                    <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <ItemStyle CssClass="datagrid-item"></ItemStyle>
			                        <HeaderStyle CssClass="datagrid-header"></HeaderStyle>
								    <HeaderTemplate>								
                                        <ItemTemplate>													
									        <table cellpadding="3" cellspacing="0" width="100%">
										        <tr>
                                                    <td width="15%">
                                                        下订时间
											        </td>
                                                    <td width="15%">
                                                        订单编号
											        </td>
                                                    <td width="10%">
                                                        订单总价
											        </td>
                                                    <td width="10%">
                                                        退款总价
											        </td>										
                                                    <td width="10%">
                                                        佣金
											        </td>
                                                    <td width="10%">
                                                        可结款金额
											        </td>
											        <td width="10%">
                                                        订单状态
											        </td>
											        <td width="10%">
                                                        结款状态
											        </td>
                                                    <td width="10%">
                                                        操作
											        </td>
										        </tr>
									        </table>
								        </ItemTemplate>								
								    </HeaderTemplate>
								    <ItemTemplate>													
									    <table cellpadding="3" cellspacing="0" width="100%">
										    <tr>
                                                <td width="15%">
                                                    <%#DataBinder.Eval(Container.DataItem, "OrderTime", "{0:f}")%>
											    </td>
                                                <td width="15%">
                                                    <%#DataBinder.Eval(Container.DataItem, "OrderNo", "{0:f}")%>
											    </td>
                                                <td width="10%">
                                                    <%#DataBinder.Eval(Container.DataItem, "Amount", "{0:f}")%>
											    </td>
                                                <td width="10%">
                                                    <%#DataBinder.Eval(Container.DataItem, "TuiKuan", "{0:f}")%>
											    </td>										
                                                <td width="10%">
                                                    <%#DataBinder.Eval(Container.DataItem, "YongJin", "{0:f}")%>
											    </td>
											    <td width="10%">
                                                    <%#DataBinder.Eval(Container.DataItem, "ShiFu", "{0:f}")%>		
                                           	    </td>
                                                <td width="10%">
                                                    <%# GetOrderStatus(DataBinder.Eval(Container.DataItem, "paytype").ToString(), DataBinder.Eval(Container.DataItem, "ordersstatus").ToString())%>
                                                </td>   
											    <td width="10%">
                                                    <%# GetStatus(DataBinder.Eval(Container.DataItem, "Status").ToString())%>
											    </td>
                                                <td width="10%">
                                                    <%# GetViewOrderLink(DataBinder.Eval(Container.DataItem, "OrderID").ToString())%>
											    </td>
										    </tr>
									    </table>
								    </ItemTemplate>
    <%--								<FooterTemplate>								
                                        <ItemTemplate>													
									        <table cellpadding="3" cellspacing="0" width="100%">
										        <tr>
                                                    <td colspan=3 align=right>
                                                        总计
											        </td>
											        <td width="10%">
											        <%=dt1.Rows.Count >0 ? dt1.Rows[0]["Amount"] : 0%>
                                                    </td>
                                                    <td width="10%">
											        <%=dt1.Rows.Count >0 ? dt1.Rows[0]["TuiKuan"].ToString() : "0"%>
                                                    </td>										
                                                    <td width="10%">
											        </td>
                                                    <td width="10%">
											        </td>   
											        <td width="10%">
											        </td>
                                                    <td width="10%">
											        </td>
		                                            <td width="10%">
											        </td>
										        </tr>
									        </table>
								        </ItemTemplate>								
								    </FooterTemplate>--%>
							    </asp:DataList>
				                <asp:panel id="plPage" visible="true" runat="server">
				                <!-- 翻页开始--> 
				                <form id="Form1" runat=server>
				                <div class="page clear">
					                <div class="fpage1">
                                        <asp:Label ID="lblPagerInfo" runat="server"></asp:Label>

                                    <asp:textbox id="gopage"  runat="server" class="gopage" size="1" />
                                    <asp:button id="go" runat="server" text="Go" class="go" onclick="go_Click" />
                                    </div>
                                    <div class="fpage2">
                                        <span class="prepage"></span>
                                        <asp:Label ID="lbPage" runat="server"></asp:Label>
                                        <span class="nextpage"></span>
                                    </div>                                
				                </div>
                                </form>
				                <!-- 翻页结束-->
				                </asp:panel>
				                <asp:panel id="plNoOrder" visible="false" runat="server">
					                <div style="margin:20px;">
						                <h3>抱歉，没有找到符合条件的订单！</h3>
					                </div>
				                </asp:panel>
						    </div>
					    </div>
					</div>
			    </div>
			</div>
		<uc1:Helper id="Helper" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer" runat="server"></uc1:Footer>

	</body>
</html>