| | |
| | | shiftSchedulingInformations := construct( DispatchShiftSchedulingInformations ); |
| | | if( shiftName = "3" ){ |
| | | shiftSchedulingInformation1 := owner.DispatchShiftSchedulingInformation( relnew ,ID := IDHolder::GetGUID(),ShiftName := shiftName,ShiftVolume := shiftVolume / 3 ); |
| | | shiftSchedulingInformation1.SingleShiftName( "1班" ); |
| | | shiftSchedulingInformation1.SingleShiftName( "白班" ); |
| | | shiftSchedulingInformations.Add( shiftSchedulingInformation1 ); |
| | | |
| | | shiftSchedulingInformation2 := owner.DispatchShiftSchedulingInformation( relnew ,ID := IDHolder::GetGUID(),ShiftName := shiftName,ShiftVolume := shiftVolume / 3 ); |
| | | shiftSchedulingInformation2.SingleShiftName( "2班" ); |
| | | shiftSchedulingInformation2.SingleShiftName( "二班" ); |
| | | shiftSchedulingInformations.Add( shiftSchedulingInformation2 ); |
| | | |
| | | shiftSchedulingInformation3 := owner.DispatchShiftSchedulingInformation( relnew ,ID := IDHolder::GetGUID(),ShiftName := shiftName,ShiftVolume := shiftVolume / 3 ); |
| | | shiftSchedulingInformation3.SingleShiftName( "3班" ); |
| | | shiftSchedulingInformation3.SingleShiftName( "三班" ); |
| | | shiftSchedulingInformations.Add( shiftSchedulingInformation3 ); |
| | | }else if( shiftName = "2" ){ |
| | | shiftSchedulingInformation1 := owner.DispatchShiftSchedulingInformation( relnew ,ID := IDHolder::GetGUID(),ShiftName := shiftName,ShiftVolume := shiftVolume / 2 ); |
| | | shiftSchedulingInformation1.SingleShiftName( "白班" ); |
| | | shiftSchedulingInformations.Add( shiftSchedulingInformation1 ); |
| | | |
| | | shiftSchedulingInformation2 := owner.DispatchShiftSchedulingInformation( relnew ,ID := IDHolder::GetGUID(),ShiftName := shiftName,ShiftVolume := shiftVolume / 2 ); |
| | | shiftSchedulingInformation2.SingleShiftName( "二班" ); |
| | | shiftSchedulingInformations.Add( shiftSchedulingInformation2 ); |
| | | }else if( shiftName = "1" ){ |
| | | shiftSchedulingInformation1 := owner.DispatchShiftSchedulingInformation( relnew ,ID := IDHolder::GetGUID(),ShiftName := shiftName,ShiftVolume := shiftVolume / 1 ); |
| | | shiftSchedulingInformation1.SingleShiftName( "白班" ); |
| | | shiftSchedulingInformations.Add( shiftSchedulingInformation1 ); |
| | | }else{ |
| | | shiftSchedulingInformation := owner.DispatchShiftSchedulingInformation( relnew ,ID := IDHolder::GetGUID(),ShiftName := shiftName,ShiftVolume := shiftVolume ); |
| | | shiftSchedulingInformations.Add( shiftSchedulingInformation ); |
| | | shiftSchedulingInformation1 := owner.DispatchShiftSchedulingInformation( relnew ,ID := IDHolder::GetGUID(),ShiftName := shiftName,ShiftVolume := shiftVolume / 1 ); |
| | | shiftSchedulingInformation1.SingleShiftName( "" ); |
| | | shiftSchedulingInformations.Add( shiftSchedulingInformation1 ); |
| | | } |
| | | |
| | | |