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_MappingActualPISPIPData.qbl |   78 +++++++++++++++++++-------------------
 1 files changed, 39 insertions(+), 39 deletions(-)

diff --git a/_Main/BL/Type_MacroPlan/Method_MappingActualPISPIPData.qbl b/_Main/BL/Type_MacroPlan/Method_MappingActualPISPIPData.qbl
index 87cbdf3..2b6b764 100644
--- a/_Main/BL/Type_MacroPlan/Method_MappingActualPISPIPData.qbl
+++ b/_Main/BL/Type_MacroPlan/Method_MappingActualPISPIPData.qbl
@@ -7,44 +7,44 @@
 {
   TextBody:
   [*
-    // renhao Aug-14-2023 (created)
-    date := Date :: Today();
-    listtodeal := selectset( this,MappingActualPISPIP,actual,not isnull( Product_MP::FindById( this, actual.ProductID() ) ) );
-    totalcount := listtodeal.Size();
-    info( "ActualPISPIP has " + totalcount.AsQUILL() + " rows in total" );
-    
-    count := 0;
-    traverse( listtodeal,Elements,actual){
-      count := count + 1;
-      if( count - [Number](count/100) * 100 = 0 or count = totalcount ){
-        info( "Now is dealing with the " + count.AsQUILL() + "ActualPISPIP " + "( " + count.AsQUILL() + "/" + totalcount.AsQUILL() + " ) " + (count/totalcount*100).Round( 1 ).AsQUILL() + "%" );
-        }
-      product := select( this,MappingProduct,product,product.ID() = actual.ProductID() and product.KeyProduct() = nuclear,true);
-      if( not isnull( product)){
-      if( not isnull(businessTypes)){
-      
-        for( i :=0 ;i < businessTypes.Size();i++ ){
-          businessType := businessTypes.Element( i);
-          if( product.BusinessType() = businessType and not product.IsCommon()){
-            ActualProductInStockingPointInPeriod::CreateOrUpdate( this,
-                                                                  actual.ProductID(),
-                                                                  actual.StockingPointID(),
-                                                                  actual.Description(),
-                                                                  actual.ActualInventoryLevelEnd(),
-                                                                  actual.ManufacturedDate());
-          }
-        }
-        
-      }else{
-        ActualProductInStockingPointInPeriod::CreateOrUpdate( this,
-                                                              actual.ProductID(),
-                                                              actual.StockingPointID(),
-                                                              actual.Description(),
-                                                              actual.ActualInventoryLevelEnd(),
-                                                              actual.ManufacturedDate());
-      }
-        
-      }
-    }
+    //// renhao Aug-14-2023 (created)
+    //date := Date :: Today();
+    //listtodeal := selectset( this,MappingActualPISPIP,actual,not isnull( Product_MP::FindById( this, actual.ProductID() ) ) );
+    //totalcount := listtodeal.Size();
+    //info( "ActualPISPIP has " + totalcount.AsQUILL() + " rows in total" );
+    //
+    //count := 0;
+    //traverse( listtodeal,Elements,actual){
+    //  count := count + 1;
+    //  if( count - [Number](count/100) * 100 = 0 or count = totalcount ){
+    //    info( "Now is dealing with the " + count.AsQUILL() + "ActualPISPIP " + "( " + count.AsQUILL() + "/" + totalcount.AsQUILL() + " ) " + (count/totalcount*100).Round( 1 ).AsQUILL() + "%" );
+    //    }
+    //  product := select( this,MappingProduct,product,product.ID() = actual.ProductID() and product.KeyProduct() = nuclear,true);
+    //  if( not isnull( product)){
+    //  if( not isnull(businessTypes)){
+    //  
+    //    for( i :=0 ;i < businessTypes.Size();i++ ){
+    //      businessType := businessTypes.Element( i);
+    //      if( product.BusinessType() = businessType and not product.IsCommon()){
+    //        ActualProductInStockingPointInPeriod::CreateOrUpdate( this,
+    //                                                              actual.ProductID(),
+    //                                                              actual.StockingPointID(),
+    //                                                              actual.Description(),
+    //                                                              actual.ActualInventoryLevelEnd(),
+    //                                                              actual.ManufacturedDate());
+    //      }
+    //    }
+    //    
+    //  }else{
+    //    ActualProductInStockingPointInPeriod::CreateOrUpdate( this,
+    //                                                          actual.ProductID(),
+    //                                                          actual.StockingPointID(),
+    //                                                          actual.Description(),
+    //                                                          actual.ActualInventoryLevelEnd(),
+    //                                                          actual.ManufacturedDate());
+    //  }
+    //    
+    //  }
+    //}
   *]
 }

--
Gitblit v1.9.3