yy
2023-09-25 232ba455849cce25063cea01638c3cbdac01bc98
单位的问题
已修改5个文件
41 ■■■■ 文件已修改
_Main/BL/Type_BaseConversionFactor/StaticMethod_CreateOrUpdate.qbl 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_CustomerOrder/StaticMethod_CreateOrUpdate.qbl 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_Forecast/StaticMethod_CreateOrUpdate.qbl 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/Component_DialogCreateEditScenario/Method_OnOk.def 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/UI/MacroPlannerWebApp/_ROOT_Project_MacroPlannerWebApp.qp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_BaseConversionFactor/StaticMethod_CreateOrUpdate.qbl
@@ -19,8 +19,10 @@
    result := null(ConversionFactor );
    
    if( isnull( source ) or isnull( target ) ) {
        error( "can't find source or target unit of measure" )
        info(  "can't find source or target unit of measure" )
    }
    if( not isnull( source) and not isnull( target)){
    if( productId <> "" ) {
        product := Product_MP::FindById( macroPlan, productId );
    }else{
@@ -28,10 +30,11 @@
      }
    
    if( isnull( product ) ) {
          info( "invalid product id" )
          info( "单位转换出现无效id,"+productId )
        }else{
          result := BaseConversionFactor::CreateUpdate( source, target, factor, product, isEnable );
        }
    }
    
    return result;
  *]
_Main/BL/Type_CustomerOrder/StaticMethod_CreateOrUpdate.qbl
@@ -38,23 +38,23 @@
    }
    // 检查依赖项
    if( isnull( product) ) {
        info( "product not found" );
        info( "product not found" + productId);
    }
    if( isnull( salesSegment) ) {
        info( "sales segment not found" );
        info( "sales segment not found" + salesSegmentName);
    }
    if( isnull( stockingPoint) ) {
        info( "stock point not found" );
        info( "stock point not found" + stockingPointId);
    }
    //if( isnull( currency) ) {
    //    error( "currency not found" );  
    //}
    if( unitOfMeasureName <> "" and isnull( unitOfMeasure) ) {
        info( "unit of measure not found" );
        info( "unit of measure not found" + unitOfMeasureName);
    }
    if( priorityName <> "" and isnull( stockingPoint) ) {
        info( "priority not found" );
    }
    //if( priorityName <> "" and isnull( stockingPoint) ) {
    //    info( "priority not found" );
    //}
    // 新增/更新
    result := CustomerOrder::FindById( macroPlan, id );
    if( isnull( result ) ) {
_Main/BL/Type_Forecast/StaticMethod_CreateOrUpdate.qbl
@@ -33,23 +33,23 @@
    }
    // 检查依赖项
    if( isnull( product ) ) {
        error( "product not found" );
        info(  "product not found" + productId);
    }
    if( isnull( salesSegment ) ) {
        error( "sales segment not found" );
        info( "sales segment not found" + salesSegmentName);
    }
    if( isnull( stockingPoint ) ) {
        error( "stock point not found" );
        info( "stock point not found" + stockingPointId);
    }
    if( isnull( currency ) ) {
        error( "currency not found" );
        info(  "currency not found" + currencyId);
    }
    if( unitOfMeasureName <> "" and isnull( unitOfMeasure) ) {
        error( "unit of measure not found" );
        info( "unit of measure not found" + unitOfMeasureName );
    }
    if( priorityName <> "" and isnull( stockingPoint) ) {
        error( "priority not found" );
    }
    //if( priorityName <> "" and isnull( stockingPoint) ) {
    //    info( "priority not found" );
    //}
    // 新增/更新
    result := Forecast::FindById( macroPlan, id );
    if( isnull( result) ) {
_Main/UI/MacroPlannerWebApp/Component_DialogCreateEditScenario/Method_OnOk.def
@@ -108,7 +108,7 @@
    // sync data
    if( data.EnableSync() ) {
        MacroPlan::DoSync( macroPlanNew, 
                           data.BusinessType(), data.IsKeyProduct(), data.CreatePurchaseSupplyMaterial() );
                           data.BusinessType(), data.IsKeyProduct(), data.CreatePurchaseSupplyMaterial() ,GlobalOTDTable);
    }
    
    this.Close();
_Main/UI/MacroPlannerWebApp/_ROOT_Project_MacroPlannerWebApp.qp
@@ -5,7 +5,7 @@
  ProjectProperties
  {
    ApplicationComponentName: 'ApplicationMacroPlanner'
    BuildVersion: '2022.3.0.32'
    BuildVersion: '2022.3.0.34'
    Description: 'Quintiq Macro Planner'
    ProjectKind: 'WebClient'
  }