_Main/BL/Type_MacroPlan/Method_MappingOperationBOMData.qbl | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
_Main/BL/Type_MacroPlan/Method_MappingOperationBOMDataRouting#576.qbl | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
_Main/BL/Type_MacroPlan/Method_MappingOperationBOMData.qbl
@@ -30,14 +30,16 @@ routingRows := selectset( bomList, Elements, item, true, routingId = item.OrganCode() + "_" + item.ProductCode() ); if( routingRows.Size() > 0 ) { firstRow := routingRows.Element( 0 ); stockingPointId := firstRow.OrganCode() + "_" + firstRow.ProductType() + "_Stock"; inputStockingPointId := firstRow.OrganCode() + "_" + firstRow.ComponentType() + "_Stock"; // stockingPointId := firstRow.OrganCode() + "_" + firstRow.ProductType() + "_Stock"; // inputStockingPointId := firstRow.OrganCode() + "_" + firstRow.ComponentType() + "_Stock"; stockingPointId := firstRow.OrganCode() + "_Stock"; // ========检查======== product := Product_MP::FindProductTypeIndex( firstRow.ProductCode() ); if( not isnull( product ) ) { // error( "product : " + firstRow.ProductCode() + " not found" ); stockingPoint := StockingPoint_MP::FindStockingPointTypeIndex( stockingPointId ); inputStockingPoint := StockingPoint_MP::FindStockingPointTypeIndex( inputStockingPointId ); // info( stockingPointId.AsQUILL() ); // if( isnull( stockingPoint ) ) { // error( "stockingPoint : " + stockingPointId + " not found" ); @@ -56,7 +58,7 @@ // ========分组处理输入======== } if( not isnull( inputStockingPoint)){ if( not isnull( stockingPoint)){ if( isKeyProduct){ keyRows := selectset( routingRows,Elements,routingrow,keyProductList.Find( routingrow.ComponentCode())>=0); this.MappingOperationBOMDataRouting( routing,keyRows); _Main/BL/Type_MacroPlan/Method_MappingOperationBOMDataRouting#576.qbl
@@ -30,7 +30,8 @@ if( not isnull( component ) ) { // error( "component : " + noAlterRow.ComponentCode() + " not found" ); // 连接产品与operation inputStockingPointId := noAlterRow.OrganCode() + "_" + noAlterRow.ComponentType() + "_Stock"; // inputStockingPointId := noAlterRow.OrganCode() + "_" + noAlterRow.ComponentType() + "_Stock"; inputStockingPointId := noAlterRow.OrganCode() + "_Stock"; stockingPoint := StockingPoint_MP::FindStockingPointTypeIndex( inputStockingPointId); pisp := ProductInStockingPoint_MP::CreateIfNotFound( component, stockingPoint ); trash := construct( OperationBOMs ); @@ -54,7 +55,8 @@ // } traverse( routingStep, Operation, toLink ) { // 连接产品与operation inputStockingPointId := firstAlterRow.OrganCode() + "_" + firstAlterRow.ComponentType() + "_Stock"; // inputStockingPointId := firstAlterRow.OrganCode() + "_" + firstAlterRow.ComponentType() + "_Stock"; inputStockingPointId := firstAlterRow.OrganCode() + "_Stock"; stockingPoint := StockingPoint_MP::FindStockingPointTypeIndex( inputStockingPointId); pisp := ProductInStockingPoint_MP::CreateIfNotFound( component, stockingPoint ); trash := construct( OperationBOMs ); @@ -69,7 +71,8 @@ alterProd := Product_MP::FindById( this, alterRow.AlternativeMaterialCode() ); if( not isnull( alterProd ) ) { // error( "alterProd : " + alterRow.AlternativeMaterialCode() + " not found" ); stockingPointIdAlter := alterRow.OrganCode() + "_" + alterRow.ComponentType() + "_Stock"; // stockingPointIdAlter := alterRow.OrganCode() + "_" + alterRow.ComponentType() + "_Stock"; stockingPointIdAlter := alterRow.OrganCode() + "_Stock"; stockingPointAlter := StockingPoint_MP::FindById( this, stockingPointIdAlter ); if( isnull( stockingPointAlter ) ) { error( "stockingPoint : " + stockingPointIdAlter + " not found" );