elcazador
07-18-2003, 11:44 AM
hi thre, i hope someone help me
I fried my brains try to solve this. At work (i work in a manufacturing company) they want to get some program to represent the explosion of a product (products-parts-raw materials) something like this
.........................A
..........................
...............°-------°-------°
...............B.........C..........D
...............|......................|
........°-------°..............°-----°
....... E..........F.............G.......H
...................|..............|
...........°----°----°....... L
...........I......G......K
..................|......|
..................L......M
i'm sorry about those "." but it was the only way to put the info like i want, i don't use forums to often :)
Note that the G it's in two levels (even it could be in a lot of levels) so first i have to get the informacion from a structural database (wich has
PARENT_CODE,CHILD_CODE,QTYREQ
finally, with a lot of recursivity i get that informacion in an array, like this
ARRAY
0 1 2 (Qty)
A B 2
A C 1
B E 4
and so on.
I try to use treeview but because that some products are requiered in a couple of levels, i cant use the code of the product as a key for the treeview. Even if you find another way to represent this not using treeview it could be okay.
My email is pdguevara@hotmail.com if someone could help me with this it would be awesome. Thx and please forgive my english.
I fried my brains try to solve this. At work (i work in a manufacturing company) they want to get some program to represent the explosion of a product (products-parts-raw materials) something like this
.........................A
..........................
...............°-------°-------°
...............B.........C..........D
...............|......................|
........°-------°..............°-----°
....... E..........F.............G.......H
...................|..............|
...........°----°----°....... L
...........I......G......K
..................|......|
..................L......M
i'm sorry about those "." but it was the only way to put the info like i want, i don't use forums to often :)
Note that the G it's in two levels (even it could be in a lot of levels) so first i have to get the informacion from a structural database (wich has
PARENT_CODE,CHILD_CODE,QTYREQ
finally, with a lot of recursivity i get that informacion in an array, like this
ARRAY
0 1 2 (Qty)
A B 2
A C 1
B E 4
and so on.
I try to use treeview but because that some products are requiered in a couple of levels, i cant use the code of the product as a key for the treeview. Even if you find another way to represent this not using treeview it could be okay.
My email is pdguevara@hotmail.com if someone could help me with this it would be awesome. Thx and please forgive my english.