陈清红
2025-04-14 880f3c0257eeb8c37761d484258fdd102a369a19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Quintiq file version 2.0
#parent: #root
StaticMethod SystemHasInterestOrOwnership (LibDMF_SetType setType_i, Boolean isDeleteAction_i, output String feedback_o) remote as Boolean
{
  Description:
  [*
    Helper static method to check if a system has interest or ownership.
    1) This is intended for use in systems as a precondition
    2) Feedback(s) is not handled as only one feedback should ever be returned
  *]
  TextBody:
  [*
    // Timothy Guan Nov-18-2015 (created)
    
    channel := setType_i.SystemOnChannel().CommunicationChannel();
    
    value := channel.SystemHasSetTypeInterest( setType_i, feedback_o )
          or channel.SystemIsSetTypeOwner( setType_i, isDeleteAction_i, feedback_o );
    
    return value;
  *]
}