public class Attendance extends Mbo implements AttendanceRemote
This is an Organization level object.
The attributes in this object are as follows:
Attribute Description
Attribute | Description |
---|---|
EnterBy | Enter By For Attendance Transaction |
EnterDate | Enter Date For Attendance Transaction |
FinishDate | Finish Date For Attendance Transaction |
FinishTime | Finish Time For Attendance Transaction |
LaborCode | Laborcode For Transaction |
LaborHours | Total Hours For Attendance Transaction |
OrgId | Identifier for the Organization of this Attendance |
StartDate | Start Date For Attendance Transaction |
StartTime | Start Time For Attendance Transaction |
TransDate | Time Stamp For Attendance Transaction |
Labor
,
psdi.app.labor.LaborAuth
,
LabTrans
,
ServRecTrans
MULTILANGCOPY, phantomList, phantomQueue
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 |
---|
Attendance(MboSet ms)
Construct the Attendance object
|
Modifier and Type | Method and Description |
---|---|
void |
add()
Add a new Attendance Object.
|
void |
checkDates()
Check startdate, starttime, finishdate and finishtime validity
If the startdate is later than the finishdate or if the combination of startdate and starttime
is laterthan than the combination of finishdate and finishtime, then throw the exception
|
void |
checkFinishDateTime()
Validation for FinishDate and FinishTime
If the finishdate is null, finishtime and starttime are not null, then the calculate and set the
value for finishdate
If the finishtime is null, finishdate and starttime are not null, then calculate and set the
value for finishtime.
|
void |
checkLaborHrs()
Validation for Labor hrs.
|
void |
checkStartDateTime()
Validation for Startdate and Starttime
If the starttime is null, finishdate, finishtime, labor hrs are not null, then calculate and set the
the starttime value.
|
double |
getDatesDiff()
Return the time difference between the startdate, starttime, finishdate and finishtime.
|
java.util.Date |
getNextDateTime(java.util.Date d1,
java.util.Date d2,
int minutes)
This method will take two date parameters (date d1 and time d2),
combine them in a new date/time and create a new next date object (result )
by adding a number of minutes to original date .
|
java.lang.String |
getProcess()
Return the work flow process for ATTENDANCE
|
double |
getTotalAttendance()
This will sum up the total labor hours of a particular labor
|
int |
getTotalHrsinMinutes()
Return the totalhrs in minutes for laborhours
|
void |
init()
init overridden to make existing records read/only
|
boolean |
isSameDate(java.util.Date date1,
java.util.Date date2)
This method takes 2 date parameters and checks if the two dates are equal.If the two dates
are equal it returns true
|
static boolean |
isStartAfterFinshDate(java.util.Date startDate,
java.util.Date finishDate)
This method checks if the finish date is before the start date.
|
java.util.Date |
validateDateTime(java.util.Date date,
java.util.Date time)
This method will take two dates as a parameters and remove the date section from
one and combine it with the time section from the other.
|
boolean |
validDates()
Return true if startdate, starttime, finishdate and finishtime are not null
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, canDelete, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, determineRequiredFieldsFromERM, duplicate, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, fireEvent, generateAutoKey, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getESId, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertOrgForSite, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboCtx, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESId, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMboCtx, setMLValue, setModified, setModifiedForIntegrationOnly, setNewMbo, setNoSql, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, duplicate, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, generateAutoKey, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
public Attendance(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getProcess() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public void add() throws MXException, java.rmi.RemoteException
Attribute Name | Attribute Value |
---|---|
laborcode | laborcode (from Labor) |
startdate | current date |
laborhours | 0 |
enterdate | current date |
enterby | current user |
transdate | current date |
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
psdi.mbo.Mbo#add.
public double getTotalAttendance() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean isSameDate(java.util.Date date1, java.util.Date date2) throws MXException, java.rmi.RemoteException
-
- Date1,Date2 - the two dates to be compared.MXException
java.rmi.RemoteException
public static boolean isStartAfterFinshDate(java.util.Date startDate, java.util.Date finishDate) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public int getTotalHrsinMinutes() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void checkStartDateTime() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void checkFinishDateTime() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double getDatesDiff() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public boolean validDates() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void checkDates() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void checkLaborHrs() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Date validateDateTime(java.util.Date date, java.util.Date time) throws MXException, java.rmi.RemoteException
time
- date
- MXException
java.rmi.RemoteException
public java.util.Date getNextDateTime(java.util.Date d1, java.util.Date d2, int minutes) throws MXException, java.rmi.RemoteException
minutes
- d1
- d2
- MXException
java.rmi.RemoteException