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
33
34
35
36
37
38
39
Quintiq file version 2.0
#parent: ListSalesDemand
Response OnDrawElement (
  SalesDemandBase element
) id:Response_ListSalesDemand_OnDrawElement
{
  #keys: '[124112.0.92386871]'
  Body:
  [*
    // Draw image for invalid forecast, product & stocking point
    
    // Draw image for invalid data
    if( not element.IsValidData() )
    {
      drawinfo.Image( 0, 'CONSTRAINTVIOLATIONS' );
    }
    
    
    // Draw image for product
    productnode := select( element, ProductInStockingPoint_MP.Product_MP.ProductNode, node, node.SupplyChainView() = DataHolderView.Data() );
    if( not isnull( productnode ) and productnode.IconName() <> '' )
    {
      drawinfo.Image( 1, productnode.IconName() );
    }
    
    // Draw image for stockingpoint
    spnode := select( element, ProductInStockingPoint_MP.StockingPoint_MP.StockingPointNode, node, node.SupplyChainView() = DataHolderView.Data() );
    if( not isnull( spnode ) and spnode.IconName() <> '' )
    {
      drawinfo.Image( 2, spnode.IconName() );
    }
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_List_OnDrawElement'
  Precondition:
  [*
    return not isnull( DataHolderView.Data() );
  *]
}