rename all variants of naming that hold an AyaType value to "aType" (parameter) / "AType" (not parameter) everywhere front and back; "ayType", "objectType", "oType" all are used in various areas

This commit is contained in:
2021-03-23 17:06:05 +00:00
parent dfef3f7934
commit dde1b8bb8c
113 changed files with 450 additions and 450 deletions

View File

@@ -6,11 +6,11 @@ namespace AyaNova.DataList
{
public ReportDataList()
{
DefaultListObjectType = AyaType.Report;
DefaultListAType = AyaType.Report;
SQLFrom = "from aReport";
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
DefaultColumns = new List<string>() { "name", "objecttype", "active" };
DefaultColumns = new List<string>() { "name", "aType", "active" };
DefaultSortBy = new Dictionary<string, string>() { { "name", "+" } };
FieldDefinitions = new List<DataListFieldDefinition>();
@@ -18,7 +18,7 @@ namespace AyaNova.DataList
{
TKey = "Report",
FieldKey = "name",
AyaObjectType = (int)AyaType.Report,
AType = (int)AyaType.Report,
UiFieldDataType = (int)UiFieldDataType.Text,
SqlIdColumnName = "aReport.id",
SqlValueColumnName = "aReport.name",
@@ -28,10 +28,10 @@ namespace AyaNova.DataList
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "AyaType",
FieldKey = "objecttype",
FieldKey = "aType",
UiFieldDataType = (int)UiFieldDataType.Enum,
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AyaType).ToString()),
SqlValueColumnName = "areport.ObjectType"
SqlValueColumnName = "areport.AType"
});
FieldDefinitions.Add(new DataListFieldDefinition