d344b49ff0
- continuo implementazione gestione KIT
71 lines
1.9 KiB
C#
71 lines
1.9 KiB
C#
using Blazored.SessionStorage;
|
|
using Microsoft.AspNetCore.Components;
|
|
using Microsoft.AspNetCore.WebUtilities;
|
|
using MP.Data.DbModels;
|
|
using MP.SPEC.Data;
|
|
|
|
namespace MP.SPEC.Pages
|
|
{
|
|
public partial class Giacenze
|
|
{
|
|
#region Protected Fields
|
|
|
|
protected List<ODLModel>? elencoOdl;
|
|
|
|
#endregion Protected Fields
|
|
|
|
#region Protected Properties
|
|
|
|
protected int IdxOdl { get; set; } = 0;
|
|
|
|
protected ODLExpModel? odlExp { get; set; } = null!;
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await MDService.ConfigResetCache();
|
|
giacenzeConf = await MDService.ConfigTryGetAsync("SPEC_ShowGiacenze");
|
|
await Task.Delay(1);
|
|
padCodXdl = await MDService.ConfigTryGetAsync("PadCodXdl");
|
|
var uri = NavManager.ToAbsoluteUri(NavManager.Uri);
|
|
if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("IdxOdl", out var _idxOdl))
|
|
{
|
|
IdxOdl = int.Parse(_idxOdl);
|
|
}
|
|
odlExp = MDService.OdlByKey(IdxOdl);
|
|
}
|
|
|
|
#endregion Protected Methods
|
|
|
|
#region Private Properties
|
|
|
|
[Inject]
|
|
private MpDataService MDService { get; set; } = null!;
|
|
|
|
[Inject]
|
|
private NavigationManager NavManager { get; set; } = null!;
|
|
|
|
private string padCodXdl { get; set; } = "00000";
|
|
private string giacenzeConf = "false";
|
|
|
|
[Inject]
|
|
private ISessionStorageService sessionStorage { get; set; } = null!;
|
|
|
|
private string BatchSel { get; set; } = "";
|
|
|
|
private string mainTabCss
|
|
{
|
|
get => !string.IsNullOrEmpty(BatchSel) ? "col-10" : "col-12";
|
|
}
|
|
|
|
protected void saveBatch(string newBatch)
|
|
{
|
|
BatchSel = newBatch;
|
|
}
|
|
|
|
#endregion Private Properties
|
|
}
|
|
} |