Implementata mtb_part in rettifica giacenze.

This commit is contained in:
Gius95
2018-12-13 10:32:23 +01:00
parent eee0567d71
commit f8edeeefcb
62 changed files with 3369 additions and 382 deletions

View File

@@ -76,19 +76,20 @@ public class PointMobileBarcodeReader implements BarcodeReaderInterface {
//try {
if(mDecodeResult.symName.equalsIgnoreCase("READ_FAIL")){
//throw new Exception("Barcode non riconosciuto");
if(mOnScanFailed != null) mOnScanFailed.run(new Exception("Barcode non riconosciuto"));
//if(mOnScanFailed != null) mOnScanFailed.run(new Exception("Barcode non riconosciuto"));
return;
}
BarcodeScanDTO barcodeScanDTO = new BarcodeScanDTO()
.setByteValue(mDecodeResult.decodeValue)
.setStringValue(mDecodeResult.toString().replaceAll("\n", "").replaceAll("\r", "").trim())
.setType(BarcodeType.fromInt(mDecodeResult.symType))
.setName(mDecodeResult.symName)
.setDecodingTime(mDecodeResult.decodeTimeMillisecond);
if(mDecodeResult != null) {
BarcodeScanDTO barcodeScanDTO = new BarcodeScanDTO()
.setByteValue(mDecodeResult.decodeValue)
.setStringValue(mDecodeResult.toString().replaceAll("\n", "").replaceAll("\r", "").trim())
.setType(BarcodeType.fromInt(mDecodeResult.symType))
.setName(mDecodeResult.symName)
.setDecodingTime(mDecodeResult.decodeTimeMillisecond);
mOnScanSuccessfull.run(barcodeScanDTO);
mOnScanSuccessfull.run(barcodeScanDTO);
}
//} catch (Exception ex) {
// Log.e(TAG, ex.getMessage());