| | |
| | | localRowHandle := localRowIndexTree.GetHandle( rowKey ); |
| | | localRowIndex := guard( localRowIndexTree.Root().Child( localRowHandle ),null( NamedValue )); |
| | | if( isnull( localRowIndex )){ |
| | | localRow := table.LocalRow( relnew,Index := table.GetRowIndexCache(),CustomName := row.ProductID(),Remark := rowKey ); |
| | | localRow := table.LocalRow( relnew,Index := table.GetRowIndexCache(),ProductID := row.ProductID(),CustomName := row.ProductID() + " > " + row.ProductionLine(),Remark := rowKey ); |
| | | localRows.Add( localRow ); |
| | | localRowIndexTree.Root().AddChild( localRowHandle,localRows.Size() - 1 ); |
| | | } |
| | |
| | | localRowHandle := localRowIndexTree.GetHandle( rowKey ); |
| | | localRowIndex := guard( localRowIndexTree.Root().Child( localRowHandle ),null( NamedValue )); |
| | | if( isnull( localRowIndex )){ |
| | | localRow := table.LocalRow( relnew,Index := table.GetRowIndexCache(),CustomName := row.ProductID(),Remark := rowKey ); |
| | | localRow := table.LocalRow( relnew,Index := table.GetRowIndexCache(),ProductID := row.ProductID(),CustomName := row.ProductID() + " > " + row.ProductionLine(),Remark := rowKey ); |
| | | localRows.Add( localRow ); |
| | | localRowIndexTree.Root().AddChild( localRowHandle,localRows.Size() - 1 ); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod CreateMP_Tables_AnnualPlanReport ( |
| | | const MacroPlans owners |
| | | ) as owning MP_Tables |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Aug-19-2024 (created) |
| | | tables := construct( MP_Tables ); |
| | | traverse( owners,Elements,owner ,owner.MDSMacroPlan().Description().LikeUserLocale( "è®¡åæ±æ»" )){ |
| | | table := select( owner,MP_Table,table,table.Name() = MP_Cell_AnnualPlanReport::GetTableName() ); |
| | | if( not isnull( table )){ |
| | | table.Delete(); |
| | | } |
| | | table := MP_Cell_AnnualPlanReport::Create( owner ); |
| | | tables.Add( table ); |
| | | } |
| | | return &tables; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod CreateMP_Tables_ScheduleSummary ( |
| | | const MacroPlans owners |
| | | ) as owning MP_Tables |
| | | { |
| | | TextBody: |
| | | [* |
| | | // Akari Aug-19-2024 (created) |
| | | tables := construct( MP_Tables ); |
| | | traverse( owners,Elements,owner ,owner.MDSMacroPlan().Description().LikeUserLocale( "è®¡åæ±æ»" )){ |
| | | table := select( owner,MP_Table,table,table.Name() = MP_Cell_ScheduleSummary::GetTableName() ); |
| | | if( not isnull( table )){ |
| | | table.Delete(); |
| | | } |
| | | table := MP_Cell_ScheduleSummary::Create( owner ); |
| | | tables.Add( table ); |
| | | } |
| | | return &tables; |
| | | *] |
| | | } |
| | |
| | | [* |
| | | // Akari Aug-19-2024 (created) |
| | | tables := construct( MP_Tables ); |
| | | traverse( owners,Elements,owner ){ |
| | | traverse( owners,Elements,owner ,owner.MDSMacroPlan().Description().LikeUserLocale( "è®¡åæ±æ»" )){ |
| | | table := select( owner,MP_Table,table,table.Name() = MP_Cell_AnnualPlanReport::GetTableName() ); |
| | | if( isnull( table )){ |
| | | table := MP_Cell_AnnualPlanReport::Create( owner ); |
| | |
| | | [* |
| | | // Akari Aug-19-2024 (created) |
| | | tables := construct( MP_Tables ); |
| | | traverse( owners,Elements,owner ){ |
| | | traverse( owners,Elements,owner ,owner.MDSMacroPlan().Description().LikeUserLocale( "è®¡åæ±æ»" )){ |
| | | table := select( owner,MP_Table,table,table.Name() = MP_Cell_ScheduleSummary::GetTableName() ); |
| | | if( isnull( table )){ |
| | | table := MP_Cell_ScheduleSummary::Create( owner ); |
| | |
| | | |
| | | traverse( this,NewOfflinePlanRow,row,row.Type() = "1" ){ |
| | | productID := row.ProductID(); |
| | | // productLine := row.ProductionLine(); |
| | | localRow := table.LocalRow( relnew,Index := table.GetRowIndexCache(),CustomName := productID ); |
| | | productLine := row.ProductionLine(); |
| | | localRow := table.LocalRow( relnew,Index := table.GetRowIndexCache(),CustomName := productID + " > " + productLine,ProductID := productID ); |
| | | traverse( row,NewOfflinePlanCell,cell,cell.NewOfflinePlanColumn().StartDate() >= macroPlan.StartOfPlanning().Date() ){ |
| | | localColumnHandle := localColumnIndexTree.GetHandle( cell.NewOfflinePlanColumn().StartDate().AsQUILL() ); |
| | | localColumnIndex := guard( localColumnIndexTree.Root().Child( localColumnHandle ),null( NamedValue )); |