<%@ page language="C#" autoeventwireup="true" inherits="Admin_ChangeScoreModifyLog_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="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>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;">
    <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 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>
                          <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"></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="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 >
                        <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="bt2" />
                    </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="CurrentScore" HeaderText="当前积分" 
                        SortExpression="CurrentScore" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="OperateScore" HeaderText="变更积分" 
                        SortExpression="OperateScore" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="LastOperateScore" HeaderText="变更后积分" 
                        SortExpression="LastOperateScore" >
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="Memo" HeaderText="备注" 
                        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 align="left" >
                        &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="LabelRealName" 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="LabelCurrentScore" runat="server" Text="当前消费积分："></asp:Label>
                    </td>
                <td align="left" >
                        <asp:Label ID="LabelCurrentScoreValue" runat="server"></asp:Label>
                        </td>
            </tr>
            <tr>
                <td align="right" >
    
                        <asp:Label ID="LabelChangeScore" runat="server" Text="消费积分："></asp:Label>
                    </td>
                <td align="left" >
                        <asp:DropDownList ID="DropDownListOperateType" runat="server">
                            <asp:ListItem Value="1">增加</asp:ListItem>
                            <asp:ListItem Value="0">减少</asp:ListItem>
                        </asp:DropDownList>
                        <asp:TextBox ID="TextBoxOperateScore" runat="server"></asp:TextBox>
                            <asp:Label ID="Label2" runat="server" Text="*" ForeColor="red"></asp:Label>
                         <asp:RequiredFieldValidator ID="RequiredFieldValidatorOperateMoney" 
                            runat="server" ControlToValidate="TextBoxOperateScore" Display="Dynamic" 
                            ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorOperateMoney" 
                            runat="server" ControlToValidate="TextBoxOperateScore" 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>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorLogoMemo" 
                        runat="server" ControlToValidate="TextBoxMemo" Display="Dynamic" 
                        ErrorMessage="备注最多250个字符" ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator>
                    </td>
            </tr>
            <tr>
                <td align="right" >
    
                        &nbsp;</td>
                <td align="left" >
                        &nbsp;</td>
            </tr>
            <tr style="background-color:#EEEEEE;">
             <td align="right" >
         
                </td>
                <td align="left" >
                     <div >
                        <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="ShopNum1.BusinessLogic.ShopNum1_ScoreModifyLog_Action" 
        >
        <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>
    &nbsp;<br />
    </form>
</body>
</html>