getPosition:function(){
var tree = this.serachConditions.getForm().findField('position').tree;
var selNodes = tree.getChecked();
var position = [];
Ext.each(selNodes, function(node){
pValues = "";
pValues = this.recursionNode(node,node.attributes.value);
position.push({id: node.id, value:node.attributes.value, name: node.text,pValues:pValues});
},this);
return position;
},
//递归获取父节点
recursionNode: function(node,pValues){
if("-1" != node.parentNode.id){
pValues = node.parentNode.attributes.value + "," + pValues;
return this.recursionNode(node.parentNode,pValues);
}else{
return pValues
}
}
var tree = this.serachConditions.getForm().findField('position').tree;
var selNodes = tree.getChecked();
var position = [];
Ext.each(selNodes, function(node){
pValues = "";
pValues = this.recursionNode(node,node.attributes.value);
position.push({id: node.id, value:node.attributes.value, name: node.text,pValues:pValues});
},this);
return position;
},
//递归获取父节点
recursionNode: function(node,pValues){
if("-1" != node.parentNode.id){
pValues = node.parentNode.attributes.value + "," + pValues;
return this.recursionNode(node.parentNode,pValues);
}else{
return pValues
}
}