From 4336f3a618bb0be2a05462d95ba710da439791f8 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 4 May 2020 21:19:00 +0000 Subject: [PATCH] --- devdocs/todo.txt | 5 +++++ server/AyaNova/biz/PMBiz.cs | 2 +- server/AyaNova/biz/QuoteBiz.cs | 2 +- server/AyaNova/util/ServerBootConfig.cs | 3 +++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/devdocs/todo.txt b/devdocs/todo.txt index bb95ba1b..e37527bf 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -4,7 +4,12 @@ ## IMMEDIATE ITEMS + //TODO: CHANGE TO A DEDICATED SPOT IN GLOBAL RATHER THAN INFERRING AS IT IS NOT RIGHT PRACTICALLY for reasons + //Get the auto-id most recent values at boot time + internal static void SetMostRecentAutoIdValuesFromDatabase(AyaNova.Models.AyContext ct) + { + todo: check attachment NOTES property is actually supported - case https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/2029 diff --git a/server/AyaNova/biz/PMBiz.cs b/server/AyaNova/biz/PMBiz.cs index 605beb79..03875004 100644 --- a/server/AyaNova/biz/PMBiz.cs +++ b/server/AyaNova/biz/PMBiz.cs @@ -81,7 +81,7 @@ namespace AyaNova.Biz // { //do stuff with PM PM o = new PM(); - o.Serial = serial ?? ServerBootConfig.WORKORDER_SERIAL.GetNext(); + o.Serial = serial ?? ServerBootConfig.PM_SERIAL.GetNext(); //TODO: template //TODO: CUSTOMER ID diff --git a/server/AyaNova/biz/QuoteBiz.cs b/server/AyaNova/biz/QuoteBiz.cs index eedca778..e63e845a 100644 --- a/server/AyaNova/biz/QuoteBiz.cs +++ b/server/AyaNova/biz/QuoteBiz.cs @@ -81,7 +81,7 @@ namespace AyaNova.Biz // { //do stuff with Quote Quote o = new Quote(); - o.Serial = serial ?? ServerBootConfig.WORKORDER_SERIAL.GetNext(); + o.Serial = serial ?? ServerBootConfig.QUOTE_SERIAL.GetNext(); //TODO: template //TODO: CUSTOMER ID diff --git a/server/AyaNova/util/ServerBootConfig.cs b/server/AyaNova/util/ServerBootConfig.cs index 209f966b..27be9053 100644 --- a/server/AyaNova/util/ServerBootConfig.cs +++ b/server/AyaNova/util/ServerBootConfig.cs @@ -18,6 +18,8 @@ namespace AyaNova.Util //Get the most recent id number issued previously and start the auto-id at that level internal static AutoId WIDGET_SERIAL { get; set; } internal static AutoId WORKORDER_SERIAL { get; set; } + internal static AutoId QUOTE_SERIAL { get; set; } + internal static AutoId PM_SERIAL { get; set; } //Diagnostic static values used during development, may not be related to config at all, this is just a convenient class to put them in #if (DEBUG) @@ -220,6 +222,7 @@ namespace AyaNova.Util //Get the auto-id most recent values at boot time internal static void SetMostRecentAutoIdValuesFromDatabase(AyaNova.Models.AyContext ct) { + //TODO: CHANGE TO A DEDICATED SPOT IN GLOBAL RATHER THAN INFERRING AS IT IS NOT RIGHT PRACTICALLY for reasons //WIDGET SERIALS if (WIDGET_SERIAL == null) {