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
| Quintiq file version 2.0
| #parent: #root
| Method NewPriority (
| internal[GUIComponent] parent
| ) as Priority id:Method_DialogCreateEditPriority_NewPriority
| {
| #keys: '[11660.0.424281454]'
| Body:
| [*
| // New priority
|
| data := MacroPlan.Priority( relshadow, Name := "" );// Set Name to empty, wil be set in Create method
| Dialog.Data( data );
|
| result := Dialog.DoModal( parent );
| newobj := null( Priority );
|
| if( result > 0 )
| {
| newobj := Priority::Create( MacroPlan,
| data.Name(),
| data.Weight(),
| false );
| }
|
| return newobj;
| *]
| }
|
|