<%@ Page language="c#" Codebehind="FinanceSummarySearch.aspx.cs" AutoEventWireup="true" Inherits="XpShop.Supplier.FinanceSummarySearch" %>
<%@ 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/OrderPayList.js"></script>
        <script type="text/javascript" src="inc/commond.js"></script>
		<script src="inc/ui.datepicker.cn.js" type="text/javascript"></script>
		<link type="text/css" rel="stylesheet" href="style/ui.datepicker.css" />
	</head>
	<body>

			<uc1:Header id="Header1" runat="server"></uc1:Header>
			 <!--位置导航开始-->
			 <div class="path"><a href="<%=webSite %>supplier/default.<%=config.html%>">商家桌面</a> > 资金管理 > 历史结款查询</div>
			<!--位置导航结束-->
			<div class="xp-w clear">
				<div class="content-left">
					<!--会员中心导航开始-->
					<uc1:SupplierMenu id="SupplierMenu1" runat="server"></uc1:SupplierMenu>
					<!--会员中心导航结束-->
				</div>
				<div class="content-middle">	
					<div class="rframe">
					    <div class="tm">历史结款查询</div>
					    <div class="mm clear">
					        <form id="Form1" runat="server" >
                                <table>
                                     <tr>
                                      <td>结款状态：</td>
                                       <td align=left>
                                            <asp:DropDownList ID="ddlStatus" runat=server>
                                	            <asp:ListItem Value="9999">全部</asp:ListItem>
                                                <asp:ListItem Value=3>结款中</asp:ListItem>
                                                <asp:ListItem Value=4>结款完成</asp:ListItem>
                                            </asp:DropDownList>
                                        </td>
	                                    <td>结款期间：</td>
                                       <td align=left>
                                            <asp:DropDownList ID="ddlPeriod" runat=server>
                                            </asp:DropDownList>
                                        </td>
                                        <td>订单编号：</td>
                                       <td align=left>
	                                    <asp:TextBox ID="txtOrderNo" runat="server" ></asp:TextBox>
	                                    </td>
                                    </tr>
                            </table>
                            <hr class="itemhr" />
                            <div style="float:right ;padding:5px 0px">
                            <input type=hidden  id=hidePage value=""/>
                            <asp:Button  id="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" ></asp:Button>&nbsp;&nbsp;
                            <asp:Button  id="btnReset" runat="server" Text="重置" OnClick="btnReset_Click" ></asp:Button>&nbsp;&nbsp;
                            </div>
                            <div style="clear:right"></div>

                            
    <%--                       <hr class="itemhr" />--%>

						    <div class="pro_hlist">
							    <asp:DataList id="dlFinanceSummary" CellPadding="4" RepeatColumns="1" 
                                    RepeatDirection="Horizontal" Width="100%" runat="server" ForeColor="#333333" BorderWidth="1" 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>
										        </tr>
									        </table>
								        </ItemTemplate>								
								    </HeaderTemplate>
								    <ItemTemplate>													
									    <table cellpadding="3" cellspacing="0" width="100%">
										    <tr>
                                                <td width="15%" align="right">
                                                    <%# CreateIssue(DataBinder.Eval(Container.DataItem, "StartTime", "{0:f}"),DataBinder.Eval(Container.DataItem, "endTime", "{0:f}"))%>
											    </td>
                                                <td width="15%">
                                                    <%#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%">
                                                    <%# GetStatus(int.Parse(DataBinder.Eval(Container.DataItem, "Status").ToString()))%>
											    </td>
                                                <td width="10%">
                                                    <%# CreateLink(DataBinder.Eval(Container.DataItem, "Issue", "{0:f}"))%>                           
											    </td>
										    </tr>
									    </table>
								    </ItemTemplate>
							    </asp:DataList>
				                <asp:panel id="plPage" visible="true" 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>
				                <!-- 翻页结束-->
				                </asp:panel>
				                <asp:panel id="plNoProduct" visible="false" runat="server">
					                <div style="margin:20px;">
						                <h3>抱歉，没有找到符合条件的财务汇总！</h3>
					                </div>
				                </asp:panel>
						    </div>
				        </form>
					    </div>
					</div>
						
			    </div>
			</div>

		<uc1:Helper id="Helper" runat="server"></uc1:Helper>
		<uc1:Footer id="Footer" runat="server"></uc1:Footer>
	</body>
</html>