fix grafici
This commit is contained in:
@@ -54,6 +54,7 @@ namespace MP.INVE.Components
|
||||
}
|
||||
protected async Task goBack()
|
||||
{
|
||||
if(NavigationManager.Uri.Contains(""))
|
||||
await JSRuntime.InvokeVoidAsync("history.go", -1);
|
||||
}
|
||||
protected string hideText { get => showText ? "" : "invisible"; }
|
||||
|
||||
@@ -39,9 +39,10 @@ namespace MP.INVE.Components
|
||||
public int sessID { get; set; } = 0;
|
||||
[Parameter]
|
||||
public string magID { get; set; } = "";
|
||||
|
||||
|
||||
private string tipo { get; set; } = "";
|
||||
private string canMod = "false";
|
||||
public string lastScanCheck { get; set; } = "";
|
||||
|
||||
protected AnagUdcModel? udc;
|
||||
protected AnagLottoModel? lottoInterno;
|
||||
@@ -73,6 +74,10 @@ namespace MP.INVE.Components
|
||||
currLottoInterno = null;
|
||||
currUdc = null;
|
||||
alreadyScan = null;
|
||||
if (lastScan.StartsWith("S"))
|
||||
{
|
||||
lastScanCheck= lastScan.Substring(1);
|
||||
}
|
||||
// se il valore scansionato è != null...
|
||||
if (string.IsNullOrEmpty(lastScan))
|
||||
{
|
||||
@@ -86,7 +91,7 @@ namespace MP.INVE.Components
|
||||
var result = await MIService.tryGetConfig("MAG_SmartUdcEdit");
|
||||
int sessIDSearch = 0;
|
||||
|
||||
if (lastScan.Contains("MFI") && lastScan.Length == 14)
|
||||
if (lastScanCheck.Contains("MFI") && lastScanCheck.Length == 14)
|
||||
{
|
||||
sessIDSearch = sessID;
|
||||
}
|
||||
@@ -115,7 +120,7 @@ namespace MP.INVE.Components
|
||||
canMod = result;
|
||||
}
|
||||
await Task.Delay(1);
|
||||
udc = MIService.IsUDC(lastScan);
|
||||
udc = MIService.IsUDC(lastScanCheck);
|
||||
|
||||
if (udc != null && !udc.UDC.Contains("MSL"))
|
||||
{
|
||||
@@ -131,6 +136,7 @@ namespace MP.INVE.Components
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if (lastScan.StartsWith("M") && lastScan.Length == 10)
|
||||
{
|
||||
lottoInterno = MIService.LottoInterno(lastScan);
|
||||
@@ -138,7 +144,7 @@ namespace MP.INVE.Components
|
||||
else
|
||||
{
|
||||
listLottiEsterni = MIService.LottoEsterno("", lastScan, magID);
|
||||
if(listLottiEsterni.Count == 1)
|
||||
if (listLottiEsterni.Count == 1)
|
||||
{
|
||||
lottoEsterno = listLottiEsterni.FirstOrDefault();
|
||||
}
|
||||
@@ -200,20 +206,20 @@ namespace MP.INVE.Components
|
||||
if (artExists != null)
|
||||
{
|
||||
var force = false;
|
||||
if(articoloScan != oldArt)
|
||||
if (articoloScan != oldArt)
|
||||
{
|
||||
force = true;
|
||||
}
|
||||
var lottoSave = lastScan;
|
||||
var known = false;
|
||||
var unique = false;
|
||||
if(currUdc != null)
|
||||
if (currUdc != null)
|
||||
{
|
||||
lottoSave = currUdc.Lotto;
|
||||
known = true;
|
||||
unique = true;
|
||||
}
|
||||
else if(currLottoEsterno != null || currLottoInterno != null)
|
||||
else if (currLottoEsterno != null || currLottoInterno != null)
|
||||
{
|
||||
|
||||
known = true;
|
||||
|
||||
Reference in New Issue
Block a user