The Yield field is not take into account

http://sourceforge.net/tracker2/?func=detail&atid=879332&aid=2568616&group_id=176962
This commit is contained in:
vpj-cd 2009-02-06 06:53:30 +00:00
parent ae981dccfc
commit 64f5e10bc7
6 changed files with 2538 additions and 175 deletions

View File

@ -44,18 +44,13 @@ public interface I_AD_WF_Node
/** Load Meta Data */
/** Column name Action */
public static final String COLUMNNAME_Action = "Action";
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Set Action.
* Indicates the Action to be performed
/** Get Client.
* Client/Tenant for this installation.
*/
public void setAction (String Action);
/** Get Action.
* Indicates the Action to be performed
*/
public String getAction();
public int getAD_Client_ID();
/** Column name AD_Column_ID */
public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID";
@ -218,6 +213,19 @@ public interface I_AD_WF_Node
public I_AD_Workflow getAD_Workflow() throws RuntimeException;
/** Column name Action */
public static final String COLUMNNAME_Action = "Action";
/** Set Action.
* Indicates the Action to be performed
*/
public void setAction (String Action);
/** Get Action.
* Indicates the Action to be performed
*/
public String getAction();
/** Column name AttributeName */
public static final String COLUMNNAME_AttributeName = "AttributeName";
@ -272,6 +280,22 @@ public interface I_AD_WF_Node
*/
public BigDecimal getCost();
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name Description */
public static final String COLUMNNAME_Description = "Description";
@ -404,6 +428,19 @@ public interface I_AD_WF_Node
*/
public String getHelp();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name IsCentrallyMaintained */
public static final String COLUMNNAME_IsCentrallyMaintained = "IsCentrallyMaintained";
@ -486,10 +523,14 @@ public interface I_AD_WF_Node
/** Column name OverlapUnits */
public static final String COLUMNNAME_OverlapUnits = "OverlapUnits";
/** Set Overlap Units */
/** Set Overlap Units.
* Overlap Units are number of units that must be completed before they are moved the next activity
*/
public void setOverlapUnits (int OverlapUnits);
/** Get Overlap Units */
/** Get Overlap Units.
* Overlap Units are number of units that must be completed before they are moved the next activity
*/
public int getOverlapUnits();
/** Column name Priority */
@ -529,6 +570,21 @@ public interface I_AD_WF_Node
public I_R_MailText getR_MailText() throws RuntimeException;
/** Column name S_Resource_ID */
public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID";
/** Set Resource.
* Resource
*/
public void setS_Resource_ID (int S_Resource_ID);
/** Get Resource.
* Resource
*/
public int getS_Resource_ID();
public I_S_Resource getS_Resource() throws RuntimeException;
/** Column name SetupTime */
public static final String COLUMNNAME_SetupTime = "SetupTime";
@ -555,21 +611,6 @@ public interface I_AD_WF_Node
*/
public String getSplitElement();
/** Column name S_Resource_ID */
public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID";
/** Set Resource.
* Resource
*/
public void setS_Resource_ID (int S_Resource_ID);
/** Get Resource.
* Resource
*/
public int getS_Resource_ID();
public I_S_Resource getS_Resource() throws RuntimeException;
/** Column name StartMode */
public static final String COLUMNNAME_StartMode = "StartMode";
@ -599,12 +640,32 @@ public interface I_AD_WF_Node
/** Column name UnitsCycles */
public static final String COLUMNNAME_UnitsCycles = "UnitsCycles";
/** Set Units Cycles */
/** Set Units by Cycles.
* The Units by Cycles are defined for process type Flow Repetitive Dedicated and indicated the product to be manufactured on a production line for duration unit.
*/
public void setUnitsCycles (BigDecimal UnitsCycles);
/** Get Units Cycles */
/** Get Units by Cycles.
* The Units by Cycles are defined for process type Flow Repetitive Dedicated and indicated the product to be manufactured on a production line for duration unit.
*/
public BigDecimal getUnitsCycles();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
/** Column name ValidFrom */
public static final String COLUMNNAME_ValidFrom = "ValidFrom";
@ -644,19 +705,6 @@ public interface I_AD_WF_Node
*/
public String getValue();
/** Column name WaitingTime */
public static final String COLUMNNAME_WaitingTime = "WaitingTime";
/** Set Waiting Time.
* Workflow Simulation Waiting time
*/
public void setWaitingTime (int WaitingTime);
/** Get Waiting Time.
* Workflow Simulation Waiting time
*/
public int getWaitingTime();
/** Column name WaitTime */
public static final String COLUMNNAME_WaitTime = "WaitTime";
@ -670,6 +718,19 @@ public interface I_AD_WF_Node
*/
public int getWaitTime();
/** Column name WaitingTime */
public static final String COLUMNNAME_WaitingTime = "WaitingTime";
/** Set Waiting Time.
* Workflow Simulation Waiting time
*/
public void setWaitingTime (int WaitingTime);
/** Get Waiting Time.
* Workflow Simulation Waiting time
*/
public int getWaitingTime();
/** Column name Workflow_ID */
public static final String COLUMNNAME_Workflow_ID = "Workflow_ID";
@ -721,4 +782,17 @@ public interface I_AD_WF_Node
* Absolute Y (vertical) position in 1/72 of an inch
*/
public int getYPosition();
/** Column name Yield */
public static final String COLUMNNAME_Yield = "Yield";
/** Set Yield %.
* The Yield is the percentage of a lot that is expected to be of acceptable wuality may fall below 100 percent
*/
public void setYield (int Yield);
/** Get Yield %.
* The Yield is the percentage of a lot that is expected to be of acceptable wuality may fall below 100 percent
*/
public int getYield();
}

