@if (ListRecords == null || isLoading)
@@ -81,7 +88,7 @@
@item.NumFasi
- @if (item.Enabled)
+ @if (item.Enabled && item.NumFasi == 0)
{
}
diff --git a/GPW.CORE.ADM/Components/Compo/TagsMan.razor.cs b/GPW.CORE.ADM/Components/Compo/TagsMan.razor.cs
index ceb4b49..1cb7f4f 100644
--- a/GPW.CORE.ADM/Components/Compo/TagsMan.razor.cs
+++ b/GPW.CORE.ADM/Components/Compo/TagsMan.razor.cs
@@ -65,7 +65,7 @@ namespace GPW.CORE.ADM.Components.Compo
return;
isLoading = true;
- //bool fatto = await GDataServ.AnagClientiDelete(selItem);
+ bool fatto = await GDataServ.AnagTagFasiDelete(selItem);
await ReloadData();
await InvokeAsync(StateHasChanged);
}
@@ -148,7 +148,6 @@ namespace GPW.CORE.ADM.Components.Compo
await InvokeAsync(StateHasChanged);
}
-
private async Task ReloadData()
{
isLoading = true;
diff --git a/GPW.CORE.ADM/Components/Pages/Gruppi.razor b/GPW.CORE.ADM/Components/Pages/Gruppi.razor
new file mode 100644
index 0000000..614a014
--- /dev/null
+++ b/GPW.CORE.ADM/Components/Pages/Gruppi.razor
@@ -0,0 +1,7 @@
+@page "/Gruppi"
+
+
+
+@code {
+
+}
diff --git a/GPW.CORE.Data/Controllers/GPWController.cs b/GPW.CORE.Data/Controllers/GPWController.cs
index ab6160d..978a313 100644
--- a/GPW.CORE.Data/Controllers/GPWController.cs
+++ b/GPW.CORE.Data/Controllers/GPWController.cs
@@ -990,6 +990,37 @@ namespace GPW.CORE.Data.Controllers
return dbResult;
}
+ public bool AnagTagFasiDelete(TagFasiDTO upsRec)
+ {
+ // init
+ bool answ = false;
+ // cerco su DB recuperando set di dati....
+ using (GPWContext localDbCtx = new GPWContext(_configuration))
+ {
+ try
+ {
+ // recupero cliente in primis...
+ var dbRec = localDbCtx
+ .DbSetAnagTagFasi
+ .Where(x => x.CodTagFase == upsRec.CodTagFase)
+ .FirstOrDefault();
+ if (dbRec != null)
+ {
+ localDbCtx
+ .DbSetAnagTagFasi
+ .Remove(dbRec);
+ localDbCtx.SaveChanges();
+ answ = true;
+ }
+ }
+ catch (Exception exc)
+ {
+ Log.Error($"Errore in AnagTagFasiDelete:{Environment.NewLine}{exc}");
+ }
+ }
+ return answ;
+ }
+
public bool AnagTagFasiUpsert(TagFasiDTO upsRec)
{
// init
diff --git a/GPW.CORE.Data/Services/GpwDataService.cs b/GPW.CORE.Data/Services/GpwDataService.cs
index 78b44e4..daa9c77 100644
--- a/GPW.CORE.Data/Services/GpwDataService.cs
+++ b/GPW.CORE.Data/Services/GpwDataService.cs
@@ -969,7 +969,28 @@ namespace GPW.CORE.Data.Services
}
///
- /// Aggiornamento record Fasi
+ /// Eliminazione record TagFasi
+ ///
+ ///
+ ///
+ public async Task AnagTagFasiDelete(TagFasiDTO currItem)
+ {
+ bool answ = false;
+ try
+ {
+ answ = dbController.AnagTagFasiDelete(currItem);
+ // invalido la cache...
+ await ExecFlushRedisPattern($"{redisBaseAddr}:*");
+ }
+ catch (Exception exc)
+ {
+ Log.Error($"Eccezione in AnagTagFasiDelete{Environment.NewLine}{exc}");
+ }
+ return answ;
+ }
+
+ ///
+ /// Aggiornamento record TagFasi
///
///
///
|