¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod InitiateSearch ( |
| | | MacroPlan owner |
| | | ) as CCEngineLogisticsCostReport |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Sep-29-2024 (created) |
| | | allunit := DLEngineLogisticsCostReport::GetDefaultAllUnit(); |
| | | search := owner.CCEngineLogisticsCostSearch(); |
| | | if( isnull( search ) ){ |
| | | owner.CCEngineLogisticsCostSearch( relnew, Generation := allunit, MqbMlb := allunit, Power := allunit ); |
| | | }else{ |
| | | search := owner.CCEngineLogisticsCostSearch(); |
| | | search.Generation( allunit ); |
| | | search.MqbMlb( allunit ); |
| | | search.Power( allunit ); |
| | | } |
| | | table := selectobject( owner, CCEngineLogisticsCostReport, table, table.IsShow() ); |
| | | if( not isnull( table ) ){ |
| | | products := selectset( owner, Product_MP, product, true ); |
| | | table.Generate( search, products ); |
| | | } |
| | | return table; |
| | | *] |
| | | } |
| | |
| | | ccunit := DLEngineLogisticsCostReport::GetDefaultCCUnit(); |
| | | dlunit := DLEngineLogisticsCostReport::GetDefaultDLUnit(); |
| | | //dlline := DLEngineLogisticsCostReport::GetStockingPointDLLine(); |
| | | ccrent := DLEngineLogisticsCostReport::GetStockingPointCCRent(); |
| | | dlrent := DLEngineLogisticsCostReport::GetStockingPointCCRent(); |
| | | //ccrent := DLEngineLogisticsCostReport::GetStockingPointCCRent(); |
| | | //dlrent := DLEngineLogisticsCostReport::GetStockingPointCCRent(); |
| | | |
| | | startofplanning := owner.StartOfPlanning().Date(); |
| | | //startofyear := startofplanning.StartOfYear(); |
| | |
| | | //å¤ç§åºä»å¨è´¹ç¨ï¼ä»å¨æ°é/å
è£
容é*ä»å¨åä»·ï¼å¨Actual inventorieséåå°é¿æ¥å¤ç§åº/大è¿å¤ç§åºè¯¥å卿ºçä»å¨éï¼æ ¹æ®å卿ºå·æ¾å°å¯¹åºçGeneration 忍ªçºµå¶ï¼å¨å卿ºææ¬åæ°è¡¨éæ¾å°å¯¹åºçä»å¨åä»·åå
è£
容éï¼ç¨å
¬å¼è®¡ç®ï¼æåº¦è¿è¡æ±æ» |
| | | //é¿æ¥å¤ç§åºå
¥åº/åºåºè´¹ç¨ï¼å¤§è¿å卿ºçé¿æ¥å¤ç§åºçNew supply |
| | | traverse( owner, StockingPoint_MP, stockingpoint, stockingpoint.ID().EndsWith( 'å¤ç§åº' ) ){ |
| | | unit := stockingpoint.Unit(); |
| | | parentunits := unit.GetAllParent(); |
| | | // unit := stockingpoint.Unit(); |
| | | // parentunits := unit.GetAllParent(); |
| | | //æ¯å¦å±äºé¿æ¥å¤ç§åº |
| | | isccrent := stockingpoint.ID().StartsWith( 'é¿æ¥' ) or stockingpoint.ID().StartsWith( 'CC' ); |
| | | //æ¯å¦å±äºå¤§è¿å卿ºçé¿æ¥å¤ç§åº |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod InitiateSearch ( |
| | | MacroPlan owner |
| | | ) as DLEngineLogisticsCostReport |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Sep-29-2024 (created) |
| | | allunit := DLEngineLogisticsCostReport::GetDefaultAllUnit(); |
| | | search := owner.DLEngineLogisticsCostSearch(); |
| | | if( isnull( search ) ){ |
| | | owner.DLEngineLogisticsCostSearch( relnew, Generation := allunit, MqbMlb := allunit, Power := allunit ); |
| | | }else{ |
| | | search := owner.DLEngineLogisticsCostSearch(); |
| | | search.Generation( allunit ); |
| | | search.MqbMlb( allunit ); |
| | | search.Power( allunit ); |
| | | } |
| | | table := selectobject( owner, DLEngineLogisticsCostReport, table, table.IsShow() ); |
| | | if( not isnull( table ) ){ |
| | | products := selectset( owner, Product_MP, product, true ); |
| | | table.Generate( search, products ); |
| | | } |
| | | return table; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod InitiateSearch ( |
| | | MacroPlan owner |
| | | ) as EnginePipelineReport |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Sep-29-2024 (created) |
| | | search := owner.EnginePipelineSearch(); |
| | | if( isnull( search ) ){ |
| | | owner.EnginePipelineSearch( relnew, StartDate := Date::MinDate(), EndDate := Date::MaxDate(), TimeUnit := Translations::MP_GlobalParameters_Day() ); |
| | | }else{ |
| | | search := owner.EnginePipelineSearch(); |
| | | search.TimeUnit( Translations::MP_GlobalParameters_Day() ); |
| | | search.StartDate( Date::MinDate() ); |
| | | search.EndDate( Date::MaxDate() ); |
| | | } |
| | | table := selectobject( owner, EnginePipelineSource.Report, table, table.IsShow() ); |
| | | if( not isnull( table ) ){ |
| | | products := selectset( owner, Product_MP, product, true ); |
| | | table.Generate( search, products ); |
| | | } |
| | | return table; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod InitiateSearch ( |
| | | MacroPlan owner |
| | | ) as FinancialProductionReport |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Sep-29-2024 (created) |
| | | allunit := FinancialProductionReport::GetDefaultAllUnit(); |
| | | search := owner.FinancialProductionSearch(); |
| | | if( isnull( owner.FinancialProductionSearch() ) ){ |
| | | owner.FinancialProductionSearch( relnew, Unit := allunit, Generation := allunit, MqbMlb := allunit, Power := allunit ); |
| | | }else{ |
| | | search := owner.FinancialProductionSearch(); |
| | | search.Unit( allunit ); |
| | | search.Generation( allunit ); |
| | | search.MqbMlb( allunit ); |
| | | search.Power( allunit ); |
| | | } |
| | | table := selectobject( owner, FinancialProductionSource.FinancialProductionReport, table, table.IsShow() ); |
| | | if( not isnull( table ) ){ |
| | | products := selectset( owner, Product_MP, product, true ); |
| | | table.Generate( search, products ); |
| | | } |
| | | return table; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod InitiateSearch ( |
| | | MacroPlan owner |
| | | ) as FinancialSalesReport |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Sep-29-2024 (created) |
| | | allunit := FinancialSalesReport::GetDefaultAllUnit(); |
| | | search := owner.FinancialSalesSearch(); |
| | | if( isnull( search ) ){ |
| | | owner.FinancialSalesSearch( relnew, Unit := allunit, Generation := allunit, MqbMlb := allunit, Power := allunit ); |
| | | }else{ |
| | | search := owner.FinancialSalesSearch(); |
| | | search.Unit( allunit ); |
| | | search.Generation( allunit ); |
| | | search.MqbMlb( allunit ); |
| | | search.Power( allunit ); |
| | | } |
| | | table := selectobject( owner, FinancialSalesSource.FinancialSalesReport, table, table.IsShow() ); |
| | | if( not isnull( table ) ){ |
| | | products := selectset( owner, Product_MP, product, true ); |
| | | table.Generate( search, products ); |
| | | } |
| | | return table; |
| | | *] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod InitiateSearch ( |
| | | MacroPlan owner |
| | | ) as InventorySummaryReport |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Sep-29-2024 (created) |
| | | allunit := InventorySummaryReport::GetDefaultAllUnit(); |
| | | search := owner.InventorySummarySearch(); |
| | | if( isnull( search ) ){ |
| | | owner.InventorySummarySearch( relnew, Unit := allunit, Generation := allunit, MqbMlb := allunit, Power := allunit, Category := Translations::MP_GlobalParameters_Day(), StartDate := Date::MinDate(), EndDate := Date::MaxDate() ); |
| | | }else{ |
| | | search := owner.InventorySummarySearch(); |
| | | search.Unit( allunit ); |
| | | search.Generation( allunit ); |
| | | search.MqbMlb( allunit ); |
| | | search.Power( allunit ); |
| | | search.Category( Translations::MP_GlobalParameters_Day() ); |
| | | search.StartDate( Date::MinDate() ); |
| | | search.EndDate( Date::MaxDate() ); |
| | | } |
| | | table := selectobject( owner, InventorySummarySource.InventorySummaryReport, table, table.IsShow() ); |
| | | if( not isnull( table ) ){ |
| | | products := selectset( owner, Product_MP, product, true ); |
| | | table.Generate( search, products ); |
| | | } |
| | | return table; |
| | | *] |
| | | } |
| | |
| | | // çå
°é¸½ Jun-24-2024 (created) |
| | | owner.FinancialProductionSource( relflush ); |
| | | productparent := MachiningPipelineReport::GetDefaultProductParent(); |
| | | ccunit := MachiningPipelineReport::GetDefaultCCUnit(); |
| | | dlunit := MachiningPipelineReport::GetDefaultDLUnit(); |
| | | //ccunit := MachiningPipelineReport::GetDefaultCCUnit(); |
| | | //dlunit := MachiningPipelineReport::GetDefaultDLUnit(); |
| | | //allunit := EnginePipelineReport::GetDefaultAllUnit(); |
| | | source := owner.MachiningPipelineSource( relnew, Name := MachiningPipelineReport::GetDefaultName() ); |
| | | table := source.Report( relnew, ID := source.Name(), Name := source.Name() ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod InitiateSearch ( |
| | | MacroPlan owner |
| | | ) as MachiningPipelineReport |
| | | { |
| | | TextBody: |
| | | [* |
| | | // çå
°é¸½ Sep-29-2024 (created) |
| | | search := owner.MachiningPipelineSearch(); |
| | | if( isnull( search ) ){ |
| | | owner.MachiningPipelineSearch( relnew, StartDate := Date::MinDate(), EndDate := Date::MaxDate(), TimeUnit := Translations::MP_GlobalParameters_Day() ); |
| | | }else{ |
| | | search := owner.MachiningPipelineSearch(); |
| | | search.TimeUnit( Translations::MP_GlobalParameters_Day() ); |
| | | search.StartDate( Date::MinDate() ); |
| | | search.EndDate( Date::MaxDate() ); |
| | | } |
| | | table := selectobject( owner, MachiningPipelineSource.Report, table, table.IsShow() ); |
| | | if( not isnull( table ) ){ |
| | | products := selectset( owner, Product_MP, product, true ); |
| | | table.Generate( search, products ); |
| | | } |
| | | return table; |
| | | *] |
| | | } |
| | |
| | | Body: |
| | | [* |
| | | //åå§å |
| | | //if( not exists( MacroPlan, FinancialProductionSource, source, not source.IsImport() ) ){ |
| | | // CCEngineLogisticsCostReport::Initialize( MacroPlan ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, CCEngineLogisticsCostReport, table, table.IsShow() ); |
| | | table := CCEngineLogisticsCostReport::InitiateSearch( MacroPlan ); |
| | | //table := selectobject( MacroPlan, CCEngineLogisticsCostReport, table, table.IsShow() ); |
| | | //info( '------------------2----------------', table.IsImport(), table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | |
| | |
| | | Body: |
| | | [* |
| | | //åå§å |
| | | //if( not exists( MacroPlan, FinancialProductionSource, source, not source.IsImport() ) ){ |
| | | // DLEngineLogisticsCostReport::InitializeNew( MacroPlan ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, DLEngineLogisticsCostReport, table, table.IsShow() ); |
| | | table := DLEngineLogisticsCostReport::InitiateSearch( MacroPlan ); |
| | | //table := selectobject( MacroPlan, DLEngineLogisticsCostReport, table, table.IsShow() );/ |
| | | //info( '------------------2----------------', table.IsImport(), table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | //if( not isnull( MacroPlan.EnginePipelineSource() ) ){ |
| | | // EnginePipelineSource::Initialize( MacroPlan ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, EnginePipelineSource.Report, table, table.IsShow() ); |
| | | table := EnginePipelineSource::InitiateSearch( MacroPlan ); |
| | | //table := selectobject( MacroPlan, EnginePipelineSource.Report, table, table.IsShow() ); |
| | | //info( '------------------2----------------', table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | |
| | |
| | | Body: |
| | | [* |
| | | //åå§å |
| | | //if( not exists( MacroPlan, FinancialProductionSource, source, not source.IsImport() ) ){ |
| | | // FinancialProductionSource::Initialize( MacroPlan ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, FinancialProductionSource.FinancialProductionReport, table, not table.IsImport() and table.IsShow() ); |
| | | table := FinancialProductionSource::InitiateSearch( MacroPlan ); |
| | | //table := selectobject( MacroPlan, FinancialProductionSource.FinancialProductionReport, table, not table.IsImport() and table.IsShow() ); |
| | | //info( '------------------2----------------', table.IsImport(), table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | //if( not exists( MacroPlan, FinancialSalesSource, source, not source.IsImport() ) ){ |
| | | // FinancialSalesSource::Initialize( MacroPlan ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, FinancialSalesSource.FinancialSalesReport, table, not table.IsImport() and table.IsShow() ); |
| | | table := FinancialSalesSource::InitiateSearch( MacroPlan ); |
| | | //table := selectobject( MacroPlan, FinancialSalesSource.FinancialSalesReport, table, not table.IsImport() and table.IsShow() ); |
| | | //info( '------------------2----------------', table.IsImport(), table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | //if( not isnull( MacroPlan.InventorySummarySource() ) ){ |
| | | // InventorySummarySource::Initialize( MacroPlan, InterfaceDataset ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, InventorySummarySource.InventorySummaryReport, table, table.IsShow() ); |
| | | table := InventorySummarySource::InitiateSearch( MacroPlan ); |
| | | //table := selectobject( MacroPlan, InventorySummarySource.InventorySummaryReport, table, table.IsShow() ); |
| | | //info( '------------------2----------------', table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | |
| | |
| | | { |
| | | Body: |
| | | [* |
| | | //if( not isnull( MacroPlan.EnginePipelineSource() ) ){ |
| | | // MachiningPipelineSource::Initialize( MacroPlan ); |
| | | //} |
| | | //info( '------------------1----------------' ); |
| | | table := selectobject( MacroPlan, MachiningPipelineSource.Report, table, table.IsShow() ); |
| | | table := MachiningPipelineSource::InitiateSearch( MacroPlan ); |
| | | //table := selectobject( MacroPlan, MachiningPipelineSource.Report, table, table.IsShow() ); |
| | | //info( '------------------2----------------', table.IsShow() ); |
| | | DataHolderTable.Data( table ); |
| | | |