renhao
2023-10-18 4f426fd0938d68df759fff7570ad6ec2e62bac96
_Main/BL/Type_ManufactureLTProcessSection/StaticMethod_CreateOrUpdate.qbl
@@ -1,7 +1,8 @@
Quintiq file version 2.0
#parent: #root
StaticMethod CreateOrUpdate (
  Operation op
  Operation op,
  GlobalOTDTable parent
) as ManufactureLTProcessSection
{
  TextBody:
@@ -31,9 +32,11 @@
    }
    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, "" );
      ltParent := ManufactureLTImputation::CreateOrUpdate( parent, orgCode, productId, "" );
      info( "DaysAsReal : " + [String]op.UserLeadTime().DaysAsReal() );
      child := ManufactureLTProcessSection::CreateOrUpdate( ltParent, processStep, false, sequence, line, op.UserLeadTime().DaysAsReal(), 0.0, "" );
    //} else {
    //  info( "skip operation" );
    //}
    return child;
  *]