| | |
| | | table := owner.MP_Table( relnew,Name := MP_Cell_ScheduleSummary::GetTableName()); |
| | | |
| | | startDate := owner.StartOfPlanning().Date(); |
| | | endDate := startDate + 7; |
| | | |
| | | endDate := maxselect( owner,Unit.UnitPeriod.astype( UnitPeriodTime ).Period_MP,period,period.TimeUnit() = Translations::MP_GlobalParameters_Day(),period.EndDate()).EndDate(); |
| | | |
| | | columns := construct( MP_Columns ); |
| | | columnIndexTree := NamedValueTree::Create(); |
| | |
| | | capacity := workDay * throughput * workHours.Capacity().HoursAsReal() |
| | | } |
| | | |
| | | isFirstWeekData := true; |
| | | |
| | | if( column.CustomDate() > startDate + 7 ){ |
| | | isFirstWeekData := false; |
| | | } |
| | | |
| | | row.MP_Cell( relnew,MP_Cell_ScheduleSummary,MP_Column := column, |
| | | IsFristWeekData := isFirstWeekData, |
| | | ShiftPattern := unitPeriodTime.ShiftPatternName(), |
| | | WorkingDay := workDay, |
| | | Capacity := capacity, |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | traverse( table,MP_Column,column,column.MP_Cell( relsize ) = 0 ){ |
| | | column.Delete(); |
| | | } |
| | | return table; |
| | | *] |
| | | } |