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/omd/enumManager/ui/EnumManagerPanel.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/Client/PLTClient/src/com/vci/client/omd/enumManager/ui/EnumManagerPanel.java b/Source/Client/PLTClient/src/com/vci/client/omd/enumManager/ui/EnumManagerPanel.java index 8e1e007..283cacd 100644 --- a/Source/Client/PLTClient/src/com/vci/client/omd/enumManager/ui/EnumManagerPanel.java +++ b/Source/Client/PLTClient/src/com/vci/client/omd/enumManager/ui/EnumManagerPanel.java @@ -29,6 +29,7 @@ import org.jdesktop.swingx.JXTable; import org.jdesktop.swingx.decorator.HighlighterFactory; +import com.vci.client.common.providers.ServiceProvider; import com.vci.client.omd.enumManager.toOutside.InterEM; import com.vci.client.omd.enumManager.toOutside.InterEMManager; import com.vci.client.omd.enumManager.wrapper.EnumItemWrapper; @@ -188,7 +189,7 @@ EnumItem emItem; //add by caill 浣胯〃鏍煎唴瀹硅窡鎼滅储妗嗗唴瀹圭粨鍚堣捣鏉ワ紝骞舵寜鐓ф悳绱㈡涓殑鏋氫妇鍚嶇О鏄剧ず鐩稿簲鐨勮〃鏍间俊鎭� String filter=tfFilter.getText(); - emItemArray = EnumClient.getService().getEmItems(filter, 1, 1); + emItemArray = ServiceProvider.getOMDService().getEnumService().getEmItems(filter, 1, 1); tableModel.setRowCount(emItemArray.length); //閲嶆柊璁剧疆table鐨凜ell鐨勫彲缂栬緫鎬� tableModel.setInitFlag(false); @@ -370,7 +371,7 @@ } try { - boolean isSuccess = EnumClient.getService().deleteEmItems(emItemList.toArray(new EnumItem[0])); + boolean isSuccess = ServiceProvider.getOMDService().getEnumService().deleteEmItems(emItemList.toArray(new EnumItem[0])); if(isSuccess){ JOptionPane.showMessageDialog(this, "鍒犻櫎鏋氫妇鎴愬姛", "鍒犻櫎鎴愬姛", JOptionPane.INFORMATION_MESSAGE); }else{ -- Gitblit v1.9.3