| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod SplitShifts ( | 
|   RecycleBin owner, | 
|   String shiftName, | 
|   Real shiftVolume | 
| ) as owning DispatchShiftSchedulingInformations | 
| { | 
|   TextBody: | 
|   [* | 
|     // Akari Oct-9-2024 (created) | 
|     shiftSchedulingInformations := construct( DispatchShiftSchedulingInformations ); | 
|     if( shiftName = "3" ){ | 
|       shiftSchedulingInformation1 := owner.DispatchShiftSchedulingInformation( relnew ,ID := IDHolder::GetGUID(),ShiftName := shiftName,ShiftVolume := shiftVolume / 3 ); | 
|       shiftSchedulingInformation1.SingleShiftName( "1班" ); | 
|       shiftSchedulingInformations.Add( shiftSchedulingInformation1 ); | 
|        | 
|       shiftSchedulingInformation2 := owner.DispatchShiftSchedulingInformation( relnew ,ID := IDHolder::GetGUID(),ShiftName := shiftName,ShiftVolume := shiftVolume / 3 ); | 
|       shiftSchedulingInformation2.SingleShiftName( "2班" ); | 
|       shiftSchedulingInformations.Add( shiftSchedulingInformation2 ); | 
|        | 
|       shiftSchedulingInformation3 := owner.DispatchShiftSchedulingInformation( relnew ,ID := IDHolder::GetGUID(),ShiftName := shiftName,ShiftVolume := shiftVolume / 3 ); | 
|       shiftSchedulingInformation3.SingleShiftName( "3班" ); | 
|       shiftSchedulingInformations.Add( shiftSchedulingInformation3 ); | 
|     }else{ | 
|       shiftSchedulingInformation := owner.DispatchShiftSchedulingInformation( relnew ,ID := IDHolder::GetGUID(),ShiftName := shiftName,ShiftVolume := shiftVolume ); | 
|       shiftSchedulingInformations.Add( shiftSchedulingInformation ); | 
|     } | 
|      | 
|      | 
|     return &shiftSchedulingInformations; | 
|   *] | 
| } |