Inizio modifica selezione articolo
This commit is contained in:
@@ -16,18 +16,10 @@ namespace MP.SPEC.Components
|
||||
{
|
||||
get => MsgService.StateSel;
|
||||
set => MsgService.StateSel = value;
|
||||
//get => _statoSel;
|
||||
//set
|
||||
//{
|
||||
// if (_statoSel != value)
|
||||
// {
|
||||
// _statoSel = value;
|
||||
// var pUpd = Task.Run(async () => await reloadData());
|
||||
// pUpd.Wait();
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Public Methods
|
||||
|
||||
+56
-70
@@ -4,83 +4,27 @@
|
||||
<div class="card">
|
||||
<div class="card-header table-primary">
|
||||
<div class="row">
|
||||
<div class="col-5">
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="px-2">
|
||||
<h4><b>P</b>romesse <b>ODL</b></h4>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<button class="btn btn-success" disabled="!@addEnabled" @onclick="() => reqNewPODL()">Nuovo PODL <i class="bi bi-plus-square"></i></button>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<h4><b>P</b>romesse <b>ODL</b></h4>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<div class="col-4">
|
||||
</div>
|
||||
<div class="col-5">
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="px-2">
|
||||
<div class="form-check form-switch" title="Visualizzazione ODL Programmati / In Corso" style="padding-top: 3px">
|
||||
@*<input class="form-check-input" type="checkbox" id="flexSwitchCheckDefault" @onclick="() => toggleCurrent()">*@
|
||||
<button type="button" class="btn btn-primary btn-sm" @onclick="() => navToODL()">ODL</button>
|
||||
<label class="form-check-label" for="flexSwitchCheckDefault">Visualizza in corso</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="px-2">
|
||||
<select @bind="@selStato" class="form-select">
|
||||
<option value="*">--- Tutti ---</option>
|
||||
@if (ListStati != null)
|
||||
<div class="col-4">
|
||||
<div class="d-flex text-end">
|
||||
<select @bind="@selStato" class="form-select">
|
||||
<option value="*">--- Tutti ---</option>
|
||||
@if (ListStati != null)
|
||||
{
|
||||
foreach (var item in ListStati)
|
||||
{
|
||||
foreach (var item in ListStati)
|
||||
{
|
||||
<option value="@item.value">@item.label</option>
|
||||
}
|
||||
<option value="@item.value">@item.label</option>
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (reqNew)
|
||||
{
|
||||
<div class="d-flex justify-content-around">
|
||||
<div class="px-2">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-text" id="inputGroup-sizing-sm">Azienda</span>
|
||||
<select @bind="@currAzienda" class="form-select">
|
||||
@if (ListAziende != null)
|
||||
{
|
||||
foreach (var item in ListAziende.Where(x => x.CodGruppo != "*").ToList())
|
||||
{
|
||||
<option value="@item.CodGruppo">@item.DescrGruppo</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
<span class="input-group-text" id="inputGroup-sizing-sm">Art Search</span>
|
||||
<input type="text" class="form-control" aria-label="Art search" aria-describedby="inputGroup-sizing-sm">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-around">
|
||||
<div class="px-2">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-text" id="inputGroup-sizing-sm">Articolo</span>
|
||||
<select @bind="@currAzienda" class="form-select">
|
||||
@if (ListAziende != null)
|
||||
{
|
||||
foreach (var item in ListAziende.Where(x => x.CodGruppo != "*").ToList())
|
||||
{
|
||||
<option value="@item.CodGruppo">@item.DescrGruppo</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
else if (currRecord != null)
|
||||
@if (currRecord != null)
|
||||
{
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@@ -149,6 +93,48 @@
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
else if (addEnabled)
|
||||
{
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
<button class="btn btn-success" @onclick="() => reqNewPODL()">Nuovo PODL <i class="bi bi-plus-square"></i></button>
|
||||
</div>
|
||||
@if (reqNew)
|
||||
{
|
||||
<div class="col-4">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-text" id="inputGroup-sizing-sm">Azienda</span>
|
||||
<select @bind="@currAzienda" class="form-select">
|
||||
@if (ListAziende != null)
|
||||
{
|
||||
foreach (var item in ListAziende.Where(x => x.CodGruppo != "*").ToList())
|
||||
{
|
||||
<option value="@item.CodGruppo">@item.DescrGruppo</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-text" id="inputGroup-sizing-sm">Search</span>
|
||||
<input type="text" class="form-control" aria-label="Art search" aria-describedby="inputGroup-sizing-sm">
|
||||
<span class="input-group-text" id="inputGroup-sizing-sm">Articolo</span>
|
||||
<select @bind="@currArticolo" class="form-select">
|
||||
@if (ListArticoli != null)
|
||||
{
|
||||
foreach (var item in ListArticoli.Where(x => x.Azienda == currAzienda).ToList())
|
||||
{
|
||||
<option value="@item.CodArticolo">@item.CodArticolo | @item.DescArticolo | @item.Disegno</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ListPODL PagerResetReq="pgResetReq"></ListPODL>
|
||||
|
||||
@@ -94,8 +94,10 @@ namespace MP.SPEC.Pages
|
||||
}
|
||||
|
||||
private string currAzienda { get; set; } = "*";
|
||||
private string currArticolo { get; set; } = "";
|
||||
|
||||
private List<MP.Data.DatabaseModels.AnagGruppi>? ListAziende;
|
||||
private List<MP.Data.DatabaseModels.AnagArticoli>? ListArticoli;
|
||||
|
||||
#endregion Protected Methods
|
||||
|
||||
@@ -127,7 +129,10 @@ namespace MP.SPEC.Pages
|
||||
set => MsgService.StateSel = value;
|
||||
}
|
||||
|
||||
private bool addEnabled = false;
|
||||
private bool addEnabled
|
||||
{
|
||||
get => selStato != "*";
|
||||
}
|
||||
|
||||
|
||||
private int totalCount
|
||||
|
||||
Reference in New Issue
Block a user