<%@ page language="C#" autoeventwireup="true" inherits="Admin_FreezeAdvancePaymentLog_List, GroupTGWeb_deploy" %>

<%@ Register assembly="AjaxControlToolkit" 

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

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

<!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>冻结预存款</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;">
    <form id="form1" runat="server">
    
 
     <ShopNum1:ToolkitScriptManager 

ID="ToolkitScriptManager1" runat="server"  

EnableScriptGlobalization="True" 

EnableScriptLocalization="True"/>
                
     <div class="navigator">【 冻结预存款 】</div>
     <div class="query">
            <table style="width:100%">
                <tr>
                    <td width="20%" align="right">
                        <asp:Label ID="LabelSDate" runat="server" Text="冻结日期："></asp:Label>
                    </td>
                    <td >
                        <asp:TextBox ID="TextBoxSDate1" runat="server"></asp:TextBox>
                           <asp:RegularExpressionValidator ID="RegularExpressionValidatorSDate1" 
                            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>
                           <img id="imgDate1" alt="" 

src="images/Calendar.png" style="width: 16px;
                                    height: 18px;" 

align="absmiddle" />
                                    

<ShopNum1:CalendarExtender    ID="CalendarExtender3" 

runat="server" TargetControlID="TextBoxSDate1" 

PopupButtonID="imgDate1" 

CssClass="ajax__calendar"></ShopNum1:CalendarExtender>
                        -<asp:TextBox ID="TextBoxSDate2" runat="server"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorSDate2" 
                            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="imgDate2" alt="" 

src="images/Calendar.png" style="width: 16px;
                                    height: 18px;" 

align="absmiddle" />
                                    

<ShopNum1:CalendarExtender    ID="CalendarExtender1" 

runat="server" TargetControlID="TextBoxSDate2" 

PopupButtonID="imgDate2" 

CssClass="ajax__calendar"></ShopNum1:CalendarExtender></td>
                    </td>
                    <td align="right">
                        <asp:Label ID="LabelSOperateType" runat="server" Text="冻结类型："></asp:Label>
                    </td>
                    <td >
                        <asp:DropDownList ID="DropdownListSOperateType" runat="server" 
                            AutoPostBack="True" CssClass="select1">
                            <asp:ListItem Value="-1" Selected="True">-全部-</asp:ListItem>
                            <asp:ListItem Value="1">冻结</asp:ListItem>
                            <asp:ListItem Value="0">解冻</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td style="width: 42px; height: 25px">
                        <asp:Button ID="ButtonSearch" runat="server" CausesValidation="False" 
                            Text="" onclick="ButtonSearch_Click" CssClass="bt1" />
                    </td>
                </tr>
            </table></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="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:BoundField HeaderText="冻结|解冻后金额" DataField="LastOperateMoney" 
                        SortExpression="LastOperateMoney">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="备注" DataField="Memo" SortExpression="Memo">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                </Columns>
            </cc1:Num1GridView>
            <br />
            <br />
  <div style="border:solid 1px #CCDDEF;">
        <table cellpadding="0" cellspacing="0" border="0" style="width:100%">
            <tr>
                <td colspan="2" style="width:100%;background-color:#6699CC;">
                    <div style="color:White;margin:3px;height:30px;line-height:30px">
                        <asp:Label ID="LabelPageTitle" runat="server" Font-Bold="True" Text="冻结解冻预存款"></asp:Label>&nbsp;
                     </div>
                 </td>
            </tr>
            <tr>
                <td width="20%">
                        &nbsp;</td>
                <td >
                        &nbsp;</td>
            </tr>
            <tr>
                <td align="right" >
                        <asp:Label ID="LabelMemLoginID" runat="server" Text="当前会员用户名："></asp:Label>
                    </td>
                <td align="left" >
                        <font class="font1"><asp:Label ID="LabelMemLoginIDValue" runat="server"></asp:Label></font>
                    </td>
            </tr>
            <tr>
                <td align="right" >
                        <asp:Label ID="LabelRealName1" runat="server" Text="当前会员姓名："></asp:Label>
                    </td>
                <td align="left" >
                        <asp:Label ID="LabelRealNameValue" runat="server"></asp:Label>
                    </td>
            </tr>
            <tr>
                <td align="right" >
    
                        <asp:Label ID="LabelCurrentAdvancePayment" runat="server" Text="当前预存款："></asp:Label>
                    </td>
                <td align="left" >
                        <asp:Label ID="LabelCurrentAdvancePaymentValue" runat="server"></asp:Label>
                        </td>
            </tr>
            <tr>
                <td align="right" >
    
                        <asp:Label ID="LabelOperateMoney" runat="server" Text="冻结|解冻的金额："></asp:Label>
                    </td>
                <td align="left" >
                        <asp:DropDownList ID="DropDownListOperateType" runat="server">
                            <asp:ListItem Value="0">冻结</asp:ListItem>
                            <asp:ListItem Value="1">解冻</asp:ListItem>
                        </asp:DropDownList>
                        <asp:TextBox ID="TextBoxOperateMoney" runat="server"></asp:TextBox>
                            <asp:Label ID="Label2" runat="server" Text="*" ForeColor="red"></asp:Label>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidatorOperateMoney" 
                            runat="server" ControlToValidate="TextBoxOperateMoney" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorOperateMoney" 
                            runat="server" ControlToValidate="TextBoxOperateMoney" Display="Dynamic" 
                            ErrorMessage="输入格式不正确" ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                    </td>
            </tr>
            <tr>
                <td align="right" >
    
                        <asp:Label ID="LabelMemo" runat="server" Text="备注："></asp:Label>
                    </td>
                <td align="left" >
                        <asp:TextBox ID="TextBoxMemo" runat="server" Height="60px" TextMode="MultiLine" 
                            Width="440px"></asp:TextBox>
                    </td>
            </tr>
            <tr>
                <td align="right" >
    
                        &nbsp;</td>
                <td align="left" >
                        &nbsp;</td>
            </tr>
            <tr style="background-color:#EEEEEE;">
             <td align="right" >
                 &nbsp;</td>
                <td align="left" >
                     <div style="width:60%;margin:4px;">
                        <asp:Button ID="ButtonConfirm" runat="server" Text="确定" 
                            onclick="ButtonConfirm_Click" ToolTip="Submit"  CssClass="bt2"/>
                         <input ID="inputReset" runat="server"  type="reset" value="重置"  class="bt2" />
                           <a href="Member_List.aspx"><img src="images/back.png" border="0" align="top" /></a>
                         <uc1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                     </div>
                </td>  
            </tr>
        </table>
        </div>
       
    </div>
    
    <asp:HiddenField ID="hiddenGuid" runat="server" Value="0" />
    <%--                   <input ID="checkboxItem"   onclick="GetItmeValue(this)" type="checkbox" />--%>
        <asp:ObjectDataSource 
            ID="ObjectDataSourceData" runat="server" 
        SelectMethod="Search" 
           TypeName="GroupFlyTG.BusinessLogic.GroupFlyTG_AdvancePaymentFreezeLog_Action" OldValuesParameterFormatString="original_{0}" 
        >
        <SelectParameters>
            <asp:ControlParameter ControlID="LabelMemLoginIDValue" 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:Parameter Name="IsDeleted" Type="Int32" DefaultValue="0" />
        </SelectParameters>
       
    </asp:ObjectDataSource>
    <br />
    </form>
</body>
</html>