1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
| Quintiq file version 2.0
| #parent: #root
| StaticMethod Create (
| String name,
| String parent_name,
| ScenarioManager scenario_manager,
| const Units units,
| const StockingPoint_MPs stocking_points,
| const Product_MPs products,
| const SalesSegment_MPs sales_segments,
| const structured_Object periodObjects,
| Boolean isFolder
| ) as Bookmark
| {
| TextBody:
| [*
| // Create folder if folder not exists
| if ( parent_name.Length() >0 )
| {
| Bookmark::CreateFolder( parent_name, scenario_manager );
| }
| // Create bookmark
| bookmark := Bookmark::Create( name, parent_name, scenario_manager, isFolder );
|
| // Set bookmark element
| if ( not isFolder )
| {
| bookmark.SetBookmarkElement( units, stocking_points, products, sales_segments, periodObjects );
| }
|
| return bookmark;
| *]
| }
|
|