Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/sterilisation/sterilisationView.js =================================================================== diff -u -r36247 -r37122 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/sterilisation/sterilisationView.js (.../sterilisationView.js) (revision 36247) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/sterilisation/sterilisationView.js (.../sterilisationView.js) (revision 37122) @@ -18,31 +18,29 @@ ids = ids + ';' + records[i].data['id']; } } - top.Ext.MessageBox - .confirm("请确认", - "是否确定要删除选中的灭菌程序信息?", - function(button, text) { - if ("yes" == button){ - Ext.Ajax.request({ - url : WWWROOT + '/disinfectSystem/baseData/sterilisationAction!deleteSterilisation.do', - params : { - ids : ids - },success : function(response, options) { - var result = Ext.decode(response.responseText); - var success = result.success; - if (true != success) { - showResult(result.message); - return; - } else { - showResult('删除成功'); - grid.dwrReload(); - } - }, - failure : function(response, options) { - showResult('灭菌程序已被灭菌炉使用,不能删除。'); - } - });} + top.Ext.MessageBox.confirm("请确认","是否确定要删除选中的灭菌程序信息?",function(button, text) { + if ("yes" == button){ + Ext.Ajax.request({ + url : WWWROOT + '/disinfectSystem/baseData/sterilisationAction!deleteSterilisation.do', + params : { + ids : ids + },success : function(response, options) { + var result = Ext.decode(response.responseText); + var success = result.success; + if (true != success) { + showResult(result.message); + return; + } else { + showResult('删除成功'); + grid.dwrReload(); + } + }, + failure : function(response, options) { + showResult('灭菌程序已被灭菌炉使用,不能删除。'); + } }); + } + }); } @@ -103,6 +101,10 @@ header : "能否进入审核列表", width : 120, dataIndex : 'canAddToReview' + },{ + header : "允许空炉灭菌", + width : 100, + dataIndex : 'allowEmptyFurnace' }, { id : 'parameter', header : "灭菌参数", @@ -136,6 +138,8 @@ name : 'canAddToReview' },{ name : 'parameter' + },{ + name : 'allowEmptyFurnace' }]; var sign = true; Index: ssts-web/src/main/webapp/disinfectsystem/basedatamanager/sterilisation/sterilisationForm.js =================================================================== diff -u -r35122 -r37122 --- ssts-web/src/main/webapp/disinfectsystem/basedatamanager/sterilisation/sterilisationForm.js (.../sterilisationForm.js) (revision 35122) +++ ssts-web/src/main/webapp/disinfectsystem/basedatamanager/sterilisation/sterilisationForm.js (.../sterilisationForm.js) (revision 37122) @@ -229,6 +229,27 @@ anchor : '95%' }] },{ + columnWidth : 0.5, + layout : 'form', + items : [{ + xtype : 'combo', + fieldLabel : "允许空炉灭菌", + editable:false, + valueField : 'value', + displayField : 'value', + store : new Ext.data.SimpleStore( { + fields : ['value'], + data : [['是'],['否']] + }), + mode:'local', + forceSelection : true, + triggerAction : 'all', + name : "allowEmptyFurnace", + id : "allowEmptyFurnace", + value:'是', + anchor : '95%' + }] + },{ columnWidth : 1, layout : 'form', items : [{