Index: ssts-web/src/main/webapp/disinfectsystem/qualitymonitoring/loadScanBarcodeMsg.js =================================================================== diff -u -r29992 -r35890 --- ssts-web/src/main/webapp/disinfectsystem/qualitymonitoring/loadScanBarcodeMsg.js (.../loadScanBarcodeMsg.js) (revision 29992) +++ ssts-web/src/main/webapp/disinfectsystem/qualitymonitoring/loadScanBarcodeMsg.js (.../loadScanBarcodeMsg.js) (revision 35890) @@ -24,16 +24,29 @@ showResult("一次只能选择一条清洗记录!"); return false; } + + if(Ext.getCmp('responsiblePerson')){ + Ext.getCmp(rinseBasketsName).setValue(records[0].data.washBasketName); + Ext.getCmp(cleaningMachinePosition).setValue(records[0].data.position); + Ext.getCmp(cleaningMachineDate).setValue(records[0].data.washDate); + Ext.getCmp(cleaningMachineName).setValue(records[0].data.disinfectIdentification); + Ext.getCmp(cleaningMachineProgramName).setValue(records[0].data.disinfectProgram); + Ext.getCmp(cleaningStartTime).setValue(records[0].data.startDate); + Ext.getCmp(cleaningEndTime).setValue(records[0].data.endDate); + Ext.getCmp(scanWashRecordId).setValue(records[0].data.washRecordID); + Ext.getCmp('responsiblePerson').setValue(records[0].json.personInCharge); + }else if(top.Ext.getCmp('responsiblePerson')){ + top.Ext.getCmp(rinseBasketsName).setValue(records[0].data.washBasketName); + top.Ext.getCmp(cleaningMachinePosition).setValue(records[0].data.position); + top.Ext.getCmp(cleaningMachineDate).setValue(records[0].data.washDate); + top.Ext.getCmp(cleaningMachineName).setValue(records[0].data.disinfectIdentification); + top.Ext.getCmp(cleaningMachineProgramName).setValue(records[0].data.disinfectProgram); + top.Ext.getCmp(cleaningStartTime).setValue(records[0].data.startDate); + top.Ext.getCmp(cleaningEndTime).setValue(records[0].data.endDate); + top.Ext.getCmp(scanWashRecordId).setValue(records[0].data.washRecordID); + top.Ext.getCmp('responsiblePerson').setValue(records[0].json.personInCharge); + } - Ext.getCmp(rinseBasketsName).setValue(records[0].data.washBasketName); - Ext.getCmp(cleaningMachinePosition).setValue(records[0].data.position); - Ext.getCmp(cleaningMachineDate).setValue(records[0].data.washDate); - Ext.getCmp(cleaningMachineName).setValue(records[0].data.disinfectIdentification); - Ext.getCmp(cleaningMachineProgramName).setValue(records[0].data.disinfectProgram); - Ext.getCmp(cleaningStartTime).setValue(records[0].data.startDate); - Ext.getCmp(cleaningEndTime).setValue(records[0].data.endDate); - Ext.getCmp(scanWashRecordId).setValue(records[0].data.washRecordID); - Ext.getCmp('responsiblePerson').setValue(records[0].json.personInCharge); formWindowRinseRecord.close(); }