|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ofbiz.manufacturing.techdata.TechDataServices
public class TechDataServices
TechDataServices - TechData related Services
| Field Summary | |
|---|---|
static java.lang.String |
module
|
static java.lang.String |
resource
|
| Constructor Summary | |
|---|---|
TechDataServices()
|
|
| Method Summary | |
|---|---|
static java.sql.Timestamp |
addBackward(GenericValue techDataCalendar,
java.sql.Timestamp dateFrom,
long amount)
Used to move backward in a TechDataCalendar, start from the dateFrom and move backward only on available period. |
static java.sql.Timestamp |
addForward(GenericValue techDataCalendar,
java.sql.Timestamp dateFrom,
long amount)
Used to move forward in a TechDataCalenda, start from the dateFrom and move forward only on available period. |
static long |
capacityRemaining(GenericValue techDataCalendar,
java.sql.Timestamp dateFrom)
Used to to request the remain capacity available for dateFrom in a TechDataCalenda, If the dateFrom (param in) is not in an available TechDataCalendar period, the return value is zero. |
static long |
capacityRemainingBackward(GenericValue techDataCalendar,
java.sql.Timestamp dateFrom)
Used to request the remaining capacity available for dateFrom in a TechDataCalenda, If the dateFrom (param in) is not in an available TechDataCalendar period, the return value is zero. |
static java.util.Map<java.lang.String,java.lang.Object> |
checkRoutingTaskAssoc(DispatchContext ctx,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
Used to check if there is not two routing task with the same SeqId valid at the same period |
static java.util.Map<java.lang.String,java.lang.Object> |
dayEndCapacityAvailable(GenericValue techDataCalendarWeek,
int dayEnd)
Used to find the last day in the TechDataCalendarWeek where capacity != 0, ending at dayEnd, dayEnd included. |
static java.util.Map<java.lang.String,java.lang.Object> |
dayStartCapacityAvailable(GenericValue techDataCalendarWeek,
int dayStart)
Used to find the fisrt day in the TechDataCalendarWeek where capacity != 0, beginning at dayStart, dayStart included. |
static java.util.Map<java.lang.String,java.lang.Object> |
endPreviousDay(GenericValue techDataCalendar,
java.sql.Timestamp dateFrom)
Used to move in a TechDataCalenda, produce the Timestamp for the end of the previous day available and its associated capacity. |
static GenericValue |
getTechDataCalendar(GenericValue routingTask)
Used to get the techDataCalendar for a routingTask, if there is a entity exception or routingTask associated with no MachineGroup the DEFAULT TechDataCalendar is return. |
static java.util.Map<java.lang.String,java.lang.Object> |
lookupRoutingTask(DispatchContext ctx,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
Used to retrieve some RoutingTasks (WorkEffort) selected by Name or MachineGroup ordered by Name |
static java.util.Map<java.lang.String,java.lang.Object> |
startNextDay(GenericValue techDataCalendar,
java.sql.Timestamp dateFrom)
Used to move in a TechDataCalenda, produce the Timestamp for the begining of the next day available and its associated capacity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String module
public static final java.lang.String resource
| Constructor Detail |
|---|
public TechDataServices()
| Method Detail |
|---|
public static java.util.Map<java.lang.String,java.lang.Object> lookupRoutingTask(DispatchContext ctx,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
ctx - the dispatch contextcontext - a map containing workEffortName (routingTaskName) and fixedAssetId (MachineGroup or ANY)
public static java.util.Map<java.lang.String,java.lang.Object> checkRoutingTaskAssoc(DispatchContext ctx,
java.util.Map<java.lang.String,? extends java.lang.Object> context)
ctx - The DispatchContext that this service is operating in.context - a map containing workEffortIdFrom (routing) and SeqId, fromDate thruDate
public static GenericValue getTechDataCalendar(GenericValue routingTask)
routingTask - the routingTask for which we are looking for
public static java.util.Map<java.lang.String,java.lang.Object> dayStartCapacityAvailable(GenericValue techDataCalendarWeek,
int dayStart)
techDataCalendarWeek - The TechDataCalendarWeek coverdayStart -
public static long capacityRemaining(GenericValue techDataCalendar,
java.sql.Timestamp dateFrom)
techDataCalendar - The TechDataCalendar coverdateFrom - the date
public static java.util.Map<java.lang.String,java.lang.Object> startNextDay(GenericValue techDataCalendar,
java.sql.Timestamp dateFrom)
techDataCalendar - The TechDataCalendar coverdateFrom - the date
public static java.sql.Timestamp addForward(GenericValue techDataCalendar,
java.sql.Timestamp dateFrom,
long amount)
techDataCalendar - The TechDataCalendar coverdateFrom - the start dateamount - the amount of millisecond to move forward
public static java.util.Map<java.lang.String,java.lang.Object> dayEndCapacityAvailable(GenericValue techDataCalendarWeek,
int dayEnd)
techDataCalendarWeek - The TechDataCalendarWeek coverdayEnd -
public static long capacityRemainingBackward(GenericValue techDataCalendar,
java.sql.Timestamp dateFrom)
techDataCalendar - The TechDataCalendar coverdateFrom - the date
public static java.util.Map<java.lang.String,java.lang.Object> endPreviousDay(GenericValue techDataCalendar,
java.sql.Timestamp dateFrom)
techDataCalendar - The TechDataCalendar coverdateFrom - the date
public static java.sql.Timestamp addBackward(GenericValue techDataCalendar,
java.sql.Timestamp dateFrom,
long amount)
techDataCalendar - The TechDataCalendar coverdateFrom - the start dateamount - the amount of millisecond to move backward
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||