[Share] organization chart controls

Source: Internet
Author: User
Even if an organization is cracked, the chart control is used to share it with you. Although it is very simple, it also saves you some time. Don't laugh.
PS yourself.
Http://www.v155.com/bbs/UploadFile/2005-4/2005415112427995.rar
Http://www.v155.com/bbs/UploadFile/2005-4/2005415112623409.rar
Upload it here.
Test Code :

Orgnode = new orgnode ();

Orgnode. Text = "Head Office ";

Orgnode. Description = "this is the tip of the organization chart ";

Orgnode. navigateurl = "http://www.sina.com.cn ";

// Create nodes
Orgnode orgnode1 = new orgnode ();
Orgnode1.text = "branch 1 ";
Orgnode1.description = "this is ";
Orgnode1.type = "group ";

Orgnode orgnode11 = new orgnode ();
Orgnode11.text = "employees in branch 1 ";
Orgnode11.type = "login ";
Orgnode11.description = "this is ";

Orgnode orgnode12 = new orgnode ();
Orgnode12.text = "employees of branch 1 ";
Orgnode12.type = "login ";
Orgnode12.description = "this is ";

Orgnode orgnode2 = new orgnode ();
Orgnode2.text = "branch 2 ";
Orgnode2.type = "Roles ";
Orgnode2.description = "this is ";

Orgnode orgnode21 = new orgnode ();
Orgnode21.text = "branch 2 ";
Orgnode21.type = "Roles ";
Orgnode21.description = "this is ";

Orgnode orgnode3 = new orgnode ();
Orgnode3.text = "Branch 3 ";
Orgnode3.type = "Roles ";
Orgnode3.description = "this is 3 ";

Orgnode orgnode4 = new orgnode ();
Orgnode4.text = "branch 4 ";
Orgnode4.type = "Roles ";
Orgnode4.description = "this is 3 ";

// Establish a link
Orgnode. nodes. Add (orgnode1 );


Orgnode. nodes. Add (orgnode2 );
Orgnode2.nodes. Add (orgnode21 );

orgnode1.nodes. add (orgnode11);
orgnode1.nodes. add (orgnode12);
orgnode. nodes. add (orgnode3);
orgnode. nodes. add (orgnode4);
orgnode. getnodeindex ();
wssmax. orgnodecollection orgnodecollection1 = new orgnodecollection (orgnode1);
int I = orgnodecollection1.count;
orgnodecollection1.add (orgnode2);
wssmax. orgnodetype orgnodetype1 = new orgnodetype ();
orgnodetype1.navigateurl = "str";
wssmax. orgnodetypecollection orgnodetypecollection1 = new orgnodetypecollection (orgnode1);
trim (orgnodetype1);
orgchart1.node = orgnode;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.