Package org.compiere.model
Class ScheduleUtil
java.lang.Object
org.compiere.model.ScheduleUtil
Scheduling Utilities.
- Version:
- $Id: ScheduleUtil.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
- Author:
- Jorg Janke
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAssignmentSlots
(int S_Resource_ID, Timestamp start_Date, Timestamp end_Date, BigDecimal qty, boolean getAll, String trxName) Get Assignments for timeframe.Get Day Time Slots for DateReturn End Date.int
Get Resource ID.Return Start Date.
-
Field Details
-
EARLIEST
Begin Timestamp 1/1/1970 -
LATEST
End Timestamp 12/31/2070
-
-
Constructor Details
-
ScheduleUtil
Constructor- Parameters:
ctx
- context
-
-
Method Details
-
getAssignmentSlots
public MAssignmentSlot[] getAssignmentSlots(int S_Resource_ID, Timestamp start_Date, Timestamp end_Date, BigDecimal qty, boolean getAll, String trxName) Get Assignments for timeframe.- Resource is Active and Available - Resource UnAvailability - NonBusinessDay - ResourceType Available
- Parameters:
S_Resource_ID
- resourcestart_Date
- start dateend_Date
- optional end date, need to provide qty to calculate itqty
- optional qty in ResourceType UOM - ignored, if end date is not nullgetAll
- if true return all errorstrxName
- transaction- Returns:
- Array of existing Assignments or null - if free
-
getDayTimeSlots
Get Day Time Slots for Date- Returns:
- "heading" or null
-
getS_Resource_ID
public int getS_Resource_ID()Get Resource ID. Set by getAssignmentSlots- Returns:
- current resource
-
getStartDate
Return Start Date. Set by getAssignmentSlots- Returns:
- start date
-
getEndDate
Return End Date. Set by getAssignmentSlots- Returns:
- end date
-