This commit is contained in:
2021-08-16 23:18:37 +00:00
parent 023dfa5ab6
commit b827ec1285
32 changed files with 122 additions and 105 deletions

View File

@@ -606,7 +606,7 @@ namespace AyaNova.Biz
//This may become necessary for v8migrate, leaving out for now
//skip validation if seeding
//if (ServerBootConfig.SEEDING) return;
//if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
//run validation and biz rules
bool isNew = currentObj == null;
@@ -948,7 +948,7 @@ namespace AyaNova.Biz
public async Task PMHandlePotentialNotificationEvent(AyaEvent ayaEvent, ICoreBizObjectModel proposedObj, ICoreBizObjectModel currentObj = null)
{
ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger<PMBiz>();
if (ServerBootConfig.SEEDING) return;
if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
log.LogDebug($"HandlePotentialNotificationEvent processing: [AyaType:{this.BizType}, AyaEvent:{ayaEvent}]");
bool isNew = currentObj == null;
@@ -1377,7 +1377,7 @@ namespace AyaNova.Biz
public async Task ItemHandlePotentialNotificationEvent(AyaEvent ayaEvent, ICoreBizObjectModel proposedObj, ICoreBizObjectModel currentObj = null)
{
ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger<PMBiz>();
if (ServerBootConfig.SEEDING) return;
if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
log.LogDebug($"HandlePotentialNotificationEvent processing: [AyaType:{proposedObj.AyaType}, AyaEvent:{ayaEvent}]");
bool isNew = currentObj == null;
@@ -1604,7 +1604,7 @@ namespace AyaNova.Biz
private async Task ExpenseValidateAsync(PMItemExpense proposedObj, PMItemExpense currentObj)
{
//skip validation if seeding
// if (ServerBootConfig.SEEDING) return;
// if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
//run validation and biz rules
bool isNew = currentObj == null;
@@ -1730,7 +1730,7 @@ namespace AyaNova.Biz
public async Task ExpenseHandlePotentialNotificationEvent(AyaEvent ayaEvent, ICoreBizObjectModel proposedObj, ICoreBizObjectModel currentObj = null)
{
ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger<PMBiz>();
if (ServerBootConfig.SEEDING) return;
if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
log.LogDebug($"HandlePotentialNotificationEvent processing: [AyaType:{proposedObj.AyaType}, AyaEvent:{ayaEvent}]");
bool isNew = currentObj == null;
@@ -2015,7 +2015,7 @@ namespace AyaNova.Biz
private async Task LaborValidateAsync(PMItemLabor proposedObj, PMItemLabor currentObj)
{
//skip validation if seeding
// if (ServerBootConfig.SEEDING) return;
// if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
//run validation and biz rules
bool isNew = currentObj == null;
@@ -2101,7 +2101,7 @@ namespace AyaNova.Biz
public async Task LaborHandlePotentialNotificationEvent(AyaEvent ayaEvent, ICoreBizObjectModel proposedObj, ICoreBizObjectModel currentObj = null)
{
ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger<PMBiz>();
if (ServerBootConfig.SEEDING) return;
if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
log.LogDebug($"HandlePotentialNotificationEvent processing: [AyaType:{proposedObj.AyaType}, AyaEvent:{ayaEvent}]");
bool isNew = currentObj == null;
@@ -2410,7 +2410,7 @@ namespace AyaNova.Biz
private async Task LoanValidateAsync(PMItemLoan proposedObj, PMItemLoan currentObj)
{
//skip validation if seeding
// if (ServerBootConfig.SEEDING) return;
// if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
//run validation and biz rules
bool isNew = currentObj == null;
@@ -2488,7 +2488,7 @@ namespace AyaNova.Biz
public async Task LoanHandlePotentialNotificationEvent(AyaEvent ayaEvent, ICoreBizObjectModel proposedObj, ICoreBizObjectModel currentObj = null)
{
ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger<PMBiz>();
if (ServerBootConfig.SEEDING) return;
if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
log.LogDebug($"HandlePotentialNotificationEvent processing: [AyaType:{proposedObj.AyaType}, AyaEvent:{ayaEvent}]");
bool isNew = currentObj == null;
@@ -2718,7 +2718,7 @@ namespace AyaNova.Biz
private async Task OutsideServiceValidateAsync(PMItemOutsideService proposedObj, PMItemOutsideService currentObj)
{
//skip validation if seeding
// if (ServerBootConfig.SEEDING) return;
// if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
//run validation and biz rules
bool isNew = currentObj == null;
@@ -2795,7 +2795,7 @@ namespace AyaNova.Biz
OutsideServiceReceived = 17,//* Workorder object , WorkorderItemOutsideService updated, instant notification when item received, tag filterable
*/
ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger<PMBiz>();
if (ServerBootConfig.SEEDING) return;
if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
log.LogDebug($"HandlePotentialNotificationEvent processing: [AyaType:{proposedObj.AyaType}, AyaEvent:{ayaEvent}]");
bool isNew = currentObj == null;
@@ -3157,7 +3157,7 @@ namespace AyaNova.Biz
private async Task PartValidateAsync(PMItemPart proposedObj, PMItemPart currentObj)
{
//skip validation if seeding
// if (ServerBootConfig.SEEDING) return;
// if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
//run validation and biz rules
bool isNew = currentObj == null;
@@ -3233,7 +3233,7 @@ namespace AyaNova.Biz
public async Task PartHandlePotentialNotificationEvent(AyaEvent ayaEvent, ICoreBizObjectModel proposedObj, ICoreBizObjectModel currentObj = null)
{
ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger<PMBiz>();
if (ServerBootConfig.SEEDING) return;
if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
log.LogDebug($"HandlePotentialNotificationEvent processing: [AyaType:{proposedObj.AyaType}, AyaEvent:{ayaEvent}]");
bool isNew = currentObj == null;
@@ -3384,7 +3384,7 @@ namespace AyaNova.Biz
private async Task ScheduledUserValidateAsync(PMItemScheduledUser proposedObj, PMItemScheduledUser currentObj)
{
//skip validation if seeding
// if (ServerBootConfig.SEEDING) return;
// if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
//run validation and biz rules
bool isNew = currentObj == null;
@@ -3467,7 +3467,7 @@ namespace AyaNova.Biz
public async Task ScheduledUserHandlePotentialNotificationEvent(AyaEvent ayaEvent, ICoreBizObjectModel proposedObj, ICoreBizObjectModel currentObj = null)
{
ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger<PMBiz>();
if (ServerBootConfig.SEEDING) return;
if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
log.LogDebug($"HandlePotentialNotificationEvent processing: [AyaType:{proposedObj.AyaType}, AyaEvent:{ayaEvent}]");
bool isNew = currentObj == null;
@@ -3647,7 +3647,7 @@ namespace AyaNova.Biz
private async Task TaskValidateAsync(PMItemTask proposedObj, PMItemTask currentObj)
{
//skip validation if seeding
// if (ServerBootConfig.SEEDING) return;
// if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
//run validation and biz rules
bool isNew = currentObj == null;
@@ -3730,7 +3730,7 @@ namespace AyaNova.Biz
public async Task TaskHandlePotentialNotificationEvent(AyaEvent ayaEvent, ICoreBizObjectModel proposedObj, ICoreBizObjectModel currentObj = null)
{
ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger<PMBiz>();
if (ServerBootConfig.SEEDING) return;
if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
log.LogDebug($"HandlePotentialNotificationEvent processing: [AyaType:{proposedObj.AyaType}, AyaEvent:{ayaEvent}]");
bool isNew = currentObj == null;
@@ -4017,7 +4017,7 @@ namespace AyaNova.Biz
private async Task TravelValidateAsync(PMItemTravel proposedObj, PMItemTravel currentObj)
{
//skip validation if seeding
// if (ServerBootConfig.SEEDING) return;
// if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
//run validation and biz rules
bool isNew = currentObj == null;
@@ -4087,7 +4087,7 @@ namespace AyaNova.Biz
public async Task TravelHandlePotentialNotificationEvent(AyaEvent ayaEvent, ICoreBizObjectModel proposedObj, ICoreBizObjectModel currentObj = null)
{
ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger<PMBiz>();
if (ServerBootConfig.SEEDING) return;
if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
log.LogDebug($"HandlePotentialNotificationEvent processing: [AyaType:{proposedObj.AyaType}, AyaEvent:{ayaEvent}]");
bool isNew = currentObj == null;
@@ -4295,7 +4295,7 @@ namespace AyaNova.Biz
private async Task UnitValidateAsync(PMItemUnit proposedObj, PMItemUnit currentObj)
{
//skip validation if seeding
// if (ServerBootConfig.SEEDING) return;
// if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
@@ -4370,7 +4370,7 @@ namespace AyaNova.Biz
public async Task UnitHandlePotentialNotificationEvent(AyaEvent ayaEvent, ICoreBizObjectModel proposedObj, ICoreBizObjectModel currentObj = null)
{
ILogger log = AyaNova.Util.ApplicationLogging.CreateLogger<PMBiz>();
if (ServerBootConfig.SEEDING) return;
if(ServerBootConfig.SEEDING || ServerBootConfig.MIGRATING) return;
log.LogDebug($"HandlePotentialNotificationEvent processing: [AyaType:{proposedObj.AyaType}, AyaEvent:{ayaEvent}]");
bool isNew = currentObj == null;