fix gestione invio codice magazzino

This commit is contained in:
zaccaria.majid
2022-12-15 10:23:17 +01:00
parent ae750a467c
commit 6511ee57c4
3 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ namespace MP.INVE.Components
get => _lastScan;
set
{
_lastScan = value;
_lastScan = value.Trim();
if (value != "")
{
saveSel(LastScan);
+9 -6
View File
@@ -69,6 +69,9 @@ namespace MP.INVE.Components
protected override async Task OnParametersSetAsync()
{
isKnown = false;
currLottoInterno = null;
currUdc = null;
alreadyScan = null;
// se il valore scansionato è != null...
if (string.IsNullOrEmpty(lastScan))
{
@@ -102,8 +105,6 @@ namespace MP.INVE.Components
articoloScan = alreadyScan.CodArticolo;
quantitaScan = Math.Round(alreadyScan.Qty, 2);
noteScan = alreadyScan.Note;
currUdc = null;
currLottoInterno = null;
}
else
@@ -167,9 +168,11 @@ namespace MP.INVE.Components
{
canSave = true;
tipo = "S";
#if false
currLottoInterno = null;
currUdc = null;
alreadyScan = null;
alreadyScan = null;
#endif
lottoScan = lastScan;
articoloScan = "";
quantitaScan = 0;
@@ -262,13 +265,13 @@ namespace MP.INVE.Components
protected string lottoScan
{
get => _lotto;
set => _lotto = value;
set => _lotto = value.Trim();
}
protected string _articolo = "";
protected string articoloScan
{
get => _articolo;
set => _articolo = value;
set => _articolo = value.Trim();
}
protected decimal _qta = 0;
protected decimal quantitaScan
@@ -280,7 +283,7 @@ namespace MP.INVE.Components
protected string noteScan
{
get => _note;
set => _note = value;
set => _note = value.Trim();
}
protected void cssDisableArt()
+2 -2
View File
@@ -122,7 +122,7 @@ namespace MP.INVE.Pages
if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("sessID", out var _inveSessionId) && QueryHelpers.ParseQuery(uri.Query).TryGetValue("codMag", out var _idMag))
{
sessID = int.Parse(_inveSessionId);
codMag = int.Parse(_idMag);
codMag = _idMag;
}
await reloadData();
@@ -179,7 +179,7 @@ namespace MP.INVE.Pages
}
protected int sessID { get; set; } = 0;
protected int codMag { get; set; } = 0;
protected string codMag { get; set; } = "";
protected async Task getId()