Quintiq file version 2.0
#parent: #root
Method OnOK () id:Method_DialogCreateEditShiftDayTime_OnOK
{
  #keys: '[413988.0.1372696376]'
  Body:
  [*
    // On ok
    
    if ( isnull( DataHolderDialogData.Data() ) ) {
      ShiftDayTime::CreateData( MacroPlan, dtsStart.DateTime(),
                                dtsEnd.DateTime(), ddslName.Text() );
    } else {
      ShiftDayTime::EditData( MacroPlan, DataHolderDialogData.Data(), dtsStart.DateTime(),
                                dtsEnd.DateTime(), ddslName.Text() );
    }
    
    Form.Close();
  *]
}
