Index: ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js =================================================================== diff -u -r30889 -r31012 --- ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 30889) +++ ssts-web/src/main/webapp/disinfectsystem/packing/packingView.js (.../packingView.js) (revision 31012) @@ -187,14 +187,27 @@ function checkedAllNode(checked){ var rootNode = Ext4.getCmp('basketTreeGrid').getRootNode(); if(rootNode != null){ + var count = 0; Ext4.each(rootNode.childNodes, function(pNode){ pNode.set('checked',checked); + if(checked){ + count++ + }else { + count = 0 + } if(pNode.childNodes && pNode.childNodes.length > 0){ Ext4.each(pNode.childNodes, function(lastNode){ lastNode.set('checked',checked) }); } }); + if(count <= 1){ + Ext4.getCmp('sterilingType').enable(); + Ext4.getCmp('packageType').enable(); + }else { + Ext4.getCmp('sterilingType').disable(); + Ext4.getCmp('packageType').disable(); + } } Ext4.getCmp('basketTreeGrid').getView().refresh();