View File

@ -44,6 +44,14 @@ public interface I_AD_Workflow
/** Load Meta Data */
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
@ -169,6 +177,22 @@ public interface I_AD_Workflow
*/
public BigDecimal getCost();
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name Description */
public static final String COLUMNNAME_Description = "Description";
@ -262,6 +286,19 @@ public interface I_AD_Workflow
*/
public String getHelp();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name IsBetaFunctionality */
public static final String COLUMNNAME_IsBetaFunctionality = "IsBetaFunctionality";
@ -336,6 +373,19 @@ public interface I_AD_Workflow
*/
public String getName();
/** Column name OverlapUnits */
public static final String COLUMNNAME_OverlapUnits = "OverlapUnits";
/** Set Overlap Units.
* Overlap Units are number of units that must be completed before they are moved the next activity
*/
public void setOverlapUnits (BigDecimal OverlapUnits);
/** Get Overlap Units.
* Overlap Units are number of units that must be completed before they are moved the next activity
*/
public BigDecimal getOverlapUnits();
/** Column name Priority */
public static final String COLUMNNAME_Priority = "Priority";
@ -417,6 +467,35 @@ public interface I_AD_Workflow
*/
public int getSetupTime();
/** Column name UnitsCycles */
public static final String COLUMNNAME_UnitsCycles = "UnitsCycles";
/** Set Units by Cycles.
* The Units by Cycles are defined for process type Flow Repetitive Dedicated and indicated the product to be manufactured on a production line for duration unit.
*/
public void setUnitsCycles (BigDecimal UnitsCycles);
/** Get Units by Cycles.
* The Units by Cycles are defined for process type Flow Repetitive Dedicated and indicated the product to be manufactured on a production line for duration unit.
*/
public BigDecimal getUnitsCycles();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
/** Column name ValidFrom */
public static final String COLUMNNAME_ValidFrom = "ValidFrom";
@ -516,4 +595,17 @@ public interface I_AD_Workflow
* Workflow Simulation Execution Time
*/
public int getWorkingTime();
/** Column name Yield */
public static final String COLUMNNAME_Yield = "Yield";
/** Set Yield %.
* The Yield is the percentage of a lot that is expected to be of acceptable wuality may fall below 100 percent
*/
public void setYield (int Yield);
/** Get Yield %.
* The Yield is the percentage of a lot that is expected to be of acceptable wuality may fall below 100 percent
*/
public int getYield();
}

