IDEMPIERE-1157 Adding functionality to add charts on the standard windows / QA
This commit is contained in:
parent
29e8859bbc
commit
abd74af7bb
|
@ -0,0 +1,33 @@
|
||||||
|
-- Aug 23, 2013 9:21:49 AM COT
|
||||||
|
-- IDEMPIERE-1157 Adding functionality to add charts on the standard windows
|
||||||
|
UPDATE AD_Element SET Description='Type of chart to render',Updated=TO_DATE('2013-08-23 09:21:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53894
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 23, 2013 9:21:49 AM COT
|
||||||
|
-- IDEMPIERE-1157 Adding functionality to add charts on the standard windows
|
||||||
|
UPDATE AD_Column SET ColumnName='ChartType', Name='Chart Type', Description='Type of chart to render', Help=NULL WHERE AD_Element_ID=53894
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 23, 2013 9:21:49 AM COT
|
||||||
|
-- IDEMPIERE-1157 Adding functionality to add charts on the standard windows
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='ChartType', Name='Chart Type', Description='Type of chart to render', Help=NULL, AD_Element_ID=53894 WHERE UPPER(ColumnName)='CHARTTYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 23, 2013 9:21:49 AM COT
|
||||||
|
-- IDEMPIERE-1157 Adding functionality to add charts on the standard windows
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='ChartType', Name='Chart Type', Description='Type of chart to render', Help=NULL WHERE AD_Element_ID=53894 AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 23, 2013 9:21:49 AM COT
|
||||||
|
-- IDEMPIERE-1157 Adding functionality to add charts on the standard windows
|
||||||
|
UPDATE AD_InfoColumn SET ColumnName='ChartType', Name='Chart Type', Description='Type of chart to render', Help=NULL WHERE AD_Element_ID=53894 AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 23, 2013 9:21:49 AM COT
|
||||||
|
-- IDEMPIERE-1157 Adding functionality to add charts on the standard windows
|
||||||
|
UPDATE AD_Field SET Name='Chart Type', Description='Type of chart to render', Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53894) AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308230922_IDEMPIERE-1157.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
-- Aug 23, 2013 9:21:49 AM COT
|
||||||
|
-- IDEMPIERE-1157 Adding functionality to add charts on the standard windows
|
||||||
|
UPDATE AD_Element SET Description='Type of chart to render',Updated=TO_TIMESTAMP('2013-08-23 09:21:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53894
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 23, 2013 9:21:49 AM COT
|
||||||
|
-- IDEMPIERE-1157 Adding functionality to add charts on the standard windows
|
||||||
|
UPDATE AD_Column SET ColumnName='ChartType', Name='Chart Type', Description='Type of chart to render', Help=NULL WHERE AD_Element_ID=53894
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 23, 2013 9:21:49 AM COT
|
||||||
|
-- IDEMPIERE-1157 Adding functionality to add charts on the standard windows
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='ChartType', Name='Chart Type', Description='Type of chart to render', Help=NULL, AD_Element_ID=53894 WHERE UPPER(ColumnName)='CHARTTYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 23, 2013 9:21:49 AM COT
|
||||||
|
-- IDEMPIERE-1157 Adding functionality to add charts on the standard windows
|
||||||
|
UPDATE AD_Process_Para SET ColumnName='ChartType', Name='Chart Type', Description='Type of chart to render', Help=NULL WHERE AD_Element_ID=53894 AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 23, 2013 9:21:49 AM COT
|
||||||
|
-- IDEMPIERE-1157 Adding functionality to add charts on the standard windows
|
||||||
|
UPDATE AD_InfoColumn SET ColumnName='ChartType', Name='Chart Type', Description='Type of chart to render', Help=NULL WHERE AD_Element_ID=53894 AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Aug 23, 2013 9:21:49 AM COT
|
||||||
|
-- IDEMPIERE-1157 Adding functionality to add charts on the standard windows
|
||||||
|
UPDATE AD_Field SET Name='Chart Type', Description='Type of chart to render', Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53894) AND IsCentrallyMaintained='Y'
|
||||||
|
;
|
||||||
|
|
||||||
|
SELECT register_migration_script('201308230922_IDEMPIERE-1157.sql') FROM dual
|
||||||
|
;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||||
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
|
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||||
* This program is free software, you can redistribute it and/or modify it *
|
* 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 *
|
* 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 *
|
* by the Free Software Foundation. This program is distributed in the hope *
|
||||||
|
@ -21,8 +21,8 @@ import java.sql.Timestamp;
|
||||||
import org.compiere.util.KeyNamePair;
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
/** Generated Interface for AD_Chart
|
/** Generated Interface for AD_Chart
|
||||||
* @author Adempiere (generated)
|
* @author iDempiere (generated)
|
||||||
* @version Release 3.6.0LTS
|
* @version Release 1.0c
|
||||||
*/
|
*/
|
||||||
public interface I_AD_Chart
|
public interface I_AD_Chart
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,7 @@ public interface I_AD_Chart
|
||||||
public static final String Table_Name = "AD_Chart";
|
public static final String Table_Name = "AD_Chart";
|
||||||
|
|
||||||
/** AD_Table_ID=53284 */
|
/** AD_Table_ID=53284 */
|
||||||
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
public static final int Table_ID = 53284;
|
||||||
|
|
||||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||||
|
|
||||||
|
@ -50,6 +50,15 @@ public interface I_AD_Chart
|
||||||
/** Get Chart */
|
/** Get Chart */
|
||||||
public int getAD_Chart_ID();
|
public int getAD_Chart_ID();
|
||||||
|
|
||||||
|
/** Column name AD_Chart_UU */
|
||||||
|
public static final String COLUMNNAME_AD_Chart_UU = "AD_Chart_UU";
|
||||||
|
|
||||||
|
/** Set AD_Chart_UU */
|
||||||
|
public void setAD_Chart_UU (String AD_Chart_UU);
|
||||||
|
|
||||||
|
/** Get AD_Chart_UU */
|
||||||
|
public String getAD_Chart_UU();
|
||||||
|
|
||||||
/** Column name AD_Client_ID */
|
/** Column name AD_Client_ID */
|
||||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||||
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
|
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||||
* This program is free software, you can redistribute it and/or modify it *
|
* 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 *
|
* 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 *
|
* by the Free Software Foundation. This program is distributed in the hope *
|
||||||
|
@ -21,8 +21,8 @@ import java.sql.Timestamp;
|
||||||
import org.compiere.util.KeyNamePair;
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
/** Generated Interface for AD_ChartDatasource
|
/** Generated Interface for AD_ChartDatasource
|
||||||
* @author Adempiere (generated)
|
* @author iDempiere (generated)
|
||||||
* @version 360LTS.013
|
* @version Release 1.0c
|
||||||
*/
|
*/
|
||||||
public interface I_AD_ChartDatasource
|
public interface I_AD_ChartDatasource
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,7 @@ public interface I_AD_ChartDatasource
|
||||||
public static final String Table_Name = "AD_ChartDatasource";
|
public static final String Table_Name = "AD_ChartDatasource";
|
||||||
|
|
||||||
/** AD_Table_ID=53282 */
|
/** AD_Table_ID=53282 */
|
||||||
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
public static final int Table_ID = 53282;
|
||||||
|
|
||||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||||
|
|
||||||
|
@ -50,6 +50,15 @@ public interface I_AD_ChartDatasource
|
||||||
/** Get Chart Datasource */
|
/** Get Chart Datasource */
|
||||||
public int getAD_ChartDatasource_ID();
|
public int getAD_ChartDatasource_ID();
|
||||||
|
|
||||||
|
/** Column name AD_ChartDatasource_UU */
|
||||||
|
public static final String COLUMNNAME_AD_ChartDatasource_UU = "AD_ChartDatasource_UU";
|
||||||
|
|
||||||
|
/** Set AD_ChartDatasource_UU */
|
||||||
|
public void setAD_ChartDatasource_UU (String AD_ChartDatasource_UU);
|
||||||
|
|
||||||
|
/** Get AD_ChartDatasource_UU */
|
||||||
|
public String getAD_ChartDatasource_UU();
|
||||||
|
|
||||||
/** Column name AD_Chart_ID */
|
/** Column name AD_Chart_ID */
|
||||||
public static final String COLUMNNAME_AD_Chart_ID = "AD_Chart_ID";
|
public static final String COLUMNNAME_AD_Chart_ID = "AD_Chart_ID";
|
||||||
|
|
||||||
|
@ -59,7 +68,7 @@ public interface I_AD_ChartDatasource
|
||||||
/** Get Chart */
|
/** Get Chart */
|
||||||
public int getAD_Chart_ID();
|
public int getAD_Chart_ID();
|
||||||
|
|
||||||
public I_AD_Chart getAD_Chart() throws RuntimeException;
|
public org.compiere.model.I_AD_Chart getAD_Chart() throws RuntimeException;
|
||||||
|
|
||||||
/** Column name AD_Client_ID */
|
/** Column name AD_Client_ID */
|
||||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||||
|
@ -72,13 +81,13 @@ public interface I_AD_ChartDatasource
|
||||||
/** Column name AD_Org_ID */
|
/** Column name AD_Org_ID */
|
||||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||||
|
|
||||||
/** Set Organisation.
|
/** Set Organization.
|
||||||
* Organisational entity within client
|
* Organizational entity within client
|
||||||
*/
|
*/
|
||||||
public void setAD_Org_ID (int AD_Org_ID);
|
public void setAD_Org_ID (int AD_Org_ID);
|
||||||
|
|
||||||
/** Get Organisation.
|
/** Get Organization.
|
||||||
* Organisational entity within client
|
* Organizational entity within client
|
||||||
*/
|
*/
|
||||||
public int getAD_Org_ID();
|
public int getAD_Org_ID();
|
||||||
|
|
||||||
|
@ -95,7 +104,7 @@ public interface I_AD_ChartDatasource
|
||||||
*/
|
*/
|
||||||
public int getAD_Table_ID();
|
public int getAD_Table_ID();
|
||||||
|
|
||||||
public I_AD_Table getAD_Table() throws RuntimeException;
|
public org.compiere.model.I_AD_Table getAD_Table() throws RuntimeException;
|
||||||
|
|
||||||
/** Column name CategoryColumn */
|
/** Column name CategoryColumn */
|
||||||
public static final String COLUMNNAME_CategoryColumn = "CategoryColumn";
|
public static final String COLUMNNAME_CategoryColumn = "CategoryColumn";
|
||||||
|
|
|
@ -96,12 +96,12 @@ public interface I_PA_Goal
|
||||||
public static final String COLUMNNAME_ChartType = "ChartType";
|
public static final String COLUMNNAME_ChartType = "ChartType";
|
||||||
|
|
||||||
/** Set Chart Type.
|
/** Set Chart Type.
|
||||||
* Type fo chart to render
|
* Type of chart to render
|
||||||
*/
|
*/
|
||||||
public void setChartType (String ChartType);
|
public void setChartType (String ChartType);
|
||||||
|
|
||||||
/** Get Chart Type.
|
/** Get Chart Type.
|
||||||
* Type fo chart to render
|
* Type of chart to render
|
||||||
*/
|
*/
|
||||||
public String getChartType();
|
public String getChartType();
|
||||||
|
|
||||||
|
|
|
@ -118,15 +118,8 @@ public class MChartDatasource extends X_AD_ChartDatasource {
|
||||||
sql += category + "<=TRUNC(" + DB.TO_DATE(new Timestamp(endDate.getTime())) + ", '" + unit + "') ";
|
sql += category + "<=TRUNC(" + DB.TO_DATE(new Timestamp(endDate.getTime())) + ", '" + unit + "') ";
|
||||||
}
|
}
|
||||||
|
|
||||||
int startIndex=0;
|
if (sql.indexOf('@') >= 0) {
|
||||||
if ((startIndex = sql.indexOf('@')) != -1){
|
sql = Env.parseContext(getCtx(), 0, sql, false, true);
|
||||||
String variable = sql.substring(startIndex);
|
|
||||||
int endIndex = variable.indexOf('@',1);
|
|
||||||
if(endIndex != -1){
|
|
||||||
variable = variable.substring(0,endIndex+1);
|
|
||||||
String val = Env.getContext(getCtx(), variable.replace('@',' ').trim());
|
|
||||||
sql=sql.replaceFirst(variable, val);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MRole role = MRole.getDefault(getCtx(), false);
|
MRole role = MRole.getDefault(getCtx(), false);
|
||||||
|
@ -254,26 +247,6 @@ public class MChartDatasource extends X_AD_ChartDatasource {
|
||||||
return cal.getTime();
|
return cal.getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String formatDate(Date date, String timeUnit)
|
|
||||||
{
|
|
||||||
String key = null;
|
|
||||||
String unitFormat = "yyyy-MM-dd";
|
|
||||||
if ( timeUnit.equals(MChart.TIMEUNIT_Week))
|
|
||||||
unitFormat = "yyyy-w";
|
|
||||||
else if ( timeUnit.equals(MChart.TIMEUNIT_Month))
|
|
||||||
unitFormat = "yyyy-MMM";
|
|
||||||
else if ( timeUnit.equals(MChart.TIMEUNIT_Quarter))
|
|
||||||
unitFormat = "yyyy-MM";
|
|
||||||
else if ( timeUnit.equals(MChart.TIMEUNIT_Year))
|
|
||||||
unitFormat = "yyyy";
|
|
||||||
SimpleDateFormat format = new SimpleDateFormat(unitFormat);
|
|
||||||
key = format.format(date);
|
|
||||||
if ( timeUnit.equals(MChart.TIMEUNIT_Quarter) )
|
|
||||||
key = convertToQuarter(format.format(date));
|
|
||||||
|
|
||||||
return key;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert date formatted as yyyy-MM to yyyy-QQ
|
* Convert date formatted as yyyy-MM to yyyy-QQ
|
||||||
* @param month
|
* @param month
|
||||||
|
|
|
@ -727,6 +727,8 @@ public class MColumn extends X_AD_Column
|
||||||
foreignTable = "AD_Image";
|
foreignTable = "AD_Image";
|
||||||
} else if (DisplayType.Color == refid) {
|
} else if (DisplayType.Color == refid) {
|
||||||
foreignTable = "AD_Color";
|
foreignTable = "AD_Color";
|
||||||
|
} else if (DisplayType.Chart == refid) {
|
||||||
|
foreignTable = "AD_Chart";
|
||||||
}
|
}
|
||||||
|
|
||||||
return foreignTable;
|
return foreignTable;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||||
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
|
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||||
* This program is free software, you can redistribute it and/or modify it *
|
* 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 *
|
* 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 *
|
* by the Free Software Foundation. This program is distributed in the hope *
|
||||||
|
@ -21,15 +21,15 @@ import java.sql.ResultSet;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
/** Generated Model for AD_Chart
|
/** Generated Model for AD_Chart
|
||||||
* @author Adempiere (generated)
|
* @author iDempiere (generated)
|
||||||
* @version 1.03 - $Id$ */
|
* @version Release 1.0c - $Id$ */
|
||||||
public class X_AD_Chart extends PO implements I_AD_Chart, I_Persistent
|
public class X_AD_Chart extends PO implements I_AD_Chart, I_Persistent
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20120608L;
|
private static final long serialVersionUID = 20130823L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_AD_Chart (Properties ctx, int AD_Chart_ID, String trxName)
|
public X_AD_Chart (Properties ctx, int AD_Chart_ID, String trxName)
|
||||||
|
@ -97,6 +97,20 @@ public class X_AD_Chart extends PO implements I_AD_Chart, I_Persistent
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Set AD_Chart_UU.
|
||||||
|
@param AD_Chart_UU AD_Chart_UU */
|
||||||
|
public void setAD_Chart_UU (String AD_Chart_UU)
|
||||||
|
{
|
||||||
|
set_ValueNoCheck (COLUMNNAME_AD_Chart_UU, AD_Chart_UU);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get AD_Chart_UU.
|
||||||
|
@return AD_Chart_UU */
|
||||||
|
public String getAD_Chart_UU ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_AD_Chart_UU);
|
||||||
|
}
|
||||||
|
|
||||||
/** ChartOrientation AD_Reference_ID=53375 */
|
/** ChartOrientation AD_Reference_ID=53375 */
|
||||||
public static final int CHARTORIENTATION_AD_Reference_ID=53375;
|
public static final int CHARTORIENTATION_AD_Reference_ID=53375;
|
||||||
/** Horizontal = H */
|
/** Horizontal = H */
|
||||||
|
@ -149,7 +163,7 @@ public class X_AD_Chart extends PO implements I_AD_Chart, I_Persistent
|
||||||
public static final String CHARTTYPE_RingChart = "RC";
|
public static final String CHARTTYPE_RingChart = "RC";
|
||||||
/** Set Chart Type.
|
/** Set Chart Type.
|
||||||
@param ChartType
|
@param ChartType
|
||||||
Type fo chart to render
|
Type of chart to render
|
||||||
*/
|
*/
|
||||||
public void setChartType (String ChartType)
|
public void setChartType (String ChartType)
|
||||||
{
|
{
|
||||||
|
@ -158,7 +172,7 @@ public class X_AD_Chart extends PO implements I_AD_Chart, I_Persistent
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get Chart Type.
|
/** Get Chart Type.
|
||||||
@return Type fo chart to render
|
@return Type of chart to render
|
||||||
*/
|
*/
|
||||||
public String getChartType ()
|
public String getChartType ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||||
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
|
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||||
* This program is free software, you can redistribute it and/or modify it *
|
* 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 *
|
* 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 *
|
* by the Free Software Foundation. This program is distributed in the hope *
|
||||||
|
@ -22,15 +22,15 @@ import java.util.Properties;
|
||||||
import org.compiere.util.KeyNamePair;
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
/** Generated Model for AD_ChartDatasource
|
/** Generated Model for AD_ChartDatasource
|
||||||
* @author Adempiere (generated)
|
* @author iDempiere (generated)
|
||||||
* @version 1.03 - $Id$ */
|
* @version Release 1.0c - $Id$ */
|
||||||
public class X_AD_ChartDatasource extends PO implements I_AD_ChartDatasource, I_Persistent
|
public class X_AD_ChartDatasource extends PO implements I_AD_ChartDatasource, I_Persistent
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20120608L;
|
private static final long serialVersionUID = 20130823L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_AD_ChartDatasource (Properties ctx, int AD_ChartDatasource_ID, String trxName)
|
public X_AD_ChartDatasource (Properties ctx, int AD_ChartDatasource_ID, String trxName)
|
||||||
|
@ -40,6 +40,7 @@ public class X_AD_ChartDatasource extends PO implements I_AD_ChartDatasource, I_
|
||||||
{
|
{
|
||||||
setAD_ChartDatasource_ID (0);
|
setAD_ChartDatasource_ID (0);
|
||||||
setAD_Chart_ID (0);
|
setAD_Chart_ID (0);
|
||||||
|
setCategoryColumn (null);
|
||||||
setEntityType (null);
|
setEntityType (null);
|
||||||
// U
|
// U
|
||||||
setFromClause (null);
|
setFromClause (null);
|
||||||
|
@ -98,9 +99,23 @@ public class X_AD_ChartDatasource extends PO implements I_AD_ChartDatasource, I_
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
public I_AD_Chart getAD_Chart() throws RuntimeException
|
/** Set AD_ChartDatasource_UU.
|
||||||
|
@param AD_ChartDatasource_UU AD_ChartDatasource_UU */
|
||||||
|
public void setAD_ChartDatasource_UU (String AD_ChartDatasource_UU)
|
||||||
{
|
{
|
||||||
return (I_AD_Chart)MTable.get(getCtx(), I_AD_Chart.Table_Name)
|
set_ValueNoCheck (COLUMNNAME_AD_ChartDatasource_UU, AD_ChartDatasource_UU);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get AD_ChartDatasource_UU.
|
||||||
|
@return AD_ChartDatasource_UU */
|
||||||
|
public String getAD_ChartDatasource_UU ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_AD_ChartDatasource_UU);
|
||||||
|
}
|
||||||
|
|
||||||
|
public org.compiere.model.I_AD_Chart getAD_Chart() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (org.compiere.model.I_AD_Chart)MTable.get(getCtx(), org.compiere.model.I_AD_Chart.Table_Name)
|
||||||
.getPO(getAD_Chart_ID(), get_TrxName()); }
|
.getPO(getAD_Chart_ID(), get_TrxName()); }
|
||||||
|
|
||||||
/** Set Chart.
|
/** Set Chart.
|
||||||
|
@ -123,9 +138,9 @@ public class X_AD_ChartDatasource extends PO implements I_AD_ChartDatasource, I_
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
public I_AD_Table getAD_Table() throws RuntimeException
|
public org.compiere.model.I_AD_Table getAD_Table() throws RuntimeException
|
||||||
{
|
{
|
||||||
return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name)
|
return (org.compiere.model.I_AD_Table)MTable.get(getCtx(), org.compiere.model.I_AD_Table.Table_Name)
|
||||||
.getPO(getAD_Table_ID(), get_TrxName()); }
|
.getPO(getAD_Table_ID(), get_TrxName()); }
|
||||||
|
|
||||||
/** Set Table.
|
/** Set Table.
|
||||||
|
|
|
@ -157,7 +157,7 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent
|
||||||
public static final String CHARTTYPE_WaterfallChart = "WC";
|
public static final String CHARTTYPE_WaterfallChart = "WC";
|
||||||
/** Set Chart Type.
|
/** Set Chart Type.
|
||||||
@param ChartType
|
@param ChartType
|
||||||
Type fo chart to render
|
Type of chart to render
|
||||||
*/
|
*/
|
||||||
public void setChartType (String ChartType)
|
public void setChartType (String ChartType)
|
||||||
{
|
{
|
||||||
|
@ -166,7 +166,7 @@ public class X_PA_Goal extends PO implements I_PA_Goal, I_Persistent
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get Chart Type.
|
/** Get Chart Type.
|
||||||
@return Type fo chart to render
|
@return Type of chart to render
|
||||||
*/
|
*/
|
||||||
public String getChartType ()
|
public String getChartType ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -479,7 +479,7 @@ public class MPrintFormatItem extends X_AD_PrintFormatItem
|
||||||
|| ColumnName.equals("IsActive")
|
|| ColumnName.equals("IsActive")
|
||||||
|| displayType == DisplayType.Button || displayType == DisplayType.Binary
|
|| displayType == DisplayType.Button || displayType == DisplayType.Binary
|
||||||
|| displayType == DisplayType.ID || displayType == DisplayType.Image
|
|| displayType == DisplayType.ID || displayType == DisplayType.Image
|
||||||
|| displayType == DisplayType.RowID
|
|| displayType == DisplayType.RowID || displayType == DisplayType.Chart
|
||||||
|| seqNo == 0 )
|
|| seqNo == 0 )
|
||||||
{
|
{
|
||||||
pfi.setIsPrinted(false);
|
pfi.setIsPrinted(false);
|
||||||
|
@ -565,7 +565,7 @@ public class MPrintFormatItem extends X_AD_PrintFormatItem
|
||||||
//
|
//
|
||||||
if (displayType == DisplayType.Button || displayType == DisplayType.Binary
|
if (displayType == DisplayType.Button || displayType == DisplayType.Binary
|
||||||
|| displayType == DisplayType.ID || displayType == DisplayType.Image
|
|| displayType == DisplayType.ID || displayType == DisplayType.Image
|
||||||
|| displayType == DisplayType.RowID
|
|| displayType == DisplayType.RowID || displayType == DisplayType.Chart
|
||||||
|| seqNo == 0)
|
|| seqNo == 0)
|
||||||
{
|
{
|
||||||
pfi.setIsPrinted(false);
|
pfi.setIsPrinted(false);
|
||||||
|
|
|
@ -189,7 +189,7 @@ public final class DisplayType
|
||||||
if (displayType == ID || displayType == Table || displayType == TableDir
|
if (displayType == ID || displayType == Table || displayType == TableDir
|
||||||
|| displayType == Search || displayType == Location || displayType == Locator
|
|| displayType == Search || displayType == Location || displayType == Locator
|
||||||
|| displayType == Account || displayType == Assignment || displayType == PAttribute
|
|| displayType == Account || displayType == Assignment || displayType == PAttribute
|
||||||
|| displayType == Image || displayType == Color)
|
|| displayType == Image || displayType == Chart || displayType == Color)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
List<IDisplayTypeFactory> factoryList = Service.locator().list(IDisplayTypeFactory.class).getServices();
|
List<IDisplayTypeFactory> factoryList = Service.locator().list(IDisplayTypeFactory.class).getServices();
|
||||||
|
@ -711,6 +711,8 @@ public final class DisplayType
|
||||||
return "PrinterName";
|
return "PrinterName";
|
||||||
if (displayType == Payment)
|
if (displayType == Payment)
|
||||||
return "Payment";
|
return "Payment";
|
||||||
|
if (displayType == Chart)
|
||||||
|
return "Chart";
|
||||||
|
|
||||||
List<IDisplayTypeFactory> factoryList = Service.locator().list(IDisplayTypeFactory.class).getServices();
|
List<IDisplayTypeFactory> factoryList = Service.locator().list(IDisplayTypeFactory.class).getServices();
|
||||||
for(IDisplayTypeFactory factory : factoryList){
|
for(IDisplayTypeFactory factory : factoryList){
|
||||||
|
|
|
@ -56,6 +56,7 @@ public class WChartEditor extends WEditor
|
||||||
{
|
{
|
||||||
private static final String[] LISTENER_EVENTS = {Events.ON_CLICK};
|
private static final String[] LISTENER_EVENTS = {Events.ON_CLICK};
|
||||||
|
|
||||||
|
@SuppressWarnings("unused")
|
||||||
private static final CLogger logger;
|
private static final CLogger logger;
|
||||||
|
|
||||||
static
|
static
|
||||||
|
@ -161,7 +162,7 @@ public class WChartEditor extends WEditor
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
myImage.addEventListener(Events.ON_CLICK, new EventListener() {
|
myImage.addEventListener(Events.ON_CLICK, new EventListener<Event>() {
|
||||||
public void onEvent(Event event) throws Exception {
|
public void onEvent(Event event) throws Exception {
|
||||||
MouseEvent me = (MouseEvent) event;
|
MouseEvent me = (MouseEvent) event;
|
||||||
String areaId = me.getArea();
|
String areaId = me.getArea();
|
||||||
|
@ -189,7 +190,6 @@ public class WChartEditor extends WEditor
|
||||||
|
|
||||||
private void init()
|
private void init()
|
||||||
{
|
{
|
||||||
AImage img = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -123,7 +123,7 @@ public class DefaultEditorFactory implements IEditorFactory {
|
||||||
/** Chart */
|
/** Chart */
|
||||||
else if(displayType == DisplayType.Chart)
|
else if(displayType == DisplayType.Chart)
|
||||||
{
|
{
|
||||||
editor = new WChartEditor(gridField, gridTab.getWindowNo());
|
editor = new WChartEditor(gridField, (gridTab == null ? 0 : gridTab.getWindowNo()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Button */
|
/** Button */
|
||||||
|
|
|
@ -932,6 +932,7 @@ public class DB_Oracle implements AdempiereDatabase
|
||||||
case DisplayType.Table:
|
case DisplayType.Table:
|
||||||
case DisplayType.TableDir:
|
case DisplayType.TableDir:
|
||||||
case DisplayType.Image:
|
case DisplayType.Image:
|
||||||
|
case DisplayType.Chart:
|
||||||
retValue = "NUMBER(10)";
|
retValue = "NUMBER(10)";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue