public class FldAssignScheduleDate extends MboValueAdapter
Modifier and Type | Class and Description |
---|---|
static class |
FldAssignScheduleDate.Resource |
mboValue
TYPE_DOMAIN, TYPE_FIELDCLASS, TYPE_KEY, TYPE_UNKNOWN
ALLROWS, 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, validate
public FldAssignScheduleDate(MboValue mbv)
mbv
- the MboValue Assignment.ScheduleDate field attach to.public void action() throws MXException, java.rmi.RemoteException
action
in interface MboValueListener
action
in class MboValueAdapter
MXException
java.rmi.RemoteException
public void setAssignWorkDate(Assignment assignMbo) throws MXException, java.rmi.RemoteException
assignMbo
- The Assignment that this field class is associated with.MXException
java.rmi.RemoteException
public boolean isWPMidnightSpanning(MboRemote workTimeMbo) throws MXException, java.rmi.RemoteException
workTimeMbo
- A mbo that defines working time: either a WorkPeriod or a ModAvail.MXException
java.rmi.RemoteException
public boolean isAssignMidnightSpanning(Assignment assignMbo) throws MXException, java.rmi.RemoteException
assignMbo
- An Assignment.MXException
java.rmi.RemoteException
public 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.MXException
java.rmi.RemoteException
public 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.)MXException
java.rmi.RemoteException
public MboRemote getAvailableMbo(MboRemote resMbo, java.util.Date wpWorkDate, java.lang.String orgID, AvailCalc availCalc) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboRemote getResourceMbo(MboRemote mbo, FldAssignScheduleDate.Resource resourceName) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException