This commit is contained in:
@@ -22,17 +22,16 @@ namespace AyaNova.Util
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||
private const int DESIRED_SCHEMA_LEVEL = 1;
|
||||
|
||||
internal const long EXPECTED_COLUMN_COUNT = 928;
|
||||
internal const long EXPECTED_COLUMN_COUNT = 954;
|
||||
internal const long EXPECTED_INDEX_COUNT = 137;
|
||||
internal const long EXPECTED_CHECK_CONSTRAINTS = 415;
|
||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 116;
|
||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 117;
|
||||
internal const long EXPECTED_VIEWS = 6;
|
||||
internal const long EXPECTED_ROUTINES = 2;
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||
|
||||
///////////////////////////////////////////////////////////////// (C927:I137:CC415:FC116:V6:R2)
|
||||
|
||||
///////////////////////////////////////////////////////////////// (C954:I137:CC415:FC117:V6:R2)
|
||||
|
||||
/*
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using AyaNova.Models;
|
||||
|
||||
@@ -13,22 +12,12 @@ namespace AyaNova.Util
|
||||
/// </summary>
|
||||
internal static class ServerGlobalBizSettings
|
||||
{
|
||||
|
||||
internal static bool SearchCaseSensitiveOnly { get; set; }
|
||||
internal static bool UseInventory { get; set; }
|
||||
internal static long? TaxPartPurchaseId { get; set; }
|
||||
internal static long? TaxPartSaleId { get; set; }
|
||||
internal static long? TaxRateSaleId { get; set; }
|
||||
internal static TimeSpan WorkOrderCompleteByAge { get; set; }
|
||||
internal static int WorkLaborScheduleDefaultMinutes { get; set; }
|
||||
internal static int WorkOrderTravelDefaultMinutes { get; set; }
|
||||
|
||||
internal static GlobalBizSettings Cache {get;set;}
|
||||
/// <summary>
|
||||
/// Populate and / or create the settings
|
||||
/// </summary>
|
||||
internal static void Initialize(GlobalBizSettings global, AyContext ct = null)
|
||||
{
|
||||
|
||||
if (global == null)
|
||||
{
|
||||
//fetch or create as not provided (meaning this was called from Startup.cs)
|
||||
@@ -40,20 +29,7 @@ namespace AyaNova.Util
|
||||
ct.SaveChanges();
|
||||
}
|
||||
}
|
||||
|
||||
//We have the object, now copy the static values here
|
||||
SearchCaseSensitiveOnly = global.SearchCaseSensitiveOnly;
|
||||
UseInventory = global.UseInventory;
|
||||
TaxPartPurchaseId = global.TaxPartPurchaseId;
|
||||
TaxPartSaleId = global.TaxPartSaleId;
|
||||
TaxRateSaleId = global.TaxRateSaleId;
|
||||
WorkOrderCompleteByAge = global.WorkOrderCompleteByAge;
|
||||
WorkLaborScheduleDefaultMinutes = global.WorkLaborScheduleDefaultMinutes;
|
||||
WorkOrderTravelDefaultMinutes = global.WorkOrderTravelDefaultMinutes;
|
||||
|
||||
Cache = global;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}//eoc
|
||||
}//eons
|
||||
Reference in New Issue
Block a user