Index: ssts-web/src/main/webapp/disinfectsystem/interfere/interfereSterilizationTab1.js =================================================================== diff -u -r16479 -r17202 --- ssts-web/src/main/webapp/disinfectsystem/interfere/interfereSterilizationTab1.js (.../interfereSterilizationTab1.js) (revision 16479) +++ ssts-web/src/main/webapp/disinfectsystem/interfere/interfereSterilizationTab1.js (.../interfereSterilizationTab1.js) (revision 17202) @@ -1,4 +1,4 @@ -function showSterilizationRecordParams(id,curStatus,startDate,endDate,sterilizationPurpose,sterilizerName,frequency,sterilizationMethod){ +function showSterilizationRecordParams(id,curStatus,startDate,endDate,sterilizationPurpose,sterilizerName,frequency,sterilizationMethod,sterilizationUser){ // 灭菌程序store var foldersJsonStore = new Ext.data.SimpleStore({ fields : [ 'id','cleaningMethod' ], @@ -78,6 +78,44 @@ layout : 'form', cls:'edit-part2-labelwidth', items : [{ + id : 'inputBarcode', + name : 'inputBarcode', + xtype : 'textfield', + fieldLabel : '扫描条码', + anchor : '100%', + allowBlank : true, + listeners : { + specialkey : function(thiz, e){ + if(e.getKey() == 13){ + var barcode = top.Ext.getCmp('inputBarcode').getValue(); + if(barcode != null && barcode.length >0){ + loadSterilizationUser(barcode); + }else{ + showResult("请输入正确的条码!"); + } + top.Ext.getCmp('inputBarcode').setValue(""); + } + } + } + }] + },{ + columnWidth : .5, + layout : 'form', + cls:'edit-part2-labelwidth', + items : [{ + id : 'sterilizationUser1', + name : 'sterilizationUser1', + xtype : 'textfield', + fieldLabel : '灭菌员', + anchor : '100%', + readOnly : true, + allowBlank : false + }] + },{ + columnWidth : .5, + layout : 'form', + cls:'edit-part2-labelwidth', + items : [{ id : 'frequency1', name : 'frequency1', xtype : 'textfield', @@ -231,6 +269,22 @@ top.Ext.getCmp('sterilizerName1').setValue(sterilizerName); top.Ext.getCmp('frequency1').setValue(frequency); top.Ext.getCmp('sterilizationMethod1').setValue(sterilizationMethod); + top.Ext.getCmp('sterilizationUser1').setValue(sterilizationUser); tousseInstanceWindow.show(); } + + //扫描灭菌员条码 + function loadSterilizationUser(barcode){ + if(barcode != null && barcode.length > 0){ + SterilizationRecordTableManager.getSterilizationUserByBarcode(barcode,function(response) { + var result = Ext.decode(response); + if (result.success == true) { + top.Ext.getCmp('sterilizationUser1').setValue(result.fullName); + }else{ + showResult(result.message); + } + } + ); + } + } \ No newline at end of file