This commit is contained in:
2020-05-04 21:19:00 +00:00
parent a36d8bb118
commit 4336f3a618
4 changed files with 10 additions and 2 deletions

View File

@@ -4,6 +4,11 @@
## IMMEDIATE ITEMS ## 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 todo: check attachment NOTES property is actually supported
- case https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/2029 - case https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/2029

View File

@@ -81,7 +81,7 @@ namespace AyaNova.Biz
// { // {
//do stuff with PM //do stuff with PM
PM o = new PM(); PM o = new PM();
o.Serial = serial ?? ServerBootConfig.WORKORDER_SERIAL.GetNext(); o.Serial = serial ?? ServerBootConfig.PM_SERIAL.GetNext();
//TODO: template //TODO: template
//TODO: CUSTOMER ID //TODO: CUSTOMER ID

View File

@@ -81,7 +81,7 @@ namespace AyaNova.Biz
// { // {
//do stuff with Quote //do stuff with Quote
Quote o = new Quote(); Quote o = new Quote();
o.Serial = serial ?? ServerBootConfig.WORKORDER_SERIAL.GetNext(); o.Serial = serial ?? ServerBootConfig.QUOTE_SERIAL.GetNext();
//TODO: template //TODO: template
//TODO: CUSTOMER ID //TODO: CUSTOMER ID

View File

@@ -18,6 +18,8 @@ namespace AyaNova.Util
//Get the most recent id number issued previously and start the auto-id at that level //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 WIDGET_SERIAL { get; set; }
internal static AutoId WORKORDER_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 //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) #if (DEBUG)
@@ -220,6 +222,7 @@ namespace AyaNova.Util
//Get the auto-id most recent values at boot time //Get the auto-id most recent values at boot time
internal static void SetMostRecentAutoIdValuesFromDatabase(AyaNova.Models.AyContext ct) 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 //WIDGET SERIALS
if (WIDGET_SERIAL == null) if (WIDGET_SERIAL == null)
{ {