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
| Quintiq file version 2.0
| #parent: #root
| Method CanIncludeExcludeEntity (
| output String feedback_o,
| Entitys entities,
| String entitystatus
| ) remote as Boolean
| {
| Description: 'Enable or disable include/exclude button entity'
| TextBody:
| [*
| // If exist not check among selection, we allow user to use the check feature
| // If exist check among selection, we allow user to use the uncheck feature
| value := true;
|
| if( this.IsWorld() )
| {
| value := false;
| feedback_o := Translations::MP_OptimizerPuzzleBase_CannotEditWorld();
| }
| else
| {
| value := exists( this,
| SubsetEntityInOptimizerPuzzleWip,
| seiop,
| exists( entities,
| Elements,
| entity,
| entity = seiop.Entity()
| and seiop.Status() <> entitystatus
| and entity.CanExcludeIncludeOptimizerPuzzle( feedback_o ) ) )
| }
|
| return value;
| *]
| }
|
|