renhao
2023-09-21 1aa9f2bb83dd9e4b7517f1cbf06b0db53979bb31
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
Method IsInUnitWeb (
  Strings unitids
) const declarative remote as Boolean
{
  Description:
  [*
    Webapp UI filtering
    Check if this Unit is relevant to the given Unit.
    This method compare ID to facilitate comparison across different datasets
  *]
  TextBody:
  [*
    return unitids.Find( this.ID() ) > -1
           // With the Navigation panel checkbox behaviour, for sure the parent will be selected, so we just need to compare 1 level up
           or unitids.Find( this.ParentUnitID() ) > -1;
  *]
}