From acf70acb5438a3358d07978afdc0eb28950f40d5 Mon Sep 17 00:00:00 2001
From: lihongji <3117313295@qq.com>
Date: 星期一, 12 八月 2024 16:28:01 +0800
Subject: [PATCH] Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev

---
 _Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl b/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl
index 5776315..1a69f9f 100644
--- a/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl
+++ b/_Main/BL/Type_MachiningPipelineSource0/StaticMethod_Initialize.qbl
@@ -52,26 +52,26 @@
             //鍛�
             weekcolumn          := table.GetColumnByUnit( Translations::MP_GlobalParameters_Week(), weekstart );
             
-            supplyquantity      := [Real]ceil( pispip.NewSupplyQuantity() );//鍚戜笂鍙栨暣
-            inventoryquantity   := [Real]ceil( pispip.PlannedInventoryLevelEnd() );//鍚戜笂鍙栨暣
+            supplyquantity      := [Number]pispip.NewSupplyQuantity();//鍥涜垗浜斿叆
+            inventoryquantity   := [Number]pispip.PlannedInventoryLevelEnd();//鍥涜垗浜斿叆
             
             //瑁呴厤绾�
             if( isccassemnly or isdlassemnly ){
-              row.SetCellAssemblyValue( daycolumn, isccassemnly, supplyquantity );
-              row.SetCellAssemblyValue( weekcolumn, isccassemnly, supplyquantity );
+              row.SetCellAssemblyValue( daycolumn, isccassemnly, [Real]supplyquantity );
+              row.SetCellAssemblyValue( weekcolumn, isccassemnly, [Real]supplyquantity );
             }
             
             //鏈哄姞绾�
             if( isccproduction or isdlproduction ){
-              row.SetCellProductionValue( daycolumn, isccproduction, supplyquantity );
-              row.SetCellProductionValue( weekcolumn, isccproduction, supplyquantity );
+              row.SetCellProductionValue( daycolumn, isccproduction, [Real]supplyquantity );
+              row.SetCellProductionValue( weekcolumn, isccproduction, [Real]supplyquantity );
             }
             //搴撳瓨
             if( iscc or isdl ){
-              row.SetCellInventoryValue( daycolumn, iscc, inventoryquantity );
+              row.SetCellInventoryValue( daycolumn, iscc, [Real]inventoryquantity );
               if( pispip.Start() = weekstart + Duration::Days( 6 ) or pispip.Period_MP() = endperiod ){
                 weekstart         := ( weekstart + Duration::Days( 7 ) ).Date();
-                row.SetCellInventoryValue( weekcolumn, iscc, inventoryquantity );
+                row.SetCellInventoryValue( weekcolumn, iscc, [Real]inventoryquantity );
               }
             }
           }

--
Gitblit v1.9.3