<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Report_UserFinance.aspx.cs" Inherits="DreamerShop.Admin.Report_UserFinance" %>
<%@ Register TagPrefix="uc1" TagName="LanguagesDeal" Src="LanguagesDeal.ascx" %>
  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>
			<%=myLanguagesDeal.GetMyString("UserFinanceTextReport")%>
			－<%=mConfigInf.strWebTitle%>
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<META content="<%=mConfigInf.strDescription%>" name=description>
		<META content="<%=mConfigInf.strKeywords%>" name=keywords>
		<LINK href="../StyleSheet1.css" rel="stylesheet">
		 <SCRIPT language="javascript" id="clientEventHandlersJS">
		<!--

		     function popUpWin(URLStr, WinName, left, top, width, height) {
		         var popUpWin = 0;
		         if (popUpWin) {

		             if (!popUpWin.closed) popUpWin.close();

		         }

		         popUpWin = open(URLStr, WinName, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',screenX=' + left + ',screenY=' + top + '');
		     }
		//-->
		</SCRIPT>
		
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<asp:label id="lbEditID" runat="server" Visible="False"></asp:label><uc1:languagesdeal id="myLanguagesDeal" runat="server" Visible="False"></uc1:languagesdeal>
			<table cellSpacing="0" cellPadding="0" width="97%" align="center" border="0">
				<TBODY>
					<tr>
						<td vAlign="top" height="262">
							<table cellSpacing="0" cellPadding="0" width="100%" border="0">
								<TBODY>
									<tr>
										<td vAlign="top" bgColor="#ffffff" height="300"><FONT face="宋体"><asp:panel id="Pan1" runat="server">
													<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
														<TR>
															<TD class="p12black"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("UserFinanceTextReport")%></SPAN>&nbsp;</TD>
															<TD></TD>
															<TD></TD>
														</TR>
													</TABLE>
													<HR noShade SIZE="1">
													<TABLE align="center" border="0">
														<TR>
															<TD>
																<TABLE cellSpacing="1" cellPadding="1" border="0">
																	<TR>
																		<td><asp:TextBox id="txtFindKey" runat="server" Width="80px" CssClass="wenbenkuang"></asp:TextBox></td>
																		<TD style="display:none">
																			<asp:RadioButtonList id="rblFindOrderMode" runat="server" RepeatDirection="Horizontal">
																				<asp:ListItem Value="0" Selected="True">降序</asp:ListItem>
																				<asp:ListItem Value="1">升序</asp:ListItem>
																			</asp:RadioButtonList></TD>
																		<TD>&nbsp;<%=myLanguagesDeal.GetMyString("TextStart")%><asp:TextBox id="txtStartDate" runat="server" CssClass="wenbenkuang" Width="65px" onClick="WdatePicker()"></asp:TextBox><asp:RegularExpressionValidator id="revStartDate" runat="server" ErrorMessage="请输入指定格式时间" Display="Dynamic"
														ControlToValidate="txtStartDate" ValidationExpression="[0-9]{4}-[0-9]{2}-[0-9]{2}" ForeColor="#FF0000"></asp:RegularExpressionValidator></TD>
																		<TD>&nbsp;<%=myLanguagesDeal.GetMyString("TextEnd")%><asp:TextBox id="txtEndDate" runat="server" CssClass="wenbenkuang" Width="65px"  onClick="WdatePicker()"></asp:TextBox><asp:RegularExpressionValidator id="revEndDate" runat="server" ErrorMessage="请输入指定格式时间" Display="Dynamic"
														ControlToValidate="txtEndDate" ValidationExpression="[0-9]{4}-[0-9]{2}-[0-9]{2}" ForeColor="#FF0000"></asp:RegularExpressionValidator></TD>
																		<TD style="display:none">&nbsp;<asp:checkbox id="ckOnlyFun" runat="server" Text="仅存款相关资金" Checked="True"></asp:checkbox></TD>
																		<TD>
																			<asp:Button id="btFind" runat="server" CssClass="go-wenbenkuang" Text="查找" onclick="btFind_Click"></asp:Button></TD>
																		<TD></TD>
																	</TR>
																</TABLE>
															</TD>
														</TR>
													</TABLE>
													<asp:datagrid id="dgList" runat="server" CssClass="table-shangxia" Width="100%" AllowPaging="True"
														AutoGenerateColumns="False" DataKeyField="UserID" onitemcommand="dgList_ItemCommand" 
                                                            onitemdatabound="dgList_ItemDataBound">
														<HeaderStyle HorizontalAlign="Center" BackColor="#F1F1F1"></HeaderStyle>
														<Columns>
															<asp:BoundColumn DataField="UserName" HeaderText="MemberTextUserName">
																<HeaderStyle></HeaderStyle>
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
															</asp:BoundColumn>
															<asp:BoundColumn DataField="PreMoney" HeaderText="UserFinanceTextPreMoney">
																<HeaderStyle></HeaderStyle>
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
															</asp:BoundColumn>
															<asp:BoundColumn DataField="PaySum" HeaderText="UserFinanceTextCurrentPaySum">
																<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
															</asp:BoundColumn>
															<asp:BoundColumn DataField="OFSum" HeaderText="UserFinanceTextCurrentOFSum">
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
															</asp:BoundColumn>
															<asp:BoundColumn DataField="BalanceMoney" HeaderText="UserFinanceTextBalanceMoney">
																<HeaderStyle></HeaderStyle>
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
															</asp:BoundColumn>
															<asp:TemplateColumn HeaderText="TextOperation">
																<HeaderStyle></HeaderStyle>
																<ItemStyle HorizontalAlign="Center"></ItemStyle>
																<ItemTemplate>
																	<asp:Button id="btViewInf" Text="查看" CssClass="go-wenbenkuang" CommandName="GetDetails" Runat="server"></asp:Button>
																</ItemTemplate>
															</asp:TemplateColumn>
														</Columns>
														<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
													</asp:datagrid>
													<TABLE class="table-zuoyou" id="Table1" width="100%" align="center" border="0">
														<TR align="center" bgColor="#f1f1f1">
															<TD>
																<asp:button id="btFirst" runat="server" CssClass="go-wenbenkuang" Text=" 首 页" 
                                                                    BorderStyle="Groove" onclick="btFirst_Click"  ></asp:button>&nbsp;
																<asp:button id="btPre" runat="server" CssClass="go-wenbenkuang" Text="上一页" 
                                                                    BorderStyle="Groove" onclick="btPre_Click"  ></asp:button>&nbsp;
																<asp:button id="btNext" runat="server" CssClass="go-wenbenkuang" Text="下一页" 
                                                                    BorderStyle="Groove" onclick="btNext_Click"  ></asp:button>&nbsp;
																<asp:button id="btLast" runat="server" CssClass="go-wenbenkuang" Text=" 尾 页" 
                                                                    BorderStyle="Groove" onclick="btLast_Click"  ></asp:button>&nbsp;
																<asp:label id="lbPage" runat="server"></asp:label>&nbsp;
																<%=myLanguagesDeal.GetMyString("TextGotoPage")%>
																<asp:textbox id="txtPageNum" runat="server" CssClass="wenbenkuang" Width="30px" MaxLength="3"></asp:textbox>
																<asp:CompareValidator id="cpvPageNum" runat="server" Operator="DataTypeCheck" Type="Integer" ControlToValidate="txtPageNum"
																	Display="Dynamic" ErrorMessage="输入数字" ForeColor="#FF0000"></asp:CompareValidator><%=myLanguagesDeal.GetMyString("TextPages")%>
																<asp:button id="btGo" runat="server" CssClass="go-wenbenkuang" Text="Go" onclick="btGo_Click"></asp:button></TD>
														</TR>
													</TABLE>
													 <TABLE width="100%" align="center" border="0">
	                                                    <TR align="center">
		                                                    <TD>
			                                                    <asp:LinkButton id="lkbReportToExcel" runat="server" 
                                                                    ForeColor="Red" onclick="lkbReportToExcel_Click"  Text="导出到Excel" ></asp:LinkButton></TD>
	                                                    </TR>
                                                    </TABLE>
												</asp:panel></FONT><asp:panel id="Pan2" runat="server" Visible="False">
												<TABLE class="p9black" cellSpacing="0" cellPadding="0" width="100%" border="0">
													<TR>
														<TD>
															<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
																<TR>
																	<TD class="p12black" align="left"><SPAN class="p9orange"><IMG height="11" src="IMAGES/icon_1.gif" width="12" align="absMiddle">&nbsp;<%=myLanguagesDeal.GetMyString("UserFinanceTextReport")%>--&gt;
																			<asp:Label id="lbMessage" runat="server"></asp:Label></SPAN>&nbsp;</TD>
																	<TD align="right" width="50"><!--BUTTON_BEGIN-->
																		<TABLE>
																			<TR>
																				<TD vAlign="bottom" noWrap>
																					<asp:ImageButton id="ibtReturn" runat="server" CausesValidation="False" ImageUrl="../Images/Admin/fb-cancel.gif" onclick="ibtReturn_Click"></asp:ImageButton><%=myLanguagesDeal.GetMyString("TextReturn")%></TD>
																			</TR>
																		</TABLE> <!--BUTTON_END--></TD>
																</TR>
															</TABLE>
														</TD>
													</TR>
												</TABLE>
												<HR noShade SIZE="1">
												 
												<asp:datagrid id="dgListUser" runat="server" Width="100%" AllowPaging="True" AutoGenerateColumns="False"
													DataKeyField="OFID" PageSize="15" BackColor="#FFFFFF" BorderColor="#CCCCCC" 
                                                        onitemdatabound="dgListUser_ItemDataBound">
													<HeaderStyle HorizontalAlign="Center" BackColor="#f1f1f1" Height="25"></HeaderStyle>
													<ItemStyle Height="20"></ItemStyle>
													<Columns>
														<asp:BoundColumn DataField="OFID" HeaderText="TextOFNumber">
													        <HeaderStyle></HeaderStyle>
													        <ItemStyle HorizontalAlign="Center"></ItemStyle>
												        </asp:BoundColumn>
												        <asp:BoundColumn DataField="OFMoneySum" HeaderText="OrderFormMoney">
													        <HeaderStyle></HeaderStyle>
													        <ItemStyle HorizontalAlign="Center" ></ItemStyle>
												        </asp:BoundColumn>
												        <asp:BoundColumn DataField="OFUserName" HeaderText="OrderFormUser">
													        <HeaderStyle></HeaderStyle>
													        <ItemStyle HorizontalAlign="Center"></ItemStyle>
												        </asp:BoundColumn>
												        <asp:BoundColumn DataField="OFInUserName" HeaderText="OrderFormRecevierName">
													        <HeaderStyle></HeaderStyle>
													        <ItemStyle HorizontalAlign="Center" ></ItemStyle>
												        </asp:BoundColumn>
												        <asp:BoundColumn DataField="OFTime" HeaderText="OrderFormTime">
													        <HeaderStyle></HeaderStyle>
													        <ItemStyle HorizontalAlign="Center" ></ItemStyle>
												        </asp:BoundColumn>
												        <asp:BoundColumn DataField="OFPayMode" HeaderText="TextPayMode">
													        <HeaderStyle></HeaderStyle>
													        <ItemStyle HorizontalAlign="Center" ></ItemStyle>
												        </asp:BoundColumn>
												        <asp:BoundColumn DataField="OFSendMode" HeaderText="TextSendMode">
													        <HeaderStyle></HeaderStyle>
													        <ItemStyle HorizontalAlign="Center"></ItemStyle>
												        </asp:BoundColumn>
												        <asp:BoundColumn DataField="OFState" HeaderText="OrderFormState">
													        <HeaderStyle></HeaderStyle>
													        <ItemStyle HorizontalAlign="Center" ></ItemStyle>
												        </asp:BoundColumn>
													</Columns>
													<PagerStyle Visible="False" NextPageText="下一页" PrevPageText="上一页" HorizontalAlign="Right"></PagerStyle>
												</asp:datagrid>
												<TABLE class="table-notop" width="100%" align="center" border="0">
													<TR align="center">
														<TD>
															<asp:linkbutton id="btUserFirst" runat="server" CausesValidation="False" 
                                                                onclick="btUserFirst_Click" >首页</asp:linkbutton>&nbsp;
															<asp:linkbutton id="btUserPre" runat="server" CausesValidation="False" 
                                                                onclick="btUserPre_Click">上一页</asp:linkbutton>&nbsp;
															<asp:linkbutton id="btUserNext" runat="server" CausesValidation="False" 
                                                                onclick="btUserNext_Click">下一页</asp:linkbutton>&nbsp;
															<asp:linkbutton id="btUserLast" runat="server" CausesValidation="False" 
                                                                onclick="btUserLast_Click">尾页</asp:linkbutton>&nbsp;&nbsp;
															<asp:label id="lbUserPage" runat="server"></asp:label>&nbsp;
															<%=myLanguagesDeal.GetMyString("TextGotoPage")%>
															<asp:textbox id="txtUserPageNum" runat="server" CssClass="wenbenkuang" Width="30px" MaxLength="3"></asp:textbox>
															<asp:CompareValidator id="CpvUserPageNum" runat="server" Operator="DataTypeCheck" Type="Integer" ControlToValidate="txtUserPageNum"
																Display="Dynamic" ErrorMessage="输入数字" ForeColor="#FF0000"></asp:CompareValidator><%=myLanguagesDeal.GetMyString("TextPages")%>
															<asp:button id="btUserGo" runat="server" CssClass="go-wenbenkuang" Text="Go" onclick="btUserGo_Click"></asp:button></TD>
													</TR>
												</TABLE>
											</asp:panel>
										</td>
									</tr>
								</TBODY>
							</table>
						</td>
					</tr>
				</TBODY>
			</table>
		</form>
	</body>
</HTML>
<script language="javascript" type="text/javascript" src="UserControl/DatePicker/WdatePicker.js" ></script>