public class FldAssignScheduleDate extends MboValueAdapter
| Modifier and Type | Class and Description |
|---|---|
static class |
FldAssignScheduleDate.Resource |
mboValueTYPE_DOMAIN, TYPE_FIELDCLASS, TYPE_KEY, TYPE_UNKNOWNALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER| Constructor and Description |
|---|
FldAssignScheduleDate(MboValue mbv)
Construct and attach to the specified mbovalue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
action()
The ScheduleDate field is updated (if necessary) in fldAssignLaborCode.
|
boolean |
assignAndWPOverlap(Assignment assignMbo,
MboRemote workTimeMbo,
java.util.GregorianCalendar scratchCal,
AvailCalc availCalc)
Checks if an Assignment overlaps the workperiod defined by the WorkPeriod or ModAvail object.
|
MboRemote |
getAvailableMbo(MboRemote resMbo,
java.util.Date wpWorkDate,
java.lang.String orgID,
AvailCalc availCalc) |
MboRemote |
getResourceMbo(MboRemote mbo,
FldAssignScheduleDate.Resource resourceName) |
java.util.Date |
getWorkDatePlusDifference(java.util.Date wpWorkDate,
java.util.GregorianCalendar scratchCal,
int offset)
The method is passed a date and returns a different date that differs by the amount of offset.
|
boolean |
isAssignMidnightSpanning(Assignment assignMbo)
Examines an Assignment and asks if the time range defined spans midnight.
|
boolean |
isWPMidnightSpanning(MboRemote workTimeMbo)
Examines a WorkPeriod or ModAvail object and asks if the workperiod defined spans midnight.
|
void |
setAssignWorkDate(Assignment assignMbo)
Sets the workdate field based on whether the assignment overlaps either a workperiod on
the calendar of the assigned labor or a modavail record of the assigned labor.
|
getAppLink, getIntegrationService, getList, getLookupName, getMatchingAttr, getMatchingAttr, getMboValue, getMboValue, getType, hasList, init, initValue, setType, setValueFromLookup, smartFill, smartFind, smartFind, validatepublic FldAssignScheduleDate(MboValue mbv)
mbv - the MboValue Assignment.ScheduleDate field attach to.public void action()
throws MXException,
java.rmi.RemoteException
action in interface MboValueListeneraction in class MboValueAdapterMXExceptionjava.rmi.RemoteExceptionpublic void setAssignWorkDate(Assignment assignMbo) throws MXException, java.rmi.RemoteException
assignMbo - The Assignment that this field class is associated with.MXExceptionjava.rmi.RemoteExceptionpublic boolean isWPMidnightSpanning(MboRemote workTimeMbo) throws MXException, java.rmi.RemoteException
workTimeMbo - A mbo that defines working time: either a WorkPeriod or a ModAvail.MXExceptionjava.rmi.RemoteExceptionpublic boolean isAssignMidnightSpanning(Assignment assignMbo) throws MXException, java.rmi.RemoteException
assignMbo - An Assignment.MXExceptionjava.rmi.RemoteExceptionpublic boolean assignAndWPOverlap(Assignment assignMbo, MboRemote workTimeMbo, java.util.GregorianCalendar scratchCal, AvailCalc availCalc) throws MXException, java.rmi.RemoteException
assignMbo - An Assignment.workTimeMbo - A mbo that defines working time: either a WorkPeriod or a ModAvail.scratchCal - A Gregorian calendar object.availCalc - An AvailCalc object.MXExceptionjava.rmi.RemoteExceptionpublic java.util.Date getWorkDatePlusDifference(java.util.Date wpWorkDate,
java.util.GregorianCalendar scratchCal,
int offset)
throws MXException,
java.rmi.RemoteException
wpWorkDate - A java.util.Date with no time (i.e. set to midnight).scratchCal - A Gregorian calendar object.offset - A integer telling how many days should be added to wpWorkDate. (It may
be a negative number, so as to subtract some number of days.)MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getAvailableMbo(MboRemote resMbo, java.util.Date wpWorkDate, java.lang.String orgID, AvailCalc availCalc) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getResourceMbo(MboRemote mbo, FldAssignScheduleDate.Resource resourceName) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException