pulizie varie

This commit is contained in:
zaccaria.majid
2023-05-08 09:44:01 +02:00
parent 9d8ab51420
commit 609ecbf2ae
3 changed files with 12 additions and 15 deletions
@@ -1,6 +1,4 @@
@using Components.SvgComp
<div class="containerAll row text-light" style="background-color: #34495E;">
<div class="containerAll row text-light" style="background-color: #34495E;">
@if (currListDoorDefStatus != null)
{
@foreach (var item in currListDoorDefStatus)
@@ -1,5 +1,4 @@
@using Components.SvgComp
<div class="containerAll row text-light" style="background-color: #34495E;">
@if (currListOrderStatus != null)
{
+10 -10
View File
@@ -153,10 +153,7 @@ namespace WebDoorCreator.UI.Data
{
bool fatto = false;
string compoName = "";
string edgeType = "";
string sizeVal = "";
string swingType = "";
int numHier = 1;
List<GraphicParamsModel> listGraphicParams = new List<GraphicParamsModel>();
List<ListValuesTempModel> listValues = new List<ListValuesTempModel>();
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
/// </summary>
public async Task<List<DoorOpTypeModel>?> DoorOpTypeGetAll()
{
await Task.Delay(1);
string source = "DB";
List<DoorOpTypeModel>? dbResult = new List<DoorOpTypeModel>();
// cerco da cache
@@ -940,14 +940,14 @@ namespace WebDoorCreator.UI.Data
/// <summary>
/// Aggiornamento DoorOP
/// </summary>
/// <param name="currDoorOp"></param>
/// <param name="currDoorOps"></param>
/// <returns></returns>
public async Task<bool> DoorOpUpdate(DoorOpModel currDoorOp)
public async Task<bool> DoorOpUpdate(List<DoorOpModel> 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;