1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| Quintiq file version 2.0
| #parent: #root
| StaticMethod HasShiftPatternUsed (
| output String feedback_o,
| UnitShiftPatterns unitshiftpatterns
| ) remote as Boolean
| {
| Description: 'Precondition method to enable or disable shift patterns on units.'
| TextBody:
| [*
| // Check if input unit shift patterns has already assigned by units
| isAllowed := not exists( unitshiftpatterns, Elements, usp, true, usp.IsShiftPatternUsedByUnit() );
| if( not isAllowed )
| {
| feedback_o := Translations::MP_ShiftPattern_InUse();
| }
| return isAllowed;
| *]
| }
|
|