Lai,Risheng
2023-11-02 30c02e0c981b16be0918483543f4b812956c45d4
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
Quintiq file version 2.0
#parent: #root
Method Edit (
  FillingCapacityOrder selection
) id:Method_DialogFillingCapacityOrder_Edit
{
  #keys: '[414382.0.402531258]'
  Body:
  [*
    // Edits assumption
    data := shadow( selection );
    
    DataHolderFillingCapacityOrder.Data( &data );
    
    salesSegment_MP := select( MacroPlan, SalesSegment_MP, tempSSMP, tempSSMP.Name() = selection.SalesSegmentName() );
    ddlSalesSegment.Data( salesSegment_MP );
    
    product_MP := select( MacroPlan, Product_MP, tempPMP, tempPMP.ID() = selection.ProductID() );
    ddlProduct_MP.Data( product_MP );
    
    stockingPoint_MP := select( MacroPlan, StockingPoint_MP, tempSPMP, tempSPMP.ID() = selection.StockingPointID() );
    ddlStockingPoint_MP.Data( stockingPoint_MP );
    
    businessType := select( GlobalOTDTable, BusinessType, tempBT, tempBT.BusinessTypeName() = selection.BusinessType() );
    ddlBusinessType.Data( businessType );
    
    unitOfMeasure_MP := select( MacroPlan, UnitOfMeasure_MP, tempUOMMP, tempUOMMP.Name() = selection.UnitOfMeasureName() );
    ddlUnitOfMeasure_MP.Data( unitOfMeasure_MP );
    
    ApplicationMacroPlanner.ShowFormModal( this );
  *]
}