-
Notifications
You must be signed in to change notification settings - Fork 5
/
Language-Ch-ZN.cst
83 lines (72 loc) · 3.77 KB
/
Language-Ch-ZN.cst
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<%--
Name:
Author:
Description:
--%>
<%@ Template Language="C#" TargetLanguage="Text" Src="" Inherits=""Debug="False" CompilerVersion="v4.0" %>
<%@ Assembly Name="SchemaExplorer" %>
<%@ Import Namespace="SchemaExplorer" %>
<%@ Property Name="SourceDatabase" DeepLoad="True" Type="SchemaExplorer.DatabaseSchema" %>
<%@ Property Name="Tables" Type="TableSchemaCollection" Optional="True" Category="2.数据库" Description="Tables to Inclue" %>
<%@ Template Language="C#" TargetLanguage="Text" %>
<%@ Property Name="SampleStringProperty" Default="SomeValue" Type="System.String" %>
<%@ Property Name="SampleBooleanProperty" Default="True" Type="System.Boolean" %>
<%@ Property Name="RootNamespace" Type="String" Default="HashBlockChain" Optional="False" Category="1.名称空间" Description="系统名称空间的根名称." %>
<%@ Property Name="Namespace" Type="String" Default="ZLDB_Domain" Optional="False" Category="1.名称空间" Description="系统当前所属文件夹的名称(命名空间相关)." %>
My static content here.
My dynamic content here: "<%= SampleStringProperty %>"
Call a script method: <%= SampleMethod() %>
<% if (SampleBooleanProperty) { %>
My conditional content here.
<% } %>
<script runat="template">
// My methods here.
public string SampleMethod()
{
return "Method output.";
}
</script>
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
//简介:Abp 权限配置,生成后要在 AbpZeroTemplateApplicationModule 中的Configuration.Authorization.Providers.Add<CustomsAppAuthorizationProvider>(); 确保注入
//
//
//
//
//作者:
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
namespace <%= RootNamespace %>.<%=Namespace%>.Authorization
{
/// <summary>
/// 定义系统的权限名称的字符串常量。
/// <see cref="CustomsAppAuthorizationProvider"/>中对权限的定义.
/// </summary>
public static class CustomsAppPermissions
{
//配置权限模块初始化
//TODO:★需要到请将以下内容剪切到AbpZeroTemplateApplicationModule
// Configuration.Authorization.Providers.Add<CustomsAppAuthorizationProvider>();
//TODO:★请将以下内容剪切到CORE类库的Localization/Source/AbpZeroTemplatezh-cn.xml
//第一次加载建议复制他
// <text name="MustBe_Required" value="不能为空" />
<!-- 管理 多语言 中文 -->
<% foreach(TableSchema t in Tables){ %>
<%string tableName=t.Name.ToString(); %>
<%string paramName=GetParamName(tableName); %>
<%string description=GetTableDescriptionName(t.Description); %>
<!--<%=description%> 开始-->
<text name="<%=tableName%>" value="<%=description%>" />
<text name="<%=tableName%>HeaderInfo" value="管理<%=description%>列表" />
<text name="Create<%=tableName%>" value="新增<%=description%>" />
<text name="Edit<%=tableName%>" value="编辑<%=description%>" />
<text name="Delete<%=tableName%>" value="删除<%=description%>" />
<text name="<%=tableName%>DeleteWarningMessage" value="名称: {0} 将被删除,是否确定删除它。" />
<% foreach (ColumnSchema column in t.Columns) { %>
<text name="<%=tableName%>_<%=column.Name%>" value="<%=column.Description%>" />
<% }%>
<!--<%=description%> 结束-->
<% }%>
}
}
<script runat="template">
<!-- #include file="TemplateUtilities.cs" -->
</script>