xiaoding721
2023-11-13 e4edcfd0b987b239526f5375881b919789782dad
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
Quintiq file version 2.0
#parent: #root
Method SetFilters () id:Method_ApplicationLibMacroPlanner_SetFilters
{
  #keys: '[124808.0.1687796487]'
  Body:
  [*
    // Set filter for checkboxes on navigation panel
    listproductfilter := 'not object.IsSystem() ';
    listentitysource := 'dataholderchildstockingpoints';
    
    if( CheckBoxFilterPDByStockingPointInPanel.Checked() )
    {  
      listproductfilter := listproductfilter + ' and object.IsInStockingPoint( ' + listentitysource + ' ) '; 
    }
    
    GUIDataSetLevelProducts.FixedFilter( listproductfilter );
    
    // To keep the forms checkbox and filters in sync
    productform := this.GetFormProducts();
    
    // we need to set filter because the list is hierarchical
    if( not isnull( productform ) )
    { 
      productform.GUIDataSetLevelProducts().FixedFilter( listproductfilter );
    }
  *]
}