admin
2025-01-22 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de
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
Quintiq file version 2.0
#parent: #root
Method CanMoveOperationInput (
  output String feedback_o,
  OperationInputs sourceoperationinputs
) declarative remote as Boolean
{
  Description: 'Indicate if operation inputs can be move to this input'
  TextBody:
  [*
    // DWE2 Feb-22-2016 (created)
    
    feedback_o := '';
    
    isdifferentoperation := not exists( sourceoperationinputs, Elements.Operation,
                                        op, op = this.Operation() )
    
    operations := selectset( sourceoperationinputs, Elements.BaseOperationLink.OperationOutput.Operation, op, true );
    
    isoperationlinkexists := exists( operations,
                                     Elements.SourceOperationLink.AsDestinationOperation,
                                     op,
                                     op = this.Operation() );
    
    if( isdifferentoperation and isoperationlinkexists )
    {
      feedback_o := Translations::MP_Operation_CanCreateOperationLinkFromMultipleObjects_OperationLinkAlreadyExists();
    }
    
    return feedback_o = '';
  *]
}