Index: ssts-web/src/main/webapp/disinfectsystem/foreigntousseapplication/foreignTousseInfoForm.js =================================================================== diff -u -r40442 -r40447 --- ssts-web/src/main/webapp/disinfectsystem/foreigntousseapplication/foreignTousseInfoForm.js (.../foreignTousseInfoForm.js) (revision 40442) +++ ssts-web/src/main/webapp/disinfectsystem/foreigntousseapplication/foreignTousseInfoForm.js (.../foreignTousseInfoForm.js) (revision 40447) @@ -523,21 +523,24 @@ listeners:{ specialkey : function(field, e) { if (e.getKey() == Ext.EventObject.ENTER) { - if(field.startValue == ''){ + var returnManCode = top.Ext.getCmp('returnManCode').getValue(); + if(returnManCode == ''){ return } Ext4.Ajax.request({ url : WWWROOT + '/disinfectSystem/web/userController/getUserByBarcode.mhtml', - params : {barcode : field.startValue}, + params : {barcode : returnManCode}, async : false, success : function(response, options) { var result = Ext4.JSON.decode(response.responseText); - if(!result.success){ - showResult(result.message); - return false; - }else{ + if(result.success){ top.Ext.getCmp('returnManCode').setValue(''); top.Ext.getCmp('returnMan1').setValue(result.fullName); + }else { + if(result.message){ + showResult(result.message); + } + top.Ext.getCmp('returnManCode').setValue(''); } }, failure : function(response, opts) {