g.error.sdump('D_ERROR','print: ' + E);
alert('print: ' + E);
}
- }
+ } else {
+ g.list.clear();
+ var x = $('i_barcode'); x.value = ''; x.focus();
+ }
} catch(E) {
dump(E+'\n'); alert(E);
g.error.sdump('D_ERROR','print: ' + E);
alert('print: ' + E);
}
- }
+ } else {
+ g.list.clear();
+ var x = $('i_barcode'); x.value = '';
+ x = $('p_barcode'); x.value = '';
+ x.setAttribute('disabled','false'); x.disabled = false;
+ x.focus();
+ }
} catch(E) {
dump(E+'\n'); alert(E);
}
g.error.sdump('D_ERROR','print: ' + E);
alert('print: ' + E);
}
- }
+ } else {
+ g.list.clear();
+ var x = $('i_barcode'); x.value = ''; x.focus();
+ }
} catch(E) {
dump(E+'\n'); alert(E);
}
g.error.sdump('D_ERROR','print: ' + E);
alert('print: ' + E);
}
- }
+ } else {
+ g.list.clear();
+ var x = $('i_barcode'); x.value = '';
+ x = $('p_barcode'); x.value = ''; x.focus();
+ }
}
} catch(E) {
dump(E+'\n'); alert(E);