IDEMPIERE-5102 Deactivate AD_Desktop and AD_Workbench (#1053)
This commit is contained in:
parent
d0d68de57b
commit
52c423dfeb
|
@ -0,0 +1,40 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- IDEMPIERE-5102 Deactivate AD_Desktop and AD_Workbench
|
||||
-- Dec 16, 2021, 2:06:14 PM MYT
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_DATE('2021-12-16 14:06:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=458
|
||||
;
|
||||
|
||||
-- Dec 16, 2021, 2:06:22 PM MYT
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_DATE('2021-12-16 14:06:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=460
|
||||
;
|
||||
|
||||
-- Dec 16, 2021, 2:06:30 PM MYT
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_DATE('2021-12-16 14:06:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=459
|
||||
;
|
||||
|
||||
-- Dec 16, 2021, 2:08:00 PM MYT
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_DATE('2021-12-16 14:08:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=468
|
||||
;
|
||||
|
||||
-- Dec 16, 2021, 2:08:05 PM MYT
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_DATE('2021-12-16 14:08:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=470
|
||||
;
|
||||
|
||||
-- Dec 16, 2021, 2:08:11 PM MYT
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_DATE('2021-12-16 14:08:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=469
|
||||
;
|
||||
|
||||
-- IDEMPIERE-5102 Deactivate AD_Desktop and AD_Workbench
|
||||
-- Dec 16, 2021, 2:16:14 PM MYT
|
||||
UPDATE AD_Column SET IsActive='N',Updated=TO_DATE('2021-12-16 14:16:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=50129
|
||||
;
|
||||
|
||||
-- Dec 16, 2021, 2:16:34 PM MYT
|
||||
UPDATE AD_Field SET IsActive='N', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2021-12-16 14:16:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50112
|
||||
;
|
||||
|
||||
SELECT register_migration_script('202112160650_IDEMPIERE-5102.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
-- IDEMPIERE-5102 Deactivate AD_Desktop and AD_Workbench
|
||||
-- Dec 16, 2021, 2:06:14 PM MYT
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_TIMESTAMP('2021-12-16 14:06:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=458
|
||||
;
|
||||
|
||||
-- Dec 16, 2021, 2:06:22 PM MYT
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_TIMESTAMP('2021-12-16 14:06:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=460
|
||||
;
|
||||
|
||||
-- Dec 16, 2021, 2:06:30 PM MYT
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_TIMESTAMP('2021-12-16 14:06:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=459
|
||||
;
|
||||
|
||||
-- Dec 16, 2021, 2:08:00 PM MYT
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_TIMESTAMP('2021-12-16 14:08:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=468
|
||||
;
|
||||
|
||||
-- Dec 16, 2021, 2:08:05 PM MYT
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_TIMESTAMP('2021-12-16 14:08:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=470
|
||||
;
|
||||
|
||||
-- Dec 16, 2021, 2:08:11 PM MYT
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_TIMESTAMP('2021-12-16 14:08:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=469
|
||||
;
|
||||
|
||||
-- IDEMPIERE-5102 Deactivate AD_Desktop and AD_Workbench
|
||||
-- Dec 16, 2021, 2:16:14 PM MYT
|
||||
UPDATE AD_Column SET IsActive='N',Updated=TO_TIMESTAMP('2021-12-16 14:16:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=50129
|
||||
;
|
||||
|
||||
-- Dec 16, 2021, 2:16:34 PM MYT
|
||||
UPDATE AD_Field SET IsActive='N', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2021-12-16 14:16:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50112
|
||||
;
|
||||
|
||||
SELECT register_migration_script('202112160650_IDEMPIERE-5102.sql') FROM dual
|
||||
;
|
||||
|
|
@ -1,549 +0,0 @@
|
|||
/******************************************************************************
|
||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Image;
|
||||
import java.io.Serializable;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import javax.swing.Icon;
|
||||
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
|
||||
/**
|
||||
* Window Workbench Model
|
||||
*
|
||||
* @author Jorg Janke
|
||||
* @version $Id: GridWorkbench.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
|
||||
*/
|
||||
public class GridWorkbench implements Serializable
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 3947016961582548630L;
|
||||
|
||||
/**
|
||||
* Workbench Model Constructor
|
||||
* @param ctx context
|
||||
*/
|
||||
public GridWorkbench (Properties ctx)
|
||||
{
|
||||
m_ctx = ctx;
|
||||
} // MWorkbench
|
||||
|
||||
/**
|
||||
* No Workbench - Just Frame for Window
|
||||
* @param ctx context
|
||||
* @param AD_Window_ID window
|
||||
*/
|
||||
public GridWorkbench (Properties ctx, int AD_Window_ID)
|
||||
{
|
||||
m_ctx = ctx;
|
||||
m_windows.add (new WBWindow(TYPE_WINDOW, AD_Window_ID));
|
||||
} // MWorkbench
|
||||
|
||||
/** Properties */
|
||||
private Properties m_ctx;
|
||||
|
||||
/** List of windows */
|
||||
private ArrayList<WBWindow> m_windows = new ArrayList<WBWindow>();
|
||||
|
||||
private int AD_Workbench_ID = 0;
|
||||
private String Name = "";
|
||||
private String Description = "";
|
||||
private String Help = "";
|
||||
private int AD_Column_ID = 0;
|
||||
private int AD_Image_ID = 0;
|
||||
private int AD_Color_ID = 0;
|
||||
private int PA_Goal_ID = 0;
|
||||
private String ColumnName = "";
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(GridWorkbench.class);
|
||||
|
||||
/**
|
||||
* Init Workbench
|
||||
* @param ad_Workbench_ID workbench
|
||||
* @return true if initialized
|
||||
*/
|
||||
public boolean initWorkbench (int ad_Workbench_ID)
|
||||
{
|
||||
AD_Workbench_ID = ad_Workbench_ID;
|
||||
// Get WB info
|
||||
String sql = null;
|
||||
if (Env.isBaseLanguage(m_ctx, "AD_Workbench"))
|
||||
sql = "SELECT w.Name,w.Description,w.Help," // 1..3
|
||||
+ " w.AD_Column_ID,w.AD_Image_ID,w.AD_Color_ID,w.PA_Goal_ID," // 4..7
|
||||
+ " c.ColumnName " // 8
|
||||
+ "FROM AD_Workbench w, AD_Column c "
|
||||
+ "WHERE w.AD_Workbench_ID=?" // #1
|
||||
+ " AND w.IsActive='Y'"
|
||||
+ " AND w.AD_Column_ID=c.AD_Column_ID";
|
||||
else
|
||||
sql = "SELECT t.Name,t.Description,t.Help,"
|
||||
+ " w.AD_Column_ID,w.AD_Image_ID,w.AD_Color_ID,w.PA_Goal_ID,"
|
||||
+ " c.ColumnName "
|
||||
+ "FROM AD_Workbench w, AD_Workbench_Trl t, AD_Column c "
|
||||
+ "WHERE w.AD_Workbench_ID=?" // #1
|
||||
+ " AND w.IsActive='Y'"
|
||||
+ " AND w.AD_Workbench_ID=t.AD_Workbench_ID"
|
||||
+ " AND t.AD_Language='" + Env.getAD_Language(m_ctx) + "'"
|
||||
+ " AND w.AD_Column_ID=c.AD_Column_ID";
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
try
|
||||
{
|
||||
pstmt = DB.prepareStatement(sql, null);
|
||||
pstmt.setInt(1, AD_Workbench_ID);
|
||||
rs = pstmt.executeQuery();
|
||||
if (rs.next())
|
||||
{
|
||||
Name = rs.getString(1);
|
||||
Description = rs.getString(2);
|
||||
if (Description == null)
|
||||
Description = "";
|
||||
Help = rs.getString(3);
|
||||
if (Help == null)
|
||||
Help = "";
|
||||
//
|
||||
AD_Column_ID = rs.getInt(4);
|
||||
AD_Image_ID = rs.getInt(5);
|
||||
AD_Color_ID = rs.getInt(6);
|
||||
PA_Goal_ID = rs.getInt(7);
|
||||
ColumnName = rs.getString(8);
|
||||
}
|
||||
else
|
||||
AD_Workbench_ID = 0;
|
||||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, sql, e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
DB.close(rs, pstmt);
|
||||
rs = null;
|
||||
pstmt = null;
|
||||
}
|
||||
|
||||
if (AD_Workbench_ID == 0)
|
||||
return false;
|
||||
return initWorkbenchWindows();
|
||||
} // initWorkbench
|
||||
|
||||
/**
|
||||
* String Representation
|
||||
* @return info
|
||||
*/
|
||||
public String toString()
|
||||
{
|
||||
return "MWorkbench ID=" + AD_Workbench_ID + " " + Name
|
||||
+ ", windows=" + m_windows.size() + ", LinkColumn=" + ColumnName;
|
||||
} // toString
|
||||
|
||||
/**
|
||||
* Dispose
|
||||
*/
|
||||
public void dispose()
|
||||
{
|
||||
for (int i = 0; i < m_windows.size(); i++)
|
||||
{
|
||||
dispose(i);
|
||||
}
|
||||
m_windows.clear();
|
||||
m_windows = null;
|
||||
} // dispose
|
||||
|
||||
/**
|
||||
* Get Workbench Query.
|
||||
* @return ColumnName=@#ColumnName@
|
||||
*/
|
||||
public MQuery getQuery()
|
||||
{
|
||||
return MQuery.getEqualQuery(ColumnName, "@#" + ColumnName + "@");
|
||||
} // getQuery
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Get Workbench
|
||||
* @return workbensch id
|
||||
*/
|
||||
public int getAD_Workbench_ID()
|
||||
{
|
||||
return AD_Workbench_ID;
|
||||
}
|
||||
/**
|
||||
* Get Name
|
||||
* @return name
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
/**
|
||||
* Get Description
|
||||
* @return description
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return Description;
|
||||
}
|
||||
/**
|
||||
* Get Help
|
||||
* @return help
|
||||
*/
|
||||
public String getHelp()
|
||||
{
|
||||
return Help;
|
||||
}
|
||||
/**
|
||||
* Get Link AD_Column_ID
|
||||
* @return column
|
||||
*/
|
||||
public int getAD_Column_ID()
|
||||
{
|
||||
return AD_Column_ID;
|
||||
}
|
||||
/**
|
||||
* Get AD_Image_ID
|
||||
* @return image
|
||||
*/
|
||||
public int getAD_Image_ID()
|
||||
{
|
||||
return AD_Image_ID;
|
||||
}
|
||||
/**
|
||||
* Get AD_Color_ID
|
||||
* @return color
|
||||
*/
|
||||
public int getAD_Color_ID()
|
||||
{
|
||||
return AD_Color_ID;
|
||||
}
|
||||
/**
|
||||
* Get PA_Goal_ID
|
||||
* @return goal
|
||||
*/
|
||||
public int getPA_Goal_ID()
|
||||
{
|
||||
return PA_Goal_ID;
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/** Window */
|
||||
public static final int TYPE_WINDOW = 1;
|
||||
/** Form */
|
||||
public static final int TYPE_FORM = 2;
|
||||
/** Process */
|
||||
public static final int TYPE_PROCESS = 3;
|
||||
/** Task */
|
||||
public static final int TYPE_TASK = 4;
|
||||
|
||||
/**
|
||||
* Init Workbench Windows
|
||||
* @return true if init ok
|
||||
*/
|
||||
private boolean initWorkbenchWindows()
|
||||
{
|
||||
String sql = "SELECT AD_Window_ID, AD_Form_ID, AD_Process_ID, AD_Task_ID "
|
||||
+ "FROM AD_WorkbenchWindow "
|
||||
+ "WHERE AD_Workbench_ID=? AND IsActive='Y'"
|
||||
+ "ORDER BY SeqNo";
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
try
|
||||
{
|
||||
pstmt = DB.prepareStatement(sql, null);
|
||||
pstmt.setInt(1, AD_Workbench_ID);
|
||||
rs = pstmt.executeQuery();
|
||||
while (rs.next())
|
||||
{
|
||||
int AD_Window_ID = rs.getInt(1);
|
||||
int AD_Form_ID = rs.getInt(2);
|
||||
int AD_Process_ID = rs.getInt(3);
|
||||
int AD_Task_ID = rs.getInt(4);
|
||||
//
|
||||
if (AD_Window_ID > 0)
|
||||
m_windows.add (new WBWindow(TYPE_WINDOW, AD_Window_ID));
|
||||
else if (AD_Form_ID > 0)
|
||||
m_windows.add (new WBWindow(TYPE_FORM, AD_Form_ID));
|
||||
else if (AD_Process_ID > 0)
|
||||
m_windows.add (new WBWindow(TYPE_PROCESS, AD_Process_ID));
|
||||
else if (AD_Task_ID > 0)
|
||||
m_windows.add (new WBWindow(TYPE_TASK, AD_Task_ID));
|
||||
}
|
||||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, sql, e);
|
||||
return false;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DB.close(rs, pstmt);
|
||||
rs = null;
|
||||
pstmt = null;
|
||||
}
|
||||
return true;
|
||||
} // initWorkbenchWindows
|
||||
|
||||
/**
|
||||
* Get Window Count
|
||||
* @return window count
|
||||
*/
|
||||
public int getWindowCount()
|
||||
{
|
||||
return m_windows.size();
|
||||
} // getWindowCount
|
||||
|
||||
/**
|
||||
* Get Window Type of Window
|
||||
* @param index index in workbench
|
||||
* @return -1 if not valid
|
||||
*/
|
||||
public int getWindowType (int index)
|
||||
{
|
||||
if (index < 0 || index > m_windows.size())
|
||||
return -1;
|
||||
WBWindow win = (WBWindow)m_windows.get(index);
|
||||
return win.Type;
|
||||
} // getWindowType
|
||||
|
||||
/**
|
||||
* Get ID for Window
|
||||
* @param index index in workbench
|
||||
* @return -1 if not valid
|
||||
*/
|
||||
public int getWindowID (int index)
|
||||
{
|
||||
if (index < 0 || index > m_windows.size())
|
||||
return -1;
|
||||
WBWindow win = (WBWindow)m_windows.get(index);
|
||||
return win.ID;
|
||||
} // getWindowID
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
* Set Window Model of Window
|
||||
* @param index index in workbench
|
||||
* @param mw model window
|
||||
*/
|
||||
public void setMWindow (int index, GridWindow mw)
|
||||
{
|
||||
if (index < 0 || index > m_windows.size())
|
||||
throw new IllegalArgumentException ("Index invalid: " + index);
|
||||
WBWindow win = (WBWindow)m_windows.get(index);
|
||||
if (win.Type != TYPE_WINDOW)
|
||||
throw new IllegalArgumentException ("Not a MWindow: " + index);
|
||||
win.mWindow = mw;
|
||||
} // setMWindow
|
||||
|
||||
/**
|
||||
* Get Window Model of Window
|
||||
* @param index index in workbench
|
||||
* @return model window
|
||||
*/
|
||||
public GridWindow getMWindow (int index)
|
||||
{
|
||||
if (index < 0 || index > m_windows.size())
|
||||
throw new IllegalArgumentException ("Index invalid: " + index);
|
||||
WBWindow win = (WBWindow)m_windows.get(index);
|
||||
if (win.Type != TYPE_WINDOW)
|
||||
throw new IllegalArgumentException ("Not a MWindow: " + index);
|
||||
return win.mWindow;
|
||||
} // getMWindow
|
||||
|
||||
/**
|
||||
* Get Name of Window
|
||||
* @param index index in workbench
|
||||
* @return Window Name or null if not set
|
||||
*/
|
||||
public String getName (int index)
|
||||
{
|
||||
if (index < 0 || index > m_windows.size())
|
||||
throw new IllegalArgumentException ("Index invalid: " + index);
|
||||
WBWindow win = (WBWindow)m_windows.get(index);
|
||||
if (win.mWindow != null && win.Type == TYPE_WINDOW)
|
||||
return win.mWindow.getName();
|
||||
return null;
|
||||
} // getName
|
||||
|
||||
/**
|
||||
* Get Description of Window
|
||||
* @param index index in workbench
|
||||
* @return Window Description or null if not set
|
||||
*/
|
||||
public String getDescription (int index)
|
||||
{
|
||||
if (index < 0 || index > m_windows.size())
|
||||
throw new IllegalArgumentException ("Index invalid: " + index);
|
||||
WBWindow win = (WBWindow)m_windows.get(index);
|
||||
if (win.mWindow != null && win.Type == TYPE_WINDOW)
|
||||
return win.mWindow.getDescription();
|
||||
return null;
|
||||
} // getDescription
|
||||
|
||||
/**
|
||||
* Get Help of Window
|
||||
* @param index index in workbench
|
||||
* @return Window Help or null if not set
|
||||
*/
|
||||
public String getHelp (int index)
|
||||
{
|
||||
if (index < 0 || index > m_windows.size())
|
||||
throw new IllegalArgumentException ("Index invalid: " + index);
|
||||
WBWindow win = (WBWindow)m_windows.get(index);
|
||||
if (win.mWindow != null && win.Type == TYPE_WINDOW)
|
||||
return win.mWindow.getHelp();
|
||||
return null;
|
||||
} // getHelp
|
||||
|
||||
/**
|
||||
* Get Icon of Window
|
||||
* @param index index in workbench
|
||||
* @return Window Icon or null if not set
|
||||
*/
|
||||
public Icon getIcon (int index)
|
||||
{
|
||||
if (index < 0 || index > m_windows.size())
|
||||
throw new IllegalArgumentException ("Index invalid: " + index);
|
||||
WBWindow win = (WBWindow)m_windows.get(index);
|
||||
if (win.mWindow != null && win.Type == TYPE_WINDOW)
|
||||
return win.mWindow.getIcon();
|
||||
return null;
|
||||
} // getIcon
|
||||
|
||||
/**
|
||||
* Get Image Icon of Window
|
||||
* @param index index in workbench
|
||||
* @return Window Icon or null if not set
|
||||
*/
|
||||
public Image getImage (int index)
|
||||
{
|
||||
if (index < 0 || index > m_windows.size())
|
||||
throw new IllegalArgumentException ("Index invalid: " + index);
|
||||
WBWindow win = (WBWindow)m_windows.get(index);
|
||||
if (win.mWindow != null && win.Type == TYPE_WINDOW)
|
||||
return win.mWindow.getImage();
|
||||
return null;
|
||||
} // getImage
|
||||
|
||||
/**
|
||||
* Get AD_Color_ID of Window
|
||||
* @param index index in workbench
|
||||
* @return Window Color or Workbench color if not set
|
||||
*/
|
||||
public int getAD_Color_ID (int index)
|
||||
{
|
||||
if (index < 0 || index > m_windows.size())
|
||||
throw new IllegalArgumentException ("Index invalid: " + index);
|
||||
//WBWindow win = (WBWindow)m_windows.get(index);
|
||||
int retValue = -1;
|
||||
// if (win.mWindow != null && win.Type == TYPE_WINDOW)
|
||||
// return win.mWindow.getAD_Color_ID();
|
||||
if (retValue == -1)
|
||||
return getAD_Color_ID();
|
||||
return retValue;
|
||||
} // getAD_Color_ID
|
||||
|
||||
/**
|
||||
* Set WindowNo of Window
|
||||
* @param index index in workbench
|
||||
* @param windowNo window no
|
||||
*/
|
||||
public void setWindowNo (int index, int windowNo)
|
||||
{
|
||||
if (index < 0 || index > m_windows.size())
|
||||
throw new IllegalArgumentException ("Index invalid: " + index);
|
||||
WBWindow win = (WBWindow)m_windows.get(index);
|
||||
win.WindowNo = windowNo;
|
||||
} // getWindowNo
|
||||
|
||||
/**
|
||||
* Get WindowNo of Window
|
||||
* @param index index in workbench
|
||||
* @return WindowNo of Window if previously set, otherwise -1;
|
||||
*/
|
||||
public int getWindowNo (int index)
|
||||
{
|
||||
if (index < 0 || index > m_windows.size())
|
||||
throw new IllegalArgumentException ("Index invalid: " + index);
|
||||
WBWindow win = (WBWindow)m_windows.get(index);
|
||||
return win.WindowNo;
|
||||
} // getWindowNo
|
||||
|
||||
/**
|
||||
* Dispose of Window
|
||||
* @param index index in workbench
|
||||
*/
|
||||
public void dispose (int index)
|
||||
{
|
||||
if (index < 0 || index > m_windows.size())
|
||||
throw new IllegalArgumentException ("Index invalid: " + index);
|
||||
WBWindow win = (WBWindow)m_windows.get(index);
|
||||
if (win.mWindow != null)
|
||||
win.mWindow.dispose();
|
||||
win.mWindow = null;
|
||||
} // dispose
|
||||
|
||||
/**
|
||||
* Get Window Size
|
||||
* @return window size or null if not set
|
||||
*/
|
||||
public Dimension getWindowSize()
|
||||
{
|
||||
return null;
|
||||
} // getWindowSize
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
* Window Type
|
||||
*/
|
||||
static class WBWindow
|
||||
{
|
||||
/**
|
||||
* WBWindow
|
||||
* @param type
|
||||
* @param id
|
||||
*/
|
||||
public WBWindow (int type, int id)
|
||||
{
|
||||
Type = type;
|
||||
ID = id;
|
||||
}
|
||||
/** Type */
|
||||
public int Type = 0;
|
||||
/** ID */
|
||||
public int ID = 0;
|
||||
/** Window No */
|
||||
public int WindowNo = -1;
|
||||
/** Window Midel */
|
||||
public GridWindow mWindow = null;
|
||||
} // WBWindow
|
||||
|
||||
} // Workbench
|
|
@ -1,196 +0,0 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for AD_Desktop
|
||||
* @author iDempiere (generated)
|
||||
* @version Development 9.0
|
||||
*/
|
||||
public interface I_AD_Desktop
|
||||
{
|
||||
|
||||
/** TableName=AD_Desktop */
|
||||
public static final String Table_Name = "AD_Desktop";
|
||||
|
||||
/** AD_Table_ID=458 */
|
||||
public static final int Table_ID = 458;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 4 - System
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(4);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_Color_ID */
|
||||
public static final String COLUMNNAME_AD_Color_ID = "AD_Color_ID";
|
||||
|
||||
/** Set System Color.
|
||||
* Color for backgrounds or indicators
|
||||
*/
|
||||
public void setAD_Color_ID (String AD_Color_ID);
|
||||
|
||||
/** Get System Color.
|
||||
* Color for backgrounds or indicators
|
||||
*/
|
||||
public String getAD_Color_ID();
|
||||
|
||||
/** Column name AD_Desktop_ID */
|
||||
public static final String COLUMNNAME_AD_Desktop_ID = "AD_Desktop_ID";
|
||||
|
||||
/** Set Desktop.
|
||||
* Collection of Workbenches
|
||||
*/
|
||||
public void setAD_Desktop_ID (int AD_Desktop_ID);
|
||||
|
||||
/** Get Desktop.
|
||||
* Collection of Workbenches
|
||||
*/
|
||||
public int getAD_Desktop_ID();
|
||||
|
||||
/** Column name AD_Desktop_UU */
|
||||
public static final String COLUMNNAME_AD_Desktop_UU = "AD_Desktop_UU";
|
||||
|
||||
/** Set AD_Desktop_UU */
|
||||
public void setAD_Desktop_UU (String AD_Desktop_UU);
|
||||
|
||||
/** Get AD_Desktop_UU */
|
||||
public String getAD_Desktop_UU();
|
||||
|
||||
/** Column name AD_Image_ID */
|
||||
public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID";
|
||||
|
||||
/** Set Image.
|
||||
* Image or Icon
|
||||
*/
|
||||
public void setAD_Image_ID (int AD_Image_ID);
|
||||
|
||||
/** Get Image.
|
||||
* Image or Icon
|
||||
*/
|
||||
public int getAD_Image_ID();
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name Description */
|
||||
public static final String COLUMNNAME_Description = "Description";
|
||||
|
||||
/** Set Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description);
|
||||
|
||||
/** Get Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public String getDescription();
|
||||
|
||||
/** Column name Help */
|
||||
public static final String COLUMNNAME_Help = "Help";
|
||||
|
||||
/** Set Comment/Help.
|
||||
* Comment or Hint
|
||||
*/
|
||||
public void setHelp (String Help);
|
||||
|
||||
/** Get Comment/Help.
|
||||
* Comment or Hint
|
||||
*/
|
||||
public String getHelp();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name Name */
|
||||
public static final String COLUMNNAME_Name = "Name";
|
||||
|
||||
/** Set Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name);
|
||||
|
||||
/** Get Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName();
|
||||
|
||||
/** Column name Updated */
|
||||
public static final String COLUMNNAME_Updated = "Updated";
|
||||
|
||||
/** Get Updated.
|
||||
* Date this record was updated
|
||||
*/
|
||||
public Timestamp getUpdated();
|
||||
|
||||
/** Column name UpdatedBy */
|
||||
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||
|
||||
/** Get Updated By.
|
||||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
}
|
|
@ -1,172 +0,0 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for AD_DesktopWorkbench
|
||||
* @author iDempiere (generated)
|
||||
* @version Development 9.0
|
||||
*/
|
||||
public interface I_AD_DesktopWorkbench
|
||||
{
|
||||
|
||||
/** TableName=AD_DesktopWorkbench */
|
||||
public static final String Table_Name = "AD_DesktopWorkbench";
|
||||
|
||||
/** AD_Table_ID=459 */
|
||||
public static final int Table_ID = 459;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 4 - System
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(4);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_Desktop_ID */
|
||||
public static final String COLUMNNAME_AD_Desktop_ID = "AD_Desktop_ID";
|
||||
|
||||
/** Set Desktop.
|
||||
* Collection of Workbenches
|
||||
*/
|
||||
public void setAD_Desktop_ID (int AD_Desktop_ID);
|
||||
|
||||
/** Get Desktop.
|
||||
* Collection of Workbenches
|
||||
*/
|
||||
public int getAD_Desktop_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Desktop getAD_Desktop() throws RuntimeException;
|
||||
|
||||
/** Column name AD_DesktopWorkbench_ID */
|
||||
public static final String COLUMNNAME_AD_DesktopWorkbench_ID = "AD_DesktopWorkbench_ID";
|
||||
|
||||
/** Set Desktop Workbench */
|
||||
public void setAD_DesktopWorkbench_ID (int AD_DesktopWorkbench_ID);
|
||||
|
||||
/** Get Desktop Workbench */
|
||||
public int getAD_DesktopWorkbench_ID();
|
||||
|
||||
/** Column name AD_DesktopWorkbench_UU */
|
||||
public static final String COLUMNNAME_AD_DesktopWorkbench_UU = "AD_DesktopWorkbench_UU";
|
||||
|
||||
/** Set AD_DesktopWorkbench_UU */
|
||||
public void setAD_DesktopWorkbench_UU (String AD_DesktopWorkbench_UU);
|
||||
|
||||
/** Get AD_DesktopWorkbench_UU */
|
||||
public String getAD_DesktopWorkbench_UU();
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name AD_Workbench_ID */
|
||||
public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID";
|
||||
|
||||
/** Set Workbench.
|
||||
* Collection of windows, reports
|
||||
*/
|
||||
public void setAD_Workbench_ID (int AD_Workbench_ID);
|
||||
|
||||
/** Get Workbench.
|
||||
* Collection of windows, reports
|
||||
*/
|
||||
public int getAD_Workbench_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Workbench getAD_Workbench() throws RuntimeException;
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name SeqNo */
|
||||
public static final String COLUMNNAME_SeqNo = "SeqNo";
|
||||
|
||||
/** Set Sequence.
|
||||
* Method of ordering records;
|
||||
lowest number comes first
|
||||
*/
|
||||
public void setSeqNo (int SeqNo);
|
||||
|
||||
/** Get Sequence.
|
||||
* Method of ordering records;
|
||||
lowest number comes first
|
||||
*/
|
||||
public int getSeqNo();
|
||||
|
||||
/** Column name Updated */
|
||||
public static final String COLUMNNAME_Updated = "Updated";
|
||||
|
||||
/** Get Updated.
|
||||
* Date this record was updated
|
||||
*/
|
||||
public Timestamp getUpdated();
|
||||
|
||||
/** Column name UpdatedBy */
|
||||
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||
|
||||
/** Get Updated By.
|
||||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
}
|
|
@ -326,21 +326,6 @@ public interface I_AD_Package_Exp_Detail
|
|||
|
||||
public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Workbench_ID */
|
||||
public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID";
|
||||
|
||||
/** Set Workbench.
|
||||
* Collection of windows, reports
|
||||
*/
|
||||
public void setAD_Workbench_ID (int AD_Workbench_ID);
|
||||
|
||||
/** Get Workbench.
|
||||
* Collection of windows, reports
|
||||
*/
|
||||
public int getAD_Workbench_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Workbench getAD_Workbench() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Workflow_ID */
|
||||
public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID";
|
||||
|
||||
|
@ -520,10 +505,10 @@ public interface I_AD_Package_Exp_Detail
|
|||
/** Column name SQLStatement */
|
||||
public static final String COLUMNNAME_SQLStatement = "SQLStatement";
|
||||
|
||||
/** Set SQLStatement */
|
||||
/** Set SQL Expression/Statement */
|
||||
public void setSQLStatement (String SQLStatement);
|
||||
|
||||
/** Get SQLStatement */
|
||||
/** Get SQL Expression/Statement */
|
||||
public String getSQLStatement();
|
||||
|
||||
/** Column name Target_Directory */
|
||||
|
|
|
@ -1,226 +0,0 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for AD_Workbench
|
||||
* @author iDempiere (generated)
|
||||
* @version Development 9.0
|
||||
*/
|
||||
public interface I_AD_Workbench
|
||||
{
|
||||
|
||||
/** TableName=AD_Workbench */
|
||||
public static final String Table_Name = "AD_Workbench";
|
||||
|
||||
/** AD_Table_ID=468 */
|
||||
public static final int Table_ID = 468;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 4 - System
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(4);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_Color_ID */
|
||||
public static final String COLUMNNAME_AD_Color_ID = "AD_Color_ID";
|
||||
|
||||
/** Set System Color.
|
||||
* Color for backgrounds or indicators
|
||||
*/
|
||||
public void setAD_Color_ID (String AD_Color_ID);
|
||||
|
||||
/** Get System Color.
|
||||
* Color for backgrounds or indicators
|
||||
*/
|
||||
public String getAD_Color_ID();
|
||||
|
||||
/** Column name AD_Column_ID */
|
||||
public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID";
|
||||
|
||||
/** Set Column.
|
||||
* Column in the table
|
||||
*/
|
||||
public void setAD_Column_ID (int AD_Column_ID);
|
||||
|
||||
/** Get Column.
|
||||
* Column in the table
|
||||
*/
|
||||
public int getAD_Column_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Column getAD_Column() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Image_ID */
|
||||
public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID";
|
||||
|
||||
/** Set Image.
|
||||
* Image or Icon
|
||||
*/
|
||||
public void setAD_Image_ID (int AD_Image_ID);
|
||||
|
||||
/** Get Image.
|
||||
* Image or Icon
|
||||
*/
|
||||
public int getAD_Image_ID();
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name AD_Workbench_ID */
|
||||
public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID";
|
||||
|
||||
/** Set Workbench.
|
||||
* Collection of windows, reports
|
||||
*/
|
||||
public void setAD_Workbench_ID (int AD_Workbench_ID);
|
||||
|
||||
/** Get Workbench.
|
||||
* Collection of windows, reports
|
||||
*/
|
||||
public int getAD_Workbench_ID();
|
||||
|
||||
/** Column name AD_Workbench_UU */
|
||||
public static final String COLUMNNAME_AD_Workbench_UU = "AD_Workbench_UU";
|
||||
|
||||
/** Set AD_Workbench_UU */
|
||||
public void setAD_Workbench_UU (String AD_Workbench_UU);
|
||||
|
||||
/** Get AD_Workbench_UU */
|
||||
public String getAD_Workbench_UU();
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name Description */
|
||||
public static final String COLUMNNAME_Description = "Description";
|
||||
|
||||
/** Set Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description);
|
||||
|
||||
/** Get Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public String getDescription();
|
||||
|
||||
/** Column name EntityType */
|
||||
public static final String COLUMNNAME_EntityType = "EntityType";
|
||||
|
||||
/** Set Entity Type.
|
||||
* Dictionary Entity Type;
|
||||
Determines ownership and synchronization
|
||||
*/
|
||||
public void setEntityType (String EntityType);
|
||||
|
||||
/** Get Entity Type.
|
||||
* Dictionary Entity Type;
|
||||
Determines ownership and synchronization
|
||||
*/
|
||||
public String getEntityType();
|
||||
|
||||
/** Column name Help */
|
||||
public static final String COLUMNNAME_Help = "Help";
|
||||
|
||||
/** Set Comment/Help.
|
||||
* Comment or Hint
|
||||
*/
|
||||
public void setHelp (String Help);
|
||||
|
||||
/** Get Comment/Help.
|
||||
* Comment or Hint
|
||||
*/
|
||||
public String getHelp();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name Name */
|
||||
public static final String COLUMNNAME_Name = "Name";
|
||||
|
||||
/** Set Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name);
|
||||
|
||||
/** Get Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName();
|
||||
|
||||
/** Column name Updated */
|
||||
public static final String COLUMNNAME_Updated = "Updated";
|
||||
|
||||
/** Get Updated.
|
||||
* Date this record was updated
|
||||
*/
|
||||
public Timestamp getUpdated();
|
||||
|
||||
/** Column name UpdatedBy */
|
||||
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||
|
||||
/** Get Updated By.
|
||||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
}
|
|
@ -1,245 +0,0 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for AD_WorkbenchWindow
|
||||
* @author iDempiere (generated)
|
||||
* @version Development 9.0
|
||||
*/
|
||||
public interface I_AD_WorkbenchWindow
|
||||
{
|
||||
|
||||
/** TableName=AD_WorkbenchWindow */
|
||||
public static final String Table_Name = "AD_WorkbenchWindow";
|
||||
|
||||
/** AD_Table_ID=469 */
|
||||
public static final int Table_ID = 469;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 4 - System
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(4);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_Form_ID */
|
||||
public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID";
|
||||
|
||||
/** Set Special Form.
|
||||
* Special Form
|
||||
*/
|
||||
public void setAD_Form_ID (int AD_Form_ID);
|
||||
|
||||
/** Get Special Form.
|
||||
* Special Form
|
||||
*/
|
||||
public int getAD_Form_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Form getAD_Form() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name AD_Process_ID */
|
||||
public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID";
|
||||
|
||||
/** Set Process.
|
||||
* Process or Report
|
||||
*/
|
||||
public void setAD_Process_ID (int AD_Process_ID);
|
||||
|
||||
/** Get Process.
|
||||
* Process or Report
|
||||
*/
|
||||
public int getAD_Process_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Process getAD_Process() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Task_ID */
|
||||
public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID";
|
||||
|
||||
/** Set OS Task.
|
||||
* Operation System Task
|
||||
*/
|
||||
public void setAD_Task_ID (int AD_Task_ID);
|
||||
|
||||
/** Get OS Task.
|
||||
* Operation System Task
|
||||
*/
|
||||
public int getAD_Task_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Task getAD_Task() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Window_ID */
|
||||
public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID";
|
||||
|
||||
/** Set Window.
|
||||
* Data entry or display window
|
||||
*/
|
||||
public void setAD_Window_ID (int AD_Window_ID);
|
||||
|
||||
/** Get Window.
|
||||
* Data entry or display window
|
||||
*/
|
||||
public int getAD_Window_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Workbench_ID */
|
||||
public static final String COLUMNNAME_AD_Workbench_ID = "AD_Workbench_ID";
|
||||
|
||||
/** Set Workbench.
|
||||
* Collection of windows, reports
|
||||
*/
|
||||
public void setAD_Workbench_ID (int AD_Workbench_ID);
|
||||
|
||||
/** Get Workbench.
|
||||
* Collection of windows, reports
|
||||
*/
|
||||
public int getAD_Workbench_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Workbench getAD_Workbench() throws RuntimeException;
|
||||
|
||||
/** Column name AD_WorkbenchWindow_ID */
|
||||
public static final String COLUMNNAME_AD_WorkbenchWindow_ID = "AD_WorkbenchWindow_ID";
|
||||
|
||||
/** Set Workbench Window */
|
||||
public void setAD_WorkbenchWindow_ID (int AD_WorkbenchWindow_ID);
|
||||
|
||||
/** Get Workbench Window */
|
||||
public int getAD_WorkbenchWindow_ID();
|
||||
|
||||
/** Column name AD_WorkbenchWindow_UU */
|
||||
public static final String COLUMNNAME_AD_WorkbenchWindow_UU = "AD_WorkbenchWindow_UU";
|
||||
|
||||
/** Set AD_WorkbenchWindow_UU */
|
||||
public void setAD_WorkbenchWindow_UU (String AD_WorkbenchWindow_UU);
|
||||
|
||||
/** Get AD_WorkbenchWindow_UU */
|
||||
public String getAD_WorkbenchWindow_UU();
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name EntityType */
|
||||
public static final String COLUMNNAME_EntityType = "EntityType";
|
||||
|
||||
/** Set Entity Type.
|
||||
* Dictionary Entity Type;
|
||||
Determines ownership and synchronization
|
||||
*/
|
||||
public void setEntityType (String EntityType);
|
||||
|
||||
/** Get Entity Type.
|
||||
* Dictionary Entity Type;
|
||||
Determines ownership and synchronization
|
||||
*/
|
||||
public String getEntityType();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name IsPrimary */
|
||||
public static final String COLUMNNAME_IsPrimary = "IsPrimary";
|
||||
|
||||
/** Set Primary.
|
||||
* Indicates if this is the primary budget
|
||||
*/
|
||||
public void setIsPrimary (boolean IsPrimary);
|
||||
|
||||
/** Get Primary.
|
||||
* Indicates if this is the primary budget
|
||||
*/
|
||||
public boolean isPrimary();
|
||||
|
||||
/** Column name SeqNo */
|
||||
public static final String COLUMNNAME_SeqNo = "SeqNo";
|
||||
|
||||
/** Set Sequence.
|
||||
* Method of ordering records;
|
||||
lowest number comes first
|
||||
*/
|
||||
public void setSeqNo (int SeqNo);
|
||||
|
||||
/** Get Sequence.
|
||||
* Method of ordering records;
|
||||
lowest number comes first
|
||||
*/
|
||||
public int getSeqNo();
|
||||
|
||||
/** Column name Updated */
|
||||
public static final String COLUMNNAME_Updated = "Updated";
|
||||
|
||||
/** Get Updated.
|
||||
* Date this record was updated
|
||||
*/
|
||||
public Timestamp getUpdated();
|
||||
|
||||
/** Column name UpdatedBy */
|
||||
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||
|
||||
/** Get Updated By.
|
||||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
}
|
|
@ -1,265 +0,0 @@
|
|||
/******************************************************************************
|
||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
|
||||
|
||||
/**
|
||||
* Desktop Model
|
||||
*
|
||||
* @author Jorg Janke
|
||||
* @version $Id: MDesktop.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
|
||||
*/
|
||||
public class MDesktop
|
||||
{
|
||||
/**
|
||||
* Desktop Model
|
||||
* @param ctx context
|
||||
*/
|
||||
public MDesktop(Properties ctx)
|
||||
{
|
||||
m_ctx = ctx;
|
||||
} // MDesktop
|
||||
|
||||
/** Properties */
|
||||
private Properties m_ctx;
|
||||
|
||||
/** List of workbenches */
|
||||
private ArrayList<Integer> m_workbenches = new ArrayList<Integer>();
|
||||
|
||||
private int AD_Desktop_ID;
|
||||
private String Name;
|
||||
private String Description;
|
||||
private String Help;
|
||||
private int AD_Column_ID;
|
||||
private int AD_Image_ID;
|
||||
private int AD_Color_ID;
|
||||
private int PA_Goal_ID;
|
||||
|
||||
/** Logger */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
|
||||
/**
|
||||
* Init Desktop
|
||||
* @param ad_Desktop_ID desktop
|
||||
* @return true if initialized
|
||||
*/
|
||||
public boolean initDesktop (int ad_Desktop_ID)
|
||||
{
|
||||
AD_Desktop_ID = ad_Desktop_ID;
|
||||
// Get WB info
|
||||
StringBuilder sql = null;
|
||||
if (Env.isBaseLanguage(m_ctx, "AD_Desktop"))
|
||||
sql = new StringBuilder("SELECT Name,Description,Help,") // 1..3
|
||||
.append(" AD_Column_ID,AD_Image_ID,AD_Color_ID,PA_Goal_ID ") // 4..7
|
||||
.append("FROM AD_Desktop ")
|
||||
.append("WHERE AD_Desktop_ID=? AND IsActive='Y'");
|
||||
else
|
||||
sql = new StringBuilder("SELECT t.Name,t.Description,t.Help,")
|
||||
.append(" w.AD_Column_ID,w.AD_Image_ID,w.AD_Color_ID,w.PA_Goal_ID ")
|
||||
.append("FROM AD_Desktop w, AD_Desktop_Trl t ")
|
||||
.append("WHERE w.AD_Desktop_ID=? AND w.IsActive='Y'")
|
||||
.append(" AND w.AD_Desktop_ID=t.AD_Desktop_ID")
|
||||
.append(" AND t.AD_Language='").append(Env.getAD_Language(m_ctx)).append("'");
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
try
|
||||
{
|
||||
pstmt = DB.prepareStatement(sql.toString(), null);
|
||||
pstmt.setInt(1, AD_Desktop_ID);
|
||||
rs = pstmt.executeQuery();
|
||||
if (rs.next())
|
||||
{
|
||||
Name = rs.getString(1);
|
||||
Description = rs.getString(2);
|
||||
if (Description == null)
|
||||
Description = "";
|
||||
Help = rs.getString(3);
|
||||
if (Help == null)
|
||||
Help = "";
|
||||
//
|
||||
AD_Column_ID = rs.getInt(4);
|
||||
AD_Image_ID = rs.getInt(5);
|
||||
AD_Color_ID = rs.getInt(6);
|
||||
PA_Goal_ID = rs.getInt(7);
|
||||
}
|
||||
else
|
||||
AD_Desktop_ID = 0;
|
||||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, sql.toString(), e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
DB.close(rs, pstmt);
|
||||
rs = null;
|
||||
pstmt = null;
|
||||
}
|
||||
|
||||
if (AD_Desktop_ID == 0)
|
||||
return false;
|
||||
return initDesktopWorkbenches();
|
||||
} // initDesktop
|
||||
|
||||
/**
|
||||
* String Representation
|
||||
* @return info
|
||||
*/
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder msgreturn = new StringBuilder("MDesktop ID=").append(AD_Desktop_ID).append(" ").append(Name);
|
||||
return msgreturn.toString();
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* Get AD_Desktop_ID
|
||||
* @return desktop
|
||||
*/
|
||||
public int getAD_Desktop_ID()
|
||||
{
|
||||
return AD_Desktop_ID;
|
||||
}
|
||||
/**
|
||||
* Get Name
|
||||
* @return name
|
||||
*/
|
||||
public String getName()
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
/**
|
||||
* Get Description
|
||||
* @return description
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return Description;
|
||||
}
|
||||
/**
|
||||
* Get Help
|
||||
* @return help
|
||||
*/
|
||||
public String getHelp()
|
||||
{
|
||||
return Help;
|
||||
}
|
||||
/**
|
||||
* Get AD_Column_ID
|
||||
* @return column
|
||||
*/
|
||||
public int getAD_Column_ID()
|
||||
{
|
||||
return AD_Column_ID;
|
||||
}
|
||||
/**
|
||||
* Get AD_Image_ID
|
||||
* @return image
|
||||
*/
|
||||
public int getAD_Image_ID()
|
||||
{
|
||||
return AD_Image_ID;
|
||||
}
|
||||
/**
|
||||
* Get AD_Color_ID
|
||||
* @return color
|
||||
*/
|
||||
public int getAD_Color_ID()
|
||||
{
|
||||
return AD_Color_ID;
|
||||
}
|
||||
/**
|
||||
* Get PA_Goal_ID
|
||||
* @return goal
|
||||
*/
|
||||
public int getPA_Goal_ID()
|
||||
{
|
||||
return PA_Goal_ID;
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Init Workbench Windows
|
||||
* @return true if initilized
|
||||
*/
|
||||
private boolean initDesktopWorkbenches()
|
||||
{
|
||||
String sql = "SELECT AD_Workbench_ID "
|
||||
+ "FROM AD_DesktopWorkbench "
|
||||
+ "WHERE AD_Desktop_ID=? AND IsActive='Y' "
|
||||
+ "ORDER BY SeqNo";
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
try
|
||||
{
|
||||
pstmt = DB.prepareStatement(sql, null);
|
||||
pstmt.setInt(1, AD_Desktop_ID);
|
||||
rs = pstmt.executeQuery();
|
||||
while (rs.next())
|
||||
{
|
||||
int AD_Workbench_ID = rs.getInt(1);
|
||||
m_workbenches.add (Integer.valueOf(AD_Workbench_ID));
|
||||
}
|
||||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, "MWorkbench.initDesktopWorkbenches", e);
|
||||
return false;
|
||||
}
|
||||
finally
|
||||
{
|
||||
DB.close(rs, pstmt);
|
||||
rs = null;
|
||||
pstmt = null;
|
||||
}
|
||||
return true;
|
||||
} // initDesktopWorkbenches
|
||||
|
||||
/**
|
||||
* Get Window Count
|
||||
* @return no of windows
|
||||
*/
|
||||
public int getWindowCount()
|
||||
{
|
||||
return m_workbenches.size();
|
||||
} // getWindowCount
|
||||
|
||||
/**
|
||||
* Get AD_Workbench_ID of index
|
||||
* @param index index
|
||||
* @return -1 if not valid
|
||||
*/
|
||||
public int getAD_Workbench_ID (int index)
|
||||
{
|
||||
if (index < 0 || index > m_workbenches.size())
|
||||
return -1;
|
||||
Integer id = (Integer)m_workbenches.get(index);
|
||||
return id.intValue();
|
||||
} // getAD_Workbench_ID
|
||||
|
||||
} // MDesktop
|
|
@ -1,210 +0,0 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Model for AD_Desktop
|
||||
* @author iDempiere (generated)
|
||||
* @version Development 9.0 - $Id$ */
|
||||
@org.adempiere.base.Model(table="AD_Desktop")
|
||||
public class X_AD_Desktop extends PO implements I_AD_Desktop, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20210917L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_Desktop (Properties ctx, int AD_Desktop_ID, String trxName)
|
||||
{
|
||||
super (ctx, AD_Desktop_ID, trxName);
|
||||
/** if (AD_Desktop_ID == 0)
|
||||
{
|
||||
setAD_Desktop_ID (0);
|
||||
setName (null);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_AD_Desktop (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/** AccessLevel
|
||||
* @return 4 - System
|
||||
*/
|
||||
protected int get_AccessLevel()
|
||||
{
|
||||
return accessLevel.intValue();
|
||||
}
|
||||
|
||||
/** Load Meta Data */
|
||||
protected POInfo initPO (Properties ctx)
|
||||
{
|
||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
||||
return poi;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder sb = new StringBuilder ("X_AD_Desktop[")
|
||||
.append(get_ID()).append(",Name=").append(getName()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/** Set System Color.
|
||||
@param AD_Color_ID
|
||||
Color for backgrounds or indicators
|
||||
*/
|
||||
public void setAD_Color_ID (String AD_Color_ID)
|
||||
{
|
||||
set_Value (COLUMNNAME_AD_Color_ID, AD_Color_ID);
|
||||
}
|
||||
|
||||
/** Get System Color.
|
||||
@return Color for backgrounds or indicators
|
||||
*/
|
||||
public String getAD_Color_ID ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_AD_Color_ID);
|
||||
}
|
||||
|
||||
/** Set Desktop.
|
||||
@param AD_Desktop_ID
|
||||
Collection of Workbenches
|
||||
*/
|
||||
public void setAD_Desktop_ID (int AD_Desktop_ID)
|
||||
{
|
||||
if (AD_Desktop_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Desktop_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Desktop_ID, Integer.valueOf(AD_Desktop_ID));
|
||||
}
|
||||
|
||||
/** Get Desktop.
|
||||
@return Collection of Workbenches
|
||||
*/
|
||||
public int getAD_Desktop_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Desktop_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set AD_Desktop_UU.
|
||||
@param AD_Desktop_UU AD_Desktop_UU */
|
||||
public void setAD_Desktop_UU (String AD_Desktop_UU)
|
||||
{
|
||||
set_Value (COLUMNNAME_AD_Desktop_UU, AD_Desktop_UU);
|
||||
}
|
||||
|
||||
/** Get AD_Desktop_UU.
|
||||
@return AD_Desktop_UU */
|
||||
public String getAD_Desktop_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_AD_Desktop_UU);
|
||||
}
|
||||
|
||||
/** Set Image.
|
||||
@param AD_Image_ID
|
||||
Image or Icon
|
||||
*/
|
||||
public void setAD_Image_ID (int AD_Image_ID)
|
||||
{
|
||||
if (AD_Image_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Image_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID));
|
||||
}
|
||||
|
||||
/** Get Image.
|
||||
@return Image or Icon
|
||||
*/
|
||||
public int getAD_Image_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Image_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Description.
|
||||
@param Description
|
||||
Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description)
|
||||
{
|
||||
set_Value (COLUMNNAME_Description, Description);
|
||||
}
|
||||
|
||||
/** Get Description.
|
||||
@return Optional short description of the record
|
||||
*/
|
||||
public String getDescription ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Description);
|
||||
}
|
||||
|
||||
/** Set Comment/Help.
|
||||
@param Help
|
||||
Comment or Hint
|
||||
*/
|
||||
public void setHelp (String Help)
|
||||
{
|
||||
set_Value (COLUMNNAME_Help, Help);
|
||||
}
|
||||
|
||||
/** Get Comment/Help.
|
||||
@return Comment or Hint
|
||||
*/
|
||||
public String getHelp ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Help);
|
||||
}
|
||||
|
||||
/** Set Name.
|
||||
@param Name
|
||||
Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name)
|
||||
{
|
||||
set_Value (COLUMNNAME_Name, Name);
|
||||
}
|
||||
|
||||
/** Get Name.
|
||||
@return Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Name);
|
||||
}
|
||||
|
||||
/** Get Record ID/ColumnName
|
||||
@return ID/ColumnName pair
|
||||
*/
|
||||
public KeyNamePair getKeyNamePair()
|
||||
{
|
||||
return new KeyNamePair(get_ID(), getName());
|
||||
}
|
||||
}
|
|
@ -1,196 +0,0 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Model for AD_DesktopWorkbench
|
||||
* @author iDempiere (generated)
|
||||
* @version Development 9.0 - $Id$ */
|
||||
@org.adempiere.base.Model(table="AD_DesktopWorkbench")
|
||||
public class X_AD_DesktopWorkbench extends PO implements I_AD_DesktopWorkbench, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20210917L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_DesktopWorkbench (Properties ctx, int AD_DesktopWorkbench_ID, String trxName)
|
||||
{
|
||||
super (ctx, AD_DesktopWorkbench_ID, trxName);
|
||||
/** if (AD_DesktopWorkbench_ID == 0)
|
||||
{
|
||||
setAD_Desktop_ID (0);
|
||||
setAD_DesktopWorkbench_ID (0);
|
||||
setAD_Workbench_ID (0);
|
||||
setSeqNo (0);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_AD_DesktopWorkbench (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/** AccessLevel
|
||||
* @return 4 - System
|
||||
*/
|
||||
protected int get_AccessLevel()
|
||||
{
|
||||
return accessLevel.intValue();
|
||||
}
|
||||
|
||||
/** Load Meta Data */
|
||||
protected POInfo initPO (Properties ctx)
|
||||
{
|
||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
||||
return poi;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder sb = new StringBuilder ("X_AD_DesktopWorkbench[")
|
||||
.append(get_ID()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Desktop getAD_Desktop() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Desktop)MTable.get(getCtx(), org.compiere.model.I_AD_Desktop.Table_ID)
|
||||
.getPO(getAD_Desktop_ID(), get_TrxName());
|
||||
}
|
||||
|
||||
/** Set Desktop.
|
||||
@param AD_Desktop_ID
|
||||
Collection of Workbenches
|
||||
*/
|
||||
public void setAD_Desktop_ID (int AD_Desktop_ID)
|
||||
{
|
||||
if (AD_Desktop_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Desktop_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Desktop_ID, Integer.valueOf(AD_Desktop_ID));
|
||||
}
|
||||
|
||||
/** Get Desktop.
|
||||
@return Collection of Workbenches
|
||||
*/
|
||||
public int getAD_Desktop_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Desktop_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Desktop Workbench.
|
||||
@param AD_DesktopWorkbench_ID Desktop Workbench */
|
||||
public void setAD_DesktopWorkbench_ID (int AD_DesktopWorkbench_ID)
|
||||
{
|
||||
if (AD_DesktopWorkbench_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_DesktopWorkbench_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_DesktopWorkbench_ID, Integer.valueOf(AD_DesktopWorkbench_ID));
|
||||
}
|
||||
|
||||
/** Get Desktop Workbench.
|
||||
@return Desktop Workbench */
|
||||
public int getAD_DesktopWorkbench_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_DesktopWorkbench_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set AD_DesktopWorkbench_UU.
|
||||
@param AD_DesktopWorkbench_UU AD_DesktopWorkbench_UU */
|
||||
public void setAD_DesktopWorkbench_UU (String AD_DesktopWorkbench_UU)
|
||||
{
|
||||
set_Value (COLUMNNAME_AD_DesktopWorkbench_UU, AD_DesktopWorkbench_UU);
|
||||
}
|
||||
|
||||
/** Get AD_DesktopWorkbench_UU.
|
||||
@return AD_DesktopWorkbench_UU */
|
||||
public String getAD_DesktopWorkbench_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_AD_DesktopWorkbench_UU);
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Workbench getAD_Workbench() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Workbench)MTable.get(getCtx(), org.compiere.model.I_AD_Workbench.Table_ID)
|
||||
.getPO(getAD_Workbench_ID(), get_TrxName());
|
||||
}
|
||||
|
||||
/** Set Workbench.
|
||||
@param AD_Workbench_ID
|
||||
Collection of windows, reports
|
||||
*/
|
||||
public void setAD_Workbench_ID (int AD_Workbench_ID)
|
||||
{
|
||||
if (AD_Workbench_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Workbench_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID));
|
||||
}
|
||||
|
||||
/** Get Workbench.
|
||||
@return Collection of windows, reports
|
||||
*/
|
||||
public int getAD_Workbench_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workbench_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Get Record ID/ColumnName
|
||||
@return ID/ColumnName pair
|
||||
*/
|
||||
public KeyNamePair getKeyNamePair()
|
||||
{
|
||||
return new KeyNamePair(get_ID(), String.valueOf(getAD_Workbench_ID()));
|
||||
}
|
||||
|
||||
/** Set Sequence.
|
||||
@param SeqNo
|
||||
Method of ordering records; lowest number comes first
|
||||
*/
|
||||
public void setSeqNo (int SeqNo)
|
||||
{
|
||||
set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo));
|
||||
}
|
||||
|
||||
/** Get Sequence.
|
||||
@return Method of ordering records; lowest number comes first
|
||||
*/
|
||||
public int getSeqNo ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
}
|
|
@ -31,7 +31,7 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20210923L;
|
||||
private static final long serialVersionUID = 20211216L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_Package_Exp_Detail (Properties ctx, int AD_Package_Exp_Detail_ID, String trxName)
|
||||
|
@ -599,35 +599,6 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Workbench getAD_Workbench() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Workbench)MTable.get(getCtx(), org.compiere.model.I_AD_Workbench.Table_ID)
|
||||
.getPO(getAD_Workbench_ID(), get_TrxName());
|
||||
}
|
||||
|
||||
/** Set Workbench.
|
||||
@param AD_Workbench_ID
|
||||
Collection of windows, reports
|
||||
*/
|
||||
public void setAD_Workbench_ID (int AD_Workbench_ID)
|
||||
{
|
||||
if (AD_Workbench_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Workbench_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID));
|
||||
}
|
||||
|
||||
/** Get Workbench.
|
||||
@return Collection of windows, reports
|
||||
*/
|
||||
public int getAD_Workbench_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workbench_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Workflow getAD_Workflow() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Workflow)MTable.get(getCtx(), org.compiere.model.I_AD_Workflow.Table_ID)
|
||||
|
@ -904,15 +875,15 @@ public class X_AD_Package_Exp_Detail extends PO implements I_AD_Package_Exp_Deta
|
|||
return (String)get_Value(COLUMNNAME_ReleaseNo);
|
||||
}
|
||||
|
||||
/** Set SQLStatement.
|
||||
@param SQLStatement SQLStatement */
|
||||
/** Set SQL Expression/Statement.
|
||||
@param SQLStatement SQL Expression/Statement */
|
||||
public void setSQLStatement (String SQLStatement)
|
||||
{
|
||||
set_Value (COLUMNNAME_SQLStatement, SQLStatement);
|
||||
}
|
||||
|
||||
/** Get SQLStatement.
|
||||
@return SQLStatement */
|
||||
/** Get SQL Expression/Statement.
|
||||
@return SQL Expression/Statement */
|
||||
public String getSQLStatement ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_SQLStatement);
|
||||
|
|
|
@ -1,262 +0,0 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Model for AD_Workbench
|
||||
* @author iDempiere (generated)
|
||||
* @version Development 9.0 - $Id$ */
|
||||
@org.adempiere.base.Model(table="AD_Workbench")
|
||||
public class X_AD_Workbench extends PO implements I_AD_Workbench, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20210917L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_Workbench (Properties ctx, int AD_Workbench_ID, String trxName)
|
||||
{
|
||||
super (ctx, AD_Workbench_ID, trxName);
|
||||
/** if (AD_Workbench_ID == 0)
|
||||
{
|
||||
setAD_Column_ID (0);
|
||||
setAD_Workbench_ID (0);
|
||||
setEntityType (null);
|
||||
// @SQL=SELECT CASE WHEN '@P|AdempiereSys:N@'='Y' THEN 'D' ELSE get_sysconfig('DEFAULT_ENTITYTYPE','U',0,0) END FROM Dual
|
||||
setName (null);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_AD_Workbench (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/** AccessLevel
|
||||
* @return 4 - System
|
||||
*/
|
||||
protected int get_AccessLevel()
|
||||
{
|
||||
return accessLevel.intValue();
|
||||
}
|
||||
|
||||
/** Load Meta Data */
|
||||
protected POInfo initPO (Properties ctx)
|
||||
{
|
||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
||||
return poi;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder sb = new StringBuilder ("X_AD_Workbench[")
|
||||
.append(get_ID()).append(",Name=").append(getName()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/** Set System Color.
|
||||
@param AD_Color_ID
|
||||
Color for backgrounds or indicators
|
||||
*/
|
||||
public void setAD_Color_ID (String AD_Color_ID)
|
||||
{
|
||||
set_Value (COLUMNNAME_AD_Color_ID, AD_Color_ID);
|
||||
}
|
||||
|
||||
/** Get System Color.
|
||||
@return Color for backgrounds or indicators
|
||||
*/
|
||||
public String getAD_Color_ID ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_AD_Color_ID);
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Column getAD_Column() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Column)MTable.get(getCtx(), org.compiere.model.I_AD_Column.Table_ID)
|
||||
.getPO(getAD_Column_ID(), get_TrxName());
|
||||
}
|
||||
|
||||
/** Set Column.
|
||||
@param AD_Column_ID
|
||||
Column in the table
|
||||
*/
|
||||
public void setAD_Column_ID (int AD_Column_ID)
|
||||
{
|
||||
if (AD_Column_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Column_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID));
|
||||
}
|
||||
|
||||
/** Get Column.
|
||||
@return Column in the table
|
||||
*/
|
||||
public int getAD_Column_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Image.
|
||||
@param AD_Image_ID
|
||||
Image or Icon
|
||||
*/
|
||||
public void setAD_Image_ID (int AD_Image_ID)
|
||||
{
|
||||
if (AD_Image_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Image_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID));
|
||||
}
|
||||
|
||||
/** Get Image.
|
||||
@return Image or Icon
|
||||
*/
|
||||
public int getAD_Image_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Image_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Workbench.
|
||||
@param AD_Workbench_ID
|
||||
Collection of windows, reports
|
||||
*/
|
||||
public void setAD_Workbench_ID (int AD_Workbench_ID)
|
||||
{
|
||||
if (AD_Workbench_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Workbench_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID));
|
||||
}
|
||||
|
||||
/** Get Workbench.
|
||||
@return Collection of windows, reports
|
||||
*/
|
||||
public int getAD_Workbench_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workbench_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set AD_Workbench_UU.
|
||||
@param AD_Workbench_UU AD_Workbench_UU */
|
||||
public void setAD_Workbench_UU (String AD_Workbench_UU)
|
||||
{
|
||||
set_Value (COLUMNNAME_AD_Workbench_UU, AD_Workbench_UU);
|
||||
}
|
||||
|
||||
/** Get AD_Workbench_UU.
|
||||
@return AD_Workbench_UU */
|
||||
public String getAD_Workbench_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_AD_Workbench_UU);
|
||||
}
|
||||
|
||||
/** Set Description.
|
||||
@param Description
|
||||
Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description)
|
||||
{
|
||||
set_Value (COLUMNNAME_Description, Description);
|
||||
}
|
||||
|
||||
/** Get Description.
|
||||
@return Optional short description of the record
|
||||
*/
|
||||
public String getDescription ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Description);
|
||||
}
|
||||
|
||||
/** EntityType AD_Reference_ID=389 */
|
||||
public static final int ENTITYTYPE_AD_Reference_ID=389;
|
||||
/** Set Entity Type.
|
||||
@param EntityType
|
||||
Dictionary Entity Type; Determines ownership and synchronization
|
||||
*/
|
||||
public void setEntityType (String EntityType)
|
||||
{
|
||||
|
||||
set_Value (COLUMNNAME_EntityType, EntityType);
|
||||
}
|
||||
|
||||
/** Get Entity Type.
|
||||
@return Dictionary Entity Type; Determines ownership and synchronization
|
||||
*/
|
||||
public String getEntityType ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_EntityType);
|
||||
}
|
||||
|
||||
/** Set Comment/Help.
|
||||
@param Help
|
||||
Comment or Hint
|
||||
*/
|
||||
public void setHelp (String Help)
|
||||
{
|
||||
set_Value (COLUMNNAME_Help, Help);
|
||||
}
|
||||
|
||||
/** Get Comment/Help.
|
||||
@return Comment or Hint
|
||||
*/
|
||||
public String getHelp ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Help);
|
||||
}
|
||||
|
||||
/** Set Name.
|
||||
@param Name
|
||||
Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name)
|
||||
{
|
||||
set_Value (COLUMNNAME_Name, Name);
|
||||
}
|
||||
|
||||
/** Get Name.
|
||||
@return Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Name);
|
||||
}
|
||||
|
||||
/** Get Record ID/ColumnName
|
||||
@return ID/ColumnName pair
|
||||
*/
|
||||
public KeyNamePair getKeyNamePair()
|
||||
{
|
||||
return new KeyNamePair(get_ID(), getName());
|
||||
}
|
||||
}
|
|
@ -1,329 +0,0 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Model for AD_WorkbenchWindow
|
||||
* @author iDempiere (generated)
|
||||
* @version Development 9.0 - $Id$ */
|
||||
@org.adempiere.base.Model(table="AD_WorkbenchWindow")
|
||||
public class X_AD_WorkbenchWindow extends PO implements I_AD_WorkbenchWindow, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20210917L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_WorkbenchWindow (Properties ctx, int AD_WorkbenchWindow_ID, String trxName)
|
||||
{
|
||||
super (ctx, AD_WorkbenchWindow_ID, trxName);
|
||||
/** if (AD_WorkbenchWindow_ID == 0)
|
||||
{
|
||||
setAD_Workbench_ID (0);
|
||||
setAD_WorkbenchWindow_ID (0);
|
||||
setEntityType (null);
|
||||
// @SQL=SELECT CASE WHEN '@P|AdempiereSys:N@'='Y' THEN 'D' ELSE get_sysconfig('DEFAULT_ENTITYTYPE','U',0,0) END FROM Dual
|
||||
setIsPrimary (false);
|
||||
setSeqNo (0);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_AD_WorkbenchWindow (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/** AccessLevel
|
||||
* @return 4 - System
|
||||
*/
|
||||
protected int get_AccessLevel()
|
||||
{
|
||||
return accessLevel.intValue();
|
||||
}
|
||||
|
||||
/** Load Meta Data */
|
||||
protected POInfo initPO (Properties ctx)
|
||||
{
|
||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
||||
return poi;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder sb = new StringBuilder ("X_AD_WorkbenchWindow[")
|
||||
.append(get_ID()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Form getAD_Form() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Form)MTable.get(getCtx(), org.compiere.model.I_AD_Form.Table_ID)
|
||||
.getPO(getAD_Form_ID(), get_TrxName());
|
||||
}
|
||||
|
||||
/** Set Special Form.
|
||||
@param AD_Form_ID
|
||||
Special Form
|
||||
*/
|
||||
public void setAD_Form_ID (int AD_Form_ID)
|
||||
{
|
||||
if (AD_Form_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Form_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID));
|
||||
}
|
||||
|
||||
/** Get Special Form.
|
||||
@return Special Form
|
||||
*/
|
||||
public int getAD_Form_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Form_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Process getAD_Process() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Process)MTable.get(getCtx(), org.compiere.model.I_AD_Process.Table_ID)
|
||||
.getPO(getAD_Process_ID(), get_TrxName());
|
||||
}
|
||||
|
||||
/** Set Process.
|
||||
@param AD_Process_ID
|
||||
Process or Report
|
||||
*/
|
||||
public void setAD_Process_ID (int AD_Process_ID)
|
||||
{
|
||||
if (AD_Process_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Process_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID));
|
||||
}
|
||||
|
||||
/** Get Process.
|
||||
@return Process or Report
|
||||
*/
|
||||
public int getAD_Process_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Task getAD_Task() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Task)MTable.get(getCtx(), org.compiere.model.I_AD_Task.Table_ID)
|
||||
.getPO(getAD_Task_ID(), get_TrxName());
|
||||
}
|
||||
|
||||
/** Set OS Task.
|
||||
@param AD_Task_ID
|
||||
Operation System Task
|
||||
*/
|
||||
public void setAD_Task_ID (int AD_Task_ID)
|
||||
{
|
||||
if (AD_Task_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Task_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID));
|
||||
}
|
||||
|
||||
/** Get OS Task.
|
||||
@return Operation System Task
|
||||
*/
|
||||
public int getAD_Task_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Task_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Window)MTable.get(getCtx(), org.compiere.model.I_AD_Window.Table_ID)
|
||||
.getPO(getAD_Window_ID(), get_TrxName());
|
||||
}
|
||||
|
||||
/** Set Window.
|
||||
@param AD_Window_ID
|
||||
Data entry or display window
|
||||
*/
|
||||
public void setAD_Window_ID (int AD_Window_ID)
|
||||
{
|
||||
if (AD_Window_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Window_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID));
|
||||
}
|
||||
|
||||
/** Get Window.
|
||||
@return Data entry or display window
|
||||
*/
|
||||
public int getAD_Window_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Workbench getAD_Workbench() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Workbench)MTable.get(getCtx(), org.compiere.model.I_AD_Workbench.Table_ID)
|
||||
.getPO(getAD_Workbench_ID(), get_TrxName());
|
||||
}
|
||||
|
||||
/** Set Workbench.
|
||||
@param AD_Workbench_ID
|
||||
Collection of windows, reports
|
||||
*/
|
||||
public void setAD_Workbench_ID (int AD_Workbench_ID)
|
||||
{
|
||||
if (AD_Workbench_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Workbench_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Workbench_ID, Integer.valueOf(AD_Workbench_ID));
|
||||
}
|
||||
|
||||
/** Get Workbench.
|
||||
@return Collection of windows, reports
|
||||
*/
|
||||
public int getAD_Workbench_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workbench_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Workbench Window.
|
||||
@param AD_WorkbenchWindow_ID Workbench Window */
|
||||
public void setAD_WorkbenchWindow_ID (int AD_WorkbenchWindow_ID)
|
||||
{
|
||||
if (AD_WorkbenchWindow_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_WorkbenchWindow_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_WorkbenchWindow_ID, Integer.valueOf(AD_WorkbenchWindow_ID));
|
||||
}
|
||||
|
||||
/** Get Workbench Window.
|
||||
@return Workbench Window */
|
||||
public int getAD_WorkbenchWindow_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_WorkbenchWindow_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Get Record ID/ColumnName
|
||||
@return ID/ColumnName pair
|
||||
*/
|
||||
public KeyNamePair getKeyNamePair()
|
||||
{
|
||||
return new KeyNamePair(get_ID(), String.valueOf(getAD_WorkbenchWindow_ID()));
|
||||
}
|
||||
|
||||
/** Set AD_WorkbenchWindow_UU.
|
||||
@param AD_WorkbenchWindow_UU AD_WorkbenchWindow_UU */
|
||||
public void setAD_WorkbenchWindow_UU (String AD_WorkbenchWindow_UU)
|
||||
{
|
||||
set_Value (COLUMNNAME_AD_WorkbenchWindow_UU, AD_WorkbenchWindow_UU);
|
||||
}
|
||||
|
||||
/** Get AD_WorkbenchWindow_UU.
|
||||
@return AD_WorkbenchWindow_UU */
|
||||
public String getAD_WorkbenchWindow_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_AD_WorkbenchWindow_UU);
|
||||
}
|
||||
|
||||
/** EntityType AD_Reference_ID=389 */
|
||||
public static final int ENTITYTYPE_AD_Reference_ID=389;
|
||||
/** Set Entity Type.
|
||||
@param EntityType
|
||||
Dictionary Entity Type; Determines ownership and synchronization
|
||||
*/
|
||||
public void setEntityType (String EntityType)
|
||||
{
|
||||
|
||||
set_Value (COLUMNNAME_EntityType, EntityType);
|
||||
}
|
||||
|
||||
/** Get Entity Type.
|
||||
@return Dictionary Entity Type; Determines ownership and synchronization
|
||||
*/
|
||||
public String getEntityType ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_EntityType);
|
||||
}
|
||||
|
||||
/** Set Primary.
|
||||
@param IsPrimary
|
||||
Indicates if this is the primary budget
|
||||
*/
|
||||
public void setIsPrimary (boolean IsPrimary)
|
||||
{
|
||||
set_Value (COLUMNNAME_IsPrimary, Boolean.valueOf(IsPrimary));
|
||||
}
|
||||
|
||||
/** Get Primary.
|
||||
@return Indicates if this is the primary budget
|
||||
*/
|
||||
public boolean isPrimary ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_IsPrimary);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Set Sequence.
|
||||
@param SeqNo
|
||||
Method of ordering records; lowest number comes first
|
||||
*/
|
||||
public void setSeqNo (int SeqNo)
|
||||
{
|
||||
set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo));
|
||||
}
|
||||
|
||||
/** Get Sequence.
|
||||
@return Method of ordering records; lowest number comes first
|
||||
*/
|
||||
public int getSeqNo ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue