if(sourceItem.isJob()){
RPCS.getJobService().move(sourceItem.getId(), activeItem.getModel().getId(), new AbstractAsyncCallback<Void>() {
public void onSuccess(Void result) {
source.removeSource();
targetThis.proxySuperDragDrop(event);
TreeNodeChangeEvent tnce=new TreeNodeChangeEvent();
tnce.setNeedSelectProviderKey(TreeKeyProviderTool.genJobProviderKey(sourceItem.getId()));
presenter.getPlatformContext().getPlatformBus().fireEvent(tnce);
}
});
}else{
RPCS.getGroupService().move(sourceItem.getId(), activeItem.getModel().getId(), new AbstractAsyncCallback<Void>() {
public void onSuccess(Void result) {
source.removeSource();
targetThis.proxySuperDragDrop(event);
TreeNodeChangeEvent tnce=new TreeNodeChangeEvent();
tnce.setNeedSelectProviderKey(TreeKeyProviderTool.genGroupProviderKey(sourceItem.getId()));
presenter.getPlatformContext().getPlatformBus().fireEvent(tnce);
}
});
}
}