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 */ /** 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 */ /** 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";
@ -115,19 +102,6 @@ public interface I_AD_Workflow
public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException; 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 */ /** Column name AD_WorkflowProcessor_ID */
public static final String COLUMNNAME_AD_WorkflowProcessor_ID = "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; 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 */ /** Column name Author */
public static final String COLUMNNAME_Author = "Author"; public static final String COLUMNNAME_Author = "Author";
@ -162,12 +162,12 @@ public interface I_AD_Workflow
/** Set Cost. /** Set Cost.
* Cost information * Cost information
*/ */
public void setCost (int Cost); public void setCost (BigDecimal Cost);
/** Get Cost. /** Get Cost.
* Cost information * Cost information
*/ */
public int getCost(); public BigDecimal getCost();
/** Column name Description */ /** Column name Description */
public static final String COLUMNNAME_Description = "Description"; public static final String COLUMNNAME_Description = "Description";
@ -182,19 +182,6 @@ public interface I_AD_Workflow
*/ */
public String getDescription(); 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 */ /** Column name DocValueLogic */
public static final String COLUMNNAME_DocValueLogic = "DocValueLogic"; public static final String COLUMNNAME_DocValueLogic = "DocValueLogic";
@ -208,6 +195,19 @@ public interface I_AD_Workflow
*/ */
public String getDocValueLogic(); 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 */ /** Column name Duration */
public static final String COLUMNNAME_Duration = "Duration"; public static final String COLUMNNAME_Duration = "Duration";
@ -389,19 +389,6 @@ public interface I_AD_Workflow
/** Get Queuing Time */ /** Get Queuing Time */
public int getQueuingTime(); 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 */ /** Column name S_Resource_ID */
public static final String COLUMNNAME_S_Resource_ID = "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; public I_S_Resource getS_Resource() throws RuntimeException;
/** Column name ValidateWorkflow */ /** Column name SetupTime */
public static final String COLUMNNAME_ValidateWorkflow = "ValidateWorkflow"; public static final String COLUMNNAME_SetupTime = "SetupTime";
/** Set Validate Workflow */ /** Set Setup Time.
public void setValidateWorkflow (String ValidateWorkflow); * Setup time before starting Production
*/
public void setSetupTime (int SetupTime);
/** Get Validate Workflow */ /** Get Setup Time.
public String getValidateWorkflow(); * Setup time before starting Production
*/
public int getSetupTime();
/** Column name ValidFrom */ /** Column name ValidFrom */
public static final String COLUMNNAME_ValidFrom = "ValidFrom"; public static final String COLUMNNAME_ValidFrom = "ValidFrom";
@ -452,6 +443,15 @@ public interface I_AD_Workflow
*/ */
public Timestamp getValidTo(); 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 */ /** Column name Value */
public static final String COLUMNNAME_Value = "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); super (ctx, AD_Workflow_ID, trxName);
/** if (AD_Workflow_ID == 0) /** if (AD_Workflow_ID == 0)
{ {
setAccessLevel (null);
setAD_Workflow_ID (0); setAD_Workflow_ID (0);
setAccessLevel (null);
setAuthor (null); setAuthor (null);
setCost (0); setCost (Env.ZERO);
setDuration (0); setDuration (0);
setEntityType (null); setEntityType (null);
// U // U
@ -94,38 +94,6 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return sb.toString(); 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 public I_AD_Table getAD_Table() throws RuntimeException
{ {
Class<?> clazz = MTable.getClass(I_AD_Table.Table_Name); 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(); 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 public I_AD_WorkflowProcessor getAD_WorkflowProcessor() throws RuntimeException
{ {
Class<?> clazz = MTable.getClass(I_AD_WorkflowProcessor.Table_Name); 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(); 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. /** Set Author.
@param Author @param Author
Author/Creator of the Entity Author/Creator of the Entity
@ -327,20 +330,22 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
@param Cost @param Cost
Cost information 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. /** Get Cost.
@return Cost information @return Cost information
*/ */
public int getCost () public BigDecimal getCost ()
{ {
Integer ii = (Integer)get_Value(COLUMNNAME_Cost); BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Cost);
if (ii == null) if (bd == null)
return 0; return Env.ZERO;
return ii.intValue(); return bd;
} }
/** Set Description. /** 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); 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. /** Set Document Value Logic.
@param DocValueLogic @param DocValueLogic
Logic to determine Workflow Start - If true, a workflow process is started for the document 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); 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. /** Set Duration.
@param Duration @param Duration
Normal Duration in Duration Unit 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) 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. /** 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) 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. /** 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) public void setPublishStatus (String PublishStatus)
{ {
if (PublishStatus == null) throw new IllegalArgumentException ("PublishStatus is mandatory"); 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. /** Get Publication Status.
@ -729,26 +743,6 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return ii.intValue(); 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 public I_S_Resource getS_Resource() throws RuntimeException
{ {
Class<?> clazz = MTable.getClass(I_S_Resource.Table_Name); 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(); return ii.intValue();
} }
/** Set Validate Workflow. /** Set Setup Time.
@param ValidateWorkflow Validate Workflow */ @param SetupTime
public void setValidateWorkflow (String ValidateWorkflow) 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. /** Get Setup Time.
@return Validate Workflow */ @return Setup time before starting Production
public String getValidateWorkflow () */
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. /** 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); 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. /** Set Search Key.
@param Value @param Value
Search key for the record in the format required - must be unique 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) public void setWorkflowType (String WorkflowType)
{ {
if (WorkflowType == null) throw new IllegalArgumentException ("WorkflowType is mandatory"); 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. /** Get Workflow Type.