This commit is contained in:
2020-07-16 13:32:18 +00:00
parent 9720dc9464
commit e3d66a4cb7
7 changed files with 15 additions and 12 deletions

View File

@@ -256,7 +256,7 @@ namespace AyaNova.Api.Controllers
TranslationKeysToFetch.Add("NotifyEventWorkorderStatusAge"); TranslationKeysToFetch.Add("NotifyEventWorkorderStatusAge");
TranslationKeysToFetch.Add("NotifyEventUnitWarrantyExpiry"); TranslationKeysToFetch.Add("NotifyEventUnitWarrantyExpiry");
TranslationKeysToFetch.Add("NotifyEventUnitMeterReadingMultipleExceeded"); TranslationKeysToFetch.Add("NotifyEventUnitMeterReadingMultipleExceeded");
// TranslationKeysToFetch.Add("NotifyEventDefaultNotification"); TranslationKeysToFetch.Add("NotifyEventServerOperationsProblem");
var LT = TranslationBiz.GetSubsetStaticAsync(TranslationKeysToFetch, TranslationId).Result; var LT = TranslationBiz.GetSubsetStaticAsync(TranslationKeysToFetch, TranslationId).Result;
@@ -286,7 +286,7 @@ namespace AyaNova.Api.Controllers
ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventWorkorderStatusAge"], Id = (long)NotifyEventType.WorkorderStatusAge }); ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventWorkorderStatusAge"], Id = (long)NotifyEventType.WorkorderStatusAge });
ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventUnitWarrantyExpiry"], Id = (long)NotifyEventType.UnitWarrantyExpiry }); ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventUnitWarrantyExpiry"], Id = (long)NotifyEventType.UnitWarrantyExpiry });
ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventUnitMeterReadingMultipleExceeded"], Id = (long)NotifyEventType.UnitMeterReadingMultipleExceeded }); ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventUnitMeterReadingMultipleExceeded"], Id = (long)NotifyEventType.UnitMeterReadingMultipleExceeded });
// ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventDefaultNotification"], Id = (long)NotifyEventType.DefaultNotification }); ReturnList.Add(new NameIdItem() { Name = LT["NotifyEventServerOperationsProblem"], Id = (long)NotifyEventType.ServerOperationsProblem });
} }
else if (keyNameInLowerCase == StringUtil.TrimTypeName(typeof(NotifyDeliveryMethod).ToString()).ToLowerInvariant()) else if (keyNameInLowerCase == StringUtil.TrimTypeName(typeof(NotifyDeliveryMethod).ToString()).ToLowerInvariant())

View File

@@ -36,7 +36,8 @@ namespace AyaNova.Biz
WorkorderStatusAge = 24,//sitting too long in same status WorkorderStatusAge = 24,//sitting too long in same status
UnitWarrantyExpiry = 25, UnitWarrantyExpiry = 25,
UnitMeterReadingMultipleExceeded = 26, UnitMeterReadingMultipleExceeded = 26,
DefaultNotification = 27//old quick notification, refers now to any direct text notification internal or user to user used for system notifications DefaultNotification = 27,//old quick notification, refers now to any direct text notification internal or user to user used for system notifications
ServerOperationsProblem = 28//and serious issue with server operations requiring intervention
//NEW ITEMS REQUIRE translation KEYS //NEW ITEMS REQUIRE translation KEYS

View File

@@ -45,9 +45,7 @@ namespace AyaNova.Biz
using (AyContext ct = AyaNova.Util.ServiceProviderProvider.DBContext) using (AyContext ct = AyaNova.Util.ServiceProviderProvider.DBContext)
{ {
//select all jobs with no deliver date or deliver date no longer in future //select all jobs with no deliver date or deliver date no longer in future
//Open question: what to do with failed deliveries?
//we dont' want them piling up but we don't want to just dump them do we?
//it should be only mail ones that fail, not app ones, there's no way for an app delivery to fail as it's just put in a table
//### PLAN if it's an smtp delivery that fails and it's to someone who can be delivered in app then it should send an inapp notification of //### PLAN if it's an smtp delivery that fails and it's to someone who can be delivered in app then it should send an inapp notification of
//delivery failure and still delete the smtp delivery //delivery failure and still delete the smtp delivery
//If it's not possible to notify the person via in app of the failed smtp then perhaps it notifies OPS personnel and biz admin personnel //If it's not possible to notify the person via in app of the failed smtp then perhaps it notifies OPS personnel and biz admin personnel

View File

@@ -1886,6 +1886,7 @@
"NotifyEventDefaultNotification": "Standardbenachrichtigung", "NotifyEventDefaultNotification": "Standardbenachrichtigung",
"NotifyDeliveryMethodApp": "In Anwendung liefern", "NotifyDeliveryMethodApp": "In Anwendung liefern",
"NotifyDeliveryMethodSMTP": "An E-Mail-Adresse liefern", "NotifyDeliveryMethodSMTP": "An E-Mail-Adresse liefern",
"NotifyEventObjectAge":"Objektalter seit der Erstellung", "NotifyEventObjectAge": "Objektalter seit der Erstellung",
"NotifyEventServerOperationsProblem": "Problem mit dem Serverbetrieb",
"Duration": "Dauer" "Duration": "Dauer"
} }

View File

@@ -1886,6 +1886,7 @@
"NotifyEventDefaultNotification": "Default notification", "NotifyEventDefaultNotification": "Default notification",
"NotifyDeliveryMethodApp": "Deliver in application", "NotifyDeliveryMethodApp": "Deliver in application",
"NotifyDeliveryMethodSMTP": "Deliver to email address", "NotifyDeliveryMethodSMTP": "Deliver to email address",
"NotifyEventObjectAge":"Object age since created", "NotifyEventObjectAge": "Object age since created",
"NotifyEventServerOperationsProblem": "Server operations problem",
"Duration": "Duration" "Duration": "Duration"
} }

View File

@@ -1886,6 +1886,7 @@
"NotifyEventDefaultNotification": "Notificación predeterminada", "NotifyEventDefaultNotification": "Notificación predeterminada",
"NotifyDeliveryMethodApp": "Entregar en programa", "NotifyDeliveryMethodApp": "Entregar en programa",
"NotifyDeliveryMethodSMTP": "Entregar a la dirección de correo electrónico", "NotifyDeliveryMethodSMTP": "Entregar a la dirección de correo electrónico",
"NotifyEventObjectAge":"Edad del objeto desde su creación", "NotifyEventObjectAge": "Edad del objeto desde su creación",
"NotifyEventServerOperationsProblem": "Problema de operaciones del servidor",
"Duration": "Duración" "Duration": "Duración"
} }

View File

@@ -1886,6 +1886,7 @@
"NotifyEventDefaultNotification": "Notification par défaut", "NotifyEventDefaultNotification": "Notification par défaut",
"NotifyDeliveryMethodApp": "Livrer dans le programme", "NotifyDeliveryMethodApp": "Livrer dans le programme",
"NotifyDeliveryMethodSMTP": "Livrer à l'adresse e-mail", "NotifyDeliveryMethodSMTP": "Livrer à l'adresse e-mail",
"NotifyEventObjectAge":"Âge de l'objet depuis sa création", "NotifyEventObjectAge": "Âge de l'objet depuis sa création",
"NotifyEventServerOperationsProblem": "Problème de fonctionnement du serveur",
"Duration": "Durée" "Duration": "Durée"
} }