From ea745d9cfcd9a877f3235c47387aa2a754766a1b Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Mon, 7 Dec 2009 21:39:16 +0000 Subject: [PATCH] finish the implementation of Export Format Generator https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2910179&group_id=176962 Remove the unnecessary methods --- .../process/ExportFormatGenerator.java | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/base/src/org/eevolution/process/ExportFormatGenerator.java b/base/src/org/eevolution/process/ExportFormatGenerator.java index e5fecf9be2..5f41ae2e3c 100644 --- a/base/src/org/eevolution/process/ExportFormatGenerator.java +++ b/base/src/org/eevolution/process/ExportFormatGenerator.java @@ -51,8 +51,6 @@ public class ExportFormatGenerator extends SvrProcess private String m_parent_table = null; private String m_format_value = null; private int m_level = -1; - private MTab currentTab = null; - private MWindow window = null; /** * Prepare - e.g., get Parameters. @@ -87,7 +85,7 @@ public class ExportFormatGenerator extends SvrProcess */ protected String doIt () throws Exception { - window = new MWindow(getCtx(),p_AD_Window_ID, get_TrxName()); + MWindow window = new MWindow(getCtx(),p_AD_Window_ID, get_TrxName()); MTab[] tabs = window.getTabs(true, get_TrxName()); @@ -358,32 +356,4 @@ public class ExportFormatGenerator extends SvrProcess log.info("Export Format Line:"+formatLine.getName()); return formatLine.getEXP_FormatLine_ID(); } - private void createEmbededFormat(MTable table, MColumn col,boolean force) throws Exception - { - if(col.isParent() && getTab().getTabLevel() > 0) - { - String tableName = col.getColumnName().substring(0, col.getColumnName().lastIndexOf("_ID")); - - MEXPFormat format = MEXPFormat.getFormatByValueAD_Client_IDAndVersion(getCtx(), tableName, getAD_Client_ID(), version, get_TrxName()); - if (format != null) - { - createFormatLine(format, MTable.get(col.getCtx(), tableName), col, 0 , force); - return; - } - } - } - - private MTab getTab() - { - return currentTab; - } - - private MWindow getWindow() - { - return window; - } - private void setTab(MTab tab) - { - currentTab = tab; - } } // Generate Export Format