From 9423f2936340d82b046ec615381c1c5e03698557 Mon Sep 17 00:00:00 2001 From: yuxc <yuxc@vci-tech.com> Date: 星期五, 27 九月 2024 17:56:53 +0800 Subject: [PATCH] 1、主要完成对获取UI上下文的定义接口的优化,优化的方向为对多次获取业务类型对象进行转换而导致耗时较久的问题继续修改,还有对多次获取属性对象进行转换对象导致耗时过长问题进行修改。 2、对树的数据查询接口的优化,对多次获取属性对象进行转换对象导致耗时过长问题进行修改。 --- Source/Client/PLTClient/src/com/vci/client/oq/ui/qtimport/QTImportTree.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Client/PLTClient/src/com/vci/client/oq/ui/qtimport/QTImportTree.java b/Source/Client/PLTClient/src/com/vci/client/oq/ui/qtimport/QTImportTree.java index b4da46d..82ba1cc 100644 --- a/Source/Client/PLTClient/src/com/vci/client/oq/ui/qtimport/QTImportTree.java +++ b/Source/Client/PLTClient/src/com/vci/client/oq/ui/qtimport/QTImportTree.java @@ -31,6 +31,7 @@ import com.vci.corba.omd.qtm.QTD; import com.vci.corba.omd.qtm.QTInfo; import com.vci.client.LogonApplication; +import com.vci.client.common.providers.ServiceProvider; import com.vci.client.omd.btm.ui.BtmClient; import com.vci.client.omd.provider.BtmProvider; import com.vci.client.oq.QTClient; @@ -457,7 +458,7 @@ private void getPLQtWrapper(String string, QTInfo qtWrapper) { // TODO Auto-generated method stub try { - QTInfo[] qtws = QTDClient.getService().getAllQTs(); + QTInfo[] qtws = ServiceProvider.getOMDService().getQTDService().getAllQTs(); boolean islaet = true; for (int i = 0; i < qtws.length; i++) { if (string.equals(qtws[i].qtName)) { @@ -561,7 +562,7 @@ private void getPLQtIsInDB(String string, QTD[] qtds) { // TODO Auto-generated method stub try { - QTD[] qtds2 = QTDClient.getService().getBizTypeQTDs(string); + QTD[] qtds2 = ServiceProvider.getOMDService().getQTDService().getBizTypeQTDs(string); QTD[] qtdsNewQtds = null; List<QTD> es = new ArrayList<QTD>(); for (QTD qtd : qtds) { -- Gitblit v1.9.3