yypsybs
2023-09-25 8638a3df0cf157c3f626d46cfff008a858aca259
制造LT归集注释
已修改4个文件
58 ■■■■ 文件已修改
_Main/BL/Type_MacroPlan/Method_MappingOperationData.qbl 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_ManufactureLTImputation/StaticMethod_Transfer.qbl 42 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_ManufactureLTProcessSection/StaticMethod_CreateOrUpdate.qbl 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_Operation/Method_OnCommitCustom.qbl 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_MacroPlan/Method_MappingOperationData.qbl
@@ -76,7 +76,7 @@
                                        0.0, 0.0, false, true );
        }
        
        ManufactureLTProcessSection::CreateOrUpdate( op );
    //    ManufactureLTProcessSection::CreateOrUpdate( op );
    }
    info( "========" )
    // 遍历routing,进行link
_Main/BL/Type_ManufactureLTImputation/StaticMethod_Transfer.qbl
@@ -8,26 +8,26 @@
  Description: '移交控制权'
  TextBody:
  [*
    // yypsybs Aug-25-2023 (created)
    if( isnull( oldMP ) ) {
        info( "========transfer ManufactureLTImputations to macroPlan " + [String]newMP.MDSID() + "========" );
    } else {
        info( "========transfer ManufactureLTImputations from macroPlan " + [String]oldMP.MDSID() + " to macroPlan " + [String]newMP.MDSID() + "========" );
    }
    // 清空新的,老的复制到新的,清空老的
    if( not isnull( oldMP ) and not isnull( newMP ) ) {
        info( "old ManufactureLTImputation size : " + [String]oldMP.ManufactureLTImputation( relsize ) )
        traverse( oldMP, ManufactureLTImputation, parent, true ) {
            traverse( parent, ManufactureLTProcessSection, child, true ) {
                  ManufactureLTProcessSection::CreateOrUpdate( newMP, parent.OrgCode(), parent.SkuID(), parent.Describe(),
                                                                child.ProcessSection(), child.Sequence(), child.Line(), child.SystemLT(),
                                                               child.Edited(), child.EditLT(), child.Describe() );
            }
        }
    }
    // 处理新的的operation
    traverse( newMP, Routing.RoutingStep.Operation, item ) {
         ManufactureLTProcessSection::CreateOrUpdate( item );
    }
    //// yypsybs Aug-25-2023 (created)
    //if( isnull( oldMP ) ) {
    //    info( "========transfer ManufactureLTImputations to macroPlan " + [String]newMP.MDSID() + "========" );
    //} else {
    //    info( "========transfer ManufactureLTImputations from macroPlan " + [String]oldMP.MDSID() + " to macroPlan " + [String]newMP.MDSID() + "========" );
    //}
    //// 清空新的,老的复制到新的,清空老的
    //if( not isnull( oldMP ) and not isnull( newMP ) ) {
    //    info( "old ManufactureLTImputation size : " + [String]oldMP.ManufactureLTImputation( relsize ) )
    //    traverse( oldMP, ManufactureLTImputation, parent, true ) {
    //        traverse( parent, ManufactureLTProcessSection, child, true ) {
    //              ManufactureLTProcessSection::CreateOrUpdate( newMP, parent.OrgCode(), parent.SkuID(), parent.Describe(),
    //                                                            child.ProcessSection(), child.Sequence(), child.Line(), child.SystemLT(),
    //                                                           child.Edited(), child.EditLT(), child.Describe() );
    //        }
    //    }
    //}
    //// 处理新的的operation
    //traverse( newMP, Routing.RoutingStep.Operation, item ) {
    //     ManufactureLTProcessSection::CreateOrUpdate( item );
    //}
  *]
}
_Main/BL/Type_ManufactureLTProcessSection/StaticMethod_CreateOrUpdate.qbl
@@ -30,11 +30,11 @@
        line := operationNameSplit.Element( 2 );
    }
    child := null( ManufactureLTProcessSection );
    if( orgCode <> "" and productId <> "" and processStep <> "" and sequence <> "" ) {
        parent := ManufactureLTImputation::CreateOrUpdate( op.RoutingStep().Routing().MacroPlan(), orgCode, productId, "" );
        info( "DaysAsReal : " + [String]op.UserLeadTime().DaysAsReal() );
        child := ManufactureLTProcessSection::CreateOrUpdate( parent, processStep, false, sequence, line, op.UserLeadTime().DaysAsReal(), 0.0, "" );
    }
    //if( orgCode <> "" and productId <> "" and processStep <> "" and sequence <> "" ) {
    //    parent := ManufactureLTImputation::CreateOrUpdate( op.RoutingStep().Routing().MacroPlan(), orgCode, productId, "" );
    //    info( "DaysAsReal : " + [String]op.UserLeadTime().DaysAsReal() );
    //    child := ManufactureLTProcessSection::CreateOrUpdate( parent, processStep, false, sequence, line, op.UserLeadTime().DaysAsReal(), 0.0, "" );
    //}
    return child;
  *]
}
_Main/BL/Type_Operation/Method_OnCommitCustom.qbl
@@ -5,7 +5,7 @@
  TextBody:
  [*
    // yypsybs Aug-25-2023 (created)
    info( "Operation::OnCommitCustom" )
    ManufactureLTProcessSection::CreateOrUpdate( this );
    //info( "Operation::OnCommitCustom" )
    //ManufactureLTProcessSection::CreateOrUpdate( this );
  *]
}