|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.PO
org.compiere.model.X_PA_Goal
org.compiere.model.MGoal
public class MGoal
Performance Goal
| Field Summary |
|---|
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MGoal(Ctx ctx,
int PA_Goal_ID,
String trxName)
Standard Constructor |
|
MGoal(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
MGoal(Ctx ctx,
String Name,
String Description,
BigDecimal MeasureTarget,
String trxName)
Base Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
afterSave(boolean newRecord,
boolean success)
After Save |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
Color |
getColor()
Get Color |
MColorSchema |
getColorSchema()
Get the color schema for this goal. |
double |
getGoalPerformanceDouble()
Get Goal Performance as Double |
static MGoal[] |
getGoals(Ctx ctx)
Get Accessible Goals |
MMeasure |
getMeasure()
Get Measure |
String |
getMeasureDisplay()
Get Measure Display |
static MGoal[] |
getMeasureGoals(Ctx ctx,
int PA_Measure_ID)
Get Goals with Measure |
static BigDecimal |
getMultiplier(MGoal goal)
Get Multiplier from Scope to Display |
int |
getPercent()
Get Goal Performance in Percent |
MGoalRestriction[] |
getRestrictions(boolean reload)
Get Restriction Lines |
static MGoal[] |
getTestGoals(Ctx ctx)
Create Test Goals |
static MGoal[] |
getUserGoals(Ctx ctx)
Get User Goals |
String |
getXAxisText()
Get Measure Display Text |
boolean |
isTarget()
Goal has Target |
void |
setGoalPerformance()
Calculate Performance Goal as multiplier |
void |
setMeasureActual(BigDecimal MeasureActual)
Set Measure Actual |
String |
toString()
String Representation |
boolean |
updateGoal(boolean force)
Update/save Goals for the same measure |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MGoal(Ctx ctx,
int PA_Goal_ID,
String trxName)
ctx - contextPA_Goal_ID - idtrxName - trx
public MGoal(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - trx
public MGoal(Ctx ctx,
String Name,
String Description,
BigDecimal MeasureTarget,
String trxName)
ctx - contextName - NameDescription - DecsriptionMeasureTarget - targettrxName - trx| Method Detail |
|---|
public static MGoal[] getUserGoals(Ctx ctx)
ctx - contextAD_User_ID - user
public static MGoal[] getGoals(Ctx ctx)
ctx - context
public static MGoal[] getTestGoals(Ctx ctx)
ctx - context
public static MGoal[] getMeasureGoals(Ctx ctx,
int PA_Measure_ID)
ctx - contextPA_Measure_ID - measure
public static BigDecimal getMultiplier(MGoal goal)
goal - goal
public MGoalRestriction[] getRestrictions(boolean reload)
reload - reload data
public MMeasure getMeasure()
public boolean updateGoal(boolean force)
force - force to update goal (default once per day)
public void setMeasureActual(BigDecimal MeasureActual)
setMeasureActual in class X_PA_GoalMeasureActual - actualpublic void setGoalPerformance()
public double getGoalPerformanceDouble()
public int getPercent()
public Color getColor()
public MColorSchema getColorSchema()
public String getMeasureDisplay()
getMeasureDisplay in class X_PA_Goalpublic String getXAxisText()
public boolean isTarget()
public String toString()
toString in class X_PA_Goalprotected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - newsuccess - success
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||