Implement FR [ 1846929 ] SaaS (ASP) (On-Demand) configurator

This commit is contained in:
Carlos Ruiz 2008-01-10 05:19:55 +00:00
parent 3d3d7796d8
commit 6140877e5f
41 changed files with 9017 additions and 29 deletions

View File

@ -0,0 +1,113 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Carlos Ruiz - globalqss *
* Copyright (C) Contributors *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation; either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Carlos Ruiz - globalqss *
* *
* Sponsors: *
* - Company (http://www.globalqss.com) *
***********************************************************************/
package org.adempiere.process;
import java.util.*;
import java.util.logging.*;
import org.compiere.model.*;
import org.compiere.process.ProcessInfoParameter;
import org.compiere.process.SvrProcess;
import org.compiere.util.DB;
import org.compiere.wf.MWFNode;
import org.compiere.wf.MWorkflow;
/**
* Generate ASP fields for a window
*
* @author Carlos Ruiz
*/
public class ASPGenerateFields extends SvrProcess
{
private String p_ASP_Status;
private int p_ASP_Level_ID;
private int noFields = 0;
private int p_AD_Tab_ID;
/**
* Prepare
*/
protected void prepare ()
{
ProcessInfoParameter[] para = getParameter();
for (int i = 0; i < para.length; i++)
{
String name = para[i].getParameterName();
if (para[i].getParameter() == null)
;
else if (name.equals("ASP_Status"))
p_ASP_Status = (String) para[i].getParameter();
else if (name.equals("ASP_Level_ID"))
p_ASP_Level_ID = para[i].getParameterAsInt();
else if (name.equals("AD_Tab_ID"))
p_AD_Tab_ID = para[i].getParameterAsInt();
else
log.log(Level.SEVERE, "Unknown Parameter: " + name);
}
} // prepare
/**
* Process
* @return info
* @throws Exception
*/
protected String doIt () throws Exception
{
log.info("ASP_Status=" + p_ASP_Status
+ ", ASP_Level_ID=" + p_ASP_Level_ID
+ ", AD_Tab_ID=" + p_AD_Tab_ID
);
// tabs
MTab tab = new MTab(getCtx(), p_AD_Tab_ID, get_TrxName());
// fields
MField[] fields = tab.getFields(true, get_TrxName());
for (int ifi = 0; ifi < fields.length; ifi++) {
if (DB.getSQLValue(
get_TrxName(),
"SELECT COUNT(*) FROM ASP_Field WHERE ASP_Level_ID = ? AND AD_Field_ID = ?",
p_ASP_Level_ID, fields[ifi].getAD_Field_ID()) < 1) {
X_ASP_Field aspField = new X_ASP_Field(getCtx(), 0, get_TrxName());
aspField.setASP_Level_ID(p_ASP_Level_ID);
aspField.setAD_Tab_ID(fields[ifi].getAD_Tab_ID());
aspField.setAD_Field_ID(fields[ifi].getAD_Field_ID());
aspField.setASP_Status(p_ASP_Status);
if (aspField.save())
noFields++;
}
}
if (noFields > 0)
addLog("Field " + noFields);
return "@OK@";
} // doIt
} // ASPGenerateFields

View File

@ -0,0 +1,267 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Carlos Ruiz - globalqss *
* Copyright (C) Contributors *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation; either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Carlos Ruiz - globalqss *
* *
* Sponsors: *
* - Company (http://www.globalqss.com) *
***********************************************************************/
package org.adempiere.process;
import java.util.*;
import java.util.logging.*;
import org.compiere.model.*;
import org.compiere.process.ProcessInfoParameter;
import org.compiere.process.SvrProcess;
import org.compiere.util.DB;
import org.compiere.wf.MWFNode;
import org.compiere.wf.MWorkflow;
/**
* Generate ASP entries for a level
*
* @author Carlos Ruiz
*/
public class ASPGenerateLevel extends SvrProcess
{
private String p_ASP_Status;
private int p_AD_Menu_ID;
private boolean p_IsGenerateFields;
private int p_ASP_Level_ID;
private int noWindows = 0;
private int noTabs = 0;
private int noFields = 0;
private int noProcesses = 0;
private int noParameters = 0;
private int noForms = 0;
private int noTasks = 0;
private int noWorkflows = 0;
/**
* Prepare
*/
protected void prepare ()
{
ProcessInfoParameter[] para = getParameter();
for (int i = 0; i < para.length; i++)
{
String name = para[i].getParameterName();
if (para[i].getParameter() == null)
;
else if (name.equals("ASP_Status"))
p_ASP_Status = (String) para[i].getParameter();
else if (name.equals("AD_Menu_ID"))
p_AD_Menu_ID = para[i].getParameterAsInt();
else if (name.equals("IsGenerateFields"))
p_IsGenerateFields = para[i].getParameter().equals("Y");
else
log.log(Level.SEVERE, "Unknown Parameter: " + name);
}
p_ASP_Level_ID = getRecord_ID();
} // prepare
/**
* Process
* @return info
* @throws Exception
*/
protected String doIt () throws Exception
{
log.info("ASP_Status=" + p_ASP_Status
+ ", AD_Menu_ID=" + p_AD_Menu_ID
+ ", IsGenerateFields=" + p_IsGenerateFields
);
MClientInfo clientInfo = MClientInfo.get(getCtx(), getAD_Client_ID(), get_TrxName());
int AD_Tree_ID = clientInfo.getAD_Tree_Menu_ID();
MTree thisTree = new MTree (getCtx(), AD_Tree_ID, true, true, true, get_TrxName());
MTreeNode node;
if (p_AD_Menu_ID > 0)
node = thisTree.getRoot().findNode(p_AD_Menu_ID);
else
node = thisTree.getRoot();
// Navigate the menu and add every non-summary node
if (node != null && node.isSummary())
{
Enumeration en = node.preorderEnumeration();
while (en.hasMoreElements())
{
MTreeNode nn = (MTreeNode)en.nextElement();
if (!nn.isSummary())
addNodeToLevel(nn);
}
}
if (noWindows > 0)
addLog("Window " + noWindows);
if (noTabs > 0)
addLog("Tab " + noTabs);
if (noFields > 0)
addLog("Field " + noFields);
if (noProcesses > 0)
addLog("Process " + noProcesses);
if (noParameters > 0)
addLog("Process Parameter " + noParameters);
if (noForms > 0)
addLog("Form " + noForms);
if (noTasks > 0)
addLog("Task " + noTasks);
if (noWorkflows > 0)
addLog("Workflow " + noWorkflows);
return "@OK@";
} // doIt
private void addNodeToLevel(MTreeNode nn) {
// Add Menu
MMenu menu = new MMenu(getCtx(), nn.getNode_ID(), get_TrxName());
if (menu.getAction().equals(MMenu.ACTION_Window)) {
MWindow window = new MWindow(getCtx(), menu.getAD_Window_ID(), get_TrxName());
if (DB.getSQLValue(
get_TrxName(),
"SELECT COUNT(*) FROM ASP_Window WHERE ASP_Level_ID = ? AND AD_Window_ID = ?",
p_ASP_Level_ID, window.getAD_Window_ID()) < 1) {
// Add Window, Tabs and Fields (if IsGenerateFields)
X_ASP_Window aspWindow = new X_ASP_Window(getCtx(), 0, get_TrxName());
aspWindow.setASP_Level_ID(p_ASP_Level_ID);
aspWindow.setAD_Window_ID(window.getAD_Window_ID());
aspWindow.setASP_Status(p_ASP_Status);
if (aspWindow.save())
noWindows++;
}
// tabs
MTab[] tabs = window.getTabs(true, get_TrxName());
for (int it = 0; it < tabs.length; it++) {
if (DB.getSQLValue(
get_TrxName(),
"SELECT COUNT(*) FROM ASP_Tab WHERE ASP_Level_ID = ? AND AD_Tab_ID = ?",
p_ASP_Level_ID, tabs[it].getAD_Tab_ID()) < 1) {
X_ASP_Tab aspTab = new X_ASP_Tab(getCtx(), 0, get_TrxName());
aspTab.setASP_Level_ID(p_ASP_Level_ID);
aspTab.setAD_Window_ID(tabs[it].getAD_Window_ID());
aspTab.setAD_Tab_ID(tabs[it].getAD_Tab_ID());
aspTab.setASP_Status(p_ASP_Status);
aspTab.setAllFields(! p_IsGenerateFields);
if (aspTab.save())
noTabs++;
if (p_IsGenerateFields) {
// fields
MField[] fields = tabs[it].getFields(true, get_TrxName());
for (int ifi = 0; ifi < fields.length; ifi++) {
if (DB.getSQLValue(
get_TrxName(),
"SELECT COUNT(*) FROM ASP_Field WHERE ASP_Level_ID = ? AND AD_Field_ID = ?",
p_ASP_Level_ID, fields[ifi].getAD_Field_ID()) < 1) {
X_ASP_Field aspField = new X_ASP_Field(getCtx(), 0, get_TrxName());
aspField.setASP_Level_ID(p_ASP_Level_ID);
aspField.setAD_Tab_ID(fields[ifi].getAD_Tab_ID());
aspField.setAD_Field_ID(fields[ifi].getAD_Field_ID());
aspField.setASP_Status(p_ASP_Status);
if (aspField.save())
noFields++;
}
}
}
}
}
} else if (menu.getAction().equals(MMenu.ACTION_Process)
|| menu.getAction().equals(MMenu.ACTION_Report)) {
// Add Process and Parameters
MProcess process = new MProcess(getCtx(), menu.getAD_Process_ID(), get_TrxName());
if (DB.getSQLValue(
get_TrxName(),
"SELECT COUNT(*) FROM ASP_Process WHERE ASP_Level_ID = ? AND AD_Process_ID = ?",
p_ASP_Level_ID, process.getAD_Process_ID()) < 1) {
X_ASP_Process aspProcess = new X_ASP_Process(getCtx(), 0, get_TrxName());
aspProcess.setASP_Level_ID(p_ASP_Level_ID);
aspProcess.setAD_Process_ID(process.getAD_Process_ID());
aspProcess.setASP_Status(p_ASP_Status);
if (aspProcess.save())
noProcesses++;
}
// parameters
MProcessPara[] processparas = process.getParameters();
for (int ipp = 0; ipp < processparas.length; ipp++) {
if (DB.getSQLValue(
get_TrxName(),
"SELECT COUNT(*) FROM ASP_Process_Para WHERE ASP_Level_ID = ? AND AD_Process_Para_ID = ?",
p_ASP_Level_ID, processparas[ipp].getAD_Process_Para_ID()) < 1) {
X_ASP_Process_Para aspProcess_Para = new X_ASP_Process_Para(getCtx(), 0, get_TrxName());
aspProcess_Para.setASP_Level_ID(p_ASP_Level_ID);
aspProcess_Para.setAD_Process_ID(processparas[ipp].getAD_Process_ID());
aspProcess_Para.setAD_Process_Para_ID(processparas[ipp].getAD_Process_Para_ID());
aspProcess_Para.setASP_Status(p_ASP_Status);
if (aspProcess_Para.save())
noParameters++;
}
}
} else if (menu.getAction().equals(MMenu.ACTION_Form)) {
// Add Form
MForm form = new MForm(getCtx(), menu.getAD_Form_ID(), get_TrxName());
if (DB.getSQLValue(
get_TrxName(),
"SELECT COUNT(*) FROM ASP_Form WHERE ASP_Level_ID = ? AND AD_Form_ID = ?",
p_ASP_Level_ID, form.getAD_Form_ID()) < 1) {
X_ASP_Form aspForm = new X_ASP_Form(getCtx(), 0, get_TrxName());
aspForm.setASP_Level_ID(p_ASP_Level_ID);
aspForm.setAD_Form_ID(form.getAD_Form_ID());
aspForm.setASP_Status(p_ASP_Status);
if (aspForm.save())
noForms++;
}
} else if (menu.getAction().equals(MMenu.ACTION_Task)) {
// Add Task
MTask task = new MTask(getCtx(), menu.getAD_Task_ID(), get_TrxName());
if (DB.getSQLValue(
get_TrxName(),
"SELECT COUNT(*) FROM ASP_Task WHERE ASP_Level_ID = ? AND AD_Task_ID = ?",
p_ASP_Level_ID, task.getAD_Task_ID()) < 1) {
X_ASP_Task aspTask = new X_ASP_Task(getCtx(), 0, get_TrxName());
aspTask.setASP_Level_ID(p_ASP_Level_ID);
aspTask.setAD_Task_ID(task.getAD_Task_ID());
aspTask.setASP_Status(p_ASP_Status);
if (aspTask.save())
noTasks++;
}
} else if (menu.getAction().equals(MMenu.ACTION_WorkFlow)) {
// Add Workflow and Nodes
MWorkflow workflow = new MWorkflow(getCtx(), menu.getAD_Workflow_ID(), get_TrxName());
if (DB.getSQLValue(
get_TrxName(),
"SELECT COUNT(*) FROM ASP_Workflow WHERE ASP_Level_ID = ? AND AD_Workflow_ID = ?",
p_ASP_Level_ID, workflow.getAD_Workflow_ID()) < 1) {
X_ASP_Workflow aspWorkflow = new X_ASP_Workflow(getCtx(), 0, get_TrxName());
aspWorkflow.setASP_Level_ID(p_ASP_Level_ID);
aspWorkflow.setAD_Workflow_ID(workflow.getAD_Workflow_ID());
aspWorkflow.setASP_Status(p_ASP_Status);
if (aspWorkflow.save())
noWorkflows++;
}
}
}
} // ASPGenerateLevel

View File

@ -166,6 +166,72 @@ public class GridFieldVO implements Serializable
CLogger.get().log(Level.SEVERE, "ColumnName=" + columnName, e);
return null;
}
// ASP
if (vo.IsDisplayed) {
MClient client = MClient.get(ctx);
if (client.isUseASP()) {
// ASP for fields has a different approach - it must be defined as a field but hidden
// in order to have the proper context variable filled with defaults
// Validate field and put IsDisplayed=N if must be hidden
try {
// TODO : Optimize ASP field code - catch this query
int AD_Field_ID = rs.getInt("AD_Field_ID");
String sqlvalidate =
"SELECT AD_Field_ID "
+ " FROM AD_Field "
+ " WHERE AD_Field_ID = ? "
+ " AND ( AD_Field_ID IN ( "
// ASP subscribed fields for client
+ " SELECT w.AD_Field_ID "
+ " FROM ASP_Field w, ASP_Level l, ASP_ClientLevel cl "
+ " WHERE w.ASP_Level_ID = l.ASP_Level_ID "
+ " AND cl.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND cl.ASP_Level_ID = l.asp_level_ID "
+ " AND w.IsActive = 'Y' "
+ " AND l.IsActive = 'Y' "
+ " AND cl.IsActive = 'Y' "
+ " AND w.ASP_Status = 'S') "
+ " OR AD_Tab_ID IN ( "
// ASP subscribed fields for client
+ " SELECT w.AD_Tab_ID "
+ " FROM ASP_Tab w, ASP_Level l, ASP_ClientLevel cl "
+ " WHERE w.ASP_Level_ID = l.ASP_Level_ID "
+ " AND cl.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND cl.ASP_Level_ID = l.ASP_Level_ID "
+ " AND w.IsActive = 'Y' "
+ " AND l.IsActive = 'Y' "
+ " AND cl.IsActive = 'Y' "
+ " AND w.AllFields = 'Y' "
+ " AND w.ASP_Status = 'S') "
+ " OR AD_Field_ID IN ( "
// ASP show exceptions for client
+ " SELECT AD_Field_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Field_ID IS NOT NULL "
+ " AND ce.ASP_Status = 'S') "
+ " ) "
+ " AND AD_Field_ID NOT IN ( "
// minus ASP hide exceptions for client
+ " SELECT AD_Field_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Field_ID IS NOT NULL "
+ " AND ce.ASP_Status = 'H')";
int validField_ID = DB.getSQLValue(null, sqlvalidate, AD_Field_ID);
if (validField_ID != AD_Field_ID)
vo.IsDisplayed = false;
}
catch (SQLException e)
{
CLogger.get().log(Level.SEVERE, "ColumnName=" + columnName, e);
return null;
}
}
}
//
vo.initFinish();
return vo;
} // create

