📄 field.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
Codebehind="Field.aspx.cs" Inherits="PowerEasy.WebSite.Admin.CommonModel.Field"
ValidateRequest="false" Title="添加字段" %>
<asp:Content ID="Content3" ContentPlaceHolderID="CphNavigation" runat="Server">
<table style="width: 100%; margin: 0 auto;" cellpadding="0" cellspacing="0">
<tr>
<td>
<pe:ExtendedSiteMapPath ID="SmpNavigator" SiteMapProvider="AdminMapProvider" runat="server" />
</td>
<td align="right">
<asp:Label ID="LblModelName" runat="server" Text="Label"></asp:Label>
</td>
</tr>
</table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="CphContent" runat="Server">
<script type="text/javascript">
function SetLitFieldName(value)
{
document.getElementById("<%= LblFieldName.ClientID %>").innerHTML = value;
}
</script>
<table cellpadding="2" cellspacing="1" border="0" width="100%" class="border">
<tr>
<td class="title" colspan="2" align="center">
<asp:Label ID="LblTitle" runat="server" Text="添加字段" Font-Bold="True"></asp:Label></td>
</tr>
<tr class="tdbg">
<td class="tdbgleft">
<strong>字段名称:</strong></td>
<td align="left">
<asp:TextBox ID="TxtFieldName" runat="server" MaxLength="21"></asp:TextBox>
<pe:RequiredFieldValidator ID="ValrFieldName" ControlToValidate="TxtFieldName" runat="server"
ErrorMessage="字段名称不能为空" Display="Dynamic"></pe:RequiredFieldValidator>
<pe:FieldValidator ControlToValidate="TxtFieldName" ID="FieldValidator1" runat="server"></pe:FieldValidator>
<br />
<span style="color: Blue">注:字段名由字母、数字、下划线组成,并且仅能字母开头,不以下划线结尾。 例如:Content</span>
<br />
可以在模板中用数据源标签调用该字段内容,调用形式例如:<br />
{PE.Field ID="数据源标签ID" fieldname="<asp:Label ID="LblFieldName" Style="color: Red;"
runat="server"></asp:Label>" /}
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft">
<strong>字段别名:</strong></td>
<td align="left">
<asp:TextBox ID="TxtFieldAliax" runat="server"></asp:TextBox>
<br />
<span style="color: blue">例如:文章内容</span>
<pe:RequiredFieldValidator ID="ValrFieldAliax" ControlToValidate="TxtFieldAliax"
runat="server" ErrorMessage="字段别名不能为空" Display="Dynamic"></pe:RequiredFieldValidator>
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft">
<strong>字段提示:</strong></td>
<td align="left">
<asp:TextBox ID="TxtTips" runat="server"></asp:TextBox>
<span style="color: Blue">显示在字段别名下方作为重要提示的文字</span>
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft">
<strong>字段描述:</strong></td>
<td align="left">
<asp:TextBox ID="TxtDescription" runat="server" Height="43px" TextMode="MultiLine"
Width="208px"></asp:TextBox>
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft">
<strong>是否必填:</strong></td>
<td align="left">
<asp:RadioButtonList ID="RadlEnableNull" runat="server" Height="3px" RepeatDirection="Horizontal">
<asp:ListItem Value="True">是</asp:ListItem>
<asp:ListItem Value="False" Selected="True">否</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft">
<strong>是否在搜索表单显示:</strong></td>
<td align="left">
<asp:RadioButtonList ID="RadlEnableShowOnSearchForm" runat="server" Height="3px"
RepeatDirection="Horizontal">
<asp:ListItem Value="True">是</asp:ListItem>
<asp:ListItem Value="False" Selected="True">否</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr class="tdbg">
<td class="tdbgleft">
<strong>此字段 的类型:</strong></td>
<td id="TdFieldType" runat="server" align="left">
<table>
<tr>
<td>
<strong>基本字段</strong></td>
</tr>
<tr>
<td>
<asp:RadioButton ID="RadTextType" Checked="true" Text="单行文本" AutoPostBack="true"
GroupName="RadFieldType" runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" /></td>
<td>
<asp:RadioButton ID="RadMultipleTextType" AutoPostBack="true" Text="多行文本(不支持HTML)"
GroupName="RadFieldType" runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" /></td>
<td>
<asp:RadioButton ID="RadMultipleHtmlTextType" AutoPostBack="true" Text="多行文本(支持HTML)"
GroupName="RadFieldType" runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="RadListBoxType" AutoPostBack="true" Text="选项" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />
</td>
<td>
<asp:RadioButton ID="RadNumberType" AutoPostBack="true" Text="数字" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />
</td>
<td>
<asp:RadioButton ID="RadMoneyType" AutoPostBack="true" Text="货币" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="RadDateTimeType" AutoPostBack="true" Text="日期和时间" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />
</td>
<td>
<asp:RadioButton ID="RadLookType" AutoPostBack="true" Text="查阅项" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />
</td>
<td>
<asp:RadioButton ID="RadLinkType" AutoPostBack="true" Text="超链接" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="RadBoolType" AutoPostBack="true" Text="是/否(复选框)" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />
</td>
<td>
<asp:RadioButton ID="RadPictureType" AutoPostBack="true" Text="图片" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />
<%--<asp:RadioButton ID="RadCountType" AutoPostBack="true" Text="计算值(根据其他字段的计算)" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />--%>
</td>
<td>
<asp:RadioButton ID="RadFileType" AutoPostBack="true" Text="文件" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="RadColorType" AutoPostBack="true" Text="颜色代码" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<td>
<strong>系统预定义字段</strong></td>
</tr>
<tr>
<td>
<asp:RadioButton ID="RadOperatingType" AutoPostBack="true" Text="运行平台" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" /></td>
<td>
<asp:RadioButton ID="RadProducer" AutoPostBack="true" Text="厂商" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" /></td>
<td>
<asp:RadioButton ID="RadKeywordType" AutoPostBack="true" Text="关键字" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="RadContentType" AutoPostBack="true" Text="内容" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" /></td>
<td>
<asp:RadioButton ID="RadMultiplePhotoType" runat="server" AutoPostBack="true" GroupName="RadFieldType"
OnCheckedChanged="RadlFieldType_SelectedIndexChanged" Text="多图片" /></td>
<td>
<asp:RadioButton ID="RadTrademark" AutoPostBack="true" Text="品牌" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" />
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="RadAuthorType" AutoPostBack="true" Text="作者" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" /></td>
<td>
<asp:RadioButton ID="RadSourceType" AutoPostBack="true" Text="来源" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" /></td>
<td>
<asp:RadioButton ID="RadDownServerType" AutoPostBack="true" Text="下载服务器" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" /></td>
</tr>
<tr>
<td>
<asp:RadioButton ID="RadSpecialType" AutoPostBack="true" Text="专题" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" /></td>
<td>
<asp:RadioButton ID="RadSkinType" AutoPostBack="true" Text="风格" GroupName="RadFieldType"
runat="server" OnCheckedChanged="RadlFieldType_SelectedIndexChanged" /></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -