hongji.li
2023-09-18 a88fe6630f15c12d5c35d6b8a6dd4c8c4635d202
_Main/UI/MacroPlannerWebApp/Component_DialogFillingCustomerAndForecast/Method_ClickBtnOk.def
对比新文件
@@ -0,0 +1,28 @@
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() );
    //}
    this.Close();
  *]
}