diff --git a/server/AyaNova/DataList/NotificationDeliveryLogDataList.cs b/server/AyaNova/DataList/NotificationDeliveryLogDataList.cs new file mode 100644 index 00000000..8b3a0ef3 --- /dev/null +++ b/server/AyaNova/DataList/NotificationDeliveryLogDataList.cs @@ -0,0 +1,66 @@ +using System.Collections.Generic; +using AyaNova.Biz; +namespace AyaNova.DataList +{ + internal class NotificationDeliveryLogDataList : DataListProcessingBase + { + public NotificationDeliveryLogDataList(long translationId) + { + DefaultListAType = AyaType.Project; + SQLFrom = @"select anotifydeliverylog.processed, anotifysubscription.id as subscriptionid, auser.name as username from anotifydeliverylog + left join anotifysubscription on anotifysubscription.id = anotifydeliverylog.notifysubscriptionid + left join auser on anotifysubscription.userid=auser.id"; + var RoleSet = BizRoles.GetRoleSet(DefaultListAType); + AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change; + DefaultColumns = new List() { "NotifySubscription", "Processed","User", "Failed", "Errors" }; + DefaultSortBy = new Dictionary() { { "Processed", "-" } }; + FieldDefinitions = new List(); + + FieldDefinitions.Add(new DataListFieldDefinition + { + TKey = "NotifySubscription", + FieldKey = "NotifySubscription", + AType = (int)AyaType.NotifySubscription, + UiFieldDataType = (int)UiFieldDataType.Text, + SqlIdColumnName = "anotifysubscription.id", + SqlValueColumnName = "anotifysubscription.id", + IsRowId = true + }); + + FieldDefinitions.Add(new DataListFieldDefinition + { + TKey = "Processed", + FieldKey = "Processed", + UiFieldDataType = (int)UiFieldDataType.DateTime, + SqlValueColumnName = "anotifydeliverylog.processed" + }); + + FieldDefinitions.Add(new DataListFieldDefinition + { + TKey = "Failed", + FieldKey = "Failed", + UiFieldDataType = (int)UiFieldDataType.Bool, + SqlValueColumnName = "anotifydeliverylog.fail" + }); + + FieldDefinitions.Add(new DataListFieldDefinition + { + TKey = "Errors", + FieldKey = "Errors", + UiFieldDataType = (int)UiFieldDataType.Text, + SqlValueColumnName = "anotifydeliverylog.error" + }); + + FieldDefinitions.Add(new DataListFieldDefinition + { + FieldKey = "User", + TKey = "User", + UiFieldDataType = (int)UiFieldDataType.Text, + AType = (int)AyaType.User, + SqlIdColumnName = "auser.id", + SqlValueColumnName = "auser.name" + }); + + } + }//eoc +}//eons \ No newline at end of file diff --git a/server/AyaNova/resource/de.json b/server/AyaNova/resource/de.json index 94867780..12c21de6 100644 --- a/server/AyaNova/resource/de.json +++ b/server/AyaNova/resource/de.json @@ -602,6 +602,8 @@ "NoResults": "Keine Ergebnisse", "Notification": "Benachrichtigung", "Notifications": "Benachrichtigungen", + "NotificationDeliveryLog":"Benutzerbenachrichtigungen", + "NotificationCustomerDeliveryLog":"Kundenbenachrichtigungen", "NotificationSettings": "Benachrichtigungseinstellungen", "NotifyDeliveryAddress": "An Adresse liefern", "NotifyDeliveryMethod": "Benachrichtigungsversandmethode", diff --git a/server/AyaNova/resource/en.json b/server/AyaNova/resource/en.json index 54ced25b..b516b111 100644 --- a/server/AyaNova/resource/en.json +++ b/server/AyaNova/resource/en.json @@ -602,8 +602,10 @@ "NoResults": "No results", "Notification": "Notification", "Notifications": "Notifications", + "NotificationDeliveryLog":"User notifications log", + "NotificationCustomerDeliveryLog":"Customer notification log", "NotificationSettings": "Notification settings", - "NotifyDeliveryAddress": "Deliver to address", + "NotifyDeliveryAddress": "Deliver to address", "NotifyDeliveryMethod": "Notification delivery method", "NotifyDeliveryMethodApp": "Deliver in application", "NotifyDeliveryMethodSMTP": "Deliver to email address", diff --git a/server/AyaNova/resource/es.json b/server/AyaNova/resource/es.json index b99f25b0..f40e067a 100644 --- a/server/AyaNova/resource/es.json +++ b/server/AyaNova/resource/es.json @@ -602,6 +602,8 @@ "NoResults": "No hay resultados", "Notification": "Notificación", "Notifications": "Notificaciones", + "NotificationDeliveryLog":"Notificaciones de usuario", + "NotificationCustomerDeliveryLog":"Notificaciones de clientes", "NotificationSettings": "Configuración de notificaciones", "NotifyDeliveryAddress": "Entregar a la dirección de correo electrónico", "NotifyDeliveryMethod": "Método de entrega de notificaciones", diff --git a/server/AyaNova/resource/fr.json b/server/AyaNova/resource/fr.json index 5e03a93f..452402b1 100644 --- a/server/AyaNova/resource/fr.json +++ b/server/AyaNova/resource/fr.json @@ -602,6 +602,8 @@ "NoResults": "Aucun résultat", "Notification": "Notification", "Notifications": "Notifications", + "NotificationDeliveryLog":"Notifications utilisateur", + "NotificationCustomerDeliveryLog":"Notifications aux clients", "NotificationSettings": "Paramètres de notification", "NotifyDeliveryAddress": "Livrer à l'adresse", "NotifyDeliveryMethod": "Méthode de remise des notifications",