From 2237ad24deb34ca1aeaf659ea1d4f523d708cd26 Mon Sep 17 00:00:00 2001
From: yypsybs <yypsybs@foxmail.com>
Date: 星期三, 20 九月 2023 14:57:53 +0800
Subject: [PATCH] PRData现场测试用
---
_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning#662.qbl | 29 +++++++++++++++++++++--------
1 files changed, 21 insertions(+), 8 deletions(-)
diff --git "a/_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning\043662.qbl" "b/_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning\043662.qbl"
index c86f3e2..2b88918 100644
--- "a/_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning\043662.qbl"
+++ "b/_Main/BL/Type_PRData/StaticMethod_FromSupplyPlanning\043662.qbl"
@@ -24,7 +24,7 @@
erpData := "鏆傛棤";
// 鏍规嵁pispip
- result.MRPCalverNo( pispip.MRPCalverNo() );
+ result.MRPCalverNo( ifexpr( pispip.MRPCalverNo() = "", "鏆傛棤", pispip.MRPCalverNo() ) );
result.Quantity( pispip.NewSupplyQuantity() );
// 鏍规嵁product
@@ -40,15 +40,28 @@
Date::Today(), (result.ProduceRequiredDate() - Duration::Days( 7 )).Date() ) );
// 鏍规嵁 鐗╂枡灞炴�ф爣绛捐瀹�&鐗╂枡璁″垝绛栫暐
- result.IsPanelMaterial();
- result.IsGenericMaterial( matAttrSetting.FlagGeneric() );
- result.IsLongLeadItem( matAttrSetting.FlagLongTerm() );
- result.MaterialMRPType( ifexpr( matAttrSetting.PlanningStrategyCustom() <> "", matAttrSetting.PlanningStrategyCustom(), matAttrSetting.PlanningStrategyAuto() ) );
+ result.IsPanelMaterial( "鏆傛棤" );
+ if( isnull( matAttrSetting ) ) {
+ result.IsGenericMaterial( "鏆傛棤" );
+ result.IsLongLeadItem( "鏆傛棤" );
+ result.MaterialMRPType( "鏆傛棤" );
+ } else {
+ result.IsGenericMaterial( matAttrSetting.FlagGeneric() );
+ result.IsLongLeadItem( matAttrSetting.FlagLongTerm() );
+ result.MaterialMRPType( ifexpr( matAttrSetting.PlanningStrategyCustom() <> "", matAttrSetting.PlanningStrategyCustom(), matAttrSetting.PlanningStrategyAuto() ) );
+ }
+
// 鏍规嵁product涓棿琛�
- result.BusinessType( mappingProduct.BusinessType() );
- result.OrganCode( mappingProduct.OrgCode() );
- result.UnitOfMeasure( mappingProduct.UnitOfMeasureName() );
+ if( isnull( mappingProduct ) ) {
+ result.BusinessType( "鏆傛棤" );
+ result.OrganCode( "鏆傛棤" );
+ result.UnitOfMeasure( "鏆傛棤" );
+ } else {
+ result.BusinessType( mappingProduct.BusinessType() );
+ result.OrganCode( mappingProduct.OrgCode() );
+ result.UnitOfMeasure( mappingProduct.UnitOfMeasureName() );
+ }
// 鏍规嵁渚涘簲鍟嗚兘鍔涗腑闂磋〃
result.ProviderCode( mappingProviderCapacity );
--
Gitblit v1.9.3