<%@ page language="C#" autoeventwireup="true" inherits="Admin_Member_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" /> 
<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">
          <%--  <asp:ScriptManager ID="ScriptManager1" runat="server">
   </asp:ScriptManager>--%>
<%--<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>--%>
    <div class="navigator">【 会员列表 】</div>
    <div class="query">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <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="LabelSCreditMoney" runat="server" Text="信用额度："></asp:Label></td>
    <td colspan="2">   <asp:TextBox ID="TextBoxSCreditMoney1" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorSCreditMoney1" 
                            runat="server" ControlToValidate="TextBoxSCreditMoney1" Display="Dynamic" 
                            ErrorMessage="格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator> -
     <asp:TextBox ID="TextBoxSCreditMoney2" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorSCreditMoney2" 
                            runat="server" ControlToValidate="TextBoxSCreditMoney2" Display="Dynamic" 
                            ErrorMessage="时间格式不正确" 
                            
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator></td>
    <td align="right"> <asp:Label ID="LabelSIsForbid" runat="server" Text="禁用状态："></asp:Label></td>
    <td><asp:DropDownList ID="DropdownListSIsForbid" 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>
  </tr>
  <tr>
    <td align="right"> <asp:Label ID="LabelSRealName" runat="server" Text="会员姓名："></asp:Label></td>
    <td><asp:TextBox ID="TextBoxSRealName" runat="server" CssClass="input1"></asp:TextBox></td>
    <td align="right"><asp:Label ID="LabelSScore" runat="server" Text="消费积分："></asp:Label></td>
    <td colspan="2"><asp:TextBox ID="TextBoxSScore1" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorSScore1" 
                            runat="server" ControlToValidate="TextBoxSScore1" Display="Dynamic" 
                            ErrorMessage="格式不正确" 
                            
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator> -
     <asp:TextBox ID="TextBoxSScore2" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorSScore2" 
                            runat="server" ControlToValidate="TextBoxSScore2" Display="Dynamic" 
                            ErrorMessage="格式不正确" 
                            
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator></td>
    <td align="right"><asp:Label ID="LabelSSex" runat="server" Text="性别："></asp:Label></td>
    <td> <asp:DropDownList ID="DropDownListSex" runat="server" CssClass="select1">
                            <asp:ListItem Value="1">男</asp:ListItem>
                            <asp:ListItem Value="0">女</asp:ListItem>
                            <asp:ListItem Value="2">保密</asp:ListItem>
                            <asp:ListItem Selected="True" Value="-1">-全部-</asp:ListItem>
                        </asp:DropDownList></td>
  </tr>
  <tr>
    <td align="right"><asp:Label ID="LabelSEmail" runat="server" Text="电子邮件："></asp:Label></td>
    <td><asp:TextBox ID="TextBoxSEmail" runat="server" CssClass="input1"></asp:TextBox></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="right"><asp:Label ID="LabelSMemberRankGuid" runat="server" Text="会员等级："></asp:Label></td>
    <td><asp:DropDownList ID="DropDownListSMemberRankGuid" runat="server" CssClass="select1">
                    </asp:DropDownList></td>
  </tr>
  <tr>
    <td align="right"> <asp:Label ID="LabelSRegDate" runat="server" Text="注册日期："></asp:Label></td>
    <td colspan="3"><asp:TextBox ID="TextBoxSRegDate1" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorStartDate" 
                            runat="server" ControlToValidate="TextBoxSRegDate1" 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="imgCalendarStartTime" alt="" src="../images/Calendar.png" 
        style="width: 16px; height: 18px;" />
    <ShopNum1:CalendarExtender 
        ID="CalendarExtender1" runat="server" TargetControlID="TextBoxSRegDate1" 
        PopupButtonID="imgCalendarStartTime" CssClass="ajax__calendar">    </ShopNum1:CalendarExtender> &nbsp;
    -<asp:TextBox ID="TextBoxSRegDate2" runat="server" CssClass="input1"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorEndDate" 
                            runat="server" ControlToValidate="TextBoxSRegDate2" 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="imgCalendarEndTime" alt="" src="../images/Calendar.png" 
        style="width: 16px; height: 18px;" /></td>
         <td>         
         <ShopNum1:CalendarExtender 
        ID="CalendarExtender2" runat="server" TargetControlID="TextBoxSRegDate2" 
        PopupButtonID="imgCalendarEndTime" CssClass="ajax__calendar">    </ShopNum1:CalendarExtender></td>
    
    <td>&nbsp;</td>
    <td><asp:Button ID="ButtonSearch" runat="server" 
                        onclick="ButtonSearch_Click" Text="查询"  CssClass="bt2"/></td>
  </tr>
</table></div>
<table  style="width:100%">
                    <tr>
                        <td align="left">
            <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" GridViewSortDirection="Ascending" 
                                PagingStyle="None" style="margin-left: 2px;" TableName="" 
                                Font-Size="Small" DataSourceID="ObjectDataSourceData">          
