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:
@@ -6,9 +6,9 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public AttachmentDataList()
|
||||
{
|
||||
DefaultListObjectType = AyaType.FileAttachment;
|
||||
DefaultListAType = AyaType.FileAttachment;
|
||||
SQLFrom = "from afileattachment";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListObjectType);
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
|
||||
DefaultColumns = new List<string>() { "displayfilename", "object", "size", "notes", "exists" };
|
||||
DefaultSortBy = new Dictionary<string, string>() { { "displayfilename", "+" }, { "size", "-" } };
|
||||
@@ -20,7 +20,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
TKey = "FileAttachment",
|
||||
FieldKey = "displayfilename",
|
||||
AyaObjectType = (int)AyaType.FileAttachment,
|
||||
AType = (int)AyaType.FileAttachment,
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "afileattachment.id",
|
||||
SqlValueColumnName = "afileattachment.displayfilename",
|
||||
@@ -41,8 +41,8 @@ namespace AyaNova.DataList
|
||||
FieldKey = "object",
|
||||
UiFieldDataType = (int)UiFieldDataType.Text,
|
||||
SqlIdColumnName = "afileattachment.AttachToObjectid",
|
||||
SqlValueColumnName = "AYGETNAME(afileattachment.AttachToObjectid, afileattachment.attachtoobjecttype)",
|
||||
SqlAyTypeColumnName = "afileattachment.attachtoobjecttype"
|
||||
SqlValueColumnName = "AYGETNAME(afileattachment.AttachToObjectid, afileattachment.attachtoatype)",
|
||||
SqlATypeColumnName = "afileattachment.attachtoatype"
|
||||
});
|
||||
|
||||
FieldDefinitions.Add(new DataListFieldDefinition
|
||||
|
||||
Reference in New Issue
Block a user