FIX filtro macchina per reparto
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP.SPEC</RootNamespace>
|
||||
<Version>6.16.2211.3010</Version>
|
||||
<Version>6.16.2211.3011</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
+18
-13
@@ -131,7 +131,7 @@
|
||||
<div class="input-group input-group-sm">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-text" id="inputGroup-sizing-sm">Gruppo</span>
|
||||
<select @bind="@currRecord.CodGruppo" class="form-select">
|
||||
<select @bind="@gruppoSearch" class="form-select">
|
||||
@if (ListGruppiFase != null)
|
||||
{
|
||||
foreach (var item in ListGruppiFase)
|
||||
@@ -159,18 +159,26 @@
|
||||
<select @bind="@currRecord.IdxMacchina" class="form-select">
|
||||
@if (ListMacchine != null)
|
||||
{
|
||||
foreach (var item in ListMacchine)
|
||||
if (ListMacchine.Count == 0)
|
||||
{
|
||||
<option selected>--Nessuna macchina presente--</option>
|
||||
}
|
||||
else
|
||||
{
|
||||
@if (!item.MachineNav.Descrizione.Contains("NEW Descrizione"))
|
||||
{
|
||||
|
||||
if (item.IdxMacchina == currRecordControlli.IdxMacchina)
|
||||
foreach (var item in ListMacchine)
|
||||
{
|
||||
@if (!item.MachineNav.Descrizione.Contains("NEW Descrizione"))
|
||||
{
|
||||
<option selected value="@item.IdxMacchina">@item.IdxMacchina | @item.MachineNav.Descrizione</option>
|
||||
}
|
||||
else
|
||||
{
|
||||
<option value="@item.IdxMacchina">@item.IdxMacchina | @item.MachineNav.Descrizione</option>
|
||||
|
||||
if (item.IdxMacchina == currRecordControlli.IdxMacchina)
|
||||
{
|
||||
<option selected value="@item.IdxMacchina">@item.IdxMacchina | @item.MachineNav.Descrizione</option>
|
||||
}
|
||||
else
|
||||
{
|
||||
<option value="@item.IdxMacchina">@item.IdxMacchina | @item.MachineNav.Descrizione</option>
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -209,10 +217,7 @@
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<div class="d-grid gap-2">
|
||||
@if (currRecord.CodArticolo != "" && currRecord.CodFase != "" && currRecord.CodGruppo != "" && currRecord.IdxMacchina != "")
|
||||
{
|
||||
<button class="btn btn-success" @onclick="() => update(currRecord)">Salva <i class="bi bi-save"></i></button>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace MP.SPEC.Pages
|
||||
await reloadData();
|
||||
}
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
{
|
||||
// carico dati
|
||||
//await reloadData();
|
||||
}
|
||||
@@ -195,6 +195,8 @@ namespace MP.SPEC.Pages
|
||||
return;
|
||||
await Task.Delay(1);
|
||||
var clonedRec = MP.Data.Utils.POdlExt.convertToPOdl(selRec);
|
||||
clonedRec.CodGruppo = gruppoSearch;
|
||||
clonedRec.IdxOdl = 0;
|
||||
var done = await MDService.POdlUpdateRecord(clonedRec);
|
||||
await callSyncDb(clonedRec);
|
||||
currRecord = null;
|
||||
@@ -235,7 +237,23 @@ namespace MP.SPEC.Pages
|
||||
#region Private Properties
|
||||
|
||||
private string _artSearch { get; set; } = "";
|
||||
|
||||
private string _gruppoSearch { get; set; } = "";
|
||||
private string gruppoSearch
|
||||
{
|
||||
get => _gruppoSearch;
|
||||
set
|
||||
{
|
||||
if (!_gruppoSearch.Equals(value))
|
||||
{
|
||||
_gruppoSearch = value;
|
||||
var pUpd = Task.Run(async () =>
|
||||
{
|
||||
await reloadData();
|
||||
});
|
||||
pUpd.Wait();
|
||||
}
|
||||
}
|
||||
}
|
||||
private string _currAzienda { get; set; } = "*";
|
||||
|
||||
private bool addEnabled
|
||||
@@ -336,8 +354,10 @@ namespace MP.SPEC.Pages
|
||||
{
|
||||
if (value != null)
|
||||
{
|
||||
value.CodGruppo = gruppoSearch;
|
||||
_currRecord = value;
|
||||
artSearch = value == null ? "" : value.CodArticolo;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -427,7 +447,7 @@ namespace MP.SPEC.Pages
|
||||
{
|
||||
ListGruppiFase = allGruppiData.Where(x => x.SelEnabled).ToList();
|
||||
}
|
||||
ListMacchine = await MDService.MacchineGetAll(selReparto);
|
||||
ListMacchine = await MDService.MacchineGetAll(gruppoSearch);
|
||||
ListStati = await MDService.AnagStatiComm();
|
||||
ListArticoli = await MDService.ArticoliGetSearch(100, currAzienda, artSearch);
|
||||
//SearchRecords = await MDService.ListPODLFilt(hasOdl, StatoSel, macchina, selReparto, selDtStart, selDtEnd);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2211.3010</h4>
|
||||
<h4>Versione: 6.16.2211.3011</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2211.3010
|
||||
6.16.2211.3011
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2211.3010</version>
|
||||
<version>6.16.2211.3011</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user