<%@ Page language="c#" Inherits="WebApplication2.Admin.WebFinanceLog" CodeFile="WebFinanceLog.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>AdvFinanceLog</title>
		<LINK title="win2k-cold-1" media="all" href="calendar-win2k-cold-1.css" type="text/css"
			rel="stylesheet">
		<script src="js/calendar.js" type="text/javascript"></script>
		<script src="js/calendar-zh.js" type="text/javascript"></script>
		<script src="js/calendar-setup.js" type="text/javascript"></script>
		<script language="javascript" src="changedate.js"></script>
		<LINK href="adminstyle.css" type="text/css" rel="stylesheet">
		<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">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体">
				<TABLE class="table_1" id="Table1" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px"
					cellSpacing="1" cellPadding="1" width="98%" border="0">
					<TR>
						<TD style="COLOR: white; HEIGHT: 25px; BACKGROUND-COLOR: #66cc00" align="center" bgColor="#dddddd">广告财务日志</TD>
					</TR>
					<TR>
						<TD>用户:
							<asp:textbox id="TextBox1" runat="server" Width="80px"></asp:textbox>&nbsp;类别:
							<asp:dropdownlist id="DropDownList1" runat="server">
								<asp:ListItem Value="is not null">=选择=</asp:ListItem>
								<asp:ListItem Value="='1'">结算</asp:ListItem>
								<asp:ListItem Value="='2'">付款</asp:ListItem>
								<asp:ListItem Value="='3'">扣款</asp:ListItem>
								<asp:ListItem Value="='4'">其它</asp:ListItem>
							</asp:dropdownlist>&nbsp;日期:<INPUT id="TextBox2" style="HEIGHT: 22px" readOnly type="text" size="10" name="Text1" runat="server"><input onclick="return showCalendar('TextBox2', 'y-m-d');" type="reset" value="选择">
							→<INPUT id="TextBox3" readOnly type="text" size="10" name="Text2" runat="server"><input onclick="return showCalendar('TextBox3', 'y-m-d');" type="reset" value="选择">
							<asp:button id="Button1" runat="server" Text="查询" onclick="Button1_Click"></asp:button></TD>
					</TR>
				</TABLE>
				<TABLE style="Z-INDEX: 102; LEFT: 8px; POSITION: absolute; TOP: 72px" cellSpacing="0" width="98%"
					border="0">
					<TR>
						<TD align="center" colSpan="6"><asp:datagrid id="DataGrid1" runat="server" Width="100%" AutoGenerateColumns="False">
								<AlternatingItemStyle BackColor="#FAFFF7"></AlternatingItemStyle>
								<ItemStyle HorizontalAlign="Center" Height="25px" BorderWidth="1px" BorderStyle="None" BackColor="#FAFFF7"></ItemStyle>
								<HeaderStyle Font-Bold="True" HorizontalAlign="Center" Height="30px" BorderWidth="0px" BackColor="#66CC00"></HeaderStyle>
								<FooterStyle HorizontalAlign="Center" BackColor="#999999"></FooterStyle>
								<Columns>
									<asp:BoundColumn DataField="id" HeaderText="ID"></asp:BoundColumn>
									<asp:TemplateColumn HeaderText="类型">
										<ItemTemplate>
											<%#Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AffairsType"))==1?"结算":Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AffairsType"))==2?"付款":Convert.ToInt32(DataBinder.Eval(Container.DataItem,"AffairsType"))==3?"扣款":"其它"%>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:BoundColumn DataField="WebUserName" HeaderText="用户"></asp:BoundColumn>
									<asp:BoundColumn DataField="AdvListAdvTitle" HeaderText="广告"></asp:BoundColumn>
									<asp:BoundColumn DataField="ClosebookMoney" HeaderText="结算金额"></asp:BoundColumn>
									<asp:BoundColumn DataField="RewardMoney" HeaderText="增/扣款"></asp:BoundColumn>
									<asp:BoundColumn DataField="PayTotalMoney" HeaderText="应支金额"></asp:BoundColumn>
									<asp:BoundColumn DataField="ProcedureMoney" HeaderText="手续费"></asp:BoundColumn>
									<asp:BoundColumn DataField="TaxMoney" HeaderText="扣税"></asp:BoundColumn>
									<asp:BoundColumn DataField="PayMoney" HeaderText="实付金额"></asp:BoundColumn>
									<asp:BoundColumn DataField="Surplusamount" HeaderText="账户余额"></asp:BoundColumn>
									<asp:BoundColumn DataField="AddTime" HeaderText="时间"></asp:BoundColumn>
									<asp:TemplateColumn HeaderText="备注">
										<ItemTemplate>
											<a href="#" title='<%#DataBinder.Eval(Container.DataItem,"Remarks")%>'>详细..</a>
										</ItemTemplate>
									</asp:TemplateColumn>
								</Columns>
							</asp:datagrid></TD>
					</TR>
					<TR>
						<TD align="center" colSpan="6"><asp:label id="Label3" runat="server" ForeColor="Red">没有你要的数据！！</asp:label></TD>
					</TR>
					<TR class="td2">
						<TD align="center" colSpan="6"><asp:linkbutton id="LinkButton1" runat="server" CommandArgument="frist">首页</asp:linkbutton>&nbsp;| 
							&nbsp;
							<asp:linkbutton id="LinkButton2" runat="server" CommandArgument="pre">上一页</asp:linkbutton>&nbsp;|&nbsp;
							<asp:linkbutton id="LinkButton3" runat="server" CommandArgument="next">下一页</asp:linkbutton>&nbsp;|&nbsp;
							<asp:linkbutton id="LinkButton4" runat="server" CommandArgument="end">尾页</asp:linkbutton>&nbsp;
							<asp:label id="Label1" runat="server">0</asp:label>/
							<asp:label id="Label2" runat="server">0</asp:label>&nbsp;记录数共
							<asp:label id="Label4" runat="server" ForeColor="Red">0</asp:label>条
							<asp:dropdownlist id="DropDownList3" runat="server" AutoPostBack="True"></asp:dropdownlist></TD>
					</TR>
				</TABLE>
			</FONT>
		</form>
	</body>
</HTML>
