1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| Quintiq file version 2.0
| #parent: #root
| StaticMethod GetUniqueOperationName (
| String name,
| Unit owner
| ) declarative remote as String
| {
| Description: 'Get unique name for operation within a unit'
| TextBody:
| [*
| number := 1;
| copiedname := name + GlobalParameters_MP::GetCopyString();
| retvalue := copiedname;
| while( exists( owner, Operation, sc, sc.Name() = retvalue ) )
| {
| retvalue := GlobalParameters_MP::GetExtendedStringWithNumber( copiedname, number );
| number++;
| }
| return retvalue;
| *]
| }
|
|