From 70a85fdadd917ba703ac4b678c85d5f88345a5c0 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 19 Aug 2021 17:25:16 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/V8.cs | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index ddf2a83..e92a779 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -498,14 +498,22 @@ namespace AyaNova.PlugIn.V8 { dynamic d = new JObject(); d.fromId = 1; - d.toId=1; + d.toId = 1; d.name = "V8 Migrate - post migrate log and instructions"; - d.notes = $"Hello, this is an automated memo from the v8 migrate utility.\n\nHelpful information:\n\nChanges in AyaNova 8 for users:\nhttp://localhost:7575/docs/ay-start-changes-from-v7/\n\nTechnical changes in AyaNova 8 for system administrators:\nhttp://localhost:7575/docs/ops-technical-changes-from-v7/\n\nImporting guide and recommended post import steps:\nhttp://localhost:7575/docs/ay-biz-admin-import-v7/\n\n\nLog:\n-----\nLOG FILE HERE\n----"; + d.notes = "Hello, this is an automated memo from the v8 migrate utility.\n\nHelpful information:\n\nChanges in AyaNova 8 for users:\n" + + util.ApiBaseUrl + + "docs/ay-start-changes-from-v7/\n\nTechnical changes in AyaNova 8 for system administrators:\n" + + util.ApiBaseUrl + + "docs/ops-technical-changes-from-v7/\n\nImporting guide and recommended post import steps:\n" + + util.ApiBaseUrl + + "docs/ay-biz-admin-import-v7/\n\n\nLog:\n######## V8 Migrate log ########\n" + + progress.AllText + + "\n################################\n"; d.replied = false; d.sent = util.DateToV8(DateTime.UtcNow.ToString("o", System.Globalization.CultureInfo.InvariantCulture)); - d.viewed=false; - d.wiki=null; - + d.viewed = false; + d.wiki = null; + //await util.PostAsync("memo", } catch (Exception ex) @@ -3803,8 +3811,8 @@ namespace AyaNova.PlugIn.V8 AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "GenerateBeforeInterval", await Translate("ErrorGenBeforeTooSmall")); } */ - - + + d.active = c.WorkorderPreventiveMaintenance.Active; d.nextServiceDate = util.DateToV8(c.WorkorderPreventiveMaintenance.NextServiceDate, true); d.repeatUnit = (int)c.WorkorderPreventiveMaintenance.GenerateSpanUnit;