The current cost field of WF in integer and should be Dec

http://sourceforge.net/tracker2/?func=detail&atid=879335&aid=2492433&group_id=176962
This commit is contained in:
vpj-cd 2009-01-07 22:10:54 +00:00
parent 2900077d70
commit 17f90dac81
2 changed files with 189 additions and 172 deletions

View File

@ -44,19 +44,6 @@ public interface I_AD_Workflow
/** Load Meta Data */
/** Column name AccessLevel */
public static final String COLUMNNAME_AccessLevel = "AccessLevel";
/** Set Data Access Level.
* Access Level required
*/
public void setAccessLevel (String AccessLevel);
/** Get Data Access Level.
* Access Level required
*/
public String getAccessLevel();
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
@ -115,19 +102,6 @@ public interface I_AD_Workflow
public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException;
/** 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();
/** Column name AD_WorkflowProcessor_ID */
public static final String COLUMNNAME_AD_WorkflowProcessor_ID = "AD_WorkflowProcessor_ID";
@ -143,6 +117,32 @@ public interface I_AD_Workflow
public I_AD_WorkflowProcessor getAD_WorkflowProcessor() throws RuntimeException;
/** 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();
/** Column name AccessLevel */
public static final String COLUMNNAME_AccessLevel = "AccessLevel";
/** Set Data Access Level.
* Access Level required
*/
public void setAccessLevel (String AccessLevel);
/** Get Data Access Level.
* Access Level required
*/
public String getAccessLevel();
/** Column name Author */
public static final String COLUMNNAME_Author = "Author";
@ -162,12 +162,12 @@ public interface I_AD_Workflow
/** Set Cost.
* Cost information
*/
public void setCost (int Cost);
public void setCost (BigDecimal Cost);
/** Get Cost.
* Cost information
*/
public int getCost();
public BigDecimal getCost();
/** Column name Description */
public static final String COLUMNNAME_Description = "Description";
@ -182,19 +182,6 @@ public interface I_AD_Workflow
*/
public String getDescription();
/** Column name DocumentNo */
public static final String COLUMNNAME_DocumentNo = "DocumentNo";
/** Set Document No.
* Document sequence number of the document
*/
public void setDocumentNo (String DocumentNo);
/** Get Document No.
* Document sequence number of the document
*/
public String getDocumentNo();
/** Column name DocValueLogic */
public static final String COLUMNNAME_DocValueLogic = "DocValueLogic";
@ -208,6 +195,19 @@ public interface I_AD_Workflow
*/
public String getDocValueLogic();
/** Column name DocumentNo */
public static final String COLUMNNAME_DocumentNo = "DocumentNo";
/** Set Document No.
* Document sequence number of the document
*/
public void setDocumentNo (String DocumentNo);
/** Get Document No.
* Document sequence number of the document
*/
public String getDocumentNo();
/** Column name Duration */
public static final String COLUMNNAME_Duration = "Duration";
@ -389,19 +389,6 @@ public interface I_AD_Workflow
/** Get Queuing Time */
public int getQueuingTime();
/** Column name SetupTime */
public static final String COLUMNNAME_SetupTime = "SetupTime";
/** Set Setup Time.
* Setup time before starting Production
*/
public void setSetupTime (int SetupTime);
/** Get Setup Time.
* Setup time before starting Production
*/
public int getSetupTime();
/** Column name S_Resource_ID */
public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID";
@ -417,14 +404,18 @@ public interface I_AD_Workflow
public I_S_Resource getS_Resource() throws RuntimeException;
/** Column name ValidateWorkflow */
public static final String COLUMNNAME_ValidateWorkflow = "ValidateWorkflow";
/** Column name SetupTime */
public static final String COLUMNNAME_SetupTime = "SetupTime";
/** Set Validate Workflow */
public void setValidateWorkflow (String ValidateWorkflow);
/** Set Setup Time.
* Setup time before starting Production
*/
public void setSetupTime (int SetupTime);
/** Get Validate Workflow */
public String getValidateWorkflow();
/** Get Setup Time.
* Setup time before starting Production
*/
public int getSetupTime();
/** Column name ValidFrom */
public static final String COLUMNNAME_ValidFrom = "ValidFrom";
@ -452,6 +443,15 @@ public interface I_AD_Workflow
*/
public Timestamp getValidTo();
/** Column name ValidateWorkflow */
public static final String COLUMNNAME_ValidateWorkflow = "ValidateWorkflow";
/** Set Validate Workflow */
public void setValidateWorkflow (String ValidateWorkflow);
/** Get Validate Workflow */
public String getValidateWorkflow();
/** Column name Value */
public static final String COLUMNNAME_Value = "Value";

View File