View File

@ -344,13 +344,47 @@ public class GridTabVO implements Evaluatee, Serializable
*/
protected static String getSQL (Properties ctx)
{
MClient client = MClient.get(ctx);
String ASPFilter = "";
if (client.isUseASP())
ASPFilter =
" AND ( AD_Tab_ID IN ( "
// Just ASP subscribed tabs for client "
+ " SELECT w.AD_Tab_ID "
+ " FROM ASP_Tab w, ASP_Level l, ASP_ClientLevel cl "
+ " WHERE w.ASP_Level_ID = l.ASP_Level_ID "
+ " AND cl.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND cl.ASP_Level_ID = l.ASP_Level_ID "
+ " AND w.IsActive = 'Y' "
+ " AND l.IsActive = 'Y' "
+ " AND cl.IsActive = 'Y' "
+ " AND w.ASP_Status = 'S') " // Show
+ " OR AD_Tab_ID IN ( "
// + show ASP exceptions for client
+ " SELECT AD_Tab_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Tab_ID IS NOT NULL "
+ " AND ce.AD_Field_ID IS NULL "
+ " AND ce.ASP_Status = 'S') " // Show
+ " ) "
+ " AND AD_Tab_ID NOT IN ( "
// minus hide ASP exceptions for client
+ " SELECT AD_Tab_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Tab_ID IS NOT NULL "
+ " AND ce.AD_Field_ID IS NULL "
+ " AND ce.ASP_Status = 'H')"; // Hide
// View only returns IsActive='Y'
String sql = "SELECT * FROM AD_Tab_v WHERE AD_Window_ID=?"
+ " ORDER BY SeqNo";
+ ASPFilter + " ORDER BY SeqNo";
if (!Env.isBaseLanguage(ctx, "AD_Window"))
sql = "SELECT * FROM AD_Tab_vt WHERE AD_Window_ID=?"
+ " AND AD_Language='" + Env.getAD_Language(ctx) + "'"
+ " ORDER BY SeqNo";
+ ASPFilter + " ORDER BY SeqNo";
return sql;
} // getSQL

View File

