Filtraggio OPeratori e scarti da anagrafica

This commit is contained in:
Samuele Locatelli
2024-02-26 14:17:08 +01:00
parent fc134abf0c
commit d8d3078f2f
16 changed files with 63 additions and 51 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ namespace MP_TAB3.Components
}
/// <summary>
/// CSS calss x testo (se descr lunga scorre...)
/// CSS class x testo (se descr lunga scorre...)
/// </summary>
protected string textDescrCss
{
+2 -2
View File
@@ -42,11 +42,11 @@
</div>
<div class="col-12">
<div class="row">
@foreach (var item in ListComplete)
@foreach (var item in listCauScarto)
{
<div class="col-6 col-lg-4 col-xl-3 mt-2">
<button class="btn w-100 btn-lg @($"btn-{item.cssClass}")" @onclick="() => doSave(item)">
<i class="@item.icona"></i> <span style="font-size: 1rem;">@item.label</span>
<i class="@item.icona"></i><span cs="fs-5 ps-2">@item.label</span>
</button>
<asp:LinkButton ID="hlRegistra" runat="server" OnClick="hlRegistra_Click" CommandArgument='<%# Eval("value") %>' CssClass='<%# "btn w-100 btn-lg btn-" + Eval("cssClass")%>'>
+6 -2
View File
@@ -32,7 +32,7 @@ namespace MP_TAB3.Components
}
protected string errMsg { get; set; } = "";
protected List<vSelCauScartoModel> ListComplete { get; set; } = new List<vSelCauScartoModel>();
protected List<vSelCauScartoModel> listCauScarto { get; set; } = new List<vSelCauScartoModel>();
[Inject]
protected MessageService MServ { get; set; } = null!;
@@ -124,7 +124,11 @@ namespace MP_TAB3.Components
protected async Task ReloadData()
{
ListComplete = await TabServ.VSCS_getAll();
var rawData = await TabServ.VSCS_getAll();
listCauScarto = rawData
.Where(x => x.isEnabled)
.OrderBy(x => x.label)
.ToList();
}
protected void resetDate()
+1 -1
View File
@@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<Version>6.16.2402.2610</Version>
<Version>6.16.2402.2614</Version>
<ImplicitUsings>enable</ImplicitUsings>
<RootNamespace>MP_TAB3</RootNamespace>
</PropertyGroup>
+2 -2
View File
@@ -41,12 +41,12 @@
}
@if (oprsList.Count > 0)
@if (oprList.Count > 0)
{
<div class="mb-1">
<span class="fs-5 fw-bold">Selezionare un operatore</span>
<select class="form-select" @bind="matrOpr">
@foreach (var opr in oprsList)
@foreach (var opr in oprList)
{
<option value="@opr.MatrOpr">@($"{opr.Cognome} {opr.Nome}")</option>
}
+9 -3
View File
@@ -17,7 +17,7 @@ namespace MP_TAB3.Pages
{
txtError = "";
matrOpr = 0;
oprsList = new List<AnagOperatoriModel>();
oprList = new List<AnagOperatoriModel>();
//GC.Collect();
}
@@ -71,7 +71,7 @@ namespace MP_TAB3.Pages
[Inject]
protected NavigationManager NavMan { get; set; } = null!;
protected List<AnagOperatoriModel> oprsList { get; set; } = new List<AnagOperatoriModel>();
protected List<AnagOperatoriModel> oprList { get; set; } = new List<AnagOperatoriModel>();
protected AnagOperatoriModel rigaOpr { get; set; } = null!;
@@ -126,7 +126,13 @@ namespace MP_TAB3.Pages
matrOpr = await MsgServ.GetLastMatrOprAsync();
TDService.ConfigGetVal("cookieDayExpire", ref expDays);
ShowScanBarcode = !SMServ.GetConfBool("TAB_WebCamHide");
oprsList = await TDService.ElencoOperatori();
oprList = await TDService.ElencoOperatori();
// filtro solo abilitati + ordino x nome...
oprList = oprList
.Where(x => x.isEnabled)
.OrderBy(x => x.Cognome)
.ThenBy(x => x.Nome)
.ToList();
}
protected async Task ScanDoneHandler(string value)
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MAPOSPEC </i>
<h4>Versione: 6.16.2402.2610</h4>
<h4>Versione: 6.16.2402.2614</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
6.16.2402.2610
6.16.2402.2614
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>6.16.2402.2610</version>
<version>6.16.2402.2614</version>
<url>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/MP-TAB3.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>