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

<%@ 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 runat="server">
    <title>Untitled Page</title>
    <link type="text/css" rel="Stylesheet" href="css/index.css" />
</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">
                【
                <asp:Label ID="LabelPageTitle" runat="server" Font-Bold="True" Text="新增会员等级"></asp:Label>
                】</div>
            <table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="right" width="20%">
                        <asp:Label ID="LabelName" runat="server" Text="会员等级名称："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="TextBoxName" runat="server" Width="300"></asp:TextBox>
                        <asp:Label ID="Label3" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" runat="server" ControlToValidate="TextBoxName"
                            Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorName" runat="server"
                            ControlToValidate="TextBoxName" Display="Dynamic" ErrorMessage="标题最多50个字符" ValidationExpression="^[\s\S]{0,50}$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="LabelScore" runat="server" Text="积分满足点："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="TextBoxSocre" runat="server" Width="300"></asp:TextBox>
                        <asp:Label ID="Label9" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorSocre" runat="server" ControlToValidate="TextBoxSocre"
                            Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorSocre" runat="server"
                            ControlToValidate="TextBoxSocre" Display="Dynamic" ErrorMessage="输入格式不正确" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr style="display: none">
                    <td align="right">
                        <asp:Label ID="LabelPayoutCount" runat="server" Text="交易量满足点："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="TextBoxPayoutCount" runat="server" Width="300" Text="0"></asp:TextBox>
                        <asp:Label ID="Label10" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorPayoutCount" runat="server"
                            ControlToValidate="TextBoxPayoutCount" Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorPayoutCount" runat="server"
                            ControlToValidate="TextBoxPayoutCount" Display="Dynamic" ErrorMessage="输入格式不正确"
                            ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="LabelPayoutMoney" runat="server" Text="交易额满足点："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="TextBoxPayoutMoney" runat="server" Width="300"></asp:TextBox>
                        <asp:Label ID="Label11" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorPayoutMoney" runat="server"
                            ControlToValidate="TextBoxPayoutMoney" Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorPayoutMoney" runat="server"
                            ControlToValidate="TextBoxPayoutMoney" Display="Dynamic" ErrorMessage="输入格式不正确"
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="LabelDiscount" runat="server" Text="等级折扣："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="TextBoxDiscount" runat="server" Width="300"></asp:TextBox>
                        <asp:Label ID="Label4" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                        <asp:Label ID="Label8" runat="server" ForeColor="Red" Text="(如:1,2,3...3表示打3折)"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidatorName0" runat="server" ControlToValidate="TextBoxDiscount"
                            Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorDiscount" runat="server"
                            ControlToValidate="TextBoxDiscount" Display="Dynamic" ErrorMessage="输入格式不正确"
                            ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="Label2" runat="server" Text="积分比例："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="TextBoxPercentagePoints" runat="server" Width="300" Text="0"></asp:TextBox>
                        <asp:Label ID="Label5" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                        <asp:Label ID="Label6" runat="server" ForeColor="Red" Text="(如:0.2、0.3 、0.4)"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxDiscount"
                            Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxDiscount"
                            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="87px" TextMode="MultiLine" Width="298"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="LabelIsDefault" runat="server" Text="是否默认等级："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:CheckBox ID="CheckBoxIsDefault" runat="server" Text="是" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="LabelIsVIP" runat="server" Text="是否为VIP等级："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:CheckBox ID="CheckBoxIsVIP" runat="server" Text="是" AutoPostBack="true" OnCheckedChanged="CheckBoxIsVIP_CheckedChanged" />
                        <asp:Panel ID="PanelFee" runat="server" Visible="false">
                            <asp:Label ID="LabelFee" runat="server" Text="会员年费"></asp:Label>
                            <asp:TextBox ID="TextBoxMembershipFee" runat="server"></asp:TextBox>
                            <asp:Label ID="LabelTextBoxMembershipFee" runat="server" ForeColor="#FF0066" Text="*"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxMembershipFee"
                                Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBoxMembershipFee"
                                Display="Dynamic" ErrorMessage="输入格式不正确" ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                        </asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;
                    </td>
                    <td align="left">
                        &nbsp;
                    </td>
                </tr>
                <tr style="background-color: #EEEEEE;" class="btconfig">
                    <td align="right">
                    </td>
                    <td align="left">
                        <div>
                            <asp:Button ID="ButtonConfirm" runat="server" OnClick="ButtonConfirm_Click" Text="确定"
                                ToolTip="Submit" CssClass="bt2" />
                            <input id="inputReset" runat="server" type="reset" value="重置" class="bt2" />
                            <a href="MemberRank_List.aspx">
                                <img src="images/back.png" border="0" align="top" />
                            </a>
                            <uc1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                        </div>
                    </td>
                </tr>
            </table>
            <asp:HiddenField ID="hiddenGuid" runat="server" Value="0" />
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
