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 = '';
|
*]
|
}
|