<%@ Page Title="客户关系配置" Language="C#" MasterPageFile="~/Admin/MasterPage.master"
    AutoEventWireup="true" CodeBehind="CrmConfig.aspx.cs" Inherits="PowerEasy.SiteFactory.WebSite.Admin.Configuration.CrmConfigUI" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="server">
    <pe:ExtendedSiteMapPath ID="SmpNavigator" SiteMapProvider="AdminMapProvider" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="server">
    <table width="100%" border="0" cellpadding="2" cellspacing="1" class="border">
        <tr align="center">
            <td colspan="2" class="spacingtitle">
                <strong>客户关系配置</strong>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>允许拥有的最大客户数量： </strong>
            </td>
            <td>
                <asp:TextBox ID="TxtMaxClient" runat="server" Columns="5" MaxLength="5" Width="135px" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TxtMaxClient"
                    ErrorMessage="只能输入数字，并且不能为负数" ValidationExpression="^[0-9]+" Display="Dynamic" />
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>重点项目销售预测成功率：</strong><br />
            </td>
            <td>
                <asp:TextBox ID="txtSalesESRatio" runat="server" Width="135px"></asp:TextBox>%
                <asp:RangeValidator ID="valSalesESRatio" runat="server" ControlToValidate="txtSalesESRatio"
                    Type="Integer" MaximumValue="100" MinimumValue="0" ErrorMessage="请输入0到100之间的数字"></asp:RangeValidator>
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft">
                <strong>重点项目项目金额：</strong><br />
            </td>
            <td>
                <asp:TextBox ID="txtPrice" runat="server" Width="135px" MaxLength="8"></asp:TextBox>元
                <asp:CompareValidator ID="VlcPrice" runat="server" ControlToValidate="txtPrice" Display="Dynamic"
                    ErrorMessage="请输入大于0的整数值！" Operator="GreaterThanEqual" SetFocusOnError="True"
                    Type="Integer" ValueToCompare="0"></asp:CompareValidator>
            </td>
        </tr>
        <tr class="tdbgbottom">
            <td colspan="2">
                <asp:Button ID="BtnSubmit" runat="server" Text="保存设置" OnClick="BtnSubmit_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
