SPEC: inizio gestione filtro selezione a cascata
This commit is contained in:
@@ -24,6 +24,9 @@ namespace MP.SPEC.Components.ProdKit
|
||||
[Parameter]
|
||||
public EventCallback<int> UpdateRecordCount { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public SelectXdlParams ActFilter { get; set; } = new SelectXdlParams();
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Public Methods
|
||||
@@ -55,8 +58,6 @@ namespace MP.SPEC.Components.ProdKit
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
protected SelectXdlParams ActFilter { get; set; } = new SelectXdlParams();
|
||||
|
||||
[Inject]
|
||||
protected IJSRuntime JSRuntime { get; set; } = null!;
|
||||
|
||||
|
||||
@@ -7,20 +7,24 @@ namespace MP.SPEC.Components.ProdKit
|
||||
{
|
||||
public partial class Manager
|
||||
{
|
||||
#region Protected Properties
|
||||
#region Public Properties
|
||||
|
||||
[Parameter]
|
||||
public SelectXdlParams ActFilt { get; set; } = new SelectXdlParams();
|
||||
|
||||
[Parameter]
|
||||
public bool DoAddNew { get; set; } = false;
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Properties
|
||||
|
||||
[Inject]
|
||||
protected MpDataService MDService { get; set; } = null!;
|
||||
|
||||
#endregion Protected Properties
|
||||
|
||||
#region Protected Methods
|
||||
protected SelectXdlParams ActFilt { get; set; } = new SelectXdlParams();
|
||||
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
@@ -50,11 +54,6 @@ namespace MP.SPEC.Components.ProdKit
|
||||
ReloadData();
|
||||
}
|
||||
|
||||
private string KPColClass
|
||||
{
|
||||
get => DoAddNew ? "col-6" : "col-12";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Salvataggio su Tab WIP dei dati del PODL ricevuto...
|
||||
/// </summary>
|
||||
@@ -96,17 +95,32 @@ namespace MP.SPEC.Components.ProdKit
|
||||
private PODLExpModel? currPodlRec = null;
|
||||
|
||||
private bool isLoading = false;
|
||||
|
||||
private string keyFilt = "";
|
||||
|
||||
private List<PODLExpModel> listPOdlAct = new List<PODLExpModel>();
|
||||
private List<PODLExpModel> listPOdlCheck = new List<PODLExpModel>();
|
||||
private List<TksScoreModel> listTSM = new List<TksScoreModel>();
|
||||
private List<WipSetupKitModel> listWSM = new List<WipSetupKitModel>();
|
||||
private List<IstanzeKitModel> listIKP = new List<IstanzeKitModel>();
|
||||
|
||||
private List<PODLExpModel> listPOdlAct = new List<PODLExpModel>();
|
||||
|
||||
private List<PODLExpModel> listPOdlCheck = new List<PODLExpModel>();
|
||||
|
||||
private List<TksScoreModel> listTSM = new List<TksScoreModel>();
|
||||
|
||||
private List<WipSetupKitModel> listWSM = new List<WipSetupKitModel>();
|
||||
|
||||
private string padCodXdl = "00000";
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
#region Private Properties
|
||||
|
||||
private string KPColClass
|
||||
{
|
||||
get => DoAddNew ? "col-6" : "col-12";
|
||||
}
|
||||
|
||||
#endregion Private Properties
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void ForceReloadData(bool doReload)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP.SPEC</RootNamespace>
|
||||
<Version>6.16.2504.1411</Version>
|
||||
<Version>6.16.2504.1412</Version>
|
||||
<UserSecretsId>1800a78a-6ff1-40f9-b490-87fb8bfc1394</UserSecretsId>
|
||||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<MP.SPEC.Components.ProdKit.Manager DoAddNew=@doAddNew></MP.SPEC.Components.ProdKit.Manager>
|
||||
<MP.SPEC.Components.ProdKit.Manager DoAddNew=@doAddNew ActFilt="@currFilter"></MP.SPEC.Components.ProdKit.Manager>
|
||||
@* <ScratchPodlKit></ScratchPodlKit> *@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -184,6 +184,16 @@ namespace MP.SPEC.Pages
|
||||
{
|
||||
int.TryParse(rawVal, out minChar);
|
||||
}
|
||||
// filtro base...
|
||||
DateTime oggi = DateTime.Today;
|
||||
currFilter = new SelectXdlParams()
|
||||
{
|
||||
DtEnd = oggi.AddDays(1),
|
||||
DtStart = oggi.AddYears(-1),
|
||||
HasOdl = false,
|
||||
MaxRecord = 1000,
|
||||
NumRec = 5
|
||||
};
|
||||
}
|
||||
|
||||
protected override void OnParametersSet()
|
||||
@@ -359,10 +369,9 @@ namespace MP.SPEC.Pages
|
||||
{
|
||||
isLoading = true;
|
||||
currPage = 1;
|
||||
// salvo comunque filtro reparto x utente
|
||||
// salvo filtro reparto x utente... spostare in componente?
|
||||
await localStorage.SetItemAsync("reparto", repartoSel);
|
||||
ReloadData();
|
||||
//await InvokeAsync(() => StateHasChanged());
|
||||
currFilter = newParams;
|
||||
isLoading = false;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOSPEC </i>
|
||||
<h4>Versione: 6.16.2504.1411</h4>
|
||||
<h4>Versione: 6.16.2504.1412</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2504.1411
|
||||
6.16.2504.1412
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2504.1411</version>
|
||||
<version>6.16.2504.1412</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