View File

@ -35,7 +35,7 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
/**
*
*/
private static final long serialVersionUID = 1L;
private static final long serialVersionUID = 20081221L;
/** Standard Constructor */
public X_AD_WF_Node (Properties ctx, int AD_WF_Node_ID, String trxName)
@ -43,10 +43,10 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
super (ctx, AD_WF_Node_ID, trxName);
/** if (AD_WF_Node_ID == 0)
{
setAction (null);
// N
setAD_WF_Node_ID (0);
setAD_Workflow_ID (0);
setAction (null);
// Z
setCost (Env.ZERO);
setDuration (0);
setEntityType (null);
@ -94,50 +94,6 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return sb.toString();
}
/** Action AD_Reference_ID=302 */
public static final int ACTION_AD_Reference_ID=302;
/** Wait (Sleep) = Z */
public static final String ACTION_WaitSleep = "Z";
/** User Choice = C */
public static final String ACTION_UserChoice = "C";
/** Sub Workflow = F */
public static final String ACTION_SubWorkflow = "F";
/** Set Variable = V */
public static final String ACTION_SetVariable = "V";
/** User Window = W */
public static final String ACTION_UserWindow = "W";
/** User Form = X */
public static final String ACTION_UserForm = "X";
/** Apps Task = T */
public static final String ACTION_AppsTask = "T";
/** Apps Report = R */
public static final String ACTION_AppsReport = "R";
/** Apps Process = P */
public static final String ACTION_AppsProcess = "P";
/** Document Action = D */
public static final String ACTION_DocumentAction = "D";
/** EMail = M */
public static final String ACTION_EMail = "M";
/** User Workbench = B */
public static final String ACTION_UserWorkbench = "B";
/** Set Action.
@param Action
Indicates the Action to be performed
*/
public void setAction (String Action)
{
if (Action == null) throw new IllegalArgumentException ("Action is mandatory");
if (Action.equals("Z") || Action.equals("C") || Action.equals("F") || Action.equals("V") || Action.equals("W") || Action.equals("X") || Action.equals("T") || Action.equals("R") || Action.equals("P") || Action.equals("D") || Action.equals("M") || Action.equals("B")); else throw new IllegalArgumentException ("Action Invalid value - " + Action + " - Reference_ID=302 - Z - C - F - V - W - X - T - R - P - D - M - B"); set_Value (COLUMNNAME_Action, Action);
}
/** Get Action.
@return Indicates the Action to be performed
*/
public String getAction ()
{
return (String)get_Value(COLUMNNAME_Action);
}
public I_AD_Column getAD_Column() throws RuntimeException
{
Class<?> clazz = MTable.getClass(I_AD_Column.Table_Name);
@ -510,6 +466,50 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return ii.intValue();
}
/** Action AD_Reference_ID=302 */
public static final int ACTION_AD_Reference_ID=302;
/** Wait (Sleep) = Z */
public static final String ACTION_WaitSleep = "Z";
/** User Choice = C */
public static final String ACTION_UserChoice = "C";
/** Sub Workflow = F */
public static final String ACTION_SubWorkflow = "F";
/** Set Variable = V */
public static final String ACTION_SetVariable = "V";
/** User Window = W */
public static final String ACTION_UserWindow = "W";
/** User Form = X */
public static final String ACTION_UserForm = "X";
/** Apps Task = T */
public static final String ACTION_AppsTask = "T";
/** Apps Report = R */
public static final String ACTION_AppsReport = "R";
/** Apps Process = P */
public static final String ACTION_AppsProcess = "P";
/** Document Action = D */
public static final String ACTION_DocumentAction = "D";
/** EMail = M */
public static final String ACTION_EMail = "M";
/** User Workbench = B */
public static final String ACTION_UserWorkbench = "B";
/** Set Action.
@param Action
Indicates the Action to be performed
*/
public void setAction (String Action)
{
if (Action == null) throw new IllegalArgumentException ("Action is mandatory");
if (Action.equals("Z") || Action.equals("C") || Action.equals("F") || Action.equals("V") || Action.equals("W") || Action.equals("X") || Action.equals("T") || Action.equals("R") || Action.equals("P") || Action.equals("D") || Action.equals("M") || Action.equals("B")); else throw new IllegalArgumentException ("Action Invalid value - " + Action + " - Reference_ID=302 - Z - C - F - V - W - X - T - R - P - D - M - B"); set_Value (COLUMNNAME_Action, Action);
}
/** Get Action.
@return Indicates the Action to be performed
*/
public String getAction ()
{
return (String)get_Value(COLUMNNAME_Action);
}
/** Set Attribute Name.
@param AttributeName
Name of the Attribute
@ -994,14 +994,17 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
}
/** Set Overlap Units.
@param OverlapUnits Overlap Units */
@param OverlapUnits
Overlap Units are number of units that must be completed before they are moved the next activity
*/
public void setOverlapUnits (int OverlapUnits)
{
set_Value (COLUMNNAME_OverlapUnits, Integer.valueOf(OverlapUnits));
}
/** Get Overlap Units.
@return Overlap Units */
@return Overlap Units are number of units that must be completed before they are moved the next activity
*/
public int getOverlapUnits ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_OverlapUnits);
@ -1086,6 +1089,45 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return ii.intValue();
}
public I_S_Resource getS_Resource() throws RuntimeException
{
Class<?> clazz = MTable.getClass(I_S_Resource.Table_Name);
I_S_Resource result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_S_Resource)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_Resource_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 new RuntimeException( e );
}
return result;
}
/** Set Resource.
@param S_Resource_ID
Resource
*/
public void setS_Resource_ID (int S_Resource_ID)
{
if (S_Resource_ID < 1)
set_Value (COLUMNNAME_S_Resource_ID, null);
else
set_Value (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID));
}
/** Get Resource.
@return Resource
*/
public int getS_Resource_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_S_Resource_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Setup Time.
@param SetupTime
Setup time before starting Production
@ -1130,45 +1172,6 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return (String)get_Value(COLUMNNAME_SplitElement);
}
public I_S_Resource getS_Resource() throws RuntimeException
{
Class<?> clazz = MTable.getClass(I_S_Resource.Table_Name);
I_S_Resource result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_S_Resource)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_Resource_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 new RuntimeException( e );
}
return result;
}
/** Set Resource.
@param S_Resource_ID
Resource
*/
public void setS_Resource_ID (int S_Resource_ID)
{
if (S_Resource_ID < 1)
set_Value (COLUMNNAME_S_Resource_ID, null);
else
set_Value (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID));
}
/** Get Resource.
@return Resource
*/
public int getS_Resource_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_S_Resource_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** StartMode AD_Reference_ID=303 */
public static final int STARTMODE_AD_Reference_ID=303;
/** Automatic = A */
@ -1217,15 +1220,18 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return (String)get_Value(COLUMNNAME_SubflowExecution);
}
/** Set Units Cycles.
@param UnitsCycles Units Cycles */
/** Set Units by Cycles.
@param UnitsCycles
The Units by Cycles are defined for process type Flow Repetitive Dedicated and indicated the product to be manufactured on a production line for duration unit.
*/
public void setUnitsCycles (BigDecimal UnitsCycles)
{
set_Value (COLUMNNAME_UnitsCycles, UnitsCycles);
}
/** Get Units Cycles.
@return Units Cycles */
/** Get Units by Cycles.
@return The Units by Cycles are defined for process type Flow Repetitive Dedicated and indicated the product to be manufactured on a production line for duration unit.
*/
public BigDecimal getUnitsCycles ()
{
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_UnitsCycles);
@ -1287,26 +1293,6 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return (String)get_Value(COLUMNNAME_Value);
}
/** Set Waiting Time.
@param WaitingTime
Workflow Simulation Waiting time
*/
public void setWaitingTime (int WaitingTime)
{
set_Value (COLUMNNAME_WaitingTime, Integer.valueOf(WaitingTime));
}
/** Get Waiting Time.
@return Workflow Simulation Waiting time
*/
public int getWaitingTime ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_WaitingTime);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Wait Time.
@param WaitTime
Time in minutes to wait (sleep)
@ -1327,6 +1313,26 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return ii.intValue();
}
/** Set Waiting Time.
@param WaitingTime
Workflow Simulation Waiting time
*/
public void setWaitingTime (int WaitingTime)
{
set_Value (COLUMNNAME_WaitingTime, Integer.valueOf(WaitingTime));
}
/** Get Waiting Time.
@return Workflow Simulation Waiting time
*/
public int getWaitingTime ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_WaitingTime);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Workflow.
@param Workflow_ID
Workflow or tasks
@ -1409,4 +1415,24 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return 0;
return ii.intValue();
}
/** Set Yield %.
@param Yield
The Yield is the percentage of a lot that is expected to be of acceptable wuality may fall below 100 percent
*/
public void setYield (int Yield)
{
set_Value (COLUMNNAME_Yield, Integer.valueOf(Yield));
}
/** Get Yield %.
@return The Yield is the percentage of a lot that is expected to be of acceptable wuality may fall below 100 percent
*/
public int getYield ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Yield);
if (ii == null)
return 0;
return ii.intValue();
}
}

