This commit is contained in:
@@ -1076,7 +1076,7 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
|
|
||||||
#region CustomerServiceImminent
|
#region CustomerServiceImminent
|
||||||
if (ayaEvent == AyaEvent.Created && oProposed.CompleteByDate != null)
|
if (ayaEvent == AyaEvent.Created && oProposed.ServiceDate != null)
|
||||||
{
|
{
|
||||||
|
|
||||||
var subs = await ct.NotifySubscription.AsNoTracking().Where(z => z.EventType == NotifyEventType.CustomerServiceImminent).ToListAsync();
|
var subs = await ct.NotifySubscription.AsNoTracking().Where(z => z.EventType == NotifyEventType.CustomerServiceImminent).ToListAsync();
|
||||||
@@ -1091,11 +1091,11 @@ namespace AyaNova.Biz
|
|||||||
{
|
{
|
||||||
EventType = NotifyEventType.CustomerServiceImminent,
|
EventType = NotifyEventType.CustomerServiceImminent,
|
||||||
UserId = sub.UserId,
|
UserId = sub.UserId,
|
||||||
AyaType = proposedObj.AyaType,
|
AyaType = AyaType.NoType,
|
||||||
ObjectId = proposedObj.Id,
|
ObjectId =0,
|
||||||
NotifySubscriptionId = sub.Id,
|
NotifySubscriptionId = sub.Id,
|
||||||
Name = oProposed.Serial.ToString(),
|
Name = oProposed.Serial.ToString(),//NO: this needs to be a customer notification string
|
||||||
EventDate = (DateTime)oProposed.CompleteByDate
|
EventDate = (DateTime)oProposed.ServiceDate
|
||||||
};
|
};
|
||||||
await ct.NotifyEvent.AddAsync(n);
|
await ct.NotifyEvent.AddAsync(n);
|
||||||
log.LogDebug($"Adding NotifyEvent: [{n.ToString()}]");
|
log.LogDebug($"Adding NotifyEvent: [{n.ToString()}]");
|
||||||
|
|||||||
@@ -172,7 +172,18 @@ namespace AyaNova.Biz
|
|||||||
//subscription name translation
|
//subscription name translation
|
||||||
var SubscriptionTypeName = LT[EventTypeTranslationKey];
|
var SubscriptionTypeName = LT[EventTypeTranslationKey];
|
||||||
|
|
||||||
var subject = $"AY:{AyaTypeTranslated}:{name}:{SubscriptionTypeName}";
|
string subject = "";
|
||||||
|
//Special notification handling
|
||||||
|
switch (ne.EventType)
|
||||||
|
{
|
||||||
|
case NotifyEventType.CustomerServiceImminent:
|
||||||
|
subject = SubscriptionTypeName;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
subject = $"AY:{AyaTypeTranslated}:{name}:{SubscriptionTypeName}";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//Age relevant notification
|
//Age relevant notification
|
||||||
string AgeDisplay = "";
|
string AgeDisplay = "";
|
||||||
@@ -208,7 +219,7 @@ namespace AyaNova.Biz
|
|||||||
{
|
{
|
||||||
await m.SendEmailAsync(deliveryAddress, subject, body, ServerGlobalOpsSettingsCache.Notify);
|
await m.SendEmailAsync(deliveryAddress, subject, body, ServerGlobalOpsSettingsCache.Notify);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2056,7 +2056,7 @@
|
|||||||
"NotifyEventPartRequestReceived": "Angeforderter Teil erhalten",
|
"NotifyEventPartRequestReceived": "Angeforderter Teil erhalten",
|
||||||
"NotifyEventNotifyHealthCheck": "Integritätsprüfung des Benachrichtigungssystems",
|
"NotifyEventNotifyHealthCheck": "Integritätsprüfung des Benachrichtigungssystems",
|
||||||
"NotifyEventBackupStatus": "Status der Sicherung",
|
"NotifyEventBackupStatus": "Status der Sicherung",
|
||||||
"NotifyEventCustomerServiceImminent": "Kundenservice steht unmittelbar bevor",
|
"NotifyEventCustomerServiceImminent": "Servicetermin",
|
||||||
"NotifyEventPartRequested": "Teil angefordert",
|
"NotifyEventPartRequested": "Teil angefordert",
|
||||||
"NotifyEventWorkorderTotalExceedsThreshold": "Der Gesamtbetrag des Arbeitsauftrags überschreitet den Schwellenwert",
|
"NotifyEventWorkorderTotalExceedsThreshold": "Der Gesamtbetrag des Arbeitsauftrags überschreitet den Schwellenwert",
|
||||||
"NotifyEventWorkorderStatusAge": "Arbeitsauftragsstatus für die Zeitspanne unverändert",
|
"NotifyEventWorkorderStatusAge": "Arbeitsauftragsstatus für die Zeitspanne unverändert",
|
||||||
|
|||||||
@@ -2056,7 +2056,7 @@
|
|||||||
"NotifyEventPartRequestReceived": "Requested part received",
|
"NotifyEventPartRequestReceived": "Requested part received",
|
||||||
"NotifyEventNotifyHealthCheck": "Notification system health check",
|
"NotifyEventNotifyHealthCheck": "Notification system health check",
|
||||||
"NotifyEventBackupStatus": "Backup status",
|
"NotifyEventBackupStatus": "Backup status",
|
||||||
"NotifyEventCustomerServiceImminent": "Customer service imminent",
|
"NotifyEventCustomerServiceImminent": "Service appointment",
|
||||||
"NotifyEventPartRequested": "Part requested",
|
"NotifyEventPartRequested": "Part requested",
|
||||||
"NotifyEventWorkorderTotalExceedsThreshold": "Work order total exceeds threshold",
|
"NotifyEventWorkorderTotalExceedsThreshold": "Work order total exceeds threshold",
|
||||||
"NotifyEventWorkorderStatusAge": "Work order status age",
|
"NotifyEventWorkorderStatusAge": "Work order status age",
|
||||||
|
|||||||
@@ -2056,7 +2056,7 @@
|
|||||||
"NotifyEventPartRequestReceived": "Parte solicitada recibida",
|
"NotifyEventPartRequestReceived": "Parte solicitada recibida",
|
||||||
"NotifyEventNotifyHealthCheck": "Verificación del estado del sistema de notificación",
|
"NotifyEventNotifyHealthCheck": "Verificación del estado del sistema de notificación",
|
||||||
"NotifyEventBackupStatus": "Estado de copia de seguridad",
|
"NotifyEventBackupStatus": "Estado de copia de seguridad",
|
||||||
"NotifyEventCustomerServiceImminent": "Servicio al cliente inminente",
|
"NotifyEventCustomerServiceImminent": "Cita de servicio",
|
||||||
"NotifyEventPartRequested": "Parte de servicio solicitada",
|
"NotifyEventPartRequested": "Parte de servicio solicitada",
|
||||||
"NotifyEventWorkorderTotalExceedsThreshold": "El monto total de la orden de trabajo excede el umbral",
|
"NotifyEventWorkorderTotalExceedsThreshold": "El monto total de la orden de trabajo excede el umbral",
|
||||||
"NotifyEventWorkorderStatusAge": "Estado de la orden de trabajo sin cambios durante el período de tiempo",
|
"NotifyEventWorkorderStatusAge": "Estado de la orden de trabajo sin cambios durante el período de tiempo",
|
||||||
|
|||||||
@@ -2056,7 +2056,7 @@
|
|||||||
"NotifyEventPartRequestReceived": "Pièce demandée reçue",
|
"NotifyEventPartRequestReceived": "Pièce demandée reçue",
|
||||||
"NotifyEventNotifyHealthCheck": "Vérification de l'état du système de notification",
|
"NotifyEventNotifyHealthCheck": "Vérification de l'état du système de notification",
|
||||||
"NotifyEventBackupStatus": "Statut de sauvegarde",
|
"NotifyEventBackupStatus": "Statut de sauvegarde",
|
||||||
"NotifyEventCustomerServiceImminent": "Le service client est imminent",
|
"NotifyEventCustomerServiceImminent": "Rendez-vous de service",
|
||||||
"NotifyEventPartRequested": "Pièce demandée",
|
"NotifyEventPartRequested": "Pièce demandée",
|
||||||
"NotifyEventWorkorderTotalExceedsThreshold": "Le montant total de l'ordre de travail dépasse le seuil",
|
"NotifyEventWorkorderTotalExceedsThreshold": "Le montant total de l'ordre de travail dépasse le seuil",
|
||||||
"NotifyEventWorkorderStatusAge": "Statut de l'ordre de travail inchangé pour la période de temps",
|
"NotifyEventWorkorderStatusAge": "Statut de l'ordre de travail inchangé pour la période de temps",
|
||||||
|
|||||||
Reference in New Issue
Block a user