Bozza controllo show chiusi
This commit is contained in:
@@ -9,8 +9,12 @@ namespace GWMS.UI.Data
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
public bool HideClosed { get; set; } = true;
|
||||
|
||||
public int PlantId { get; set; } = 0;
|
||||
|
||||
public int SupplierId { get; set; } = 0;
|
||||
|
||||
public int TransporterId { get; set; } = 0;
|
||||
|
||||
#endregion Public Properties
|
||||
@@ -34,6 +38,8 @@ namespace GWMS.UI.Data
|
||||
if (!(obj is SelectOrderData item))
|
||||
return false;
|
||||
|
||||
if (HideClosed != item.HideClosed)
|
||||
return false;
|
||||
if (PlantId != item.PlantId)
|
||||
return false;
|
||||
if (SupplierId != item.SupplierId)
|
||||
|
||||
@@ -11,6 +11,16 @@
|
||||
</div>
|
||||
<div class="col-9 text-right">
|
||||
<div class="d-flex justify-content-between">
|
||||
<div class="p-2">
|
||||
<div class="input-group input-group-sm">
|
||||
<div class="input-group-prepend">
|
||||
</div>
|
||||
<div class="custom-control custom-switch">
|
||||
<input type="checkbox" class="custom-control-input" id="togAttivi" title="Solo Aperti / Mostra tutti" @bind-value="@HideClosed" />
|
||||
<label class="custom-control-label small" for="togAttivi">Aperti</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-2">
|
||||
<div class="input-group input-group-sm">
|
||||
<div class="input-group-prepend">
|
||||
|
||||
@@ -43,6 +43,28 @@ namespace GWMS.UI.Pages
|
||||
}
|
||||
}
|
||||
|
||||
private bool HideClosed
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = true;
|
||||
if (AppMService.Order_Filter != null)
|
||||
{
|
||||
answ = AppMService.Order_Filter.HideClosed;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (!AppMService.Order_Filter.HideClosed.Equals(value))
|
||||
{
|
||||
AppMService.Order_Filter.HideClosed = value;
|
||||
var pUpd = Task.Run(async () => await ReloadData());
|
||||
pUpd.Wait();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private bool isLoading { get; set; } = false;
|
||||
|
||||
private int numRecord
|
||||
|
||||
Reference in New Issue
Block a user