| | |
| | | if( columnName = "å卿ºé¶ä»¶å·" ){ |
| | | row.ProductID( ifexpr( isnull( baseVersionCell ), ifexpr( isnull( compareVersionCell ),"空",compareVersionCell.Value()), baseVersionCell.Value()) ); |
| | | } |
| | | if( columnName = "产å°" ){ |
| | | row.CustomName( row.ProductID() + " > " + ifexpr( isnull( baseVersionCell ), ifexpr( isnull( compareVersionCell ),"空",compareVersionCell.Value()), baseVersionCell.Value()) ); |
| | | if( columnName = "车å" ){ |
| | | row.CustomName( " > " + ifexpr( isnull( baseVersionCell ), ifexpr( isnull( compareVersionCell ),"空",compareVersionCell.Value()), baseVersionCell.Value()) ); |
| | | } |
| | | }else{ |
| | | row.LocalCell( relnew,LocalCell_DemandComparison,LocalColumn := column, |
| | |
| | | CompareVersion := ifexpr( isnull( compareVersionCell ), 0 ,[Real]compareVersionCell.Value() )); |
| | | } |
| | | } |
| | | row.CustomName( row.ProductID() + row.CustomName() ); |
| | | } |
| | | } |
| | | // åç»å é¤ |
| | |
| | | columnIndexTree.Root().AddChild( columnHandle,columns.Size() - 1 ); |
| | | } |
| | | |
| | | traverse( owner,Unit,unit,unit.HasCapacityTypeTime()){ |
| | | traverse( owner,Unit,unit,unit.HasCapacityTypeTime() and not unit.HasChild()){ |
| | | // unit.AsEntity().DisplayNameForSelection() |
| | | row := table.MP_Row( relnew,CustomName := unit.ID(),Index := table.GetRowIndexCache() ); |
| | | throughput := sum( unit,Operation,operation,operation.Throughput() ) / unit.Operation( relsize ); |
| | |
| | | StaticMethod CreateFullTable ( |
| | | const MacroPlans owners, |
| | | RecycleBin recycleBin, |
| | | const Archive archive |
| | | const Archive archive, |
| | | const MacroPlan owner |
| | | ) as LocalTable |
| | | { |
| | | TextBody: |
| | | [* |
| | | // rislai Aug-7-2024 (created) |
| | | tables := construct( MP_Tables ); |
| | | traverse( owners,Elements,owner ){ |
| | | table := select( owner,MP_Table,table,table.Name() = MP_Cell_ScheduleSummary::GetTableName() ); |
| | | if( isnull( table )){ |
| | | table := MP_Cell_ScheduleSummary::Create( owner ); |
| | | } |
| | | tables.Add( table ); |
| | | } |
| | | tables := MP_Table::GetMP_Tables_ScheduleSummary( owners ); |
| | | |
| | | scheduleSummaryOutputDataIndexTree := NamedValueTree::Create(); |
| | | scheduleSummaryOutputDatas := selectset( archive,ScheduleSummaryOutputLine.ScheduleSummaryOutputData,data, |
| | |
| | | } |
| | | } |
| | | |
| | | //startDate := owner.StartOfPlanning().Date() + 7; |
| | | //endDate := maxselect( owner,Unit.UnitPeriod.astype( UnitPeriodTime ).Period_MP,period,period.EndDate(),period.TimeUnit() = "Month" ).EndDate(); |
| | | //columns := construct( MP_Columns ); |
| | | //columnIndexTree := NamedValueTree::Create(); |
| | | //for( i := startDate;i < endDate; i := i + 1){ |
| | | // column := table.MP_Column( relnew,CustomDate := i ); |
| | | // columnHandle := columnIndexTree.GetHandle( i.AsQUILL() ); |
| | | // columns.Add( column ); |
| | | // columnIndexTree.Root().AddChild( columnHandle,columns.Size() - 1 ); |
| | | //} |
| | | |
| | | |
| | | return localTable; |
| | | *] |
| | | } |
| | |
| | | TextBody: |
| | | [* |
| | | // rislai Aug-7-2024 (created) |
| | | tables := construct( MP_Tables ); |
| | | traverse( owners,Elements,owner ){ |
| | | table := select( owner,MP_Table,table,table.Name() = MP_Cell_AnnualPlanReport::GetTableName() ); |
| | | if( isnull( table )){ |
| | | table := MP_Cell_AnnualPlanReport::Create( owner ); |
| | | } |
| | | tables.Add( table ); |
| | | } |
| | | tables := MP_Table::GetMP_Tables_AnnualPlanReport( owners ); |
| | | |
| | | localTable := recycleBin.LocalTable( relnew,Name := MP_Cell_AnnualPlanReport::GetTableName() ); |
| | | startDate := minselect( tables,Elements.MP_Column,column,column.CustomDate() ).CustomDate(); |
| | |
| | | TypeSpecialization MP_Cell_AnnualPlanReport |
| | | { |
| | | #keys: '2[412672.1.107700065][412672.1.107700060]' |
| | | Description: 'å
¨å¹´è®¡åæ¥è¡¨' |
| | | Parent: MP_Cell |
| | | StructuredName: 'MP_Cell_AnnualPlanReports' |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetMP_Tables_AnnualPlanReport ( |
| | | const MacroPlans owners |
| | | ) as owning MP_Tables |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Aug-19-2024 (created) |
| | | tables := construct( MP_Tables ); |
| | | traverse( owners,Elements,owner ){ |
| | | table := select( owner,MP_Table,table,table.Name() = MP_Cell_AnnualPlanReport::GetTableName() ); |
| | | if( isnull( table )){ |
| | | table := MP_Cell_AnnualPlanReport::Create( owner ); |
| | | }else{ |
| | | startDate := minselect( table,MP_Column,column,column.CustomDate() ).CustomDate(); |
| | | planStartDate := owner.StartOfPlanning().Date(); |
| | | if( startDate <> planStartDate ){ |
| | | table := MP_Cell_AnnualPlanReport::Create( owner ); |
| | | } |
| | | } |
| | | tables.Add( table ); |
| | | } |
| | | return &tables; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GetMP_Tables_ScheduleSummary ( |
| | | const MacroPlans owners |
| | | ) as owning MP_Tables |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Aug-19-2024 (created) |
| | | tables := construct( MP_Tables ); |
| | | traverse( owners,Elements,owner ){ |
| | | table := select( owner,MP_Table,table,table.Name() = MP_Cell_ScheduleSummary::GetTableName() ); |
| | | if( isnull( table )){ |
| | | table := MP_Cell_ScheduleSummary::Create( owner ); |
| | | }else{ |
| | | startDate := minselect( table,MP_Column,column,column.CustomDate() ).CustomDate(); |
| | | planStartDate := owner.StartOfPlanning().Date(); |
| | | if( startDate <> planStartDate ){ |
| | | table := MP_Cell_ScheduleSummary::Create( owner ); |
| | | } |
| | | } |
| | | tables.Add( table ); |
| | | } |
| | | return &tables; |
| | | *] |
| | | } |