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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
| Quintiq file version 2.0
| #parent: #root
| StaticMethod Create (
| String id,
| MacroPlan owner,
| Number edgethickness,
| String fontname,
| Number fontsize,
| Number gridheight,
| Number gridpointdistance,
| Number gridwidth,
| Boolean iscompactmode,
| Boolean isgridvisible,
| Number offsetx,
| Number offsety,
| Number operationheight,
| Number operationinputoutputwidth,
| Number operationoffsetx,
| Number operationoffsety,
| Number operationwidth,
| Number padding,
| Number pispheight,
| Number pispwidth,
| Number routingstepdistance,
| Number routingstepminimumheight,
| Number routingstepminimumwidth,
| String user,
| Number useroperationinputoutputheight,
| Boolean isfromdb
| ) as RoutingConfiguratorView
| {
| Description: 'Create view from imported data'
| TextBody:
| [*
| // Create a new routing configurator view
| // Get current user short name
| currentusername := GlobalParameters_MP::GetUserName();
|
| // Create new RoutingConfiguratorView
| newscv := owner.ViewBase( relnew,
| RoutingConfiguratorView,
| ID := id,
| User := currentusername );
|
| // Update RoutingConfiguratorView's attributes
| newscv.Update( edgethickness,
| fontname,
| fontsize,
| gridheight,
| gridpointdistance,
| gridwidth,
| iscompactmode,
| isgridvisible,
| offsetx,
| offsety,
| operationheight,
| operationinputoutputwidth,
| operationoffsetx,
| operationoffsety,
| operationwidth,
| padding,
| pispheight,
| pispwidth,
| routingstepdistance,
| routingstepminimumheight,
| routingstepminimumwidth,
| user,
| useroperationinputoutputheight,
| isfromdb );
|
| // Set RoutingConfiguratorViewID
| owner.IDHolder().RoutingConfiguratorViewID( MacroPlan::FormatStringToNumber( id ) );
|
| return newscv;
| *]
| }
|
|