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

<%@ Register Assembly="ShopNum1.Control" Namespace="ShopNum1.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" 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>

    <style type="text/css">
        .style1
        {
            height: 63px;
        }
    </style>
</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="25%" align="right">
                    <asp:Label ID="LabelSRealName" runat="server" Text="变更日期："></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBoxSDate1" runat="server" CssClass="input1"></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="CalendarExtender1" runat="server" TargetControlID="TextBoxSDate1"
                        PopupButtonID="imgDate1" CssClass="ajax__calendar">
                    </ShopNum1:CalendarExtender>
                    -<asp:TextBox ID="TextBoxSDate2" runat="server" CssClass="input1"></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="CalendarExtender3" runat="server" TargetControlID="TextBoxSDate2"
                        PopupButtonID="imgDate2" 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" AutoPostBack="True"
                        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" 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 align="right">
                    &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="RequiredFieldValidatorOperateScore" runat="server"
                        ControlToValidate="TextBoxOperateScore" Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorOperateScore" runat="server"
                        ControlToValidate="TextBoxOperateScore" Display="Dynamic" ErrorMessage="输入格式不正确"
                        ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td align="right" class="style1">
                    <asp:Label ID="LabelMemo" runat="server" Text="备注："></asp:Label>
                </td>
                <td align="left" class="style1">
                    <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 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_RankScoreModifyLog_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>
