@@ -197,7 +200,7 @@ else
@foreach (var kvp in item.DictAttribShort(nShort))
{
- @kvp.Key:
+ @kvp.Key:
@kvp.Value
}
diff --git a/LiMan.UI/Components/EnrollList.razor.cs b/LiMan.UI/Components/EnrollList.razor.cs
index a0ee72c..6e55f12 100644
--- a/LiMan.UI/Components/EnrollList.razor.cs
+++ b/LiMan.UI/Components/EnrollList.razor.cs
@@ -31,6 +31,9 @@ namespace LiMan.UI.Components
[Parameter]
public string SearchVal { get; set; } = "";
+ [Parameter]
+ public int IdxLicSel { get; set; } = 0;
+
#endregion Public Properties
#region Public Methods
@@ -82,6 +85,7 @@ namespace LiMan.UI.Components
// aggiungo chiave calcolata
newLic.Chiave = newLic.ChiaveCalc;
await LMDService.LicenzeNextUpdate(newLic);
+ LMDService.EnrollMessPipe.sendMessage("LicAdded");
ShowAddLic = false;
ShowEditLic = false;
await ReloadLicData();
@@ -102,6 +106,7 @@ namespace LiMan.UI.Components
// aggiorno chiave calcolata
currLic.Chiave = currLic.ChiaveCalc;
await LMDService.LicenzeNextUpdate(currLic);
+ LMDService.EnrollMessPipe.sendMessage("LicUpdated");
ShowAddLic = false;
ShowEditLic = false;
await ReloadLicData();
@@ -123,6 +128,7 @@ namespace LiMan.UI.Components
SelRecord.UserAppr = user.Identity.Name;
SelRecord.IdxLic = SelIdxLic;
await LMDService.EnrollReqUpsert(SelRecord);
+ LMDService.EnrollMessPipe.sendMessage("AppApproved");
SelRecord = null;
await ReloadData();
}
@@ -188,7 +194,7 @@ namespace LiMan.UI.Components
///
/// num max di dettagli KVP da mostrare
///
- private int nShort = 2;
+ private int nShort = 3;
private List
PageList = new List() { 4, 8, 12, 16, 24, 48 };
@@ -254,6 +260,10 @@ namespace LiMan.UI.Components
{
isLoading = true;
SearchRecords = await LMDService.EnrollReqGetFilt(OnlyActive, DtStart, DtEnd);
+ if (IdxLicSel > 0)
+ {
+ SearchRecords = SearchRecords.Where(x => x.IdxLic == IdxLicSel).ToList();
+ }
if (!string.IsNullOrEmpty(SearchVal))
{
SearchRecords = SearchRecords.Where(x => $"{x.Passcode}".Contains(SearchVal)).ToList();
diff --git a/LiMan.UI/Components/SearchEnroll.razor b/LiMan.UI/Components/SearchEnroll.razor
index aa0a693..76c9b58 100644
--- a/LiMan.UI/Components/SearchEnroll.razor
+++ b/LiMan.UI/Components/SearchEnroll.razor
@@ -24,28 +24,26 @@