1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| Quintiq file version 2.0
| #parent: #root
| Method ShowOrHideUnitNodes (
| Boolean isvisible,
| Unit unit
| )
| {
| Description: 'Show or hide all unit nodes'
| TextBody:
| [*
| //show hide all children unit
|
| childrennodes := selectset( unit, Child.UnitNode, ud, ud.SupplyChainView() = this, true );
| if( isnull( unit ) )
| {
| rootunits := selectset( this.MacroPlan(), RootUnit.UnitNode, un, un.SupplyChainView() = this, true );
| this.ShowOrHideSelectedNode( isvisible, rootunits );
| }
|
| this.ShowOrHideSelectedNode( isvisible, childrennodes );
| *]
| }
|
|