From 3cb5a54def670d97301f07170fcaad213bfc54f2 Mon Sep 17 00:00:00 2001
From: yypsybs <yypsybs@foxmail.com>
Date: 星期六, 09 九月 2023 15:30:46 +0800
Subject: [PATCH] 同步逻辑由MacroPlan移到MPSync
---
_Main/BL/Type_MacroPlan/Method_MappingSalesSegmentData.qbl | 86 +++++++++++++++++++++---------------------
1 files changed, 43 insertions(+), 43 deletions(-)
diff --git a/_Main/BL/Type_MacroPlan/Method_MappingSalesSegmentData.qbl b/_Main/BL/Type_MacroPlan/Method_MappingSalesSegmentData.qbl
index 5f5e1aa..a1b9585 100644
--- a/_Main/BL/Type_MacroPlan/Method_MappingSalesSegmentData.qbl
+++ b/_Main/BL/Type_MacroPlan/Method_MappingSalesSegmentData.qbl
@@ -7,50 +7,50 @@
Description: 'ETL閿�鍞儴闂�'
TextBody:
[*
- // yypsybs Aug-15-2023 (created)
- // 寰呭鐞嗘暟鎹�
- listToDeal := construct( structured[MappingSalesSegment] );
- if( isnull( businessTypes ) or businessTypes.Size() = 0 ) {
- listToDeal := selectset( this, MappingSalesSegment, item, true );
- } else {
- listToDeal := selectset( this, MappingSalesSegment, item, businessTypes.Find( item.BusinessType() ) <> -1 );
- }
- //nameList := construct( structured[String] );
- //nameList := selectvalues( listToDeal, Elements, item, true, item.Name() );
- //// 妫�鏌arent
- //traverse( listToDeal, Elements, item, item.ParentName() <> "" ) {
- // if( nameList.Find( item.ParentName() ) = -1 ) {
- // error( "sales segment parent not found: " + item.Name().AsQUILL() );
- // }
+ //// yypsybs Aug-15-2023 (created)
+ //// 寰呭鐞嗘暟鎹�
+ //listToDeal := construct( structured[MappingSalesSegment] );
+ //if( isnull( businessTypes ) or businessTypes.Size() = 0 ) {
+ // listToDeal := selectset( this, MappingSalesSegment, item, true );
+ //} else {
+ // listToDeal := selectset( this, MappingSalesSegment, item, businessTypes.Find( item.BusinessType() ) <> -1 );
//}
- //// 閫愬眰閬嶅巻锛岀洿鑷冲鐞嗗畬鎴�
- //dealtNameList := construct( structured[String] );
- //while( listToDeal.Size() <> dealtNameList.Size() ) {
- // traverse( listToDeal, Elements, item ) {
- // // 鏈鐞嗚繃
- // if( dealtNameList.Find( item.Name() ) < 0 ){
- // // 鏃犵埗閮ㄩ棬锛岀洿鎺ュ鐞�
- // if( item.ParentName() = "" ) {
- // SalesSegment_MP::CreateOrUpdate( this, item.Name(), item.DisplayIndex(), item.ParentName() );
- // dealtNameList.Add( item.Name() );
- // }
- // // 鏈夌埗閮ㄩ棬涓旂埗閮ㄩ棬宸插鐞�
- // else if( item.ParentName() <> "" and dealtNameList.Find(item.ParentName()) >= 0 ) {
- // SalesSegment_MP::CreateOrUpdate( this, item.Name(), item.DisplayIndex(), item.ParentName() );
- // dealtNameList.Add( item.Name() );
- // }
- // // 鏈夌埗閮ㄩ棬涓旂埗閮ㄩ棬鏈鐞嗭紝涓嬩竴杞鐞�
- // }
+ ////nameList := construct( structured[String] );
+ ////nameList := selectvalues( listToDeal, Elements, item, true, item.Name() );
+ ////// 妫�鏌arent
+ ////traverse( listToDeal, Elements, item, item.ParentName() <> "" ) {
+ //// if( nameList.Find( item.ParentName() ) = -1 ) {
+ //// error( "sales segment parent not found: " + item.Name().AsQUILL() );
+ //// }
+ ////}
+ ////// 閫愬眰閬嶅巻锛岀洿鑷冲鐞嗗畬鎴�
+ ////dealtNameList := construct( structured[String] );
+ ////while( listToDeal.Size() <> dealtNameList.Size() ) {
+ //// traverse( listToDeal, Elements, item ) {
+ //// // 鏈鐞嗚繃
+ //// if( dealtNameList.Find( item.Name() ) < 0 ){
+ //// // 鏃犵埗閮ㄩ棬锛岀洿鎺ュ鐞�
+ //// if( item.ParentName() = "" ) {
+ //// SalesSegment_MP::CreateOrUpdate( this, item.Name(), item.DisplayIndex(), item.ParentName() );
+ //// dealtNameList.Add( item.Name() );
+ //// }
+ //// // 鏈夌埗閮ㄩ棬涓旂埗閮ㄩ棬宸插鐞�
+ //// else if( item.ParentName() <> "" and dealtNameList.Find(item.ParentName()) >= 0 ) {
+ //// SalesSegment_MP::CreateOrUpdate( this, item.Name(), item.DisplayIndex(), item.ParentName() );
+ //// dealtNameList.Add( item.Name() );
+ //// }
+ //// // 鏈夌埗閮ㄩ棬涓旂埗閮ㄩ棬鏈鐞嗭紝涓嬩竴杞鐞�
+ //// }
+ //// }
+ ////}
+ //traverse( listToDeal,Elements,item ){
+ // if( item.ParentName() <> "" and isnull( SalesSegment_MP::FindByName( this, item.ParentName() ) ) ){
+ // SalesSegment_MP::CreateOrUpdate( this, item.ParentName(), item.DisplayIndex(), "" );
// }
- //}
- traverse( listToDeal,Elements,item ){
- if( item.ParentName() <> "" and isnull( SalesSegment_MP::FindByName( this, item.ParentName() ) ) ){
- SalesSegment_MP::CreateOrUpdate( this, item.ParentName(), item.DisplayIndex(), "" );
- }
- }
-
- traverse( listToDeal,Elements,item ){
- SalesSegment_MP::CreateOrUpdate( this, item.Name(), item.DisplayIndex(), item.ParentName() );
- }
+ // }
+ //
+ //traverse( listToDeal,Elements,item ){
+ // SalesSegment_MP::CreateOrUpdate( this, item.Name(), item.DisplayIndex(), item.ParentName() );
+ // }
*]
}
--
Gitblit v1.9.3