View File

@ -35,7 +35,7 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
/**
*
*/
private static final long serialVersionUID = 1L;
private static final long serialVersionUID = 20081221L;
/** Standard Constructor */
public X_AD_Workflow (Properties ctx, int AD_Workflow_ID, String trxName)
@ -293,10 +293,7 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
public void setAccessLevel (String AccessLevel)
{
if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory");
if (AccessLevel.equals("1") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("7") || AccessLevel.equals("6") || AccessLevel.equals("2"));
else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 3 - 4 - 7 - 6 - 2");
set_Value (COLUMNNAME_AccessLevel, AccessLevel);
if (AccessLevel.equals("1") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("7") || AccessLevel.equals("6") || AccessLevel.equals("2")); else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 3 - 4 - 7 - 6 - 2"); set_Value (COLUMNNAME_AccessLevel, AccessLevel);
}
/** Get Data Access Level.
@ -440,10 +437,7 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
public void setDurationUnit (String DurationUnit)
{
if (DurationUnit == null || DurationUnit.equals("Y") || DurationUnit.equals("M") || DurationUnit.equals("D") || DurationUnit.equals("h") || DurationUnit.equals("m") || DurationUnit.equals("s"));
else throw new IllegalArgumentException ("DurationUnit Invalid value - " + DurationUnit + " - Reference_ID=299 - Y - M - D - h - m - s");
set_Value (COLUMNNAME_DurationUnit, DurationUnit);
if (DurationUnit == null || DurationUnit.equals("Y") || DurationUnit.equals("M") || DurationUnit.equals("D") || DurationUnit.equals("h") || DurationUnit.equals("m") || DurationUnit.equals("s")); else throw new IllegalArgumentException ("DurationUnit Invalid value - " + DurationUnit + " - Reference_ID=299 - Y - M - D - h - m - s"); set_Value (COLUMNNAME_DurationUnit, DurationUnit);
}
/** Get Duration Unit.
@ -626,6 +620,26 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return new KeyNamePair(get_ID(), getName());
}
/** Set Overlap Units.
@param OverlapUnits
Overlap Units are number of units that must be completed before they are moved the next activity
*/
public void setOverlapUnits (BigDecimal OverlapUnits)
{
set_Value (COLUMNNAME_OverlapUnits, OverlapUnits);
}
/** Get Overlap Units.
@return Overlap Units are number of units that must be completed before they are moved the next activity
*/
public BigDecimal getOverlapUnits ()
{
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OverlapUnits);
if (bd == null)
return Env.ZERO;
return bd;
}
/** Set Priority.
@param Priority
Indicates if this request is of a high, medium or low priority.
@ -665,10 +679,7 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
public void setProcessType (String ProcessType)
{
if (ProcessType == null || ProcessType.equals("BF") || ProcessType.equals("CF") || ProcessType.equals("DR") || ProcessType.equals("JS") || ProcessType.equals("MR") || ProcessType.equals("PL"));
else throw new IllegalArgumentException ("ProcessType Invalid value - " + ProcessType + " - Reference_ID=53224 - BF - CF - DR - JS - MR - PL");
set_Value (COLUMNNAME_ProcessType, ProcessType);
if (ProcessType == null || ProcessType.equals("BF") || ProcessType.equals("CF") || ProcessType.equals("DR") || ProcessType.equals("JS") || ProcessType.equals("MR") || ProcessType.equals("PL")); else throw new IllegalArgumentException ("ProcessType Invalid value - " + ProcessType + " - Reference_ID=53224 - BF - CF - DR - JS - MR - PL"); set_Value (COLUMNNAME_ProcessType, ProcessType);
}
/** Get Process Type.
@ -695,10 +706,7 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
public void setPublishStatus (String PublishStatus)
{
if (PublishStatus == null) throw new IllegalArgumentException ("PublishStatus is mandatory");
if (PublishStatus.equals("R") || PublishStatus.equals("T") || PublishStatus.equals("U") || PublishStatus.equals("V"));
else throw new IllegalArgumentException ("PublishStatus Invalid value - " + PublishStatus + " - Reference_ID=310 - R - T - U - V");
set_Value (COLUMNNAME_PublishStatus, PublishStatus);
if (PublishStatus.equals("R") || PublishStatus.equals("T") || PublishStatus.equals("U") || PublishStatus.equals("V")); else throw new IllegalArgumentException ("PublishStatus Invalid value - " + PublishStatus + " - Reference_ID=310 - R - T - U - V"); set_Value (COLUMNNAME_PublishStatus, PublishStatus);
}
/** Get Publication Status.
@ -802,6 +810,26 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return ii.intValue();
}
/** Set Units by Cycles.
@param UnitsCycles
The Units by Cycles are defined for process type Flow Repetitive Dedicated and indicated the product to be manufactured on a production line for duration unit.
*/
public void setUnitsCycles (BigDecimal UnitsCycles)
{
set_Value (COLUMNNAME_UnitsCycles, UnitsCycles);
}
/** Get Units by Cycles.
@return The Units by Cycles are defined for process type Flow Repetitive Dedicated and indicated the product to be manufactured on a production line for duration unit.
*/
public BigDecimal getUnitsCycles ()
{
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_UnitsCycles);
if (bd == null)
return Env.ZERO;
return bd;
}
/** Set Valid from.
@param ValidFrom
Valid from including this date (first day)
@ -928,10 +956,7 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
public void setWorkflowType (String WorkflowType)
{
if (WorkflowType == null) throw new IllegalArgumentException ("WorkflowType is mandatory");
if (WorkflowType.equals("G") || WorkflowType.equals("P") || WorkflowType.equals("V") || WorkflowType.equals("M") || WorkflowType.equals("Q"));
else throw new IllegalArgumentException ("WorkflowType Invalid value - " + WorkflowType + " - Reference_ID=328 - G - P - V - M - Q");
set_Value (COLUMNNAME_WorkflowType, WorkflowType);
if (WorkflowType.equals("G") || WorkflowType.equals("P") || WorkflowType.equals("V") || WorkflowType.equals("M") || WorkflowType.equals("Q")); else throw new IllegalArgumentException ("WorkflowType Invalid value - " + WorkflowType + " - Reference_ID=328 - G - P - V - M - Q"); set_Value (COLUMNNAME_WorkflowType, WorkflowType);
}
/** Get Workflow Type.
@ -961,4 +986,24 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return 0;
return ii.intValue();
}
/** Set Yield %.
@param Yield
The Yield is the percentage of a lot that is expected to be of acceptable wuality may fall below 100 percent
*/
public void setYield (int Yield)
{
set_Value (COLUMNNAME_Yield, Integer.valueOf(Yield));
}
/** Get Yield %.
@return The Yield is the percentage of a lot that is expected to be of acceptable wuality may fall below 100 percent
*/
public int getYield ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Yield);
if (ii == null)
return 0;
return ii.intValue();
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff