Fix update cerca podl
This commit is contained in:
@@ -225,7 +225,7 @@
|
||||
</div>
|
||||
<div class="col-12 col-md-6 mb-2 mt-2">
|
||||
<div class="input-group input-group-lg">
|
||||
<input type="text" class="form-control w-25" placeholder="Cerca" aria-label="Cerca">
|
||||
<input type="text" class="form-control w-25" placeholder="Cerca" aria-label="Cerca" @bind="@cercaPodl">
|
||||
<select class="form-select w-50" @bind="IdxPOdlSel">
|
||||
@foreach (var item in ListODL)
|
||||
{
|
||||
|
||||
@@ -86,6 +86,7 @@ namespace MP_TAB_SERV.Components
|
||||
protected IJSRuntime JSRuntime { get; set; } = null!;
|
||||
|
||||
protected List<vSelOdlModel> ListODL { get; set; } = new List<vSelOdlModel>();
|
||||
protected List<vSelOdlModel> ListODLAll { get; set; } = new List<vSelOdlModel>();
|
||||
|
||||
[Inject]
|
||||
protected MailService MailServ { get; set; } = null!;
|
||||
@@ -1044,7 +1045,7 @@ namespace MP_TAB_SERV.Components
|
||||
|
||||
private string cssDetailOdl
|
||||
{
|
||||
get => IdxPOdlSel > 0 ? "bg-primary text-light" : "bg-warning";
|
||||
get => IdxPOdlSel > 0 ? "bg-info text-light" : "bg-warning";
|
||||
}
|
||||
|
||||
private ODLExpModel currOdl { get; set; } = new ODLExpModel();
|
||||
@@ -1613,6 +1614,27 @@ namespace MP_TAB_SERV.Components
|
||||
checkBtnStatus();
|
||||
}
|
||||
|
||||
protected string cercaPodl
|
||||
{
|
||||
get => _cercaPodl;
|
||||
set
|
||||
{
|
||||
if (_cercaPodl != value)
|
||||
{
|
||||
_cercaPodl = value;
|
||||
if (string.IsNullOrEmpty(_cercaPodl))
|
||||
{
|
||||
ListODL = ListODLAll;
|
||||
}
|
||||
else
|
||||
{
|
||||
ListODL = ListODLAll.Where(x => x.label.Contains(cercaPodl)).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
private string _cercaPodl = "";
|
||||
|
||||
private async Task ReloadData(bool forceReload)
|
||||
{
|
||||
Log.Trace("OdlMan.ReloadData");
|
||||
@@ -1627,7 +1649,15 @@ namespace MP_TAB_SERV.Components
|
||||
}
|
||||
if (!string.IsNullOrEmpty(IdxMaccSel))
|
||||
{
|
||||
ListODL = await TabDServ.VSOdlGetUnused(IdxMaccParent, ShowAll, numDayOdl);
|
||||
ListODLAll = await TabDServ.VSOdlGetUnused(IdxMaccParent, ShowAll, numDayOdl);
|
||||
if (string.IsNullOrEmpty(cercaPodl))
|
||||
{
|
||||
ListODL = ListODLAll;
|
||||
}
|
||||
else
|
||||
{
|
||||
ListODL = ListODLAll.Where(x => x.label.Contains(cercaPodl)).ToList();
|
||||
}
|
||||
Log.Trace($"found {ListODL.Count} rec");
|
||||
if (forceReload)
|
||||
{
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>6.16.2312.1515</Version>
|
||||
<Version>6.16.2312.1516</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP_TAB_SERV</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2312.1515</h4>
|
||||
<h4>Versione: 6.16.2312.1516</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2312.1515
|
||||
6.16.2312.1516
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2312.1515</version>
|
||||
<version>6.16.2312.1516</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/MP-TAB-SERV.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB-SERV/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user