@ -149,6 +149,10 @@ public class GridWindowVO implements Serializable
CLogger.get().log(Level.SEVERE, sql.toString(), ex);
return null;
}
// Ensure ASP exceptions
MRole role = MRole.getDefault(ctx, false);
if (role.getWindowAccess(AD_Window_ID) == null)
vo = null;
// Not found
if (vo == null)
{

View File

@ -186,6 +186,15 @@ public interface I_AD_Client
*/
public boolean isSmtpAuthorization();
/** Column name IsUseASP */
public static final String COLUMNNAME_IsUseASP = "IsUseASP";
/** Set Use ASP */
public void setIsUseASP (boolean IsUseASP);
/** Get Use ASP */
public boolean isUseASP();
/** Column name IsUseBetaFunctions */
public static final String COLUMNNAME_IsUseBetaFunctions = "IsUseBetaFunctions";

View File

@ -0,0 +1,207 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Trifon Trifonov. *
* Copyright (C) Contributors *
* *
* This program is free software;
you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation;
either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
* *
* Sponsors: *
* - Company (http://www.site.com) *
**********************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for ASP_ClientException
* @author Trifon Trifonov (generated)
* @version Release 3.3.1t
*/
public interface I_ASP_ClientException
{
/** TableName=ASP_ClientException */
public static final String Table_Name = "ASP_ClientException";
/** AD_Table_ID=53050 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 2 - Client
*/
BigDecimal accessLevel = BigDecimal.valueOf(2);
/** Load Meta Data */
/** Column name AD_Field_ID */
public static final String COLUMNNAME_AD_Field_ID = "AD_Field_ID";
/** Set Field.
* Field on a database table
*/
public void setAD_Field_ID (int AD_Field_ID);
/** Get Field.
* Field on a database table
*/
public int getAD_Field_ID();
public I_AD_Field getAD_Field() throws Exception;
/** 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 I_AD_Form getAD_Form() throws Exception;
/** 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 I_AD_Process getAD_Process() throws Exception;
/** Column name AD_Process_Para_ID */
public static final String COLUMNNAME_AD_Process_Para_ID = "AD_Process_Para_ID";
/** Set Process Parameter */
public void setAD_Process_Para_ID (int AD_Process_Para_ID);
/** Get Process Parameter */
public int getAD_Process_Para_ID();
public I_AD_Process_Para getAD_Process_Para() throws Exception;
/** Column name AD_Tab_ID */
public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID";
/** Set Tab.
* Tab within a Window
*/
public void setAD_Tab_ID (int AD_Tab_ID);
/** Get Tab.
* Tab within a Window
*/
public int getAD_Tab_ID();
public I_AD_Tab getAD_Tab() throws Exception;
/** 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 I_AD_Task getAD_Task() throws Exception;
/** Column name AD_WF_Node_ID */
public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID";
/** Set Node.
* Workflow Node (activity), step or process
*/
public void setAD_WF_Node_ID (int AD_WF_Node_ID);
/** Get Node.
* Workflow Node (activity), step or process
*/
public int getAD_WF_Node_ID();
public I_AD_WF_Node getAD_WF_Node() throws Exception;
/** 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 I_AD_Window getAD_Window() throws Exception;
/** Column name AD_Workflow_ID */
public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID";
/** Set Workflow.
* Workflow or combination of tasks
*/
public void setAD_Workflow_ID (int AD_Workflow_ID);
/** Get Workflow.
* Workflow or combination of tasks
*/
public int getAD_Workflow_ID();
public I_AD_Workflow getAD_Workflow() throws Exception;
/** Column name ASP_ClientException_ID */
public static final String COLUMNNAME_ASP_ClientException_ID = "ASP_ClientException_ID";
/** Set ASP Client Exception */
public void setASP_ClientException_ID (int ASP_ClientException_ID);
/** Get ASP Client Exception */
public int getASP_ClientException_ID();
/** Column name ASP_Status */
public static final String COLUMNNAME_ASP_Status = "ASP_Status";
/** Set ASP Status */
public void setASP_Status (String ASP_Status);
/** Get ASP Status */
public String getASP_Status();
}

View File

@ -0,0 +1,102 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Trifon Trifonov. *
* Copyright (C) Contributors *
* *
* This program is free software;
you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation;
either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
* *
* Sponsors: *
* - Company (http://www.site.com) *
**********************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for ASP_ClientLevel
* @author Trifon Trifonov (generated)
* @version Release 3.3.1t
*/
public interface I_ASP_ClientLevel
{
/** TableName=ASP_ClientLevel */
public static final String Table_Name = "ASP_ClientLevel";
/** AD_Table_ID=53049 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 2 - Client
*/
BigDecimal accessLevel = BigDecimal.valueOf(2);
/** Load Meta Data */
/** Column name ASP_ClientLevel_ID */
public static final String COLUMNNAME_ASP_ClientLevel_ID = "ASP_ClientLevel_ID";
/** Set ASP Client Level */
public void setASP_ClientLevel_ID (int ASP_ClientLevel_ID);
/** Get ASP Client Level */
public int getASP_ClientLevel_ID();
/** Column name ASP_Level_ID */
public static final String COLUMNNAME_ASP_Level_ID = "ASP_Level_ID";
/** Set ASP Level */
public void setASP_Level_ID (int ASP_Level_ID);
/** Get ASP Level */
public int getASP_Level_ID();
public I_ASP_Level getASP_Level() throws Exception;
/** Column name ASP_Module_ID */
public static final String COLUMNNAME_ASP_Module_ID = "ASP_Module_ID";
/** Set ASP Module */
public void setASP_Module_ID (int ASP_Module_ID);
/** Get ASP Module */
public int getASP_Module_ID();
public I_ASP_Module getASP_Module() throws Exception;
/** 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();
}

View File

@ -0,0 +1,108 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Trifon Trifonov. *
* Copyright (C) Contributors *
* *
* This program is free software;
you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation;
either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
* *
* Sponsors: *
* - Company (http://www.site.com) *
**********************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for ASP_Field
* @author Trifon Trifonov (generated)
* @version Release 3.3.1t
*/
public interface I_ASP_Field
{
/** TableName=ASP_Field */
public static final String Table_Name = "ASP_Field";
/** AD_Table_ID=1000003 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 4 - System
*/
BigDecimal accessLevel = BigDecimal.valueOf(4);
/** Load Meta Data */
/** Column name AD_Field_ID */
public static final String COLUMNNAME_AD_Field_ID = "AD_Field_ID";
/** Set Field.
* Field on a database table
*/
public void setAD_Field_ID (int AD_Field_ID);
/** Get Field.
* Field on a database table
*/
public int getAD_Field_ID();
public I_AD_Field getAD_Field() throws Exception;
/** Column name AD_Tab_ID */
public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID";
/** Set Tab.
* Tab within a Window
*/
public void setAD_Tab_ID (int AD_Tab_ID);
/** Get Tab.
* Tab within a Window
*/
public int getAD_Tab_ID();
public I_AD_Tab getAD_Tab() throws Exception;
/** Column name ASP_Level_ID */
public static final String COLUMNNAME_ASP_Level_ID = "ASP_Level_ID";
/** Set ASP Level */
public void setASP_Level_ID (int ASP_Level_ID);
/** Get ASP Level */
public int getASP_Level_ID();
public I_ASP_Level getASP_Level() throws Exception;
/** Column name ASP_Status */
public static final String COLUMNNAME_ASP_Status = "ASP_Status";
/** Set ASP Status */
public void setASP_Status (String ASP_Status);
/** Get ASP Status */
public String getASP_Status();
}

View File

@ -0,0 +1,93 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Trifon Trifonov. *
* Copyright (C) Contributors *
* *
* This program is free software;
you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation;
either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
* *
* Sponsors: *
* - Company (http://www.site.com) *
**********************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for ASP_Form
* @author Trifon Trifonov (generated)
* @version Release 3.3.1t
*/
public interface I_ASP_Form
{
/** TableName=ASP_Form */
public static final String Table_Name = "ASP_Form";
/** AD_Table_ID=1000006 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 4 - System
*/
BigDecimal accessLevel = BigDecimal.valueOf(4);
/** Load Meta Data */
/** 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 I_AD_Form getAD_Form() throws Exception;
/** Column name ASP_Level_ID */
public static final String COLUMNNAME_ASP_Level_ID = "ASP_Level_ID";
/** Set ASP Level */
public void setASP_Level_ID (int ASP_Level_ID);
/** Get ASP Level */
public int getASP_Level_ID();
public I_ASP_Level getASP_Level() throws Exception;
/** Column name ASP_Status */
public static final String COLUMNNAME_ASP_Status = "ASP_Status";
/** Set ASP Status */
public void setASP_Status (String ASP_Status);
/** Get ASP Status */
public String getASP_Status();
}

View File

@ -0,0 +1,139 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Trifon Trifonov. *
* Copyright (C) Contributors *
* *
* This program is free software;
you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation;
either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
* *
* Sponsors: *
* - Company (http://www.site.com) *
**********************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for ASP_Level
* @author Trifon Trifonov (generated)
* @version Release 3.3.1t
*/
public interface I_ASP_Level
{
/** TableName=ASP_Level */
public static final String Table_Name = "ASP_Level";
/** AD_Table_ID=53047 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 4 - System
*/
BigDecimal accessLevel = BigDecimal.valueOf(4);
/** Load Meta Data */
/** Column name ASP_Level_ID */
public static final String COLUMNNAME_ASP_Level_ID = "ASP_Level_ID";
/** Set ASP Level */
public void setASP_Level_ID (int ASP_Level_ID);
/** Get ASP Level */
public int getASP_Level_ID();
/** Column name ASP_Module_ID */
public static final String COLUMNNAME_ASP_Module_ID = "ASP_Module_ID";
/** Set ASP Module */
public void setASP_Module_ID (int ASP_Module_ID);
/** Get ASP Module */
public int getASP_Module_ID();
public I_ASP_Module getASP_Module() throws Exception;
/** 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 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 Processing */
public static final String COLUMNNAME_Processing = "Processing";
/** Set Process Now */
public void setProcessing (boolean Processing);
/** Get Process Now */
public boolean isProcessing();
/** Column name Value */
public static final String COLUMNNAME_Value = "Value";
/** Set Search Key.
* Search key for the record in the format required - must be unique
*/
public void setValue (String Value);
/** Get Search Key.
* Search key for the record in the format required - must be unique
*/
public String getValue();
}

View File

@ -0,0 +1,119 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Trifon Trifonov. *
* Copyright (C) Contributors *
* *
* This program is free software;
you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation;
either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
* *
* Sponsors: *
* - Company (http://www.site.com) *
**********************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for ASP_Module
* @author Trifon Trifonov (generated)
* @version Release 3.3.1t
*/
public interface I_ASP_Module
{
/** TableName=ASP_Module */
public static final String Table_Name = "ASP_Module";
/** AD_Table_ID=53046 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 4 - System
*/
BigDecimal accessLevel = BigDecimal.valueOf(4);
/** Load Meta Data */
/** Column name ASP_Module_ID */
public static final String COLUMNNAME_ASP_Module_ID = "ASP_Module_ID";
/** Set ASP Module */
public void setASP_Module_ID (int ASP_Module_ID);
/** Get ASP Module */
public int getASP_Module_ID();
/** 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 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 Value */
public static final String COLUMNNAME_Value = "Value";
/** Set Search Key.
* Search key for the record in the format required - must be unique
*/
public void setValue (String Value);
/** Get Search Key.
* Search key for the record in the format required - must be unique
*/
public String getValue();
}

View File

@ -0,0 +1,93 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Trifon Trifonov. *
* Copyright (C) Contributors *
* *
* This program is free software;
you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation;
either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
* *
* Sponsors: *
* - Company (http://www.site.com) *
**********************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for ASP_Process
* @author Trifon Trifonov (generated)
* @version Release 3.3.1t
*/
public interface I_ASP_Process
{
/** TableName=ASP_Process */
public static final String Table_Name = "ASP_Process";
/** AD_Table_ID=1000004 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 4 - System
*/
BigDecimal accessLevel = BigDecimal.valueOf(4);
/** Load Meta Data */
/** 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 I_AD_Process getAD_Process() throws Exception;
/** Column name ASP_Level_ID */
public static final String COLUMNNAME_ASP_Level_ID = "ASP_Level_ID";
/** Set ASP Level */
public void setASP_Level_ID (int ASP_Level_ID);
/** Get ASP Level */
public int getASP_Level_ID();
public I_ASP_Level getASP_Level() throws Exception;
/** Column name ASP_Status */
public static final String COLUMNNAME_ASP_Status = "ASP_Status";
/** Set ASP Status */
public void setASP_Status (String ASP_Status);
/** Get ASP Status */
public String getASP_Status();
}

View File

@ -0,0 +1,104 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Trifon Trifonov. *
* Copyright (C) Contributors *
* *
* This program is free software;
you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation;
either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
* *
* Sponsors: *
* - Company (http://www.site.com) *
**********************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for ASP_Process_Para
* @author Trifon Trifonov (generated)
* @version Release 3.3.1t
*/
public interface I_ASP_Process_Para
{
/** TableName=ASP_Process_Para */
public static final String Table_Name = "ASP_Process_Para";
/** AD_Table_ID=1000005 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 4 - System
*/
BigDecimal accessLevel = BigDecimal.valueOf(4);
/** Load Meta Data */
/** 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 I_AD_Process getAD_Process() throws Exception;
/** Column name AD_Process_Para_ID */
public static final String COLUMNNAME_AD_Process_Para_ID = "AD_Process_Para_ID";
/** Set Process Parameter */
public void setAD_Process_Para_ID (int AD_Process_Para_ID);
/** Get Process Parameter */
public int getAD_Process_Para_ID();
public I_AD_Process_Para getAD_Process_Para() throws Exception;
/** Column name ASP_Level_ID */
public static final String COLUMNNAME_ASP_Level_ID = "ASP_Level_ID";
/** Set ASP Level */
public void setASP_Level_ID (int ASP_Level_ID);
/** Get ASP Level */
public int getASP_Level_ID();
public I_ASP_Level getASP_Level() throws Exception;
/** Column name ASP_Status */
public static final String COLUMNNAME_ASP_Status = "ASP_Status";
/** Set ASP Status */
public void setASP_Status (String ASP_Status);
/** Get ASP Status */
public String getASP_Status();
}

View File

@ -0,0 +1,130 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Trifon Trifonov. *
* Copyright (C) Contributors *
* *
* This program is free software;
you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation;
either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
* *
* Sponsors: *
* - Company (http://www.site.com) *
**********************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for ASP_Tab
* @author Trifon Trifonov (generated)
* @version Release 3.3.1t
*/
public interface I_ASP_Tab
{
/** TableName=ASP_Tab */
public static final String Table_Name = "ASP_Tab";
/** AD_Table_ID=1000002 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 4 - System
*/
BigDecimal accessLevel = BigDecimal.valueOf(4);
/** Load Meta Data */
/** Column name AD_Tab_ID */
public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID";
/** Set Tab.
* Tab within a Window
*/
public void setAD_Tab_ID (int AD_Tab_ID);
/** Get Tab.
* Tab within a Window
*/
public int getAD_Tab_ID();
public I_AD_Tab getAD_Tab() throws Exception;
/** 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 I_AD_Window getAD_Window() throws Exception;
/** Column name ASP_Level_ID */
public static final String COLUMNNAME_ASP_Level_ID = "ASP_Level_ID";
/** Set ASP Level */
public void setASP_Level_ID (int ASP_Level_ID);
/** Get ASP Level */
public int getASP_Level_ID();
public I_ASP_Level getASP_Level() throws Exception;
/** Column name ASP_Status */
public static final String COLUMNNAME_ASP_Status = "ASP_Status";
/** Set ASP Status */
public void setASP_Status (String ASP_Status);
/** Get ASP Status */
public String getASP_Status();
/** Column name AllFields */
public static final String COLUMNNAME_AllFields = "AllFields";
/** Set Include all fields.
* Include all fields
*/
public void setAllFields (boolean AllFields);
/** Get Include all fields.
* Include all fields
*/
public boolean isAllFields();
/** Column name Processing */
public static final String COLUMNNAME_Processing = "Processing";
/** Set Process Now */
public void setProcessing (boolean Processing);
/** Get Process Now */
public boolean isProcessing();
}

View File

@ -0,0 +1,93 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Trifon Trifonov. *
* Copyright (C) Contributors *
* *
* This program is free software;
you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation;
either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
* *
* Sponsors: *
* - Company (http://www.site.com) *
**********************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for ASP_Task
* @author Trifon Trifonov (generated)
* @version Release 3.3.1t
*/
public interface I_ASP_Task
{
/** TableName=ASP_Task */
public static final String Table_Name = "ASP_Task";
/** AD_Table_ID=1000007 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 4 - System
*/
BigDecimal accessLevel = BigDecimal.valueOf(4);
/** Load Meta Data */
/** 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 I_AD_Task getAD_Task() throws Exception;
/** Column name ASP_Level_ID */
public static final String COLUMNNAME_ASP_Level_ID = "ASP_Level_ID";
/** Set ASP Level */
public void setASP_Level_ID (int ASP_Level_ID);
/** Get ASP Level */
public int getASP_Level_ID();
public I_ASP_Level getASP_Level() throws Exception;
/** Column name ASP_Status */
public static final String COLUMNNAME_ASP_Status = "ASP_Status";
/** Set ASP Status */
public void setASP_Status (String ASP_Status);
/** Get ASP Status */
public String getASP_Status();
}

View File

@ -0,0 +1,93 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Trifon Trifonov. *
* Copyright (C) Contributors *
* *
* This program is free software;
you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation;
either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
* *
* Sponsors: *
* - Company (http://www.site.com) *
**********************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for ASP_Window
* @author Trifon Trifonov (generated)
* @version Release 3.3.1t
*/
public interface I_ASP_Window
{
/** TableName=ASP_Window */
public static final String Table_Name = "ASP_Window";
/** AD_Table_ID=1000001 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 4 - System
*/
BigDecimal accessLevel = BigDecimal.valueOf(4);
/** Load Meta Data */
/** 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 I_AD_Window getAD_Window() throws Exception;
/** Column name ASP_Level_ID */
public static final String COLUMNNAME_ASP_Level_ID = "ASP_Level_ID";
/** Set ASP Level */
public void setASP_Level_ID (int ASP_Level_ID);
/** Get ASP Level */
public int getASP_Level_ID();
public I_ASP_Level getASP_Level() throws Exception;
/** Column name ASP_Status */
public static final String COLUMNNAME_ASP_Status = "ASP_Status";
/** Set ASP Status */
public void setASP_Status (String ASP_Status);
/** Get ASP Status */
public String getASP_Status();
}

View File

@ -0,0 +1,93 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Trifon Trifonov. *
* Copyright (C) Contributors *
* *
* This program is free software;
you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation;
either version 2 *
* of the License, or (at your option) any later version. *
* *
* 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., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Trifon Trifonov (trifonnt@users.sourceforge.net) *
* *
* Sponsors: *
* - Company (http://www.site.com) *
**********************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import org.compiere.util.KeyNamePair;
/** Generated Interface for ASP_Workflow
* @author Trifon Trifonov (generated)
* @version Release 3.3.1t
*/
public interface I_ASP_Workflow
{
/** TableName=ASP_Workflow */
public static final String Table_Name = "ASP_Workflow";
/** AD_Table_ID=1000008 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 4 - System
*/
BigDecimal accessLevel = BigDecimal.valueOf(4);
/** Load Meta Data */
/** Column name AD_Workflow_ID */
public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID";
/** Set Workflow.
* Workflow or combination of tasks
*/
public void setAD_Workflow_ID (int AD_Workflow_ID);
/** Get Workflow.
* Workflow or combination of tasks
*/
public int getAD_Workflow_ID();
public I_AD_Workflow getAD_Workflow() throws Exception;
/** Column name ASP_Level_ID */
public static final String COLUMNNAME_ASP_Level_ID = "ASP_Level_ID";
/** Set ASP Level */
public void setASP_Level_ID (int ASP_Level_ID);
/** Get ASP Level */
public int getASP_Level_ID();
public I_ASP_Level getASP_Level() throws Exception;
/** Column name ASP_Status */
public static final String COLUMNNAME_ASP_Status = "ASP_Status";
/** Set ASP Status */
public void setASP_Status (String ASP_Status);
/** Get ASP Status */
public String getASP_Status();
}

View File

@ -42,6 +42,7 @@ import org.compiere.util.Trace;
*
* @author Jorg Janke
* @author Karsten Thiemann FR [ 1782412 ]
* @author Carlos Ruiz - globalqss - FR [ 1846929 ] - implement ASP
* @version $Id: MRole.java,v 1.5 2006/08/09 16:38:47 jjanke Exp $
*/
public final class MRole extends X_AD_Role
@ -1483,9 +1484,46 @@ public final class MRole extends X_AD_Role
public Boolean getWindowAccess (int AD_Window_ID)
{
if (m_windowAccess == null)
{
m_windowAccess = new HashMap<Integer,Boolean>(100);
String sql = "SELECT AD_Window_ID, IsReadWrite FROM AD_Window_Access WHERE AD_Role_ID=? AND IsActive='Y'";
{
m_windowAccess = new HashMap<Integer,Boolean>(100);
MClient client = MClient.get(getCtx(), getAD_Client_ID());
String ASPFilter = "";
if (client.isUseASP())
ASPFilter =
" AND ( AD_Window_ID IN ( "
// Just ASP subscribed windows for client "
+ " SELECT w.AD_Window_ID "
+ " FROM ASP_Window w, ASP_Level l, ASP_ClientLevel cl "
+ " WHERE w.ASP_Level_ID = l.ASP_Level_ID "
+ " AND cl.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND cl.ASP_Level_ID = l.ASP_Level_ID "
+ " AND w.IsActive = 'Y' "
+ " AND l.IsActive = 'Y' "
+ " AND cl.IsActive = 'Y' "
+ " AND w.ASP_Status = 'S') " // Show
+ " OR AD_Window_ID IN ( "
// + show ASP exceptions for client
+ " SELECT AD_Window_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Window_ID IS NOT NULL "
+ " AND ce.AD_Tab_ID IS NULL "
+ " AND ce.AD_Field_ID IS NULL "
+ " AND ce.ASP_Status = 'S') " // Show
+ " ) "
+ " AND AD_Window_ID NOT IN ( "
// minus hide ASP exceptions for client
+ " SELECT AD_Window_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Window_ID IS NOT NULL "
+ " AND ce.AD_Tab_ID IS NULL "
+ " AND ce.AD_Field_ID IS NULL "
+ " AND ce.ASP_Status = 'H')"; // Hide
String sql = "SELECT AD_Window_ID, IsReadWrite FROM AD_Window_Access WHERE AD_Role_ID=? AND IsActive='Y'" + ASPFilter;
PreparedStatement pstmt = null;
try
{
@ -1528,8 +1566,43 @@ public final class MRole extends X_AD_Role
{
if (m_processAccess == null)
{
m_processAccess = new HashMap<Integer,Boolean>(50);
String sql = "SELECT AD_Process_ID, IsReadWrite FROM AD_Process_Access WHERE AD_Role_ID=? AND IsActive='Y'";
m_processAccess = new HashMap<Integer,Boolean>(50);
MClient client = MClient.get(getCtx(), getAD_Client_ID());
String ASPFilter = "";
if (client.isUseASP())
ASPFilter =
" AND ( AD_Process_ID IN ( "
// Just ASP subscribed processes for client "
+ " SELECT w.AD_Process_ID "
+ " FROM ASP_Process w, ASP_Level l, ASP_ClientLevel cl "
+ " WHERE w.ASP_Level_ID = l.ASP_Level_ID "
+ " AND cl.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND cl.ASP_Level_ID = l.ASP_Level_ID "
+ " AND w.IsActive = 'Y' "
+ " AND l.IsActive = 'Y' "
+ " AND cl.IsActive = 'Y' "
+ " AND w.ASP_Status = 'S') " // Show
+ " OR AD_Process_ID IN ( "
// + show ASP exceptions for client
+ " SELECT AD_Process_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Process_ID IS NOT NULL "
+ " AND ce.AD_Process_Para_ID IS NULL "
+ " AND ce.ASP_Status = 'S') " // Show
+ " ) "
+ " AND AD_Process_ID NOT IN ( "
// minus hide ASP exceptions for client
+ " SELECT AD_Process_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Process_ID IS NOT NULL "
+ " AND ce.AD_Process_Para_ID IS NULL "
+ " AND ce.ASP_Status = 'H')"; // Hide
String sql = "SELECT AD_Process_ID, IsReadWrite FROM AD_Process_Access WHERE AD_Role_ID=? AND IsActive='Y'" + ASPFilter;
PreparedStatement pstmt = null;
try
{
@ -1570,8 +1643,39 @@ public final class MRole extends X_AD_Role
if (m_taskAccess == null)
{
m_taskAccess = new HashMap<Integer,Boolean>(10);
String sql = "SELECT AD_Task_ID, IsReadWrite FROM AD_Task_Access "
+ "WHERE AD_Role_ID=? AND IsActive='Y'";
MClient client = MClient.get(getCtx(), getAD_Client_ID());
String ASPFilter = "";
if (client.isUseASP())
ASPFilter =
" AND ( AD_Task_ID IN ( "
// Just ASP subscribed tasks for client "
+ " SELECT w.AD_Task_ID "
+ " FROM ASP_Task w, ASP_Level l, ASP_ClientLevel cl "
+ " WHERE w.ASP_Level_ID = l.ASP_Level_ID "
+ " AND cl.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND cl.ASP_Level_ID = l.ASP_Level_ID "
+ " AND w.IsActive = 'Y' "
+ " AND l.IsActive = 'Y' "
+ " AND cl.IsActive = 'Y' "
+ " AND w.ASP_Status = 'S') " // Show
+ " OR AD_Task_ID IN ( "
// + show ASP exceptions for client
+ " SELECT AD_Task_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Task_ID IS NOT NULL "
+ " AND ce.ASP_Status = 'S') " // Show
+ " ) "
+ " AND AD_Task_ID NOT IN ( "
// minus hide ASP exceptions for client
+ " SELECT AD_Task_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Task_ID IS NOT NULL "
+ " AND ce.ASP_Status = 'H')"; // Hide
String sql = "SELECT AD_Task_ID, IsReadWrite FROM AD_Task_Access WHERE AD_Role_ID=? AND IsActive='Y'" + ASPFilter;
PreparedStatement pstmt = null;
try
{
@ -1612,8 +1716,40 @@ public final class MRole extends X_AD_Role
if (m_formAccess == null)
{
m_formAccess = new HashMap<Integer,Boolean>(20);
String sql = "SELECT AD_Form_ID, IsReadWrite FROM AD_Form_Access "
+ "WHERE AD_Role_ID=? AND IsActive='Y'";
MClient client = MClient.get(getCtx(), getAD_Client_ID());
String ASPFilter = "";
if (client.isUseASP())
ASPFilter =
" AND ( AD_Form_ID IN ( "
// Just ASP subscribed forms for client "
+ " SELECT w.AD_Form_ID "
+ " FROM ASP_Form w, ASP_Level l, ASP_ClientLevel cl "
+ " WHERE w.ASP_Level_ID = l.ASP_Level_ID "
+ " AND cl.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND cl.ASP_Level_ID = l.ASP_Level_ID "
+ " AND w.IsActive = 'Y' "
+ " AND l.IsActive = 'Y' "
+ " AND cl.IsActive = 'Y' "
+ " AND w.ASP_Status = 'S') " // Show
+ " OR AD_Form_ID IN ( "
// + show ASP exceptions for client
+ " SELECT AD_Form_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Form_ID IS NOT NULL "
+ " AND ce.ASP_Status = 'S') " // Show
+ " ) "
+ " AND AD_Form_ID NOT IN ( "
// minus hide ASP exceptions for client
+ " SELECT AD_Form_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Form_ID IS NOT NULL "
+ " AND ce.ASP_Status = 'H')"; // Hide
String sql = "SELECT AD_Form_ID, IsReadWrite FROM AD_Form_Access WHERE AD_Role_ID=? AND IsActive='Y'" + ASPFilter;
PreparedStatement pstmt = null;
try
{
@ -1654,8 +1790,39 @@ public final class MRole extends X_AD_Role
if (m_workflowAccess == null)
{
m_workflowAccess = new HashMap<Integer,Boolean>(20);
String sql = "SELECT AD_Workflow_ID, IsReadWrite FROM AD_Workflow_Access "
+ "WHERE AD_Role_ID=? AND IsActive='Y'";
MClient client = MClient.get(getCtx(), getAD_Client_ID());
String ASPFilter = "";
if (client.isUseASP())
ASPFilter =
" AND ( AD_Workflow_ID IN ( "
// Just ASP subscribed workflows for client "
+ " SELECT w.AD_Workflow_ID "
+ " FROM ASP_Workflow w, ASP_Level l, ASP_ClientLevel cl "
+ " WHERE w.ASP_Level_ID = l.ASP_Level_ID "
+ " AND cl.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND cl.ASP_Level_ID = l.ASP_Level_ID "
+ " AND w.IsActive = 'Y' "
+ " AND l.IsActive = 'Y' "
+ " AND cl.IsActive = 'Y' "
+ " AND w.ASP_Status = 'S') " // Show
+ " OR AD_Workflow_ID IN ( "
// + show ASP exceptions for client
+ " SELECT AD_Workflow_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Workflow_ID IS NOT NULL "
+ " AND ce.ASP_Status = 'S') " // Show
+ " ) "
+ " AND AD_Workflow_ID NOT IN ( "
// minus hide ASP exceptions for client
+ " SELECT AD_Workflow_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Workflow_ID IS NOT NULL "
+ " AND ce.ASP_Status = 'H')"; // Hide
String sql = "SELECT AD_Workflow_ID, IsReadWrite FROM AD_Workflow_Access WHERE AD_Role_ID=? AND IsActive='Y'" + ASPFilter;
PreparedStatement pstmt = null;
try
{

View File

@ -56,20 +56,29 @@ public class MTree extends MTree_Base
*/
public MTree (Properties ctx, int AD_Tree_ID,
boolean editable, boolean clientTree, String trxName)
{
this (ctx, AD_Tree_ID, editable, clientTree, false, trxName);
} // MTree
public MTree (Properties ctx, int AD_Tree_ID,
boolean editable, boolean clientTree, boolean allNodes, String trxName)
{
this (ctx, AD_Tree_ID, trxName);
m_editable = editable;
int AD_User_ID = Env.getContextAsInt(ctx, "AD_User_ID");
int AD_User_ID;
if (allNodes)
AD_User_ID = -1;
else
AD_User_ID = Env.getContextAsInt(ctx, "AD_User_ID");
m_clientTree = clientTree;
log.info("AD_Tree_ID=" + AD_Tree_ID
+ ", AD_User_ID=" + AD_User_ID
+ ", Editable=" + editable
+ ", OnClient=" + clientTree);
+ ", AD_User_ID=" + AD_User_ID
+ ", Editable=" + editable
+ ", OnClient=" + clientTree);
//
loadNodes(AD_User_ID);
} // MTree
/** Is Tree editable */
private boolean m_editable = false;
/** Root Node */
@ -174,7 +183,9 @@ public class MTree extends MTree_Base
+ "tn.Node_ID,tn.Parent_ID,tn.SeqNo,tb.IsActive "
+ "FROM ").append(getNodeTableName()).append(" tn"
+ " LEFT OUTER JOIN AD_TreeBar tb ON (tn.AD_Tree_ID=tb.AD_Tree_ID"
+ " AND tn.Node_ID=tb.Node_ID AND tb.AD_User_ID=?) " // #1
+ " AND tn.Node_ID=tb.Node_ID "
+ (AD_User_ID != -1 ? " AND tb.AD_User_ID=? ": "") // #1 (conditional)
+ ") "
+ "WHERE tn.AD_Tree_ID=?"); // #2
if (!m_editable)
sql.append(" AND tn.IsActive='Y'");
@ -188,8 +199,10 @@ public class MTree extends MTree_Base
getNodeDetails();
//
PreparedStatement pstmt = DB.prepareStatement(sql.toString(), get_TrxName());
pstmt.setInt(1, AD_User_ID);
pstmt.setInt(2, getAD_Tree_ID());
int idx = 1;
if (AD_User_ID != -1)
pstmt.setInt(idx++, AD_User_ID);
pstmt.setInt(idx++, getAD_Tree_ID());
// Get Tree & Bar
ResultSet rs = pstmt.executeQuery();
m_root = new MTreeNode (0, 0, getName(), getDescription(), 0, true, null, false, null);

View File

@ -47,6 +47,8 @@ public class X_AD_Client extends PO implements I_AD_Client, I_Persistent
// N
setIsServerEMail (false);
setIsSmtpAuthorization (false);
// N
setIsUseASP (false);
// N
setIsUseBetaFunctions (true);
// Y
@ -335,6 +337,27 @@ public class X_AD_Client extends PO implements I_AD_Client, I_Persistent
return false;
}
/** Set Use ASP.
@param IsUseASP Use ASP */
public void setIsUseASP (boolean IsUseASP)
{
set_Value (COLUMNNAME_IsUseASP, Boolean.valueOf(IsUseASP));
}
/** Get Use ASP.
@return Use ASP */
public boolean isUseASP ()
{
Object oo = get_Value(COLUMNNAME_IsUseASP);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Use Beta Functions.
@param IsUseBetaFunctions
Enable the use of Beta Functionality

View File

@ -0,0 +1,471 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 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.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level;
/** Generated Model for ASP_ClientException
* @author Adempiere (generated)
* @version Release 3.3.1t - $Id$ */
public class X_ASP_ClientException extends PO implements I_ASP_ClientException, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 1L;
/** Standard Constructor */
public X_ASP_ClientException (Properties ctx, int ASP_ClientException_ID, String trxName)
{
super (ctx, ASP_ClientException_ID, trxName);
/** if (ASP_ClientException_ID == 0)
{
setASP_ClientException_ID (0);
setASP_Status (null);
// U
} */
}
/** Load Constructor */
public X_ASP_ClientException (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AccessLevel
* @return 2 - Client
*/
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()
{
StringBuffer sb = new StringBuffer ("X_ASP_ClientException[")
.append(get_ID()).append("]");
return sb.toString();
}
public I_AD_Field getAD_Field() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Field.Table_Name);
I_AD_Field result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Field)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Field_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Field.
@param AD_Field_ID
Field on a database table
*/
public void setAD_Field_ID (int AD_Field_ID)
{
if (AD_Field_ID <= 0)
set_Value (COLUMNNAME_AD_Field_ID, null);
else
set_Value (COLUMNNAME_AD_Field_ID, Integer.valueOf(AD_Field_ID));
}
/** Get Field.
@return Field on a database table
*/
public int getAD_Field_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Field_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_AD_Form getAD_Form() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Form.Table_Name);
I_AD_Form result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Form)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Form_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Special Form.
@param AD_Form_ID
Special Form
*/
public void setAD_Form_ID (int AD_Form_ID)
{
if (AD_Form_ID <= 0)
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 I_AD_Process getAD_Process() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Process.Table_Name);
I_AD_Process result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Process.
@param AD_Process_ID
Process or Report
*/
public void setAD_Process_ID (int AD_Process_ID)
{
if (AD_Process_ID <= 0)
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 I_AD_Process_Para getAD_Process_Para() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Process_Para.Table_Name);
I_AD_Process_Para result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Process_Para)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_Para_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Process Parameter.
@param AD_Process_Para_ID Process Parameter */
public void setAD_Process_Para_ID (int AD_Process_Para_ID)
{
if (AD_Process_Para_ID <= 0)
set_Value (COLUMNNAME_AD_Process_Para_ID, null);
else
set_Value (COLUMNNAME_AD_Process_Para_ID, Integer.valueOf(AD_Process_Para_ID));
}
/** Get Process Parameter.
@return Process Parameter */
public int getAD_Process_Para_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_Para_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_AD_Tab getAD_Tab() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Tab.Table_Name);
I_AD_Tab result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Tab)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tab_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Tab.
@param AD_Tab_ID
Tab within a Window
*/
public void setAD_Tab_ID (int AD_Tab_ID)
{
if (AD_Tab_ID <= 0)
set_Value (COLUMNNAME_AD_Tab_ID, null);
else
set_Value (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID));
}
/** Get Tab.
@return Tab within a Window
*/
public int getAD_Tab_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tab_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_AD_Task getAD_Task() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Task.Table_Name);
I_AD_Task result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Task)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Task_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set OS Task.
@param AD_Task_ID
Operation System Task
*/
public void setAD_Task_ID (int AD_Task_ID)
{
if (AD_Task_ID <= 0)
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 I_AD_WF_Node getAD_WF_Node() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_WF_Node.Table_Name);
I_AD_WF_Node result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_WF_Node)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Node_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Node.
@param AD_WF_Node_ID
Workflow Node (activity), step or process
*/
public void setAD_WF_Node_ID (int AD_WF_Node_ID)
{
if (AD_WF_Node_ID <= 0)
set_Value (COLUMNNAME_AD_WF_Node_ID, null);
else
set_Value (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID));
}
/** Get Node.
@return Workflow Node (activity), step or process
*/
public int getAD_WF_Node_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Node_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_AD_Window getAD_Window() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Window.Table_Name);
I_AD_Window result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Window.
@param AD_Window_ID
Data entry or display window
*/
public void setAD_Window_ID (int AD_Window_ID)
{
if (AD_Window_ID <= 0)
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 I_AD_Workflow getAD_Workflow() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Workflow.Table_Name);
I_AD_Workflow result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Workflow.
@param AD_Workflow_ID
Workflow or combination of tasks
*/
public void setAD_Workflow_ID (int AD_Workflow_ID)
{
if (AD_Workflow_ID <= 0)
set_Value (COLUMNNAME_AD_Workflow_ID, null);
else
set_Value (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID));
}
/** Get Workflow.
@return Workflow or combination of tasks
*/
public int getAD_Workflow_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set ASP Client Exception.
@param ASP_ClientException_ID ASP Client Exception */
public void setASP_ClientException_ID (int ASP_ClientException_ID)
{
if (ASP_ClientException_ID < 1)
throw new IllegalArgumentException ("ASP_ClientException_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_ASP_ClientException_ID, Integer.valueOf(ASP_ClientException_ID));
}
/** Get ASP Client Exception.
@return ASP Client Exception */
public int getASP_ClientException_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_ClientException_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** ASP_Status AD_Reference_ID=1000000 */
public static final int ASP_STATUS_AD_Reference_ID=1000000;
/** Show = S */
public static final String ASP_STATUS_Show = "S";
/** Hide = H */
public static final String ASP_STATUS_Hide = "H";
/** Undefined = U */
public static final String ASP_STATUS_Undefined = "U";
/** Set ASP Status.
@param ASP_Status ASP Status */
public void setASP_Status (String ASP_Status)
{
if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory");
if (ASP_Status.equals("S") || ASP_Status.equals("H") || ASP_Status.equals("U")); else throw new IllegalArgumentException ("ASP_Status Invalid value - " + ASP_Status + " - Reference_ID=1000000 - S - H - U");
if (ASP_Status.length() > 1)
{
log.warning("Length > 1 - truncated");
ASP_Status = ASP_Status.substring(0, 1);
}
set_Value (COLUMNNAME_ASP_Status, ASP_Status);
}
/** Get ASP Status.
@return ASP Status */
public String getASP_Status ()
{
return (String)get_Value(COLUMNNAME_ASP_Status);
}
}

View File

@ -0,0 +1,187 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 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.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level;
/** Generated Model for ASP_ClientLevel
* @author Adempiere (generated)
* @version Release 3.3.1t - $Id$ */
public class X_ASP_ClientLevel extends PO implements I_ASP_ClientLevel, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 1L;
/** Standard Constructor */
public X_ASP_ClientLevel (Properties ctx, int ASP_ClientLevel_ID, String trxName)
{
super (ctx, ASP_ClientLevel_ID, trxName);
/** if (ASP_ClientLevel_ID == 0)
{
setASP_ClientLevel_ID (0);
setASP_Level_ID (0);
setASP_Module_ID (0);
} */
}
/** Load Constructor */
public X_ASP_ClientLevel (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AccessLevel
* @return 2 - Client
*/
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()
{
StringBuffer sb = new StringBuffer ("X_ASP_ClientLevel[")
.append(get_ID()).append("]");
return sb.toString();
}
/** Set ASP Client Level.
@param ASP_ClientLevel_ID ASP Client Level */
public void setASP_ClientLevel_ID (int ASP_ClientLevel_ID)
{
if (ASP_ClientLevel_ID < 1)
throw new IllegalArgumentException ("ASP_ClientLevel_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_ASP_ClientLevel_ID, Integer.valueOf(ASP_ClientLevel_ID));
}
/** Get ASP Client Level.
@return ASP Client Level */
public int getASP_ClientLevel_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_ClientLevel_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_ASP_Level getASP_Level() throws Exception
{
Class<?> clazz = MTable.getClass(I_ASP_Level.Table_Name);
I_ASP_Level result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set ASP Level.
@param ASP_Level_ID ASP Level */
public void setASP_Level_ID (int ASP_Level_ID)
{
if (ASP_Level_ID < 1)
throw new IllegalArgumentException ("ASP_Level_ID is mandatory.");
set_Value (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID));
}
/** Get ASP Level.
@return ASP Level */
public int getASP_Level_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_Level_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_ASP_Module getASP_Module() throws Exception
{
Class<?> clazz = MTable.getClass(I_ASP_Module.Table_Name);
I_ASP_Module result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_ASP_Module)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Module_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set ASP Module.
@param ASP_Module_ID ASP Module */
public void setASP_Module_ID (int ASP_Module_ID)
{
if (ASP_Module_ID < 1)
throw new IllegalArgumentException ("ASP_Module_ID is mandatory.");
set_Value (COLUMNNAME_ASP_Module_ID, Integer.valueOf(ASP_Module_ID));
}
/** Get ASP Module.
@return ASP Module */
public int getASP_Module_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_Module_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Comment/Help.
@param Help
Comment or Hint
*/
public void setHelp (String Help)
{
if (Help != null && Help.length() > 2000)
{
log.warning("Length > 2000 - truncated");
Help = Help.substring(0, 2000);
}
set_Value (COLUMNNAME_Help, Help);
}
/** Get Comment/Help.
@return Comment or Hint
*/
public String getHelp ()
{
return (String)get_Value(COLUMNNAME_Help);
}
}

View File

@ -0,0 +1,217 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 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.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level;
/** Generated Model for ASP_Field
* @author Adempiere (generated)
* @version Release 3.3.1t - $Id$ */
public class X_ASP_Field extends PO implements I_ASP_Field, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 1L;
/** Standard Constructor */
public X_ASP_Field (Properties ctx, int ASP_Field_ID, String trxName)
{
super (ctx, ASP_Field_ID, trxName);
/** if (ASP_Field_ID == 0)
{
setAD_Tab_ID (0);
setASP_Level_ID (0);
setASP_Status (null);
// U
} */
}
/** Load Constructor */
public X_ASP_Field (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()
{
StringBuffer sb = new StringBuffer ("X_ASP_Field[")
.append(get_ID()).append("]");
return sb.toString();
}
public I_AD_Field getAD_Field() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Field.Table_Name);
I_AD_Field result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Field)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Field_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Field.
@param AD_Field_ID
Field on a database table
*/
public void setAD_Field_ID (int AD_Field_ID)
{
if (AD_Field_ID <= 0)
set_ValueNoCheck (COLUMNNAME_AD_Field_ID, null);
else
set_ValueNoCheck (COLUMNNAME_AD_Field_ID, Integer.valueOf(AD_Field_ID));
}
/** Get Field.
@return Field on a database table
*/
public int getAD_Field_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Field_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_AD_Tab getAD_Tab() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Tab.Table_Name);
I_AD_Tab result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Tab)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tab_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Tab.
@param AD_Tab_ID
Tab within a Window
*/
public void setAD_Tab_ID (int AD_Tab_ID)
{
if (AD_Tab_ID < 1)
throw new IllegalArgumentException ("AD_Tab_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID));
}
/** Get Tab.
@return Tab within a Window
*/
public int getAD_Tab_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tab_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_ASP_Level getASP_Level() throws Exception
{
Class<?> clazz = MTable.getClass(I_ASP_Level.Table_Name);
I_ASP_Level result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set ASP Level.
@param ASP_Level_ID ASP Level */
public void setASP_Level_ID (int ASP_Level_ID)
{
if (ASP_Level_ID < 1)
throw new IllegalArgumentException ("ASP_Level_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID));
}
/** Get ASP Level.
@return ASP Level */
public int getASP_Level_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_Level_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** ASP_Status AD_Reference_ID=1000000 */
public static final int ASP_STATUS_AD_Reference_ID=1000000;
/** Show = S */
public static final String ASP_STATUS_Show = "S";
/** Hide = H */
public static final String ASP_STATUS_Hide = "H";
/** Undefined = U */
public static final String ASP_STATUS_Undefined = "U";
/** Set ASP Status.
@param ASP_Status ASP Status */
public void setASP_Status (String ASP_Status)
{
if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory");
if (ASP_Status.equals("S") || ASP_Status.equals("H") || ASP_Status.equals("U")); else throw new IllegalArgumentException ("ASP_Status Invalid value - " + ASP_Status + " - Reference_ID=1000000 - S - H - U");
if (ASP_Status.length() > 1)
{
log.warning("Length > 1 - truncated");
ASP_Status = ASP_Status.substring(0, 1);
}
set_Value (COLUMNNAME_ASP_Status, ASP_Status);
}
/** Get ASP Status.
@return ASP Status */
public String getASP_Status ()
{
return (String)get_Value(COLUMNNAME_ASP_Status);
}
}

View File

@ -0,0 +1,178 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 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.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level;
/** Generated Model for ASP_Form
* @author Adempiere (generated)
* @version Release 3.3.1t - $Id$ */
public class X_ASP_Form extends PO implements I_ASP_Form, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 1L;
/** Standard Constructor */
public X_ASP_Form (Properties ctx, int ASP_Form_ID, String trxName)
{
super (ctx, ASP_Form_ID, trxName);
/** if (ASP_Form_ID == 0)
{
setAD_Form_ID (0);
setASP_Level_ID (0);
setASP_Status (null);
// U
} */
}
/** Load Constructor */
public X_ASP_Form (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()
{
StringBuffer sb = new StringBuffer ("X_ASP_Form[")
.append(get_ID()).append("]");
return sb.toString();
}
public I_AD_Form getAD_Form() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Form.Table_Name);
I_AD_Form result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Form)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Form_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Special Form.
@param AD_Form_ID
Special Form
*/
public void setAD_Form_ID (int AD_Form_ID)
{
if (AD_Form_ID < 1)
throw new IllegalArgumentException ("AD_Form_ID is mandatory.");
set_ValueNoCheck (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 I_ASP_Level getASP_Level() throws Exception
{
Class<?> clazz = MTable.getClass(I_ASP_Level.Table_Name);
I_ASP_Level result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set ASP Level.
@param ASP_Level_ID ASP Level */
public void setASP_Level_ID (int ASP_Level_ID)
{
if (ASP_Level_ID < 1)
throw new IllegalArgumentException ("ASP_Level_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID));
}
/** Get ASP Level.
@return ASP Level */
public int getASP_Level_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_Level_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** ASP_Status AD_Reference_ID=1000000 */
public static final int ASP_STATUS_AD_Reference_ID=1000000;
/** Show = S */
public static final String ASP_STATUS_Show = "S";
/** Hide = H */
public static final String ASP_STATUS_Hide = "H";
/** Undefined = U */
public static final String ASP_STATUS_Undefined = "U";
/** Set ASP Status.
@param ASP_Status ASP Status */
public void setASP_Status (String ASP_Status)
{
if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory");
if (ASP_Status.equals("S") || ASP_Status.equals("H") || ASP_Status.equals("U")); else throw new IllegalArgumentException ("ASP_Status Invalid value - " + ASP_Status + " - Reference_ID=1000000 - S - H - U");
if (ASP_Status.length() > 1)
{
log.warning("Length > 1 - truncated");
ASP_Status = ASP_Status.substring(0, 1);
}
set_Value (COLUMNNAME_ASP_Status, ASP_Status);
}
/** Get ASP Status.
@return ASP Status */
public String getASP_Status ()
{
return (String)get_Value(COLUMNNAME_ASP_Status);
}
}

View File

@ -0,0 +1,256 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 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.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level;
import org.compiere.util.KeyNamePair;
/** Generated Model for ASP_Level
* @author Adempiere (generated)
* @version Release 3.3.1t - $Id$ */
public class X_ASP_Level extends PO implements I_ASP_Level, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 1L;
/** Standard Constructor */
public X_ASP_Level (Properties ctx, int ASP_Level_ID, String trxName)
{
super (ctx, ASP_Level_ID, trxName);
/** if (ASP_Level_ID == 0)
{
setASP_Level_ID (0);
setASP_Module_ID (0);
setName (null);
setValue (null);
} */
}
/** Load Constructor */
public X_ASP_Level (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()
{
StringBuffer sb = new StringBuffer ("X_ASP_Level[")
.append(get_ID()).append("]");
return sb.toString();
}
/** Set ASP Level.
@param ASP_Level_ID ASP Level */
public void setASP_Level_ID (int ASP_Level_ID)
{
if (ASP_Level_ID < 1)
throw new IllegalArgumentException ("ASP_Level_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID));
}
/** Get ASP Level.
@return ASP Level */
public int getASP_Level_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_Level_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_ASP_Module getASP_Module() throws Exception
{
Class<?> clazz = MTable.getClass(I_ASP_Module.Table_Name);
I_ASP_Module result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_ASP_Module)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Module_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set ASP Module.
@param ASP_Module_ID ASP Module */
public void setASP_Module_ID (int ASP_Module_ID)
{
if (ASP_Module_ID < 1)
throw new IllegalArgumentException ("ASP_Module_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_ASP_Module_ID, Integer.valueOf(ASP_Module_ID));
}
/** Get ASP Module.
@return ASP Module */
public int getASP_Module_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_Module_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Description.
@param Description
Optional short description of the record
*/
public void setDescription (String Description)
{
if (Description != null && Description.length() > 255)
{
log.warning("Length > 255 - truncated");
Description = Description.substring(0, 255);
}
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)
{
if (Help != null && Help.length() > 2000)
{
log.warning("Length > 2000 - truncated");
Help = Help.substring(0, 2000);
}
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)
{
if (Name == null)
throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60)
{
log.warning("Length > 60 - truncated");
Name = Name.substring(0, 60);
}
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());
}
/** Set Process Now.
@param Processing Process Now */
public void setProcessing (boolean Processing)
{
set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing));
}
/** Get Process Now.
@return Process Now */
public boolean isProcessing ()
{
Object oo = get_Value(COLUMNNAME_Processing);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Search Key.
@param Value
Search key for the record in the format required - must be unique
*/
public void setValue (String Value)
{
if (Value == null)
throw new IllegalArgumentException ("Value is mandatory.");
if (Value.length() > 40)
{
log.warning("Length > 40 - truncated");
Value = Value.substring(0, 40);
}
set_Value (COLUMNNAME_Value, Value);
}
/** Get Search Key.
@return Search key for the record in the format required - must be unique
*/
public String getValue ()
{
return (String)get_Value(COLUMNNAME_Value);
}
}

View File

@ -0,0 +1,197 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 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 ASP_Module
* @author Adempiere (generated)
* @version Release 3.3.1t - $Id$ */
public class X_ASP_Module extends PO implements I_ASP_Module, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 1L;
/** Standard Constructor */
public X_ASP_Module (Properties ctx, int ASP_Module_ID, String trxName)
{
super (ctx, ASP_Module_ID, trxName);
/** if (ASP_Module_ID == 0)
{
setASP_Module_ID (0);
setName (null);
setValue (null);
} */
}
/** Load Constructor */
public X_ASP_Module (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()
{
StringBuffer sb = new StringBuffer ("X_ASP_Module[")
.append(get_ID()).append("]");
return sb.toString();
}
/** Set ASP Module.
@param ASP_Module_ID ASP Module */
public void setASP_Module_ID (int ASP_Module_ID)
{
if (ASP_Module_ID < 1)
throw new IllegalArgumentException ("ASP_Module_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_ASP_Module_ID, Integer.valueOf(ASP_Module_ID));
}
/** Get ASP Module.
@return ASP Module */
public int getASP_Module_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_Module_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Description.
@param Description
Optional short description of the record
*/
public void setDescription (String Description)
{
if (Description != null && Description.length() > 255)
{
log.warning("Length > 255 - truncated");
Description = Description.substring(0, 255);
}
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)
{
if (Help != null && Help.length() > 2000)
{
log.warning("Length > 2000 - truncated");
Help = Help.substring(0, 2000);
}
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)
{
if (Name == null)
throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60)
{
log.warning("Length > 60 - truncated");
Name = Name.substring(0, 60);
}
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());
}
/** Set Search Key.
@param Value
Search key for the record in the format required - must be unique
*/
public void setValue (String Value)
{
if (Value == null)
throw new IllegalArgumentException ("Value is mandatory.");
if (Value.length() > 40)
{
log.warning("Length > 40 - truncated");
Value = Value.substring(0, 40);
}
set_Value (COLUMNNAME_Value, Value);
}
/** Get Search Key.
@return Search key for the record in the format required - must be unique
*/
public String getValue ()
{
return (String)get_Value(COLUMNNAME_Value);
}
}

View File

@ -0,0 +1,178 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 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.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level;
/** Generated Model for ASP_Process
* @author Adempiere (generated)
* @version Release 3.3.1t - $Id$ */
public class X_ASP_Process extends PO implements I_ASP_Process, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 1L;
/** Standard Constructor */
public X_ASP_Process (Properties ctx, int ASP_Process_ID, String trxName)
{
super (ctx, ASP_Process_ID, trxName);
/** if (ASP_Process_ID == 0)
{
setAD_Process_ID (0);
setASP_Level_ID (0);
setASP_Status (null);
// U
} */
}
/** Load Constructor */
public X_ASP_Process (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()
{
StringBuffer sb = new StringBuffer ("X_ASP_Process[")
.append(get_ID()).append("]");
return sb.toString();
}
public I_AD_Process getAD_Process() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Process.Table_Name);
I_AD_Process result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Process.
@param AD_Process_ID
Process or Report
*/
public void setAD_Process_ID (int AD_Process_ID)
{
if (AD_Process_ID < 1)
throw new IllegalArgumentException ("AD_Process_ID is mandatory.");
set_ValueNoCheck (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 I_ASP_Level getASP_Level() throws Exception
{
Class<?> clazz = MTable.getClass(I_ASP_Level.Table_Name);
I_ASP_Level result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set ASP Level.
@param ASP_Level_ID ASP Level */
public void setASP_Level_ID (int ASP_Level_ID)
{
if (ASP_Level_ID < 1)
throw new IllegalArgumentException ("ASP_Level_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID));
}
/** Get ASP Level.
@return ASP Level */
public int getASP_Level_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_Level_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** ASP_Status AD_Reference_ID=1000000 */
public static final int ASP_STATUS_AD_Reference_ID=1000000;
/** Show = S */
public static final String ASP_STATUS_Show = "S";
/** Hide = H */
public static final String ASP_STATUS_Hide = "H";
/** Undefined = U */
public static final String ASP_STATUS_Undefined = "U";
/** Set ASP Status.
@param ASP_Status ASP Status */
public void setASP_Status (String ASP_Status)
{
if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory");
if (ASP_Status.equals("S") || ASP_Status.equals("H") || ASP_Status.equals("U")); else throw new IllegalArgumentException ("ASP_Status Invalid value - " + ASP_Status + " - Reference_ID=1000000 - S - H - U");
if (ASP_Status.length() > 1)
{
log.warning("Length > 1 - truncated");
ASP_Status = ASP_Status.substring(0, 1);
}
set_Value (COLUMNNAME_ASP_Status, ASP_Status);
}
/** Get ASP Status.
@return ASP Status */
public String getASP_Status ()
{
return (String)get_Value(COLUMNNAME_ASP_Status);
}
}

View File

@ -0,0 +1,214 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 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.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level;
/** Generated Model for ASP_Process_Para
* @author Adempiere (generated)
* @version Release 3.3.1t - $Id$ */
public class X_ASP_Process_Para extends PO implements I_ASP_Process_Para, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 1L;
/** Standard Constructor */
public X_ASP_Process_Para (Properties ctx, int ASP_Process_Para_ID, String trxName)
{
super (ctx, ASP_Process_Para_ID, trxName);
/** if (ASP_Process_Para_ID == 0)
{
setAD_Process_ID (0);
setASP_Level_ID (0);
setASP_Status (null);
// U
} */
}
/** Load Constructor */
public X_ASP_Process_Para (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()
{
StringBuffer sb = new StringBuffer ("X_ASP_Process_Para[")
.append(get_ID()).append("]");
return sb.toString();
}
public I_AD_Process getAD_Process() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Process.Table_Name);
I_AD_Process result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Process.
@param AD_Process_ID
Process or Report
*/
public void setAD_Process_ID (int AD_Process_ID)
{
if (AD_Process_ID < 1)
throw new IllegalArgumentException ("AD_Process_ID is mandatory.");
set_ValueNoCheck (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 I_AD_Process_Para getAD_Process_Para() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Process_Para.Table_Name);
I_AD_Process_Para result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Process_Para)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_Para_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Process Parameter.
@param AD_Process_Para_ID Process Parameter */
public void setAD_Process_Para_ID (int AD_Process_Para_ID)
{
if (AD_Process_Para_ID <= 0)
set_ValueNoCheck (COLUMNNAME_AD_Process_Para_ID, null);
else
set_ValueNoCheck (COLUMNNAME_AD_Process_Para_ID, Integer.valueOf(AD_Process_Para_ID));
}
/** Get Process Parameter.
@return Process Parameter */
public int getAD_Process_Para_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_Para_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_ASP_Level getASP_Level() throws Exception
{
Class<?> clazz = MTable.getClass(I_ASP_Level.Table_Name);
I_ASP_Level result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set ASP Level.
@param ASP_Level_ID ASP Level */
public void setASP_Level_ID (int ASP_Level_ID)
{
if (ASP_Level_ID < 1)
throw new IllegalArgumentException ("ASP_Level_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID));
}
/** Get ASP Level.
@return ASP Level */
public int getASP_Level_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_Level_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** ASP_Status AD_Reference_ID=1000000 */
public static final int ASP_STATUS_AD_Reference_ID=1000000;
/** Show = S */
public static final String ASP_STATUS_Show = "S";
/** Hide = H */
public static final String ASP_STATUS_Hide = "H";
/** Undefined = U */
public static final String ASP_STATUS_Undefined = "U";
/** Set ASP Status.
@param ASP_Status ASP Status */
public void setASP_Status (String ASP_Status)
{
if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory");
if (ASP_Status.equals("S") || ASP_Status.equals("H") || ASP_Status.equals("U")); else throw new IllegalArgumentException ("ASP_Status Invalid value - " + ASP_Status + " - Reference_ID=1000000 - S - H - U");
if (ASP_Status.length() > 1)
{
log.warning("Length > 1 - truncated");
ASP_Status = ASP_Status.substring(0, 1);
}
set_Value (COLUMNNAME_ASP_Status, ASP_Status);
}
/** Get ASP Status.
@return ASP Status */
public String getASP_Status ()
{
return (String)get_Value(COLUMNNAME_ASP_Status);
}
}

View File

@ -0,0 +1,262 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 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.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level;
/** Generated Model for ASP_Tab
* @author Adempiere (generated)
* @version Release 3.3.1t - $Id$ */
public class X_ASP_Tab extends PO implements I_ASP_Tab, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 1L;
/** Standard Constructor */
public X_ASP_Tab (Properties ctx, int ASP_Tab_ID, String trxName)
{
super (ctx, ASP_Tab_ID, trxName);
/** if (ASP_Tab_ID == 0)
{
setAD_Tab_ID (0);
setAD_Window_ID (0);
setASP_Level_ID (0);
setASP_Status (null);
// U
} */
}
/** Load Constructor */
public X_ASP_Tab (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()
{
StringBuffer sb = new StringBuffer ("X_ASP_Tab[")
.append(get_ID()).append("]");
return sb.toString();
}
public I_AD_Tab getAD_Tab() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Tab.Table_Name);
I_AD_Tab result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Tab)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Tab_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Tab.
@param AD_Tab_ID
Tab within a Window
*/
public void setAD_Tab_ID (int AD_Tab_ID)
{
if (AD_Tab_ID < 1)
throw new IllegalArgumentException ("AD_Tab_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID));
}
/** Get Tab.
@return Tab within a Window
*/
public int getAD_Tab_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tab_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_AD_Window getAD_Window() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Window.Table_Name);
I_AD_Window result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** 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)
throw new IllegalArgumentException ("AD_Window_ID is mandatory.");
set_ValueNoCheck (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 I_ASP_Level getASP_Level() throws Exception
{
Class<?> clazz = MTable.getClass(I_ASP_Level.Table_Name);
I_ASP_Level result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set ASP Level.
@param ASP_Level_ID ASP Level */
public void setASP_Level_ID (int ASP_Level_ID)
{
if (ASP_Level_ID < 1)
throw new IllegalArgumentException ("ASP_Level_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID));
}
/** Get ASP Level.
@return ASP Level */
public int getASP_Level_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_Level_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** ASP_Status AD_Reference_ID=1000000 */
public static final int ASP_STATUS_AD_Reference_ID=1000000;
/** Show = S */
public static final String ASP_STATUS_Show = "S";
/** Hide = H */
public static final String ASP_STATUS_Hide = "H";
/** Undefined = U */
public static final String ASP_STATUS_Undefined = "U";
/** Set ASP Status.
@param ASP_Status ASP Status */
public void setASP_Status (String ASP_Status)
{
if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory");
if (ASP_Status.equals("S") || ASP_Status.equals("H") || ASP_Status.equals("U")); else throw new IllegalArgumentException ("ASP_Status Invalid value - " + ASP_Status + " - Reference_ID=1000000 - S - H - U");
if (ASP_Status.length() > 1)
{
log.warning("Length > 1 - truncated");
ASP_Status = ASP_Status.substring(0, 1);
}
set_Value (COLUMNNAME_ASP_Status, ASP_Status);
}
/** Get ASP Status.
@return ASP Status */
public String getASP_Status ()
{
return (String)get_Value(COLUMNNAME_ASP_Status);
}
/** Set Include all fields.
@param AllFields
Include all fields
*/
public void setAllFields (boolean AllFields)
{
set_Value (COLUMNNAME_AllFields, Boolean.valueOf(AllFields));
}
/** Get Include all fields.
@return Include all fields
*/
public boolean isAllFields ()
{
Object oo = get_Value(COLUMNNAME_AllFields);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Process Now.
@param Processing Process Now */
public void setProcessing (boolean Processing)
{
set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing));
}
/** Get Process Now.
@return Process Now */
public boolean isProcessing ()
{
Object oo = get_Value(COLUMNNAME_Processing);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
}

View File

@ -0,0 +1,178 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 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.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level;
/** Generated Model for ASP_Task
* @author Adempiere (generated)
* @version Release 3.3.1t - $Id$ */
public class X_ASP_Task extends PO implements I_ASP_Task, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 1L;
/** Standard Constructor */
public X_ASP_Task (Properties ctx, int ASP_Task_ID, String trxName)
{
super (ctx, ASP_Task_ID, trxName);
/** if (ASP_Task_ID == 0)
{
setAD_Task_ID (0);
setASP_Level_ID (0);
setASP_Status (null);
// U
} */
}
/** Load Constructor */
public X_ASP_Task (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()
{
StringBuffer sb = new StringBuffer ("X_ASP_Task[")
.append(get_ID()).append("]");
return sb.toString();
}
public I_AD_Task getAD_Task() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Task.Table_Name);
I_AD_Task result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Task)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Task_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set OS Task.
@param AD_Task_ID
Operation System Task
*/
public void setAD_Task_ID (int AD_Task_ID)
{
if (AD_Task_ID < 1)
throw new IllegalArgumentException ("AD_Task_ID is mandatory.");
set_ValueNoCheck (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 I_ASP_Level getASP_Level() throws Exception
{
Class<?> clazz = MTable.getClass(I_ASP_Level.Table_Name);
I_ASP_Level result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set ASP Level.
@param ASP_Level_ID ASP Level */
public void setASP_Level_ID (int ASP_Level_ID)
{
if (ASP_Level_ID < 1)
throw new IllegalArgumentException ("ASP_Level_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID));
}
/** Get ASP Level.
@return ASP Level */
public int getASP_Level_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_Level_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** ASP_Status AD_Reference_ID=1000000 */
public static final int ASP_STATUS_AD_Reference_ID=1000000;
/** Show = S */
public static final String ASP_STATUS_Show = "S";
/** Hide = H */
public static final String ASP_STATUS_Hide = "H";
/** Undefined = U */
public static final String ASP_STATUS_Undefined = "U";
/** Set ASP Status.
@param ASP_Status ASP Status */
public void setASP_Status (String ASP_Status)
{
if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory");
if (ASP_Status.equals("S") || ASP_Status.equals("H") || ASP_Status.equals("U")); else throw new IllegalArgumentException ("ASP_Status Invalid value - " + ASP_Status + " - Reference_ID=1000000 - S - H - U");
if (ASP_Status.length() > 1)
{
log.warning("Length > 1 - truncated");
ASP_Status = ASP_Status.substring(0, 1);
}
set_Value (COLUMNNAME_ASP_Status, ASP_Status);
}
/** Get ASP Status.
@return ASP Status */
public String getASP_Status ()
{
return (String)get_Value(COLUMNNAME_ASP_Status);
}
}

View File

@ -0,0 +1,178 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 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.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level;
/** Generated Model for ASP_Window
* @author Adempiere (generated)
* @version Release 3.3.1t - $Id$ */
public class X_ASP_Window extends PO implements I_ASP_Window, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 1L;
/** Standard Constructor */
public X_ASP_Window (Properties ctx, int ASP_Window_ID, String trxName)
{
super (ctx, ASP_Window_ID, trxName);
/** if (ASP_Window_ID == 0)
{
setAD_Window_ID (0);
setASP_Level_ID (0);
setASP_Status (null);
// U
} */
}
/** Load Constructor */
public X_ASP_Window (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()
{
StringBuffer sb = new StringBuffer ("X_ASP_Window[")
.append(get_ID()).append("]");
return sb.toString();
}
public I_AD_Window getAD_Window() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Window.Table_Name);
I_AD_Window result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** 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)
throw new IllegalArgumentException ("AD_Window_ID is mandatory.");
set_ValueNoCheck (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 I_ASP_Level getASP_Level() throws Exception
{
Class<?> clazz = MTable.getClass(I_ASP_Level.Table_Name);
I_ASP_Level result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set ASP Level.
@param ASP_Level_ID ASP Level */
public void setASP_Level_ID (int ASP_Level_ID)
{
if (ASP_Level_ID < 1)
throw new IllegalArgumentException ("ASP_Level_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID));
}
/** Get ASP Level.
@return ASP Level */
public int getASP_Level_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_Level_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** ASP_Status AD_Reference_ID=1000000 */
public static final int ASP_STATUS_AD_Reference_ID=1000000;
/** Show = S */
public static final String ASP_STATUS_Show = "S";
/** Hide = H */
public static final String ASP_STATUS_Hide = "H";
/** Undefined = U */
public static final String ASP_STATUS_Undefined = "U";
/** Set ASP Status.
@param ASP_Status ASP Status */
public void setASP_Status (String ASP_Status)
{
if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory");
if (ASP_Status.equals("S") || ASP_Status.equals("H") || ASP_Status.equals("U")); else throw new IllegalArgumentException ("ASP_Status Invalid value - " + ASP_Status + " - Reference_ID=1000000 - S - H - U");
if (ASP_Status.length() > 1)
{
log.warning("Length > 1 - truncated");
ASP_Status = ASP_Status.substring(0, 1);
}
set_Value (COLUMNNAME_ASP_Status, ASP_Status);
}
/** Get ASP Status.
@return ASP Status */
public String getASP_Status ()
{
return (String)get_Value(COLUMNNAME_ASP_Status);
}
}

View File

@ -0,0 +1,178 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 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.lang.reflect.Constructor;
import java.sql.ResultSet;
import java.util.Properties;
import java.util.logging.Level;
/** Generated Model for ASP_Workflow
* @author Adempiere (generated)
* @version Release 3.3.1t - $Id$ */
public class X_ASP_Workflow extends PO implements I_ASP_Workflow, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 1L;
/** Standard Constructor */
public X_ASP_Workflow (Properties ctx, int ASP_Workflow_ID, String trxName)
{
super (ctx, ASP_Workflow_ID, trxName);
/** if (ASP_Workflow_ID == 0)
{
setAD_Workflow_ID (0);
setASP_Level_ID (0);
setASP_Status (null);
// U
} */
}
/** Load Constructor */
public X_ASP_Workflow (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()
{
StringBuffer sb = new StringBuffer ("X_ASP_Workflow[")
.append(get_ID()).append("]");
return sb.toString();
}
public I_AD_Workflow getAD_Workflow() throws Exception
{
Class<?> clazz = MTable.getClass(I_AD_Workflow.Table_Name);
I_AD_Workflow result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Workflow.
@param AD_Workflow_ID
Workflow or combination of tasks
*/
public void setAD_Workflow_ID (int AD_Workflow_ID)
{
if (AD_Workflow_ID < 1)
throw new IllegalArgumentException ("AD_Workflow_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID));
}
/** Get Workflow.
@return Workflow or combination of tasks
*/
public int getAD_Workflow_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public I_ASP_Level getASP_Level() throws Exception
{
Class<?> clazz = MTable.getClass(I_ASP_Level.Table_Name);
I_ASP_Level result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_ASP_Level)constructor.newInstance(new Object[] {getCtx(), new Integer(getASP_Level_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set ASP Level.
@param ASP_Level_ID ASP Level */
public void setASP_Level_ID (int ASP_Level_ID)
{
if (ASP_Level_ID < 1)
throw new IllegalArgumentException ("ASP_Level_ID is mandatory.");
set_ValueNoCheck (COLUMNNAME_ASP_Level_ID, Integer.valueOf(ASP_Level_ID));
}
/** Get ASP Level.
@return ASP Level */
public int getASP_Level_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_ASP_Level_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** ASP_Status AD_Reference_ID=1000000 */
public static final int ASP_STATUS_AD_Reference_ID=1000000;
/** Show = S */
public static final String ASP_STATUS_Show = "S";
/** Hide = H */
public static final String ASP_STATUS_Hide = "H";
/** Undefined = U */
public static final String ASP_STATUS_Undefined = "U";
/** Set ASP Status.
@param ASP_Status ASP Status */
public void setASP_Status (String ASP_Status)
{
if (ASP_Status == null) throw new IllegalArgumentException ("ASP_Status is mandatory");
if (ASP_Status.equals("S") || ASP_Status.equals("H") || ASP_Status.equals("U")); else throw new IllegalArgumentException ("ASP_Status Invalid value - " + ASP_Status + " - Reference_ID=1000000 - S - H - U");
if (ASP_Status.length() > 1)
{
log.warning("Length > 1 - truncated");
ASP_Status = ASP_Status.substring(0, 1);
}
set_Value (COLUMNNAME_ASP_Status, ASP_Status);
}
/** Get ASP Status.
@return ASP Status */
public String getASP_Status ()
{
return (String)get_Value(COLUMNNAME_ASP_Status);
}
}

View File

@ -138,6 +138,43 @@ public class ProcessParameter extends CDialog
gbc.fill = GridBagConstraints.HORIZONTAL;
centerPanel.add(Box.createVerticalStrut(10), gbc); // top gap 10+2=12
// ASP
MClient client = MClient.get(Env.getCtx());
String ASPFilter = "";
if (client.isUseASP())
ASPFilter =
" AND ( AD_Process_Para_ID IN ( "
// Just ASP subscribed process parameters for client "
+ " SELECT w.AD_Process_Para_ID "
+ " FROM ASP_Process_Para w, ASP_Level l, ASP_ClientLevel cl "
+ " WHERE w.ASP_Level_ID = l.ASP_Level_ID "
+ " AND cl.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND cl.ASP_Level_ID = l.ASP_Level_ID "
+ " AND w.IsActive = 'Y' "
+ " AND l.IsActive = 'Y' "
+ " AND cl.IsActive = 'Y' "
+ " AND w.ASP_Status = 'S') " // Show
+ " OR AD_Process_Para_ID IN ( "
// + show ASP exceptions for client
+ " SELECT AD_Process_Para_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Process_Para_ID IS NOT NULL "
+ " AND ce.AD_Tab_ID IS NULL "
+ " AND ce.AD_Field_ID IS NULL "
+ " AND ce.ASP_Status = 'S') " // Show
+ " ) "
+ " AND AD_Process_Para_ID NOT IN ( "
// minus hide ASP exceptions for client
+ " SELECT AD_Process_Para_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Process_Para_ID IS NOT NULL "
+ " AND ce.AD_Tab_ID IS NULL "
+ " AND ce.AD_Field_ID IS NULL "
+ " AND ce.ASP_Status = 'H')"; // Hide
//
String sql = null;
if (Env.isBaseLanguage(Env.getCtx(), "AD_Process_Para"))
@ -150,7 +187,7 @@ public class ProcessParameter extends CDialog
+ " LEFT OUTER JOIN AD_Val_Rule vr ON (p.AD_Val_Rule_ID=vr.AD_Val_Rule_ID) "
+ "WHERE p.AD_Process_ID=?" // 1
+ " AND p.IsActive='Y' "
+ "ORDER BY SeqNo";
+ ASPFilter + " ORDER BY SeqNo";
else
sql = "SELECT t.Name, t.Description, t.Help, "
+ "p.AD_Reference_ID, p.AD_Process_Para_ID, "
@ -163,7 +200,7 @@ public class ProcessParameter extends CDialog
+ "WHERE p.AD_Process_ID=?" // 1
+ " AND t.AD_Language='" + Env.getAD_Language(Env.getCtx()) + "'"
+ " AND p.IsActive='Y' "
+ "ORDER BY SeqNo";
+ ASPFilter + " ORDER BY SeqNo";
// Create Fields
boolean hasFields = false;

View File

@ -36,6 +36,7 @@ import org.compiere.grid.ed.VEditor;
import org.compiere.grid.ed.VEditorFactory;
import org.compiere.model.GridField;
import org.compiere.model.GridFieldVO;
import org.compiere.model.MClient;
import org.compiere.model.MPInstancePara;
import org.compiere.process.ProcessInfo;
import org.compiere.swing.CPanel;
@ -137,6 +138,43 @@ public class ProcessParameterPanel extends CPanel implements VetoableChangeListe
gbc.fill = GridBagConstraints.HORIZONTAL;
centerPanel.add(Box.createVerticalStrut(10), gbc); // top gap 10+2=12
// ASP
MClient client = MClient.get(Env.getCtx());
String ASPFilter = "";
if (client.isUseASP())
ASPFilter =
" AND ( AD_Process_Para_ID IN ( "
// Just ASP subscribed process parameters for client "
+ " SELECT w.AD_Process_Para_ID "
+ " FROM ASP_Process_Para w, ASP_Level l, ASP_ClientLevel cl "
+ " WHERE w.ASP_Level_ID = l.ASP_Level_ID "
+ " AND cl.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND cl.ASP_Level_ID = l.ASP_Level_ID "
+ " AND w.IsActive = 'Y' "
+ " AND l.IsActive = 'Y' "
+ " AND cl.IsActive = 'Y' "
+ " AND w.ASP_Status = 'S') " // Show
+ " OR AD_Process_Para_ID IN ( "
// + show ASP exceptions for client
+ " SELECT AD_Process_Para_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Process_Para_ID IS NOT NULL "
+ " AND ce.AD_Tab_ID IS NULL "
+ " AND ce.AD_Field_ID IS NULL "
+ " AND ce.ASP_Status = 'S') " // Show
+ " ) "
+ " AND AD_Process_Para_ID NOT IN ( "
// minus hide ASP exceptions for client
+ " SELECT AD_Process_Para_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Process_Para_ID IS NOT NULL "
+ " AND ce.AD_Tab_ID IS NULL "
+ " AND ce.AD_Field_ID IS NULL "
+ " AND ce.ASP_Status = 'H')"; // Hide
//
String sql = null;
if (Env.isBaseLanguage(Env.getCtx(), "AD_Process_Para"))
@ -149,7 +187,7 @@ public class ProcessParameterPanel extends CPanel implements VetoableChangeListe
+ " LEFT OUTER JOIN AD_Val_Rule vr ON (p.AD_Val_Rule_ID=vr.AD_Val_Rule_ID) "
+ "WHERE p.AD_Process_ID=?" // 1
+ " AND p.IsActive='Y' "
+ "ORDER BY SeqNo";
+ ASPFilter + " ORDER BY SeqNo";
else
sql = "SELECT t.Name, t.Description, t.Help, "
+ "p.AD_Reference_ID, p.AD_Process_Para_ID, "
@ -162,7 +200,7 @@ public class ProcessParameterPanel extends CPanel implements VetoableChangeListe
+ "WHERE p.AD_Process_ID=?" // 1
+ " AND t.AD_Language='" + Env.getAD_Language(Env.getCtx()) + "'"
+ " AND p.IsActive='Y' "
+ "ORDER BY SeqNo";
+ ASPFilter + " ORDER BY SeqNo";
// Create Fields
boolean hasFields = false;

View File

@ -143,6 +143,7 @@ public class ArchiveViewer extends CTabbedPane
// Processes
boolean trl = !Env.isBaseLanguage(Env.getCtx(), "AD_Process");
String lang = Env.getAD_Language(Env.getCtx());
// TODO: ASP - implement process and window access ASP control
String sql = "SELECT DISTINCT p.AD_Process_ID,"
+ (trl ? "trl.Name" : "p.Name ")
+ " FROM AD_Process p INNER JOIN AD_Process_Access pa ON (p.AD_Process_ID=pa.AD_Process_ID) "

View File

@ -955,11 +955,46 @@ public class Viewer extends CFrame
+ "WHERE tt.AD_Table_ID=? "
+ "ORDER BY w.IsDefault DESC, t.SeqNo, ABS (tt.AD_Window_ID-t.AD_Window_ID)";
int AD_Tab_ID = DB.getSQLValue(null, sql, AD_Table_ID);
// ASP
MClient client = MClient.get(Env.getCtx());
String ASPFilter = "";
if (client.isUseASP())
ASPFilter =
" AND ( AD_Tab_ID IN ( "
// Just ASP subscribed tabs for client "
+ " SELECT w.AD_Tab_ID "
+ " FROM ASP_Tab w, ASP_Level l, ASP_ClientLevel cl "
+ " WHERE w.ASP_Level_ID = l.ASP_Level_ID "
+ " AND cl.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND cl.ASP_Level_ID = l.ASP_Level_ID "
+ " AND w.IsActive = 'Y' "
+ " AND l.IsActive = 'Y' "
+ " AND cl.IsActive = 'Y' "
+ " AND w.ASP_Status = 'S') " // Show
+ " OR AD_Tab_ID IN ( "
// + show ASP exceptions for client
+ " SELECT AD_Tab_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Tab_ID IS NOT NULL "
+ " AND ce.AD_Field_ID IS NULL "
+ " AND ce.ASP_Status = 'S') " // Show
+ " ) "
+ " AND AD_Tab_ID NOT IN ( "
// minus hide ASP exceptions for client
+ " SELECT AD_Tab_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Tab_ID IS NOT NULL "
+ " AND ce.AD_Field_ID IS NULL "
+ " AND ce.ASP_Status = 'H')"; // Hide
//
sql = "SELECT Name, TableName FROM AD_Tab_v WHERE AD_Tab_ID=?";
sql = "SELECT Name, TableName FROM AD_Tab_v WHERE AD_Tab_ID=? " + ASPFilter;
if (!Env.isBaseLanguage(Env.getCtx(), "AD_Tab"))
sql = "SELECT Name, TableName FROM AD_Tab_vt WHERE AD_Tab_ID=?"
+ " AND AD_Language='" + Env.getAD_Language(Env.getCtx()) + "'";
+ " AND AD_Language='" + Env.getAD_Language(Env.getCtx()) + "' " + ASPFilter;
try
{
PreparedStatement pstmt = DB.prepareStatement(sql, null);

View File

@ -108,6 +108,43 @@ implements ValueChangeListener, IProcessParameter
{
log.config("");
// ASP
MClient client = MClient.get(Env.getCtx());
String ASPFilter = "";
if (client.isUseASP())
ASPFilter =
" AND ( AD_Process_Para_ID IN ( "
// Just ASP subscribed process parameters for client "
+ " SELECT w.AD_Process_Para_ID "
+ " FROM ASP_Process_Para w, ASP_Level l, ASP_ClientLevel cl "
+ " WHERE w.ASP_Level_ID = l.ASP_Level_ID "
+ " AND cl.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND cl.ASP_Level_ID = l.ASP_Level_ID "
+ " AND w.IsActive = 'Y' "
+ " AND l.IsActive = 'Y' "
+ " AND cl.IsActive = 'Y' "
+ " AND w.ASP_Status = 'S') " // Show
+ " OR AD_Process_Para_ID IN ( "
// + show ASP exceptions for client
+ " SELECT AD_Process_Para_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Process_Para_ID IS NOT NULL "
+ " AND ce.AD_Tab_ID IS NULL "
+ " AND ce.AD_Field_ID IS NULL "
+ " AND ce.ASP_Status = 'S') " // Show
+ " ) "
+ " AND AD_Process_Para_ID NOT IN ( "
// minus hide ASP exceptions for client
+ " SELECT AD_Process_Para_ID "
+ " FROM ASP_ClientException ce "
+ " WHERE ce.AD_Client_ID = " + client.getAD_Client_ID()
+ " AND ce.IsActive = 'Y' "
+ " AND ce.AD_Process_Para_ID IS NOT NULL "
+ " AND ce.AD_Tab_ID IS NULL "
+ " AND ce.AD_Field_ID IS NULL "
+ " AND ce.ASP_Status = 'H')"; // Hide
//
String sql = null;
if (Env.isBaseLanguage(Env.getCtx(), "AD_Process_Para"))
@ -120,7 +157,7 @@ implements ValueChangeListener, IProcessParameter
+ " LEFT OUTER JOIN AD_Val_Rule vr ON (p.AD_Val_Rule_ID=vr.AD_Val_Rule_ID) "
+ "WHERE p.AD_Process_ID=?" // 1
+ " AND p.IsActive='Y' "
+ "ORDER BY SeqNo";
+ ASPFilter + " ORDER BY SeqNo";
else
sql = "SELECT t.Name, t.Description, t.Help, "
+ "p.AD_Reference_ID, p.AD_Process_Para_ID, "
@ -133,7 +170,7 @@ implements ValueChangeListener, IProcessParameter
+ "WHERE p.AD_Process_ID=?" // 1
+ " AND t.AD_Language='" + Env.getAD_Language(Env.getCtx()) + "'"
+ " AND p.IsActive='Y' "
+ "ORDER BY SeqNo";
+ ASPFilter + " ORDER BY SeqNo";
// Create Fields
boolean hasFields = false;

View File

@ -176,6 +176,7 @@ public class WArchiveViewer extends ADForm implements EventListener, ValueChange
//Processes
boolean trl = !Env.isBaseLanguage(Env.getCtx(), "AD_Process");
String lang = Env.getAD_Language(Env.getCtx());
// TODO: ASP - implement process and window access ASP control
String sql = "SELECT DISTINCT p.AD_Process_ID,"
+ (trl ? "trl.Name" : "p.Name ")
+ " FROM AD_Process p INNER JOIN AD_Process_Access pa ON (p.AD_Process_ID=pa.AD_Process_ID) "

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff