Kevin Kok Khah Whey
2023-10-18 d5e46a7a9f2cb9123b9aafb39a20e14059faa2e4
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
Quintiq file version 2.0
#parent: #root
Method ClickBtnOk () id:Method_DialogFillingCustomerAndForecast_ClickBtnOk
{
  #keys: '[414382.0.415784532]'
  Body:
  [*
    // Disabled button to prevent the possibility of multiple firing
    
    //btnOk.Enabled(false,'');
    
    // OnOk
    this.ApplyChanges();
    //DataHolderFilling.Data().Commit();
    
    //fillingData := DataHolderFilling.Data();
    
    //CustomerAndForecastOrder::CreateFillingCapacityOrder( MacroPlan, fillingData.WrappedInstance());
    
    //if( not isnull( DataHolderForm.Data() ) )
    //{
    //  // Access the form, select the new assumption
    //  DataHolderForm.Data().ListAssumptions().SelectByKey( DataHolderDialogData.Data().WrappedInstance().Key() );
    //}
    
    FillingCapacityOrder::CreateFillingCapacityOrder( MacroPlan, 
                                                      DataHolderFilling.Data().OrderID(),
                                                      [Real]edtSalesAmount.Text(),
                                                      dsDemandDate.Date(),
                                                      dsForecastDemandDate.Date(),
                                                      ddslOrderType.Text(),
                                                      DataHolderFilling.Data().VerNo()
                                                     );
    
    this.Close();
  *]
}