@ -43,10 +43,10 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
super (ctx, AD_Workflow_ID, trxName);
/** if (AD_Workflow_ID == 0)
{
setAccessLevel (null);
setAD_Workflow_ID (0);
setAccessLevel (null);
setAuthor (null);
setCost (0);
setCost (Env.ZERO);
setDuration (0);
setEntityType (null);
// U
@ -94,38 +94,6 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return sb.toString();
}
/** AccessLevel AD_Reference_ID=5 */
public static final int ACCESSLEVEL_AD_Reference_ID=5;
/** Organization = 1 */
public static final String ACCESSLEVEL_Organization = "1";
/** Client+Organization = 3 */
public static final String ACCESSLEVEL_ClientPlusOrganization = "3";
/** System only = 4 */
public static final String ACCESSLEVEL_SystemOnly = "4";
/** All = 7 */
public static final String ACCESSLEVEL_All = "7";
/** System+Client = 6 */
public static final String ACCESSLEVEL_SystemPlusClient = "6";
/** Client only = 2 */
public static final String ACCESSLEVEL_ClientOnly = "2";
/** Set Data Access Level.
@param AccessLevel
Access Level required
*/
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);
}
/** Get Data Access Level.
@return Access Level required
*/
public String getAccessLevel ()
{
return (String)get_Value(COLUMNNAME_AccessLevel);
}
public I_AD_Table getAD_Table() throws RuntimeException
{
Class<?> clazz = MTable.getClass(I_AD_Table.Table_Name);
@ -243,28 +211,6 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return ii.intValue();
}
/** 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_AD_WorkflowProcessor getAD_WorkflowProcessor() throws RuntimeException
{
Class<?> clazz = MTable.getClass(I_AD_WorkflowProcessor.Table_Name);
@ -304,6 +250,63 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return ii.intValue();
}
/** 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();
}
/** AccessLevel AD_Reference_ID=5 */
public static final int ACCESSLEVEL_AD_Reference_ID=5;
/** Organization = 1 */
public static final String ACCESSLEVEL_Organization = "1";
/** Client+Organization = 3 */
public static final String ACCESSLEVEL_ClientPlusOrganization = "3";
/** System only = 4 */
public static final String ACCESSLEVEL_SystemOnly = "4";
/** All = 7 */
public static final String ACCESSLEVEL_All = "7";
/** System+Client = 6 */
public static final String ACCESSLEVEL_SystemPlusClient = "6";
/** Client only = 2 */
public static final String ACCESSLEVEL_ClientOnly = "2";
/** Set Data Access Level.
@param AccessLevel
Access Level required
*/
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);
}
/** Get Data Access Level.
@return Access Level required
*/
public String getAccessLevel ()
{
return (String)get_Value(COLUMNNAME_AccessLevel);
}
/** Set Author.
@param Author
Author/Creator of the Entity
@ -327,20 +330,22 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
@param Cost
Cost information
*/
public void setCost (int Cost)
public void setCost (BigDecimal Cost)
{
set_Value (COLUMNNAME_Cost, Integer.valueOf(Cost));
if (Cost == null)
throw new IllegalArgumentException ("Cost is mandatory.");
set_Value (COLUMNNAME_Cost, Cost);
}
/** Get Cost.
@return Cost information
*/
public int getCost ()
public BigDecimal getCost ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_Cost);
if (ii == null)
return 0;
return ii.intValue();
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Cost);
if (bd == null)
return Env.ZERO;
return bd;
}
/** Set Description.
@ -360,23 +365,6 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return (String)get_Value(COLUMNNAME_Description);
}
/** Set Document No.
@param DocumentNo
Document sequence number of the document
*/
public void setDocumentNo (String DocumentNo)
{
set_Value (COLUMNNAME_DocumentNo, DocumentNo);
}
/** Get Document No.
@return Document sequence number of the document
*/
public String getDocumentNo ()
{
return (String)get_Value(COLUMNNAME_DocumentNo);
}
/** Set Document Value Logic.
@param DocValueLogic
Logic to determine Workflow Start - If true, a workflow process is started for the document
@ -394,6 +382,23 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return (String)get_Value(COLUMNNAME_DocValueLogic);
}
/** Set Document No.
@param DocumentNo
Document sequence number of the document
*/
public void setDocumentNo (String DocumentNo)
{
set_Value (COLUMNNAME_DocumentNo, DocumentNo);
}
/** Get Document No.
@return Document sequence number of the document
*/
public String getDocumentNo ()
{
return (String)get_Value(COLUMNNAME_DocumentNo);
}
/** Set Duration.
@param Duration
Normal Duration in Duration Unit
@ -435,7 +440,10 @@ 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.
@ -657,7 +665,10 @@ 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.
@ -684,7 +695,10 @@ 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.
@ -729,26 +743,6 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return ii.intValue();
}
/** Set Setup Time.
@param SetupTime
Setup time before starting Production
*/
public void setSetupTime (int SetupTime)
{
set_Value (COLUMNNAME_SetupTime, Integer.valueOf(SetupTime));
}
/** Get Setup Time.
@return Setup time before starting Production
*/
public int getSetupTime ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_SetupTime);
if (ii == null)
return 0;
return ii.intValue();
}
public I_S_Resource getS_Resource() throws RuntimeException
{
Class<?> clazz = MTable.getClass(I_S_Resource.Table_Name);
@ -788,18 +782,24 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return ii.intValue();
}
/** Set Validate Workflow.
@param ValidateWorkflow Validate Workflow */
public void setValidateWorkflow (String ValidateWorkflow)
/** Set Setup Time.
@param SetupTime
Setup time before starting Production
*/
public void setSetupTime (int SetupTime)
{
set_Value (COLUMNNAME_ValidateWorkflow, ValidateWorkflow);
set_Value (COLUMNNAME_SetupTime, Integer.valueOf(SetupTime));
}
/** Get Validate Workflow.
@return Validate Workflow */
public String getValidateWorkflow ()
/** Get Setup Time.
@return Setup time before starting Production
*/
public int getSetupTime ()
{
return (String)get_Value(COLUMNNAME_ValidateWorkflow);
Integer ii = (Integer)get_Value(COLUMNNAME_SetupTime);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Valid from.
@ -836,6 +836,20 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return (Timestamp)get_Value(COLUMNNAME_ValidTo);
}
/** Set Validate Workflow.
@param ValidateWorkflow Validate Workflow */
public void setValidateWorkflow (String ValidateWorkflow)
{
set_Value (COLUMNNAME_ValidateWorkflow, ValidateWorkflow);
}
/** Get Validate Workflow.
@return Validate Workflow */
public String getValidateWorkflow ()
{
return (String)get_Value(COLUMNNAME_ValidateWorkflow);
}
/** Set Search Key.
@param Value
Search key for the record in the format required - must be unique
@ -914,7 +928,10 @@ 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.