
function triggerDrag(id){ |
var node=null; |
|
Ext.each(Ext.getCmp('left_panel'),function(accrd){ |
Ext.each(accrd.items.items,function(tree){ |
tree.getRootNode().cascade(function() { |
if (this.attributes['url'] && this.attributes['url'].indexOf('HealthReport') > 0) { |
|
//委派拖拽 |
var proxy=new Ext.dd.DragSource(this.getUI().getEl(),{group:'dd'}); |
var target=new Ext.dd.DDTarget('dargDiv','dd'); |
|
//完成拖拽后触发的事件 |
proxy.afterDragDrop = function(target, e, idc) { |
|
//构造快捷方式持久化对象 |
var obj = { |
shortcutname : this.attributes.text, |
shortcuttype : '0', |
shortcutcode : this.attributes.code, |
shortcutid : Number(this.attributes.id), |
shortcuturl : this.attributes.url, |
userid : top._APP.operator.id |
}; |
|
//持久快捷方式对象 |
_Ajax.request({ |
url : 'system/Common_saveObj.action', |
params:{ |
clazz:'com.tbyf.health.entity.XtShortcut' |
}, |
xmlData: obj, |
result : function(obj) { |
initShortcuts(); |
} |
}); |
}; |
} |
}); |
}); |
}); |
} |



