sempre fix gestione lotto esterno

This commit is contained in:
zaccaria.majid
2022-12-15 15:30:55 +01:00
parent 430f539fd1
commit 9853d9d1bf
2 changed files with 11 additions and 5 deletions
+7 -1
View File
@@ -46,6 +46,7 @@ namespace MP.INVE.Components
protected AnagUdcModel? udc;
protected AnagLottoModel? lottoInterno;
protected AnagLottiArca? lottoEsterno;
protected List<AnagLottiArca>? listLottiEsterni;
protected ScanDataModel? alreadyScan;
protected AnagUdcModel? currUdc;
@@ -136,8 +137,13 @@ namespace MP.INVE.Components
}
else
{
lottoEsterno = MIService.LottoEsterno("", lastScan, magID);
listLottiEsterni = MIService.LottoEsterno("", lastScan, magID);
if(listLottiEsterni.Count == 1)
{
lottoEsterno = listLottiEsterni.FirstOrDefault();
}
}
if (lottoInterno != null)
{
canSave = true;
+4 -4
View File
@@ -314,12 +314,12 @@ namespace MP.INVE.Data
}
public AnagLottiArca LottoEsterno(string codArt, string codLotto, string codMagazzino)
public List<AnagLottiArca> LottoEsterno(string codArt, string codLotto, string codMagazzino)
{
string source = "";
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
AnagLottiArca? result = new AnagLottiArca();
List<AnagLottiArca>? result = new List<AnagLottiArca>();
// cerco in redis...
result = dbController.LottoEsterno(codArt, codLotto, codMagazzino);
source = "DB";
@@ -392,12 +392,12 @@ namespace MP.INVE.Data
return result;
}
public ScanDataModel ScanByValueSessionOpr(string scanData, int inveSessId, string Opr)
public List<ScanDataModel> ScanByValueSessionOpr(string scanData, int inveSessId, string Opr)
{
string source = "";
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
ScanDataModel? result = new ScanDataModel();
List<ScanDataModel>? result = new List<ScanDataModel>();
result = dbController.ScanByValueSessionOpr(scanData, inveSessId, Opr);
source = "DB";
stopWatch.Stop();