Kevin: Added test method and modified GlobalOTDTable.SetIsLinkedWithFinishedGoodAttributes method.
| | |
| | | traverse( this, Global_MappingProduct_MP, product, |
| | | product.ProductMajorType() = "鎴愬搧" ) |
| | | { |
| | | uniquebomids := construct( Strings ); |
| | | product.IsLinkedWithFinishedGood( false ); |
| | | product.SetIsLinkedWithFinishedGoodAttributes_Recursive( 0, // depth |
| | | 100, // maxdepth |
| | | productspool, |
| | | operationspool, |
| | | operationbomspool ); |
| | | |
| | | operationbomspool, |
| | | uniquebomids ); |
| | | uniquebomids := uniquebomids.Unique(); |
| | | product.BOMCount( uniquebomids.Size() ); |
| | | } |
| | | *] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method Test |
| | | { |
| | | TextBody: |
| | | [* |
| | | // KKO2 Sep-27-2023 (created) |
| | | *] |
| | | } |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Attribute BOMCount |
| | | { |
| | | #keys: '3[157968.0.1161166085][157968.0.1161166084][157968.0.1161166086]' |
| | | Description: 'Number of unique BOM used to produce this finished good.' |
| | | ValueType: Number |
| | | } |
| | |
| | | Number maxdepth, |
| | | Global_MappingProduct_MPs productspool, |
| | | Global_MappingOperations operationspool, |
| | | Global_MappingOperationBOMs operationbomspool |
| | | Global_MappingOperationBOMs operationbomspool, |
| | | output Strings uniquebomids_o |
| | | ) |
| | | { |
| | | Description: 'Method to traverse the supply chain recursively to determine if there are any products that are not used to produce finished goods.' |
| | |
| | | [* |
| | | if( not this.IsLinkedWithFinishedGood() ) |
| | | { |
| | | if( this.ProductMajorType() <> "鎴愬搧" ) |
| | | { |
| | | uniquebomids_o.Add( this.ID() ); |
| | | } |
| | | |
| | | depth := depth + 1; |
| | | this.IsLinkedWithFinishedGood( true ); |
| | | |
| | |
| | | maxdepth, |
| | | productspool, |
| | | operationspool, |
| | | operationbomspool ); |
| | | operationbomspool, |
| | | uniquebomids_o ); |
| | | } |
| | | |
| | | if( operationbom.AlternativeMaterialCode() <> "" |
| | |
| | | maxdepth, |
| | | productspool, |
| | | operationspool, |
| | | operationbomspool ); |
| | | operationbomspool, |
| | | uniquebomids_o ); |
| | | } |
| | | } |
| | | } |
| | |
| | | [ |
| | | Component MenuSpecial #extension |
| | | { |
| | | Children: |
| | | [ |
| | | Component MenuGlobalOTDTableTest { #keys: '[157968.0.1170224128]' BaseType: 'Menu' Properties: [ Image: 'DUDE2' Text: 'GlobalOTDTable Test' ] } |
| | | ] |
| | | Properties: |
| | | [ |
| | | ModeledStringList ChildOrdering |
| | |
| | | c: MenuTest |
| | | c: MenuScenarioManagerTest |
| | | c: MenuMPDomainHandlerTest |
| | | c: MenuGlobalOTDTableTest |
| | | c: MenuRemoveHistory |
| | | c: Menu46 |
| | | c: MenuRefresh |
对比新文件 |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: mbMainMenu/MenuGlobalOTDTableTest |
| | | Response OnClick () id:Response_TIANMA_JITUAN_mbMainMenu_MenuGlobalOTDTableTest_OnClick |
| | | { |
| | | #keys: '[157968.0.1170224134]' |
| | | Body: |
| | | [* |
| | | // Run GlobalOTDTable test method |
| | | GlobalOTDTable.Test(); |
| | | *] |
| | | DefinitionID: 'Responsedef_Menu_OnClick' |
| | | } |