sempre fix gestione lotto esterno
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user