match puck barcodes only with alphanum and case ignore
This commit is contained in:
@@ -188,9 +188,8 @@ public class PuckLoadingDialog extends JDialog {
|
||||
|
||||
void makeVisible(String datamatrix){
|
||||
if (datamatrix!=null){
|
||||
datamatrix = datamatrix.trim();
|
||||
for (int i=0; i<model.getRowCount(); i++){
|
||||
if (datamatrix.equals(model.getValueAt(i, INDEX_DATAMATRIX))){
|
||||
if (BarcodeMatcher.matchBarcodes(datamatrix, (String)model.getValueAt(i, INDEX_DATAMATRIX))) {
|
||||
int index = table.convertRowIndexToView(i);
|
||||
SwingUtils.scrollToVisible(table, index, 0);
|
||||
table.setRowSelectionInterval(index, index);
|
||||
@@ -203,7 +202,7 @@ public class PuckLoadingDialog extends JDialog {
|
||||
void makeVisible(Puck puck){
|
||||
if (puck!=null){
|
||||
for (int i=0; i<model.getRowCount(); i++){
|
||||
if (puck.getName().equals(model.getValueAt(i, INDEX_POSITION))){
|
||||
if (BarcodeMatcher.matchBarcodes(puck.getName(), (String)model.getValueAt(i, INDEX_POSITION))) {
|
||||
int index = table.convertRowIndexToView(i);
|
||||
SwingUtils.scrollToVisible(table, index, 0);
|
||||
table.setRowSelectionInterval(index, index);
|
||||
|
||||
Reference in New Issue
Block a user