<%@ Page Language="C#" AutoEventWireup="true" CodeFile="paymoneylog.aspx.cs" Inherits="admin_paymoneylog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel="stylesheet" type="text/css" media="all" href="calendar-win2k-cold-1.css" title="win2k-cold-1">
		<script type="text/javascript" src="js/calendar.js"></script>
		<script type="text/javascript" src="js/calendar-zh.js"></script>
		<script type="text/javascript" src="js/calendar-setup.js"></script>
		
		<LINK href="adminstyle.css" type="text/css" rel="stylesheet">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    
        <table class="table_1" width="98%">
            <tr>
                <td colspan="6" style="color: white; height: 25px; background-color: #66cc00">
                    支付日志</td>
            </tr>
            <tr>
                <td style="width: 39px">
                    操作人</td>
                <td style="width: 97px">
                    <asp:TextBox ID="TextBox1" runat="server" Width="80px"></asp:TextBox></td>
                <td style="width: 28px">
                    日期</td>
                <td style="width: 182px"><input type="text" name="date" value="" id="date"  runat="server" style="width: 119px"><INPUT onclick="return showCalendar('date', 'y-m-d');" type="reset" value="选择" id="Reset1">
                </td>
                <td align="left" style="width: 58px">
                    事件类型</td>
                <td align="left" style="width: 232px">
                    <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:DropDownList>
                    <asp:Button ID="Button1" runat="server" Text="查询" OnClick="Button1_Click" /></td>
            </tr>
        </table>
         <asp:DataGrid ID=DataGrid1 runat=server AutoGenerateColumns=false Width="98%" CssClass="table_1">
         <HeaderStyle BackColor="#66CC00" Height="30px" HorizontalAlign=Center Font-Bold=True/>
         <ItemStyle Height=25px />
         <Columns>
         <asp:BoundColumn HeaderText="操作人" DataField="SystemUser"></asp:BoundColumn>
         <asp:TemplateColumn HeaderText="事件">
         <ItemTemplate><%#DataBinder.Eval(Container.DataItem, "Event").ToString()=="1"? "结算":"付款"%></ItemTemplate>
         </asp:TemplateColumn>
       
          <asp:TemplateColumn HeaderText="广告">
          <ItemTemplate>
          <%# GetTitle(DataBinder.Eval(Container.DataItem, "Advlistid").ToString(), "AdvList", "AdvTitle")%>
          </ItemTemplate>
          </asp:TemplateColumn>
             <asp:BoundColumn HeaderText="金额" DataField="Money"></asp:BoundColumn>
             <asp:TemplateColumn HeaderText="保存文件">
             <ItemTemplate>
               <a href="datasave/<%#DataBinder.Eval(Container.DataItem, "FileName")%>"><%#DataBinder.Eval(Container.DataItem, "FileName")%></a>
             </ItemTemplate>
             </asp:TemplateColumn>
              <asp:BoundColumn HeaderText="支付日期" DataField="AddTime"></asp:BoundColumn>
         </Columns>
         </asp:DataGrid><asp:Label ID="Label1" runat="server" ForeColor="Red" Text="没有相关数据！" Visible="False"></asp:Label>&nbsp;
    <br/><asp:linkbutton id="LinkButton1" runat="server" CommandArgument="frist" onclick="gopage" Enabled="False">首页</asp:linkbutton>&nbsp;&nbsp;|&nbsp;<asp:linkbutton id="LinkButton2" runat="server" CommandArgument="pre" onclick="gopage" Enabled="False">上一页</asp:linkbutton>&nbsp;|&nbsp;<asp:linkbutton id="LinkButton3" runat="server" CommandArgument="next" onclick="gopage" Enabled="False">下一页</asp:linkbutton>&nbsp;&nbsp;|&nbsp;
			&nbsp;<asp:linkbutton id="LinkButton4" runat="server" CommandArgument="end" onclick="gopage" Enabled="False">尾页</asp:linkbutton>&nbsp;<asp:label id="Label2" runat="server">0</asp:label>/
			<asp:label id="Label3" runat="server">0</asp:label>&nbsp; 记录数共
			<asp:Label id="Label4" runat="server" ForeColor="Red">0</asp:Label>&nbsp;条
			<asp:DropDownList id="DropDownList2" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList2_SelectedIndexChanged"></asp:DropDownList>
   
       
    </form>
</body>
</html>
