<%@ page language="C#" autoeventwireup="true" inherits="Admin_AdvancePaymentApplyLog_List, ShopNum1Deploy" %>

<%@ Register assembly="ShopNum1.Control" namespace="ShopNum1.Control" tagprefix="cc1" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ShopNum1" %>

<%@ Register src="UserControl/MessageShow.ascx" tagname="MessageShow" tagprefix="ShopNum1" %>

<!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 id="Head1" runat="server">
    <title>Untitled Page</title>
    <link type="text/css" rel="Stylesheet" href="css/index.css" /> 
         <link href="../css/Num1GridView.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>
</head>
<body style="padding:0; background-image: url(images/Bg_right.gif); background-repeat:repeat;font-size:12px">
    <form id="form1" runat="server">
    
   
       <%-- <asp:ScriptManager ID="ScriptManager1" runat="server" />--%>
       <%--  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>--%>
               
            <div class="navigator">【 充值和提现申请 】</div>
            <div class="query">
            <table style="width:100%">
                <tr>
                    <td  align="right">
                        <asp:Label ID="LabelSMemLoginID" runat="server" Text="会员名："></asp:Label>
                    </td>
                    <td >
                        <asp:TextBox ID="TextBoxSMemLoginID" runat="server" CssClass="input1"></asp:TextBox>
                    </td>
                    <td  align="right">
                        <asp:Label ID="LabelSOperateStatus" runat="server" Text="提现状态："></asp:Label>
                    </td>
                    <td >
                        <asp:DropDownList ID="DropdownListSOperateStatus" runat="server" CssClass="select1">
                            <asp:ListItem Value="-1" Selected="True">-全部-</asp:ListItem>
                            <asp:ListItem Value="0">未确认</asp:ListItem>
                            <asp:ListItem Value="1">已完成</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td style="width: 42px; height: 25px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="LabelSDate" runat="server" Text="操作日期："></asp:Label>
                    </td>
                    <td >
                        <asp:TextBox ID="TextBoxSDate1" runat="server" CssClass="input1"></asp:TextBox>
                          <asp:RegularExpressionValidator ID="RegularExpressionValidatorStartDate" 
                            runat="server" ControlToValidate="TextBoxSDate1" Display="Dynamic" 
                            ErrorMessage="时间格式不正确" 
                            
                            ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                         <ShopNum1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" 
        EnableScriptGlobalization="True" EnableScriptLocalization="True">
    </ShopNum1:ToolkitScriptManager>
    <img id="imgCalendarSDate1" alt="" src="../images/Calendar.png" 
        style="width: 16px; height: 18px;" />
        <ShopNum1:CalendarExtender 
        ID="CalendarExtender1" runat="server" TargetControlID="TextBoxSDate1" 
        PopupButtonID="imgCalendarSDate1" CssClass="ajax__calendar">
    </ShopNum1:CalendarExtender>
                        -<asp:TextBox ID="TextBoxSDate2" runat="server"  CssClass="input1"></asp:TextBox>
                          <asp:RegularExpressionValidator ID="RegularExpressionValidatorEndDate" 
                            runat="server" ControlToValidate="TextBoxSDate2" Display="Dynamic" 
                            ErrorMessage="时间格式不正确" 
                            
                            ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
    <img id="imgCalendarSDate2" alt="" src="../images/Calendar.png" 
        style="width: 16px; height: 18px;" />
         <ShopNum1:CalendarExtender 
        ID="CalendarExtender2" runat="server" TargetControlID="TextBoxSDate2" 
        PopupButtonID="imgCalendarSDate2" CssClass="ajax__calendar">
    </ShopNum1:CalendarExtender>
                    </td>
                    <td align="right" >
                        <asp:Label ID="LabelSOperateType" runat="server" Text="操作类型："></asp:Label>
                    </td>
                    <td >
                        <asp:DropDownList ID="DropdownListSOperateType" runat="server" 
                            CssClass="select1">
                            <asp:ListItem Value="-1" Selected="True">-全部-</asp:ListItem>
                            <asp:ListItem Value="0">充值</asp:ListItem>
                            <asp:ListItem Value="1">提现</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td style="width: 42px; height: 25px">
                        <asp:Button ID="ButtonSearch" runat="server" 
                            Text="查询" onclick="ButtonSearch_Click" CssClass="bt2" />
                    </td>
                </tr>
            </table>
        </div>
        <div >
        
            <cc1:Num1GridView ID="Num1GridViewShow" runat="server" 
                AutoGenerateColumns="False" 
                AllowPaging="True" AllowSorting="True" AscendingImageUrl="~/images/SortAsc.gif" 
                DescendingImageUrl="~/images/SortDesc.gif" Width="100%" 
                AddSequenceColumn="False" AllowMultiColumnSorting="False" BorderColor="#CCDDEF" 
                BorderStyle="Solid" BorderWidth="1px" CellPadding="4" Del="False" 
                DeletePromptText="确实要删除指定的记录吗？" Edit="False" FixHeader="False" 
                Font-Size="Small" GridViewSortDirection="Ascending" PagingStyle="None" 
                style="margin-left: 2px;" TableName="" DataSourceID="ObjectDataSourceData">          
<HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="White"></HeaderStyle>

<PagerStyle HorizontalAlign="Left" BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                       <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" 
                            type="checkbox"  />
                    </HeaderTemplate>
                    <ItemTemplate>
<%--                   <input ID="checkboxItem"   onclick="GetItmeValue(this)" type="checkbox" />--%>
                        <input id="checkboxItem"   value='<%# Eval("Guid") %>'  type="checkbox" />
               </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:TemplateField>
                    <asp:BoundField DataField="Guid" HeaderText="Guid" Visible="False" />
                    <asp:BoundField DataField="MemLoginID" HeaderText="会员名" 
                        SortExpression="MemLoginID">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Date" HeaderText="操作日期" 
                        SortExpression="Date" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="操作类型" SortExpression="OperateType">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# ChangeOperateType(DataBinder.Eval(Container, "DataItem(OperateType)","{0}")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="CurrentAdvancePayment" HeaderText="当前预存款" 
                        SortExpression="CurrentAdvancePayment" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="OperateMoney" HeaderText="提现金额" 
                        SortExpression="OperateMoney" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="提现状态" SortExpression="OperateStatus">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# ChangeOperateStatus(DataBinder.Eval(Container, "DataItem(OperateStatus)","{0}")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="会员备注" DataField="Memo" SortExpression="Memo">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="UserMemo" HeaderText="管理员备注" 
                        SortExpression="UserMemo">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                </Columns>
            </cc1:Num1GridView>
            <div class="vote">
        <asp:Button ID="ButtonEdit" runat="server" onclick="ButtonEdit_Click" 
            onclientclick="return EditButton()" Text="到款审核" CssClass="bt3" />
        &nbsp;<asp:Button ID="ButtonDelete" runat="server" Text="删除" 
            onclientclick="return DeleteButton()" 
            onclick="ButtonDelete_Click"  CssClass="bt2"/>
    
        <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" /></div>
    
            <br />
       
    </div>
    <%--                   <input ID="checkboxItem"   onclick="GetItmeValue(this)" type="checkbox" />--%>
        <asp:ObjectDataSource 
            ID="ObjectDataSourceData" runat="server" 
        SelectMethod="Search" TypeName="ShopNum1.BusinessLogic.ShopNum1_AdvancePaymentApplyLog_Action" 
        >
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBoxSMemLoginID" Name="memLoginID" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxSDate1" Name="date1" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxSDate2" Name="date2" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="DropdownListSOperateType" Name="operateType" 
                PropertyName="SelectedValue" Type="Int32" />
            <asp:ControlParameter ControlID="DropdownListSOperateStatus" 
                Name="operateStatus" PropertyName="SelectedValue" Type="Int32" />
            <asp:Parameter Name="IsDeleted" Type="Int32" DefaultValue="0" />
        </SelectParameters>
       
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
        
    <br />
    </form>
</body>
</html>