Implementata mtb_part in rettifica giacenze.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user