Service update, import changes from web_portal
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using library_spo_utils.Interfaces.Repositories;
|
||||
using library_spo_utils.Interfaces.Services;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using console_spo_utils.Interfaces.Services;
|
||||
using Microsoft.SharePoint.Client;
|
||||
|
||||
namespace console_spo_utils.Workers
|
||||
namespace library_spo_utils.Workers
|
||||
{
|
||||
internal class MainWorker : BackgroundService
|
||||
{
|
||||
@@ -20,29 +22,55 @@ namespace console_spo_utils.Workers
|
||||
|
||||
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
|
||||
{
|
||||
var buildProjectsResult = structureBuilder.BuildProject("CT0000");
|
||||
await Task.CompletedTask;
|
||||
|
||||
if (!buildProjectsResult)
|
||||
{
|
||||
logger.LogError("Impossible to create structure");
|
||||
return;
|
||||
}
|
||||
//var buildProjectsResult = structureBuilder.BuildProject("CT22-TEST");
|
||||
|
||||
var buildQuotationResult = structureBuilder.BuildQuotation("OF0001");
|
||||
//if (!buildProjectsResult)
|
||||
//{
|
||||
// logger.LogError("Impossible to create structure");
|
||||
// return;
|
||||
//}
|
||||
|
||||
if (!buildQuotationResult)
|
||||
{
|
||||
logger.LogError("Impossible to create structure");
|
||||
return;
|
||||
}
|
||||
//var buildQuotationResult = structureBuilder.BuildQuotation("OF23-TEST");
|
||||
|
||||
var buildNonComplianceResult = structureBuilder.BuildNonCompliance("NC0002");
|
||||
//if (!buildQuotationResult)
|
||||
//{
|
||||
// logger.LogError("Impossible to create structure");
|
||||
// return;
|
||||
//}
|
||||
|
||||
if (!buildNonComplianceResult)
|
||||
{
|
||||
logger.LogError("Impossible to create structure");
|
||||
return;
|
||||
}
|
||||
//var buildNonComplianceResult = structureBuilder.BuildNonCompliance("NC22-TEST");
|
||||
|
||||
//if (!buildNonComplianceResult)
|
||||
//{
|
||||
// logger.LogError("Impossible to create structure");
|
||||
// return;
|
||||
//}
|
||||
|
||||
//var buildPurchasingOrderResult = structureBuilder.BuildPurchasingOrder("PO22-TEST");
|
||||
|
||||
//if (!buildPurchasingOrderResult)
|
||||
//{
|
||||
// logger.LogError("Impossible to create structure");
|
||||
// return;
|
||||
//}
|
||||
|
||||
//var buildPurchasingPackingSlipResult = structureBuilder.BuildPurchasingPackingSlip("DA22-TEST");
|
||||
|
||||
//if (!buildPurchasingPackingSlipResult)
|
||||
//{
|
||||
// logger.LogError("Impossible to create structure");
|
||||
// return;
|
||||
//}
|
||||
|
||||
//var buildPurchasingResquestResult = structureBuilder.BuildPurchasingRequest("RDA22-TEST");
|
||||
|
||||
//if (!buildPurchasingResquestResult)
|
||||
//{
|
||||
// logger.LogError("Impossible to create structure");
|
||||
// return;
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user