<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TitleType.ascx.cs" Inherits="PowerEasy.Module.General.WebSite.Admin.Controls.FieldControl.TitleType" %>
<div class="DivWordBreak">
    <asp:TextBox ID="TxtTitle" runat="server"></asp:TextBox>
    <pe:RequiredFieldValidator ID="ReqTxtTitle" runat="server" SetFocusOnError="true"
        Display="Dynamic" ControlToValidate="TxtTitle" ErrorMessage="<%$ Res: Controls_FieldControl_TitleType_ReqTxtTitle , 必填项不能为空 %>"></pe:RequiredFieldValidator>
    <pe:ExtendedLiteral ID="LitCheckTitle" HtmlEncode="false" runat="server"></pe:ExtendedLiteral>
    <span style="color: Green">
        <%= Description %>
    </span>
    <br />
    <asp:TextBox ID="TxtPinyinTitle" Visible="false" runat="server"></asp:TextBox>
    <span style="color: Blue">
        <asp:Localize ID="Localize2" Visible="false" Text="<%$ Res: Controls_FieldControl_TitleType_Localize2 , 字母标题，会自动生成 %>"
            runat="server" />
    </span>
</div>

<script language="javascript" type="text/javascript">
function GetPinyinTitle(value)
{
    PowerEasy.Module.General.WebSite.WebServices.CategoryService.GetPinyinTitles(value,SetPinyinTitle);
}
function SetPinyinTitle(s){
       $get("<%=TxtPinyinTitle.ClientID %>").value=s;
}

function ShowCheckResutl(s)
{
    if(s){
        $get("<%=TxtTitle.ClientID %>checkResult").innerHTML="此信息可能已经存在！";
    }else{
        $get("<%=TxtTitle.ClientID %>checkResult").innerHTML="可能没有此信息！";
    }
}
</script>

<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    <Services>
        <asp:ServiceReference Path="~/WebServices/CategoryService.asmx" />
    </Services>
</asp:ScriptManagerProxy>
