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)
{
DefaultListAType = AyaType.Project;
DefaultListAType = AyaType.OpsNotificationSettings;
SQLFrom = @"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<string>() { "NotifySubscription", "Processed","User", "Failed", "Errors" };
DefaultColumns = new List<string>() { "Processed", "NotifyEventType", "AyaType", "User", "Failed", "Errors" };
DefaultSortBy = new Dictionary<string, string>() { { "Processed", "-" } };
FieldDefinitions = new List<DataListFieldDefinition>();
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 = "NotifySubscription",
// FieldKey = "NotifySubscription",
// AType = (int)AyaType.NotifySubscription,
// UiFieldDataType = (int)UiFieldDataType.Text,
// SqlIdColumnName = "anotifysubscription.id",
// SqlValueColumnName = "anotifysubscription.id",
// IsRowId = false
// });
FieldDefinitions.Add(new DataListFieldDefinition
{
@@ -35,6 +35,24 @@ namespace AyaNova.DataList
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
{
TKey = "Failed",

View File

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

View File

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

View File

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

View File

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