mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-29 03:26:31 +08:00
33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
<%@ Template Language="C#" TargetLanguage="C#" Debug="True" Encoding="UTF-8" %>
|
|
|
|
<%@ Assembly Src="..\..\..\Common\Model.cs" %>
|
|
<%@ Assembly Src="..\..\..\Common\Extensions.cs" %>
|
|
|
|
<%@ Import Namespace="System.Collections.Generic" %>
|
|
<%@ Import Namespace="System.Linq" %>
|
|
<%@ Import Namespace="System.Text" %>
|
|
<%@ Import Namespace="System.Text.RegularExpressions" %>
|
|
<%@ Import Namespace="SchemaMapper" %>
|
|
|
|
<%@ Property Name="Entity" Type="SchemaMapper.Entity" %>
|
|
<%@ Property Name="Namespace" Type="System.String" %>
|
|
<%-- Safe类名 --%>
|
|
<% string SafeClassName = Entity.ClassName.ToSafeName(); %>
|
|
<%-- 描述 --%>
|
|
<% string Description = Entity.Description; %>
|
|
<%-- 驼峰形式类名 --%>
|
|
<% string CamelClassName = SafeClassName.ToCamelCase(); %>
|
|
@page
|
|
@model <%=SafeClassName%>Dto
|
|
@*标题*@
|
|
<page-header title="<%=Description%>详情" [autoBreadcrumb]="false"></page-header>
|
|
@*表单*@
|
|
<util-card show-border="false">
|
|
<util-description column="3" show-border="true" >
|
|
<% foreach(Property p in Entity.Properties) { %>
|
|
<% if( p.IsPrimaryKey.SafeValue() ) continue; %>
|
|
<% if( Entity.IsDetailHidden(p) ) continue; %>
|
|
<util-description-item for="<%= p.PropertyName.ToSafeName() %>"></util-description-item>
|
|
<% } %>
|
|
</util-description>
|
|
</util-card> |