This commit is contained in:
2021-11-10 01:22:48 +00:00
parent 92f06ec12f
commit 0acdb752c0
9 changed files with 15 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ namespace AyaNova.DataList
{
internal class EventDataList : DataListProcessingBase
{
public EventDataList()
public EventDataList(long translationId)
{
//NOTE: used this type because it's full BizFull and read only Bizrestricted only which is appropriate and there is no event type
DefaultListAType = AyaType.Global;
@@ -13,6 +13,7 @@ namespace AyaNova.DataList
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
DefaultColumns = new List<string>() { "eventcreated", "event", "object", "AyaType", "username", "textra" };
DefaultSortBy = new Dictionary<string, string>() { { "eventcreated", "-" } };
FieldDefinitions = new List<DataListFieldDefinition>();
@@ -48,7 +49,7 @@ namespace AyaNova.DataList
FieldKey = "object",
UiFieldDataType = (int)UiFieldDataType.Text,
SqlIdColumnName = "aevent.ayid",
SqlValueColumnName = $"AYGETNAME(aevent.ayid, aevent.ayatype,{CurrentUserTranslationId})",
SqlValueColumnName = $"AYGETNAME(aevent.ayid, aevent.ayatype,{translationId})",
SqlATypeColumnName = "aevent.ayatype"
});