From 7e31442f0e9b07764e9c6a9680d3d4aeba5fe1de Mon Sep 17 00:00:00 2001
From: admin <admin@admin.com>
Date: 星期三, 22 一月 2025 12:20:44 +0800
Subject: [PATCH] Merge branch 'master' of http://47.101.211.7:10101/r/VWED into dev

---
 _Main/UI/MacroPlannerWebApp/Component_FormDLEngineLogisticsCostReport/Response_MatrixEditorTable_OnUpdateValue.def |   34 +++++++++++++++++++++-------------
 1 files changed, 21 insertions(+), 13 deletions(-)

diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormDLEngineLogisticsCostReport/Response_MatrixEditorTable_OnUpdateValue.def b/_Main/UI/MacroPlannerWebApp/Component_FormDLEngineLogisticsCostReport/Response_MatrixEditorTable_OnUpdateValue.def
index 70dd20a..cb93775 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_FormDLEngineLogisticsCostReport/Response_MatrixEditorTable_OnUpdateValue.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormDLEngineLogisticsCostReport/Response_MatrixEditorTable_OnUpdateValue.def
@@ -4,8 +4,8 @@
   DLEngineLogisticsCostRow row,
   DLEngineLogisticsCostColumn column,
   DLEngineLogisticsCostCell cell,
-  Number value,
-  Number oldvalue
+  String value,
+  String oldvalue
 ) id:Response_MatrixEditorTable_OnUpdateValue
 {
   #keys: '[415136.0.992750480]'
@@ -16,17 +16,25 @@
     Body:
     [*
       table            := selectobject( MacroPlan, DLEngineLogisticsCostReport, report, not report.IsShow() );
-      info( focusedattribute );
-      //cell.Coefficient( value );
-      //traverse( table, Row, trow, trow.Name() = row.Name() ){
-      //  traverse( trow, Cell, tcel, tcel.Column().Name() = column.Name() ){
-      //    tcel.RentEnterCost( cell.RentEnterCost() );
-      //    tcel.RentOutCost( cell.RentOutCost() );
-      //    tcel.FactoryToRentTransCost( cell.FactoryToRentTransCost() );
-      //    tcel.RentStorageCost( cell.RentStorageCost() );
-      //    tcel.Coefficient( cell.Coefficient() );
-      //  }
-      //}
+      //info( focusedattribute );
+      cell.CoefficientValue( value );
+      traverse( table, Row, trow, trow.Name() = row.Name() ){
+        traverse( trow, Cell, tcel, tcel.Column().Name() = column.Name() ){
+          tcel.CCRentInCost( cell.CCRentInCost() );
+          tcel.CCRentOutOfCost( cell.CCRentOutOfCost() );
+          tcel.CCLongTransCost( cell.CCLongTransCost() );
+          tcel.CCRentStorCost( cell.CCRentStorCost() );
+          tcel.CCShorTransCost( cell.CCShorTransCost() );
+          tcel.DLRentInCost( cell.DLRentInCost() );
+          tcel.DLRentOutOfCost( cell.DLRentOutOfCost() );
+          tcel.DLRentOtherCost( cell.DLRentOtherCost() );
+          tcel.DLRentStorCost( cell.DLRentStorCost() );
+          tcel.WerkToDLRentTransCost( cell.WerkToDLRentTransCost() );
+          tcel.CoefficientValue( cell.CoefficientValue() );
+          estimatetotalcost := tcel.CCRentInCost() + tcel.CCRentOutOfCost() + tcel.CCLongTransCost() + tcel.CCRentStorCost() + tcel.CCShorTransCost() + tcel.DLRentInCost() + tcel.DLRentOutOfCost() + tcel.DLRentOtherCost() + tcel.DLRentStorCost() + tcel.WerkToDLRentTransCost();
+          tcel.AllCost( estimatetotalcost * [Real]tcel.CoefficientValue() );
+        }
+      }
     *]
     GroupServerCalls: false
   }

--
Gitblit v1.9.3