fix link cancellazione
This commit is contained in:
@@ -74,22 +74,23 @@ namespace MP.INVE.Components
|
||||
currLottoInterno = null;
|
||||
currUdc = null;
|
||||
alreadyScan = null;
|
||||
if (lastScan.StartsWith("S"))
|
||||
{
|
||||
lastScanCheck= lastScan.Substring(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
lastScanCheck = lastScan;
|
||||
}
|
||||
|
||||
// se il valore scansionato è != null...
|
||||
if (string.IsNullOrEmpty(lastScan))
|
||||
{
|
||||
firstMsg = true;
|
||||
await Task.Delay(1);
|
||||
await Task.Delay(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (lastScan.StartsWith("S"))
|
||||
{
|
||||
lastScanCheck = lastScan.Substring(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
lastScanCheck = lastScan;
|
||||
}
|
||||
firstMsg = false;
|
||||
await MIService.ConfigResetCache();
|
||||
var result = await MIService.tryGetConfig("MAG_SmartUdcEdit");
|
||||
@@ -126,17 +127,22 @@ namespace MP.INVE.Components
|
||||
await Task.Delay(1);
|
||||
udc = MIService.IsUDC(lastScanCheck);
|
||||
|
||||
if (udc != null && !udc.UDC.Contains("MSL"))
|
||||
if (udc != null)
|
||||
{
|
||||
isKnown = true;
|
||||
canSave = true;
|
||||
currUdc = udc;
|
||||
tipo = "U";
|
||||
lottoScan = udc.lottoNav.Lotto;
|
||||
oldArt = udc.lottoNav.CodArt;
|
||||
articoloScan = udc.lottoNav.CodArt;
|
||||
quantitaScan = Math.Round(udc.Qta, 2);
|
||||
noteScan = udc.Note;
|
||||
var udcString = udc.UDC.Substring(2, 3);
|
||||
if (udcString == "MFI")
|
||||
{
|
||||
|
||||
isKnown = true;
|
||||
canSave = true;
|
||||
currUdc = udc;
|
||||
tipo = "U";
|
||||
lottoScan = udc.lottoNav.Lotto;
|
||||
oldArt = udc.lottoNav.CodArt;
|
||||
articoloScan = udc.lottoNav.CodArt;
|
||||
quantitaScan = Math.Round(udc.Qta, 2);
|
||||
noteScan = udc.Note;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -234,7 +240,7 @@ namespace MP.INVE.Components
|
||||
{
|
||||
DtScan = DateTime.Now,
|
||||
UserScan = userScan,
|
||||
ScanValue = lastScan,
|
||||
ScanValue = lastScanCheck,
|
||||
IsForced = force,
|
||||
CodArticolo = articoloScan,
|
||||
Lotto = lottoSave,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<RootNamespace>MP.INVE</RootNamespace>
|
||||
<Version>6.16.2212.1516</Version>
|
||||
<Version>6.16.2212.1609</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -48,7 +48,6 @@ namespace MP.INVE.Pages
|
||||
//protected AnagUdcModel currUdc{ get; set; } = null!;
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
link = $"Cancellazione?idOpr={idOpr}&sessID={sessionId}";
|
||||
await Task.Delay(1);
|
||||
var uri = NavManager.ToAbsoluteUri(NavManager.Uri);
|
||||
if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("idOpr", out var _matrOpr) && QueryHelpers.ParseQuery(uri.Query).TryGetValue("idSess", out var _inveSessionId) && QueryHelpers.ParseQuery(uri.Query).TryGetValue("codMag", out var _idMag))
|
||||
@@ -61,13 +60,14 @@ namespace MP.INVE.Pages
|
||||
nScansioniTot = eleScansioni.Count();
|
||||
// recupero dati della sessione di inventario...
|
||||
var currSessions = MIService.InventSessCurrList();
|
||||
var currInv = currSessions.Where(x=> x.InveSessID== sessionId).FirstOrDefault();
|
||||
var currInv = currSessions.Where(x => x.InveSessID == sessionId).FirstOrDefault();
|
||||
if (currInv != null)
|
||||
{
|
||||
descr = currInv.Description;
|
||||
magInv = currInv.AnagMagNav.DescMag;
|
||||
}
|
||||
}
|
||||
link = $"Cancellazione?idOpr={idOpr}&sessID={sessionId}";
|
||||
}
|
||||
protected void saveScan(string newScan)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>Modulo MAPOINVE </i>
|
||||
<h4>Versione: 6.16.2212.1516</h4>
|
||||
<h4>Versione: 6.16.2212.1609</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
6.16.2212.1516
|
||||
6.16.2212.1609
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>6.16.2212.1516</version>
|
||||
<version>6.16.2212.1609</version>
|
||||
<url>https://nexus.steamware.net/repository/SWS/MP-INVE/stable/LAST/MP.INVE.zip</url>
|
||||
<changelog>https://nexus.steamware.net/repository/SWS/MP-INVE/stable/LAST/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user