From 609ecbf2aef91be23a8ead6237ef34175651aa6d Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Mon, 8 May 2023 09:44:01 +0200 Subject: [PATCH] pulizie varie --- .../Components/DoorDef/DoorDefStepList.razor | 4 +--- .../Components/Order/OrderStatusStep.razor | 3 +-- .../Data/WebDoorCreatorService.cs | 20 +++++++++---------- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/WebDoorCreator.UI/Components/DoorDef/DoorDefStepList.razor b/WebDoorCreator.UI/Components/DoorDef/DoorDefStepList.razor index 4721263..3a3c98f 100644 --- a/WebDoorCreator.UI/Components/DoorDef/DoorDefStepList.razor +++ b/WebDoorCreator.UI/Components/DoorDef/DoorDefStepList.razor @@ -1,6 +1,4 @@ -@using Components.SvgComp - -
+
@if (currListDoorDefStatus != null) { @foreach (var item in currListDoorDefStatus) diff --git a/WebDoorCreator.UI/Components/Order/OrderStatusStep.razor b/WebDoorCreator.UI/Components/Order/OrderStatusStep.razor index f29827e..d37b7a7 100644 --- a/WebDoorCreator.UI/Components/Order/OrderStatusStep.razor +++ b/WebDoorCreator.UI/Components/Order/OrderStatusStep.razor @@ -1,5 +1,4 @@ -@using Components.SvgComp - +
@if (currListOrderStatus != null) { diff --git a/WebDoorCreator.UI/Data/WebDoorCreatorService.cs b/WebDoorCreator.UI/Data/WebDoorCreatorService.cs index b5d7657..eed0c89 100644 --- a/WebDoorCreator.UI/Data/WebDoorCreatorService.cs +++ b/WebDoorCreator.UI/Data/WebDoorCreatorService.cs @@ -153,10 +153,7 @@ namespace WebDoorCreator.UI.Data { bool fatto = false; string compoName = ""; - string edgeType = ""; string sizeVal = ""; - string swingType = ""; - int numHier = 1; List listGraphicParams = new List(); List listValues = new List(); ListValuesTempModel Values = new ListValuesTempModel(); @@ -481,12 +478,14 @@ namespace WebDoorCreator.UI.Data compoName = fIni.ReadString("Compo", "Name", "COMPONAME"); //cerco la sezione del file ed estraggo se numPar template sono attivi per il seguente componente var isActive = fIni.ReadString("Template", "IsActive", "1"); +#if false bool compoTemplateIsActive = true; - string layerName = fIni.ReadString("Layer", "LayerName", "LAYER"); if (isActive == "0") { compoTemplateIsActive = false; - } + } +#endif + string layerName = fIni.ReadString("Layer", "LayerName", "LAYER"); // lo slash indica l'alias var compoNameSplit = compoName.Split("/"); if (listActiveCompo.Contains(compoNameSplit[0].ToString())) @@ -920,6 +919,7 @@ namespace WebDoorCreator.UI.Data /// public async Task?> DoorOpTypeGetAll() { + await Task.Delay(1); string source = "DB"; List? dbResult = new List(); // cerco da cache @@ -940,14 +940,14 @@ namespace WebDoorCreator.UI.Data /// /// Aggiornamento DoorOP /// - /// + /// /// - public async Task DoorOpUpdate(DoorOpModel currDoorOp) + public async Task DoorOpUpdate(List currDoorOps) { - var dbResult = await dbController.DoorOpUpdate(currDoorOp); + var dbResult = await dbController.DoorOpUpdate(currDoorOps); // elimino cache redis dati porta... - bool answ = await DoorOpFlushCache(currDoorOp.DoorId); - answ = answ && await DoorFlushCache(currDoorOp.DoorId); + bool answ = await DoorOpFlushCache(currDoorOps.FirstOrDefault()!.DoorId); + answ = answ && await DoorFlushCache(currDoorOps.FirstOrDefault()!.DoorId); // elimino cache redis dati ordine... answ = answ && await OrdersFlushCache(); return dbResult;