From 232ba455849cce25063cea01638c3cbdac01bc98 Mon Sep 17 00:00:00 2001 From: yy <yuan.yan@capgemini.com> Date: 星期一, 25 九月 2023 15:42:14 +0800 Subject: [PATCH] 单位的问题 --- _Main/UI/MacroPlannerWebApp/Component_DialogCreateEditScenario/Method_OnOk.def | 2 +- _Main/BL/Type_BaseConversionFactor/StaticMethod_CreateOrUpdate.qbl | 15 +++++++++------ _Main/BL/Type_Forecast/StaticMethod_CreateOrUpdate.qbl | 16 ++++++++-------- _Main/UI/MacroPlannerWebApp/_ROOT_Project_MacroPlannerWebApp.qp | 2 +- _Main/BL/Type_CustomerOrder/StaticMethod_CreateOrUpdate.qbl | 14 +++++++------- 5 files changed, 26 insertions(+), 23 deletions(-) diff --git a/_Main/BL/Type_BaseConversionFactor/StaticMethod_CreateOrUpdate.qbl b/_Main/BL/Type_BaseConversionFactor/StaticMethod_CreateOrUpdate.qbl index 4ecdf63..cd44e09 100644 --- a/_Main/BL/Type_BaseConversionFactor/StaticMethod_CreateOrUpdate.qbl +++ b/_Main/BL/Type_BaseConversionFactor/StaticMethod_CreateOrUpdate.qbl @@ -19,19 +19,22 @@ 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( productId <> "" ) { + + if( not isnull( source) and not isnull( target)){ + if( productId <> "" ) { product := Product_MP::FindById( macroPlan, productId ); - }else{ - result := BaseConversionFactor::CreateUpdate( source, target, factor, product, isEnable ) + }else{ + result := BaseConversionFactor::CreateUpdate( source, target, factor, product, isEnable ) } - if( isnull( product ) ) { - info( "invalid product id" ) + if( isnull( product ) ) { + info( "鍗曚綅杞崲鍑虹幇鏃犳晥id锛�"+productId ) }else{ result := BaseConversionFactor::CreateUpdate( source, target, factor, product, isEnable ); } + } return result; *] diff --git a/_Main/BL/Type_CustomerOrder/StaticMethod_CreateOrUpdate.qbl b/_Main/BL/Type_CustomerOrder/StaticMethod_CreateOrUpdate.qbl index e885859..275bdf2 100644 --- a/_Main/BL/Type_CustomerOrder/StaticMethod_CreateOrUpdate.qbl +++ b/_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 ) ) { diff --git a/_Main/BL/Type_Forecast/StaticMethod_CreateOrUpdate.qbl b/_Main/BL/Type_Forecast/StaticMethod_CreateOrUpdate.qbl index a5c8eb8..ac5c1bb 100644 --- a/_Main/BL/Type_Forecast/StaticMethod_CreateOrUpdate.qbl +++ b/_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) ) { diff --git a/_Main/UI/MacroPlannerWebApp/Component_DialogCreateEditScenario/Method_OnOk.def b/_Main/UI/MacroPlannerWebApp/Component_DialogCreateEditScenario/Method_OnOk.def index 5d283ea..b8022af 100644 --- a/_Main/UI/MacroPlannerWebApp/Component_DialogCreateEditScenario/Method_OnOk.def +++ b/_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(); diff --git a/_Main/UI/MacroPlannerWebApp/_ROOT_Project_MacroPlannerWebApp.qp b/_Main/UI/MacroPlannerWebApp/_ROOT_Project_MacroPlannerWebApp.qp index cb94597..b4cfb85 100644 --- a/_Main/UI/MacroPlannerWebApp/_ROOT_Project_MacroPlannerWebApp.qp +++ b/_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' } -- Gitblit v1.9.3