Index: ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/foreignProxyDisinfectionForm.js =================================================================== diff -u -r34616 -r34625 --- ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/foreignProxyDisinfectionForm.js (.../foreignProxyDisinfectionForm.js) (revision 34616) +++ ssts-web/src/main/webapp/disinfectsystem/sterilizationmanager/sterilizationrecord/foreignProxyDisinfectionForm.js (.../foreignProxyDisinfectionForm.js) (revision 34625) @@ -129,7 +129,10 @@ var count = top.Ext.getCmp('count1').getValue(); var tousseType = top.Ext.getCmp('tousseType1').getValue(); var packageType = top.Ext.getCmp('packageType1').getValue(); - var sterilingType = top.Ext.getCmp('sterilingType1').getValue(); + var sterilingType = ''; + if(SSTS_Application_UpdateSterilingType){ + sterilingType = top.Ext.getCmp('sterilingType1').getValue(); + } if (name == "") { showResult("请输入器械包!"); top.Ext.getCmp('package1').setValue(""); @@ -153,7 +156,9 @@ top.Ext.getCmp('tousseType1').setValue(""); top.Ext.getCmp('count1').setValue(""); top.Ext.getCmp('packageType1').setValue(""); - top.Ext.getCmp('sterilingType1').setValue(""); + if(SSTS_Application_UpdateSterilingType){ + top.Ext.getCmp('sterilingType1').setValue(""); + } top.Ext.getCmp('package1').focus(); } } @@ -712,8 +717,10 @@ }, select: function (combo, record, index) { top.Ext.getCmp('packageType1').setValue(record.data.packageType); - top.Ext.getCmp('sterilingType1').setValue(record.data.sterilingMethod); top.Ext.getCmp('tousseType1').setValue(record.data.tousseType); + if(SSTS_Application_UpdateSterilingType){ + top.Ext.getCmp('sterilingType1').setValue(record.data.sterilingMethod); + } } } }, { @@ -741,16 +748,20 @@ listeners: { specialkey: function (field, ee) { if (ee.getKey() == Ext.EventObject.ENTER) { - top.Ext.getCmp('sterilingType1').focus(); + if(top.Ext.getCmp('sterilingType1')){ + top.Ext.getCmp('sterilingType1').focus(); + } } } } }, { - text: '灭菌程序:' + text: '灭菌程序:', + hidden:!SSTS_Application_UpdateSterilingType, }, { xtype: 'combo', id: 'sterilingType1', name: 'sterilingType1', + hidden:!SSTS_Application_UpdateSterilingType, valueField: 'typeName', displayField: 'typeName', store: foldersJsonStore,