From e7c56c4676e153f0af05083b1f5ab0ed73d4b2c3 Mon Sep 17 00:00:00 2001
From: Kevin Kok Khah Whey <khahwhey.kok@3ds.com>
Date: 星期四, 12 十月 2023 19:19:53 +0800
Subject: [PATCH] Merge branch 'dev' of http://47.101.211.7:10101/r/TIANMA_JITUAN into dev_Kevin
---
_Main/BL/Type_MPSync/StaticMethod_TestData.qbl | 27 +++------------------------
1 files changed, 3 insertions(+), 24 deletions(-)
diff --git a/_Main/BL/Type_MPSync/StaticMethod_TestData.qbl b/_Main/BL/Type_MPSync/StaticMethod_TestData.qbl
index 541ab96..c720051 100644
--- a/_Main/BL/Type_MPSync/StaticMethod_TestData.qbl
+++ b/_Main/BL/Type_MPSync/StaticMethod_TestData.qbl
@@ -9,10 +9,10 @@
[*
// yypsybs Sep-20-2023 (created)
- info( "MPSync::TestData" );
+ debuginfo( "MPSync::TestData" );
productCodeList := selectuniquevalues( macroPlan, Product_MP, item, item.ID() );
- info( "productCodeList : " + [String]productCodeList.Size() );
+ debuginfo( "productCodeList : " + [String]productCodeList.Size() );
mpSync.MappingCapacityAndSaleBudge( relflush );
for( year := Date::ActualDate().Year() - 10; year <= Date::ActualDate().Year() + 5; year := year + 1 ) {
@@ -38,27 +38,6 @@
}
}
result1 := selectset( mpSync, MappingCapacityAndSaleBudge, item, true );
- info( "test MappingCapacityAndSaleBudge size : " + [String]result1.Size() );
-
- mpSync.MappingAnnualBudget( relflush );
- for( year := Date::ActualDate().Year() - 10; year <= Date::ActualDate().Year() + 5; year := year + 1 ) {
- for( i := 1; i <= productCodeList.Size(); i := i + 1 ) {
- productCode := productCodeList.Element( i - 1 );
- mappingAnnualBudget := mpSync.MappingAnnualBudget( relnew,
- YearNo := year,
- ProductId := productCode
- );
- for( month := 1; month <= 12; month := month + 1 ) {
- field := Reflection::FindAttribute( "MappingAnnualBudget", "MonthlyModCapacity" + [String]month );
- field.Set( mappingAnnualBudget, Real::Random( 20000.0, 30000.0 ) );
- field := Reflection::FindAttribute( "MappingAnnualBudget", "MonthlySheetCapacity" + [String]month );
- field.Set( mappingAnnualBudget, Real::Random( 20000.0, 30000.0 ) );
- field := Reflection::FindAttribute( "MappingAnnualBudget", "MonthlySales" + [String]month );
- field.Set( mappingAnnualBudget, Real::Random( 20000.0, 30000.0 ) );
- }
- }
- }
- result2 := selectset( mpSync, MappingAnnualBudget, item, true );
- info( "test MappingAnnualBudget size : " + [String]result2.Size() );
+ debuginfo( "test MappingCapacityAndSaleBudge size : " + [String]result1.Size() );
*]
}
--
Gitblit v1.9.3