This commit is contained in:
2022-03-09 01:24:03 +00:00
parent b4cf8e31e3
commit c2cbadd262
5 changed files with 34 additions and 12 deletions

View File

@@ -6,26 +6,26 @@ namespace AyaNova.DataList
{ {
public NotificationDeliveryLogDataList(long translationId) public NotificationDeliveryLogDataList(long translationId)
{ {
DefaultListAType = AyaType.Project; DefaultListAType = AyaType.OpsNotificationSettings;
SQLFrom = @"from anotifydeliverylog SQLFrom = @"from anotifydeliverylog
left join anotifysubscription on anotifysubscription.id = anotifydeliverylog.notifysubscriptionid left join anotifysubscription on anotifysubscription.id = anotifydeliverylog.notifysubscriptionid
left join auser on anotifysubscription.userid=auser.id"; left join auser on anotifysubscription.userid=auser.id";
var RoleSet = BizRoles.GetRoleSet(DefaultListAType); var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change; AllowedRoles = RoleSet.ReadFullRecord | RoleSet.Change;
DefaultColumns = new List<string>() { "NotifySubscription", "Processed","User", "Failed", "Errors" }; DefaultColumns = new List<string>() { "Processed", "NotifyEventType", "AyaType", "User", "Failed", "Errors" };
DefaultSortBy = new Dictionary<string, string>() { { "Processed", "-" } }; DefaultSortBy = new Dictionary<string, string>() { { "Processed", "-" } };
FieldDefinitions = new List<DataListFieldDefinition>(); FieldDefinitions = new List<DataListFieldDefinition>();
FieldDefinitions.Add(new DataListFieldDefinition // FieldDefinitions.Add(new DataListFieldDefinition
{ // {
TKey = "NotifySubscription", // TKey = "NotifySubscription",
FieldKey = "NotifySubscription", // FieldKey = "NotifySubscription",
AType = (int)AyaType.NotifySubscription, // AType = (int)AyaType.NotifySubscription,
UiFieldDataType = (int)UiFieldDataType.Text, // UiFieldDataType = (int)UiFieldDataType.Text,
SqlIdColumnName = "anotifysubscription.id", // SqlIdColumnName = "anotifysubscription.id",
SqlValueColumnName = "anotifysubscription.id", // SqlValueColumnName = "anotifysubscription.id",
IsRowId = true // IsRowId = false
}); // });
FieldDefinitions.Add(new DataListFieldDefinition FieldDefinitions.Add(new DataListFieldDefinition
{ {
@@ -35,6 +35,24 @@ namespace AyaNova.DataList
SqlValueColumnName = "anotifydeliverylog.processed" SqlValueColumnName = "anotifydeliverylog.processed"
}); });
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "NotifyEventType",
FieldKey = "NotifyEventType",
UiFieldDataType = (int)UiFieldDataType.Enum,
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(NotifyEventType).ToString()),
SqlValueColumnName = "anotifysubscription.eventtype"
});
FieldDefinitions.Add(new DataListFieldDefinition
{
TKey = "AyaType",
FieldKey = "AyaType",
UiFieldDataType = (int)UiFieldDataType.Enum,
EnumType = AyaNova.Util.StringUtil.TrimTypeName(typeof(AyaType).ToString()),
SqlValueColumnName = "anotifysubscription.ayatype"
});
FieldDefinitions.Add(new DataListFieldDefinition FieldDefinitions.Add(new DataListFieldDefinition
{ {
TKey = "Failed", TKey = "Failed",

View File

@@ -777,6 +777,7 @@
"Price": "Preis", "Price": "Preis",
"PriceOverride": "Preisüberschreibung", "PriceOverride": "Preisüberschreibung",
"Print": "Drucken", "Print": "Drucken",
"Processed":"Verarbeitet",
"ProcessingJob": "Serverjob verarbeiten", "ProcessingJob": "Serverjob verarbeiten",
"Project": "Projekt", "Project": "Projekt",
"ProjectAccountNumber": "Kontonummer", "ProjectAccountNumber": "Kontonummer",

View File

@@ -777,6 +777,7 @@
"Price": "Price", "Price": "Price",
"PriceOverride": "Price override", "PriceOverride": "Price override",
"Print": "Print", "Print": "Print",
"Processed":"Processed",
"ProcessingJob": "Processing server job", "ProcessingJob": "Processing server job",
"Project": "Project", "Project": "Project",
"ProjectAccountNumber": "Account Number", "ProjectAccountNumber": "Account Number",

View File

@@ -777,6 +777,7 @@
"Price": "Precio", "Price": "Precio",
"PriceOverride": "Anulación de precio", "PriceOverride": "Anulación de precio",
"Print": "Imprimir", "Print": "Imprimir",
"Processed":"Fecha de procesamiento",
"ProcessingJob": "Procesando trabajo del servidor", "ProcessingJob": "Procesando trabajo del servidor",
"Project": "Proyecto", "Project": "Proyecto",
"ProjectAccountNumber": "Número de cuenta", "ProjectAccountNumber": "Número de cuenta",

View File

@@ -777,6 +777,7 @@
"Price": "Prix", "Price": "Prix",
"PriceOverride": "Remplacement de prix", "PriceOverride": "Remplacement de prix",
"Print": "Imprimer", "Print": "Imprimer",
"Processed":"Date de traitement",
"ProcessingJob": "Traitement du travail du serveur", "ProcessingJob": "Traitement du travail du serveur",
"Project": "Projet", "Project": "Projet",
"ProjectAccountNumber": "Numéro de compte", "ProjectAccountNumber": "Numéro de compte",