diff --git a/MP.Land/Components/CompareAnagKeyVal.razor b/MP.Land/Components/CompareAnagKeyVal.razor
index a5956899..6f8008ac 100644
--- a/MP.Land/Components/CompareAnagKeyVal.razor
+++ b/MP.Land/Components/CompareAnagKeyVal.razor
@@ -42,11 +42,11 @@
{
if (!item.DestExist)
{
-
+
}
else if ( item.SrcExist)
{
-
+
}
}
@@ -96,7 +96,7 @@
@if (item.DestExist)
{
-
+
}
|
diff --git a/MP.Land/Components/CompareAnagKeyVal.razor.cs b/MP.Land/Components/CompareAnagKeyVal.razor.cs
index a4ed954f..8107099b 100644
--- a/MP.Land/Components/CompareAnagKeyVal.razor.cs
+++ b/MP.Land/Components/CompareAnagKeyVal.razor.cs
@@ -58,10 +58,16 @@ namespace MP.Land.Components
#region Protected Methods
- protected async Task AddLocal(CompAnagKeyVal currItem)
+ protected string genClass(CompAnagKeyVal currItem)
{
- if (!await JSRuntime.InvokeAsync("confirm", "Sicuro di voler aggiungere il record?"))
- return;
+ string answ = currItem.IsEqual ? "text-dark" : currItem.SrcExist && currItem.DestExist ? "text-warning" : currItem.SrcExist ? "text-success" : "text-danger";
+ return answ;
+ }
+
+ protected async Task LocalAdd(CompAnagKeyVal currItem)
+ {
+ //if (!await JSRuntime.InvokeAsync("confirm", "Sicuro di voler aggiungere il record?"))
+ // return;
bool fatto = false;
if (currItem != null)
@@ -74,19 +80,7 @@ namespace MP.Land.Components
}
}
- protected string genClass(CompAnagKeyVal currItem)
- {
- string answ = currItem.IsEqual ? "text-dark" : currItem.SrcExist && currItem.DestExist ? "text-warning" : currItem.SrcExist ? "text-success" : "text-danger";
- //string answ = currItem.IsEqual ? "far fa-thumbs-up text-success" : "far fa-thumbs-down text-danger";
- return answ;
- }
-
- protected override void OnParametersSet()
- {
- ForceReload();
- }
-
- protected async Task RemLocal(CompAnagKeyVal currItem)
+ protected async Task LocalRem(CompAnagKeyVal currItem)
{
if (!await JSRuntime.InvokeAsync("confirm", "Sicuro di voler eliminare il record?"))
return;
@@ -102,6 +96,27 @@ namespace MP.Land.Components
}
}
+ protected async Task LocalUpd(CompAnagKeyVal currItem)
+ {
+ //if (!await JSRuntime.InvokeAsync("confirm", "Sicuro di voler aggiungere il record?"))
+ // return;
+
+ bool fatto = false;
+ if (currItem != null)
+ {
+ fatto = await DataService.AnagKeyValUpd(currItem.Source);
+ }
+ if (fatto)
+ {
+ await ReqReload();
+ }
+ }
+
+ protected override void OnParametersSet()
+ {
+ ForceReload();
+ }
+
///
/// Report evento richiesta confronto AnagKeyVal
///
@@ -136,8 +151,6 @@ namespace MP.Land.Components
{
numRecord = newNum;
currPage = 1;
- //isLoading = true;
- //ListCompare = null;
await InvokeAsync(UpdPaging);
await Task.Delay(1);
isLoading = false;
@@ -146,34 +159,12 @@ namespace MP.Land.Components
protected async Task SetPage(int newNum)
{
isLoading = true;
- //ListCompare = null;
- //await Task.Delay(1);
- ////StateHasChanged();
currPage = newNum;
- //await Task.Delay(1);
- //UpdPaging();
- //await Task.Delay(1);
await InvokeAsync(UpdPaging);
await Task.Delay(1);
isLoading = false;
}
- protected async Task UpdLocal(CompAnagKeyVal currItem)
- {
- if (!await JSRuntime.InvokeAsync("confirm", "Sicuro di voler aggiungere il record?"))
- return;
-
- bool fatto = false;
- if (currItem != null)
- {
- fatto = await DataService.AnagKeyValUpd(currItem.Source);
- }
- if (fatto)
- {
- await ReqReload();
- }
- }
-
#endregion Protected Methods
#region Private Properties
diff --git a/MP.Land/Components/CompareConfig.razor b/MP.Land/Components/CompareConfig.razor
index f99df2fc..39adc9a0 100644
--- a/MP.Land/Components/CompareConfig.razor
+++ b/MP.Land/Components/CompareConfig.razor
@@ -4,7 +4,7 @@