<%@ Page language="c#" Inherits="WebApplication2.Admin.AdvPayMoney" CodeFile="AdvPayMoney.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>AdvFinanceLog</title>
		<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">
		<script language="javascript">
		</script>
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体">
				<TABLE id="Table1" cellSpacing="1"
					cellPadding="1" width="98%" border="0" class="table_1">
					<TR>
						<TD align="center" style="color: white; height: 25px; background-color: #66cc00">广告支付</TD>
					</TR>
					<TR>
						<TD style="width: 482px">用户名
							<asp:textbox id="TextBox1" runat="server" Width="80px"></asp:textbox>&nbsp;金额范围
							<asp:textbox id="Textbox2" runat="server" Width="55px"></asp:textbox>--
							<asp:textbox id="Textbox3" runat="server" Width="50px"></asp:textbox><asp:button id="Button1" runat="server" Text="查询" onclick="Button1_Click"></asp:button></TD>
					</TR>
				</TABLE>
				<asp:datagrid id="DataGrid1" runat="server" Width="98%" AutoGenerateColumns="False"
								DataKeyField="id">
								<ItemStyle HorizontalAlign="Center" BorderStyle="None" BackColor="#FAFFF7" BorderWidth="1px"
									Height="25px"></ItemStyle>
								<AlternatingItemStyle BackColor="#FAFFF7"></AlternatingItemStyle>
								<HeaderStyle Font-Bold="True" HorizontalAlign="Center" BorderWidth="0px" BackColor="#66CC00"
									Height="30px"></HeaderStyle>
								<FooterStyle HorizontalAlign="Center" BackColor="#999999"></FooterStyle>
								<Columns>
									<asp:BoundColumn HeaderText="用户账号" DataField="UserName"></asp:BoundColumn>
									<asp:BoundColumn HeaderText="姓名" DataField="Name"></asp:BoundColumn>
									<asp:BoundColumn HeaderText="银行" DataField="Bank"></asp:BoundColumn>
									<asp:BoundColumn HeaderText="银行账号" DataField="Cardnumber"></asp:BoundColumn>
									<asp:BoundColumn HeaderText="电话" DataField="Tel"></asp:BoundColumn>
									<asp:BoundColumn HeaderText="应付金额" DataField="Money"></asp:BoundColumn>
									<asp:TemplateColumn HeaderText="实付金额">
										<ItemTemplate>
											<%#Math.Round(Convert.ToDouble(DataBinder.Eval(Container.DataItem,"Money"))-((Convert.ToDouble(DataBinder.Eval(Container.DataItem,"Money"))*0.01)+Convert.ToDouble(DataBinder.Eval(Container.DataItem,"Money"))*0.05),2)%>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn HeaderText="余额">
										<ItemTemplate>
											<%#"0"%>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:TemplateColumn>
										<ItemTemplate>
											<%#"√"%>
										</ItemTemplate>
									</asp:TemplateColumn>
									<asp:BoundColumn HeaderText="流水号"></asp:BoundColumn>
                                    <asp:TemplateColumn HeaderText="选择">
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chk" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateColumn>
								</Columns>
							</asp:datagrid>
                <table width="98%">
                    <tr>
                        <td align="right">
                            <asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Text="取消" /><asp:Button
                                ID="Button2" runat="server" OnClick="Button2_Click" Text="反选" /><asp:Button ID="Button4"
                                    runat="server" OnClick="Button4_Click" Text="全选" /></td>
                    </tr>
                </table>
                <br />
				<asp:label id="Label3" runat="server" ForeColor="Red">没有你要的数据！或用户金额不足支付！</asp:label><br />
				<asp:RangeValidator id="RangeValidator1" style="Z-INDEX: 102; LEFT: 72px; POSITION: absolute; TOP: 376px"
					runat="server" Type="Double" MinimumValue="0.0" MaximumValue="100000.0" Display="Dynamic" ControlToValidate="Textbox2"></asp:RangeValidator>
				<asp:RangeValidator id="RangeValidator2" style="Z-INDEX: 103; LEFT: 200px; POSITION: absolute; TOP: 376px"
					runat="server" Type="Double" MinimumValue="0.0" MaximumValue="100000.0" Display="Dynamic" ControlToValidate="Textbox3"></asp:RangeValidator>
				<asp:ValidationSummary id="ValidationSummary1" style="Z-INDEX: 104; LEFT: 23px; POSITION: absolute; TOP: 373px"
					runat="server" HeaderText="金额必须为数值！0.0-100000.0之间！" DisplayMode="SingleParagraph" ShowMessageBox="True"
					ShowSummary="False"></asp:ValidationSummary>
			<asp:linkbutton id="LinkButton1" runat="server" CommandArgument="frist" Enabled="False" onclick="gopage">首页</asp:linkbutton>&nbsp;| 
											&nbsp;<asp:linkbutton id="LinkButton2" runat="server" CommandArgument="pre" Enabled="False" onclick="gopage">上一页</asp:linkbutton>&nbsp;| 
											&nbsp;<asp:linkbutton id="LinkButton3" runat="server" CommandArgument="next" Enabled="False" onclick="gopage">下一页</asp:linkbutton>&nbsp;| 
											&nbsp;<asp:linkbutton id="LinkButton4" runat="server" CommandArgument="end" Enabled="False" onclick="gopage">尾页</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="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"></asp:DropDownList><br />
                <br />
							</FONT>
							<asp:Button id="Button3" runat="server" Text="支付" onclick="Button3_Click"></asp:Button>
		</form>
	</body>
</HTML>
