b83731097b
+ fix modifica posizioni
131 lines
3.4 KiB
C#
131 lines
3.4 KiB
C#
using Microsoft.AspNetCore.Components;
|
|
using StockMan.CORE.Data;
|
|
using StockMan.Data.DbModels;
|
|
|
|
namespace StockMan.CORE.Pages
|
|
{
|
|
public partial class StatoMag
|
|
{
|
|
#region Public Properties
|
|
|
|
public bool isChanged { get; set; } = false;
|
|
|
|
public List<LocationModel>? listLocationByType { get; set; } = null;
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Protected Properties
|
|
|
|
protected string currLocId_DX { get; set; } = "";
|
|
|
|
protected string currLocId_SX { get; set; } = "";
|
|
|
|
protected OperatorModel currOpr { get; set; } = new OperatorModel();
|
|
|
|
[Inject]
|
|
protected MessageService MService { get; set; } = null!;
|
|
|
|
[Inject]
|
|
protected StockDataService SDService { get; set; } = null!;
|
|
|
|
protected string userName
|
|
{
|
|
get => MService.newUserName;
|
|
}
|
|
|
|
#endregion Protected Properties
|
|
|
|
#region Protected Methods
|
|
|
|
protected async Task catchCurrLocId_DX(string locId)
|
|
{
|
|
await Task.Delay(1);
|
|
currLocId_DX = locId;
|
|
}
|
|
|
|
protected async Task catchCurrLocId_SX(string locId)
|
|
{
|
|
await Task.Delay(1);
|
|
currLocId_SX = locId;
|
|
}
|
|
|
|
protected async Task Change()
|
|
{
|
|
await Task.Delay(1);
|
|
isChanged = !isChanged;
|
|
currPageSX = 1;
|
|
}
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
listLocationByType = await SDService.LocationGetLocType();
|
|
currOpr = await SDService.OperatorsGetByCodExt(userName);
|
|
}
|
|
|
|
protected async Task resetIds()
|
|
{
|
|
await Task.Delay(1);
|
|
currLocId_DX = "";
|
|
currLocId_SX = "";
|
|
}
|
|
public LocSXSelectFilter currFilterSX { get; set; } = new LocSXSelectFilter();
|
|
protected void ForceReloadSX(int newNum)
|
|
{
|
|
numRecordSX = newNum;
|
|
currPageSX = 1;
|
|
}
|
|
|
|
protected void ForceReloadPageSX(int newNum)
|
|
{
|
|
currPageSX = newNum;
|
|
}
|
|
|
|
protected void UpdateTotCountSX(int newTotCount)
|
|
{
|
|
totalCountSX = newTotCount;
|
|
}
|
|
public int totalCountSX { get; set; } = 0;
|
|
private int currPageSX
|
|
{
|
|
get => currFilterSX.CurrPage;
|
|
set => currFilterSX.CurrPage = value;
|
|
}
|
|
|
|
private bool isLoading { get; set; } = false;
|
|
|
|
private int numRecordSX
|
|
{
|
|
get => currFilterSX.NumRec;
|
|
set => currFilterSX.NumRec = value;
|
|
}
|
|
public LocDXSelectFilter currFilterDX { get; set; } = new LocDXSelectFilter();
|
|
protected void ForceReloadDX(int newNum)
|
|
{
|
|
numRecordDX = newNum;
|
|
currPageDX = 1;
|
|
}
|
|
|
|
protected void ForceReloadPageDX(int newNum)
|
|
{
|
|
currPageDX = newNum;
|
|
}
|
|
|
|
protected void UpdateTotCountDX(int newTotCount)
|
|
{
|
|
totalCountDX = newTotCount;
|
|
}
|
|
public int totalCountDX { get; set; } = 0;
|
|
private int currPageDX
|
|
{
|
|
get => currFilterDX.CurrPage;
|
|
set => currFilterDX.CurrPage = value;
|
|
}
|
|
|
|
private int numRecordDX
|
|
{
|
|
get => currFilterDX.NumRec;
|
|
set => currFilterDX.NumRec = value;
|
|
}
|
|
#endregion Protected Methods
|
|
}
|
|
} |