From b5234c5ab1e9e6826b8d8fc1e95fa752aaa40b74 Mon Sep 17 00:00:00 2001
From: chr <chr@mailcom>
Date: 星期六, 02 十一月 2024 10:56:50 +0800
Subject: [PATCH] 优化程序

---
 PdmSwPlugin.Common/Util/Pdm/BomTreeReader.cs |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/PdmSwPlugin.Common/Util/Pdm/BomTreeReader.cs b/PdmSwPlugin.Common/Util/Pdm/BomTreeReader.cs
index bd955b9..f8bba5f 100644
--- a/PdmSwPlugin.Common/Util/Pdm/BomTreeReader.cs
+++ b/PdmSwPlugin.Common/Util/Pdm/BomTreeReader.cs
@@ -16,7 +16,7 @@
     {
         public BomTreeReader()
         {
-            factory = LimitedConcurrencyLevelTaskScheduler.Factory;
+            factory = LimitedConcurrencyLevelTaskSchedulerMsn.Factory;
         }
 
         public TaskFactory factory;
@@ -260,6 +260,10 @@
         private static PdmBom ConcatCacheBom(BomInfo info, int level, PdmBom parent, Component2 component)
         {
             if (info == null) return null;
+            //if (component.IsHidden(true))
+            //{
+            //    info.isHidden = true;
+            //}
             PdmBom bom = new PdmBom
             {
                 BomInfo = info,
@@ -267,7 +271,8 @@
                 level = level,
                 quantity = 1,
                 parent = parent,
-                component = component
+                component = component,
+                isHidden = component.IsHidden(true)
             };
             // 灏佽Bom淇℃伅
             bom.Init();

--
Gitblit v1.9.1