具有展开和折叠节点的组织结构图 [英] Organization chart with expand and collapsed nodes

查看:535
本文介绍了具有展开和折叠节点的组织结构图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
我正在从事需要建立组织结构图的项目.
我从Rotem sapir的Code项目专家那里获得了一些帮助.但是,我们希望开发可以扩展也可以折叠的组织结构图.
我使用Unifosys图表控件,但我们的数据生成了100多个节点的组织结构图,该控件未以正确的格式显示节点.另外,控件(每个节点文本)也不可读.
如果有人向我们建议解决方案,我们将不胜感激.

谢谢
代码项目成员

Hello
I am working on project which requires to built organization chart.
I got some help from Code project artcle by Rotem sapir.Howeevr we would like to develope organization chart which can be expanded as well collapsed.
I use Unifosys chart control but our data generates more than 100 nodes org chart, control doesn''t display node in correct format. Also control(each node text) is not readable.
We will really appreciate if anyone suggest us the solution.

Thanks
Code Project member

推荐答案

如果组织是分层的,则表示它表示可以表示为树的关系.在这种情况下,您实际上并不需要图表控件-常规TreeView会完全按照您的需要显示图表,并且可以展开和折叠.即可使用的.NET库已经为您完成了所有工作.

我假设并不是一切都那么简单,并且您的组织代表的是更一般的图形,而不是一棵树.它只是通过树的定义(没有循环的图)来表示其中具有循环.在这种情况下,除非您可以用某种异乎寻常的词义来定义这些操作,否则不需要扩展或折叠就没有意义了.

无论哪种方式,解决问题都是没有道理的.想一想.

—SA
If the organization is hierarchical, it means it presents a relationship which can be represented as a tree. In this case, you don''t really need a chart control — a regular TreeView will present a chart exactly as you want, with possibility to expand and collapse. Everything is already done for you in the ready-to-use .NET libraries.

I we assume that not everything is so simple, and that your organization represents more general graph, not a tree. It simply means it has loops in it, by the definition of the tree (a graph without loops). In this case, requirement to expand or collapse makes no sense, unless you can define these operation in some exotic sense of the words, not as it is understood for the trees.

Either way, the formulation of the problem makes no sense. Just think about it.

—SA


最新的Unifosys Chart4.NET可以更好地绘制组织结构图中的大量节点.
The latest Unifosys Chart4.NET has better drawing for large number of nodes in an organization chart.


这篇关于具有展开和折叠节点的组织结构图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