<HeaderStyle HorizontalAlign="Center" BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF"></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="会员ID" 
                        SortExpression="MemLoginID" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Name" HeaderText="会员等级" 
                        SortExpression="Name" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="RealName" HeaderText="会员姓名" 
                        SortExpression="RealName">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="性别" SortExpression="Sex">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# ChangeAge(DataBinder.Eval(Container, "DataItem(Sex)","{0}")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="Age" HeaderText="年龄" 
                        SortExpression="Age">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="所在地区" DataField="Area" SortExpression="Area"></asp:BoundField>
                    <asp:BoundField HeaderText="电子邮件" DataField="Email" SortExpression="Email">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="手机号码" DataField="Mobile" SortExpression="Mobile">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="积分" DataField="Score" SortExpression="Score">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="信用额度" DataField="CreditMoney" 
                        SortExpression="CreditMoney">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="注册日期" DataField="RegDate" SortExpression="RegDate">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="登录次数" DataField="LoginTime" 
                        SortExpression="LoginTime">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="禁用状态" SortExpression="IsForbid">
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# ChangeIsForbid(DataBinder.Eval(Container, "DataItem(IsForbid)","{0}")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
            </cc1:Num1GridView>
                        </td>
                    </tr>
                       <tr>
                        <td align="left">
                        <div class="vote">
                        <asp:Button ID="ButtonAdd" runat="server" onclick="ButtonAdd_Click" 
                                onclientclick="GetCheckedBoxValues()" Text="添加" CausesValidation="False"  CssClass="bt2" />
                            <asp:Button ID="ButtonEdit" runat="server" onclick="ButtonEdit_Click" 
                                onclientclick="return EditButton()" Text="编辑" CausesValidation="False" CssClass="bt2" />
                            <asp:Button ID="ButtonDelete" runat="server" onclick="ButtonDelete_Click" 
                                onclientclick="return DeleteButton()" Text="删除" CausesValidation="False" CssClass="bt2" />                       
                            <asp:Button ID="ButtonAdvancePaymentModifyLog" runat="server" 
                                onclick="ButtonAdvancePaymentModifyLog_Click" Text="变更预存款" 
                                onclientclick="return EditButton()" CssClass="bt3" />
                            <asp:Button ID="ButtonAdvancePaymentFreezeLog" runat="server" 
                                onclick="ButtonAdvancePaymentFreezeLog_Click" Text="冻结预存款" 
                                onclientclick="return EditButton()" CssClass="bt3" />
                            <asp:Button ID="ButtonRankScoreModifyLog" runat="server" 
                                onclick="ButtonRankScoreModifyLog_Click" Text="变更等级积分" 
                                onclientclick="return EditButton()" CssClass="bt3"  />
                            <asp:Button ID="ButtonScoreModifyLog" runat="server" 
                                onclick="ButtonScoreModifyLog_Click" Text="变更消费积分" 
                                onclientclick="return EditButton()" CssClass="bt3" />
                            <asp:Button ID="ButtonScoreFreezeLog" runat="server" 
                                onclick="ButtonScoreFreezeLog_Click" Text="冻结消费积分" 
                                onclientclick="return EditButton()" CssClass="bt3" />
                            <asp:Button ID="ButtonAddress" runat="server" onclick="ButtonAddress_Click" 
                                Text="查看收货地址" CausesValidation="False" 
                                onclientclick="return EditButton()" CssClass="bt3"  />
                            <asp:Button ID="ButtonOrder" runat="server" Text="查看订单" 
                                onclick="ButtonOrder_Click" onclientclick="return EditButton()" CssClass="bt2" />
                            <asp:Button ID="ButtonMessageBoard" runat="server" Text="查看留言" 
                                onclick="ButtonMessageBoard_Click" onclientclick="return EditButton()" CssClass="bt2" />
                            <asp:Button ID="ButtonFavourTicket" runat="server" Text="查看分配优惠券" 
                                onclick="ButtonFavourTicket_Click" onclientclick="return EditButton()" 
                                CssClass="bt3" />
                            <br />
    
        <ShopNum1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                            </div>
                        </td>                    
                    </tr>
</table>
        <%--                   <input ID="checkboxItem"   onclick="GetItmeValue(this)" type="checkbox" />--%><br />
    <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" 
        SelectMethod="Search" TypeName="ShopNum1.BusinessLogic.ShopNum1_Member_Action" 
        >
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBoxSMemLoginID" Name="memLoginID" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxSRealName" Name="realName" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxSEmail" Name="email" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxSRegDate1" Name="regDate1" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxSRegDate2" Name="regDate2" 
                PropertyName="Text" Type="String" />
            <asp:ControlParameter ControlID="TextBoxSCreditMoney1" DefaultValue="0" 
                Name="creditMoney1" PropertyName="Text" Type="Decimal" />
            <asp:ControlParameter ControlID="TextBoxSCreditMoney2" DefaultValue="0" 
                Name="creditMoney2" PropertyName="Text" Type="Decimal" />
            <asp:ControlParameter ControlID="TextBoxSScore1" DefaultValue="0" Name="score1" 
                PropertyName="Text" Type="Int32" />
            <asp:ControlParameter ControlID="TextBoxSScore2" DefaultValue="0" Name="score2" 
                PropertyName="Text" Type="Int32" />
            <asp:ControlParameter ControlID="DropDownListSex" DefaultValue="-1" Name="sex" 
                PropertyName="SelectedValue" Type="Int32" />
            <asp:ControlParameter ControlID="DropdownListSIsForbid" DefaultValue="-1" 
                Name="isForbid" PropertyName="SelectedValue" Type="Int32" />
            <asp:ControlParameter ControlID="DropDownListSMemberRankGuid" DefaultValue="-1" 
                Name="memberRankGuid" PropertyName="SelectedValue" Type="String" />
            <asp:Parameter Name="IsDeleted" Type="Int32" DefaultValue="0" />
        </SelectParameters>
       
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    </form>
</body>
</html>
