From 20093dec32a0c814f1db43e87c904890fd8a086f Mon Sep 17 00:00:00 2001 From: lazhen <17772815105@139.com> Date: 星期五, 17 一月 2025 08:17:32 +0800 Subject: [PATCH] 库存更新Dtype逻辑修改 --- _Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate0.qbl | 2 +- _Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl | 7 ++++--- _Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory#575.qbl | 4 ++-- _Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory.qbl | 4 ++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl index 8943020..2cc2f31 100644 --- a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl +++ b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate.qbl @@ -7,7 +7,8 @@ String partno, String inventory, String fac, - Number quantitiy + Number quantitiy, + String dtype ) as InventoryInterfaceDataDetail { TextBody: @@ -21,9 +22,9 @@ if( not isnull( product ) and exists( product.GetAllParent(), Elements, proparent, proparent.ID() = 'PL' ) ){ quantitiy := floor( [Real]quantitiy / 4 ); } - iidl := selectobject( iid, InventoryInterfaceDataDetail, detail, detail.InventoryPoint() = inventory and detail.Fac() = fac ); + iidl := selectobject( iid, InventoryInterfaceDataDetail, detail, detail.InventoryPoint() = inventory and detail.Fac() = fac and detail.Dtype() = dtype ); if( isnull( iidl ) ){ - iidl := iid.InventoryInterfaceDataDetail( relnew, Date := date, PartNumber := partno, InventoryPoint := inventory, Fac := fac, Quantity := quantitiy ); + iidl := iid.InventoryInterfaceDataDetail( relnew, Date := date, PartNumber := partno, InventoryPoint := inventory, Fac := fac, Quantity := quantitiy, Dtype := dtype ); }else{ iidl.Quantity( quantitiy ); } diff --git a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate0.qbl b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate0.qbl index d42d542..5ae1f20 100644 --- a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate0.qbl +++ b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_Generate0.qbl @@ -14,7 +14,7 @@ [* // 鐢勫叞楦� Jul-26-2024 (created) traverse( scenariomanager, ScenarioMP, smp ){ - MDSMacroPlan::Root( smp.DatasetMDSID() ) -> InventoryInterfaceData::Generate( interfaceDataset, date, partno, inventory, fac, quantitiy ); + MDSMacroPlan::Root( smp.DatasetMDSID() ) -> InventoryInterfaceData::Generate( interfaceDataset, date, partno, inventory, fac, quantitiy, '' ); } *] } diff --git "a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory\043575.qbl" "b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory\043575.qbl" index 4f09d88..145f55e 100644 --- "a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory\043575.qbl" +++ "b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory\043575.qbl" @@ -17,8 +17,8 @@ // 鑾峰彇鎸囧畾鏃ユ湡搴撳瓨鎺ュ彛鏁版嵁 //鍙戝姩鏈烘垚鍝佸簱瀛� traverse( inventorys, Elements, inventory ){ - iidl := InventoryInterfaceData::Generate( macroplan, owner, inventory.DDay(), inventory.FourCode(), inventory.BIPlace(), inventory.Fac(), [Number]inventory.Total() ); - iidl.Dtype( inventory.DType() ); + InventoryInterfaceData::Generate( macroplan, owner, inventory.DDay(), inventory.FourCode(), inventory.BIPlace(), inventory.Fac(), [Number]inventory.Total(), inventory.DType() ); + // iidl.Dtype( inventory.DType() ); } *] } diff --git a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory.qbl b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory.qbl index 9b85645..220101b 100644 --- a/_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory.qbl +++ b/_Main/BL/Type_InventoryInterfaceData/StaticMethod_SynchronizeInventory.qbl @@ -22,11 +22,11 @@ if( inventory.Fac() = 'DL' and inventory.Lgort() = 'All' ){ inventoryname := inventory.LineType(); } - InventoryInterfaceData::Generate( macroPlan, interfaceDataset, inventory.DDay(), inventory.MaterialNo(), inventoryname, inventory.Fac(), [Number]inventory.Total() ); + InventoryInterfaceData::Generate( macroPlan, interfaceDataset, inventory.DDay(), inventory.MaterialNo(), inventoryname, inventory.Fac(), [Number]inventory.Total(), '' ); } //鍙戝姩鏈烘垚鍝佸簱瀛� traverse( loginfo, FinishedEngineInventory, inventory ){ - InventoryInterfaceData::Generate( macroPlan, interfaceDataset, inventory.DDay(), inventory.FourCode(), inventory.BIPlace(), inventory.Fac(), [Number]inventory.Total() ); + InventoryInterfaceData::Generate( macroPlan, interfaceDataset, inventory.DDay(), inventory.FourCode(), inventory.BIPlace(), inventory.Fac(), [Number]inventory.Total(), inventory.DType() ); } } *] -- Gitblit v1.9.3