public class LeaseView extends Contract implements LeaseViewRemote
checkLimitWhenApprove
onListTab, statusChangeButtonSigoption, targetStatusOption
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 |
---|
LeaseView(MboSet ms)
Construct the LeaseView object.
|
Modifier and Type | Method and Description |
---|---|
void |
add()
Add method on the Leave Contract View.
|
void |
applyPriceAdjustment(MboSetRemote contractLineSetRemote) |
void |
applyPriceToLines()
Apply the adjusted prices to the linecost of the contractLine.
|
void |
appValidate()
Pre-save validation method.
|
void |
canAddAssetToContractAsset()
Method to check if a row can be added to the associated assets tab.
|
void |
cancelInvoices(MboSetRemote assetSet)
Cancel all the unpaid invoices which were created for the passed in assets.
|
void |
canCreateSchedule()
Cannot add a new payment schedule for an lease contract unless it is approved.
|
void |
canPurchaseOrReturnAsset()
Can perform "Purchase" or "Return" assets "End Lease" actions for approved contracts only
|
void |
changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo,
long accessModifier)
This method is overridden to add a wrapper to exceptions thrown during change status
and to write warnings whether or not the status change is successful
|
void |
copyAssetsToContractAsset(AssetSetRemote assetSetRemote)
Copies the selected Asset values to the CONTRACTASSET.
|
void |
createEndLeaseInvoice(java.lang.String invNumber,
java.lang.String targetStatus,
MboSetRemote assetSet,
boolean purchaseFlag)
Create invoice for purchase assets belonging to a lease contract (Lease End action).
|
void |
createEndLeasePO(java.lang.String poNumber,
java.lang.String targetStatus,
MboSetRemote assetSet,
boolean purchaseFlag) |
MboRemote |
duplicate()
Duplicates a Contract,its lines and cost lines
Creates a duplicate Purchase Order.
|
java.lang.String |
getStatusListName()
Return the string "CONTRACTSTATUS".
|
void |
init()
Initialize the Purchase Contract View object.
|
void |
initRelationship(java.lang.String relationName,
MboSetRemote mboSet)
Called whenever a relationship is initialized or reset from this Mbo to another MboSet.
|
void |
nullVendor()
Throws an exception if the vendor on the LEASEVIEW Header is null.
|
double |
reCalcLeaseViewCost()
This method recalculates the lease view's total cost if the line cost on any of its
payment schedule lines changes.
|
MboRemote |
reviseContract(java.lang.String revDescription)
Creates a new revision of the current contract.
|
void |
setRentalReadOnlyFields()
Sets some fields to read only if the contract type is rental
|
addInvVendorItemsToContractLine, canAuthSites, cancelOrSusupndPreviousRevision, canChangeLineStatus, canDelete, canEditContractLine, canPerformAction, canReviseContract, changeLineStatus, checkMasterMaxValue, copySitesToContractAuth, copySLAToSLAContract, doesContractReferenceExistOnPO, findLatestMasterRevision, getAssetList, getAvailableFunds, getContractReleaseSeqNumber, getInternalContractType, getInvoiceCreationFlag, getLocationsList, getNextRevision, getNextRevisionReference, getPreviousRevision, getRouteWF, isRevisionInProgress, modify, prevStatusRemainApproved, revisionInProgress, setContractTypeEditibilityAndValues, setContractTypeTerm, setInvoiceCreationFlag, setNextRevisionReference, setRouteWF, useLineOrLoadedCost, validateContract, validateDates
addConsignmentItems, checkConsignmentItems, checkConsignmentItemsInContractSet, checkContractType, checkInvalidItemStatus, compareCopyTerms, copyAllTerms, copyContarctTerm, copyContractToPOPR, copyFromContract, copyTerms, createContractHeader, getContractAuth, getExchangeRate, getExchangeRate2, getInvoiceMgtMaxVar, getPOPRLineSet, getShowconswarningFlag, noLimitWhenApprove, nullVendorContract, recalculateTotalCost, recalculateTotalTax, setPOPRLineSet, setShowconswarningFlag, showConsVendorWarningMessage, showConsVendorWarningMessageForContracts
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, determineRequiredFieldsFromERM, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, 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, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, 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
addInvVendorItemsToContractLine, canAuthSites, canChangeLineStatus, canPerformAction, canReviseContract, changeLineStatus, copySitesToContractAuth, copySLAToSLAContract, getAssetList, getAvailableFunds, getContractReleaseSeqNumber, getInternalContractType, getLocationsList, getRouteWF, isRevisionInProgress, revisionInProgress, setRouteWF, validateDates
copyContarctTerm, copyContractToPOPR, copyTerms, getPOPRLineSet, noLimitWhenApprove, nullVendorContract, showConsVendorWarningMessageForContracts
canChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, 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 LeaseView(MboSet ms) throws MXException, java.rmi.RemoteException
ms
- MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Contract
MXException
public java.lang.String getStatusListName()
getStatusListName
in interface StatefulMboRemote
getStatusListName
in class Contract
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Contract
MXException
java.rmi.RemoteException
public MboRemote duplicate() throws MXException, java.rmi.RemoteException
save()
method checks for the key and throws an exception
if the key is not entered.
duplicate
in interface MboRemote
duplicate
in class Mbo
MXException
java.rmi.RemoteException
Mbo.isAutoKeyed(java.lang.String)
public void appValidate() throws java.rmi.RemoteException, MXException
Mbo
appValidate
in class Mbo
java.rmi.RemoteException
MXException
public void nullVendor() throws MXException, java.rmi.RemoteException
nullVendor
in interface PurchasingMboRemote
nullVendor
in interface ContractRemote
nullVendor
in interface LeaseViewRemote
nullVendor
in class Contract
MXApplicationException("po",
- "vendorIsNull");MXException
java.rmi.RemoteException
PurchasingMbo.nullVendor()
public void initRelationship(java.lang.String relationName, MboSetRemote mboSet) throws MXException, java.rmi.RemoteException
initRelationship
in class Contract
relationName
- the relationship namemboSet
- the mbosetMXException
java.rmi.RemoteException
public void canCreateSchedule() throws MXException, java.rmi.RemoteException
canCreateSchedule
in interface LeaseViewRemote
MXApplicationException("contract",
- "AfterLastScheduleDate")MXException
java.rmi.RemoteException
psdi.app.contract.lease
public double reCalcLeaseViewCost() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setRentalReadOnlyFields() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void copyAssetsToContractAsset(AssetSetRemote assetSetRemote) throws MXException, java.rmi.RemoteException
copyAssetsToContractAsset
in interface LeaseViewRemote
MXException
java.rmi.RemoteException
psdi.app.contract.lease
public void canAddAssetToContractAsset() throws MXException, java.rmi.RemoteException
canAddAssetToContractAsset
in interface LeaseViewRemote
MXException
java.rmi.RemoteException
psdi.app.contract.lease
public void canPurchaseOrReturnAsset() throws MXException, java.rmi.RemoteException
canPurchaseOrReturnAsset
in interface LeaseViewRemote
MXException
java.rmi.RemoteException
psdi.app.contract.lease.ITSMELeaseView#canPurchaseOrReturnAsset
public void createEndLeaseInvoice(java.lang.String invNumber, java.lang.String targetStatus, MboSetRemote assetSet, boolean purchaseFlag) throws MXException, java.rmi.RemoteException
createEndLeaseInvoice
in interface LeaseViewRemote
MXException
java.rmi.RemoteException
psdi.app.contract.lease.ITSMELeaseView#createEndLeaseInvoice
public void createEndLeasePO(java.lang.String poNumber, java.lang.String targetStatus, MboSetRemote assetSet, boolean purchaseFlag) throws MXException, java.rmi.RemoteException
createEndLeasePO
in interface LeaseViewRemote
MXException
java.rmi.RemoteException
psdi.app.contract.lease.ITSMELeaseView#createEndLeasePO
public void applyPriceAdjustment(MboSetRemote contractLineSetRemote) throws MXException, java.rmi.RemoteException
applyPriceAdjustment
in interface LeaseViewRemote
MXException
java.rmi.RemoteException
psdi.app.contract.lease.ITSMELeaseView#applyPriceAdjustment
public void applyPriceToLines() throws MXException, java.rmi.RemoteException
applyPriceToLines
in interface LeaseViewRemote
MXException
java.rmi.RemoteException
applyPriceToLines()
public MboRemote reviseContract(java.lang.String revDescription) throws MXException, java.rmi.RemoteException
reviseContract
in interface ContractRemote
reviseContract
in interface LeaseViewRemote
reviseContract
in class Contract
MXException
java.rmi.RemoteException
canReviseContract
public void changeStatus(java.lang.String status, java.util.Date date, java.lang.String memo, long accessModifier) throws MXException, java.rmi.RemoteException
Contract
changeStatus
in interface StatefulMboRemote
changeStatus
in class Contract
status
- The new desired status. This is the translated status
(that is, the status code as it would have been entered by a user, or
valuelist.value
), not
the internal status value (valuelist.maxvalue
).date
- The effective date of the new status (java.util.Date
). If null
the current date/time is used.memo
- A string briefly describing the circumstances of the change. The
memo can be null.accessModifier
- A value of NOACCESSCHECK will cause the method not to call canChangeStatus.
Callers using this flag are responsible for ensuring that they are attempting a valid status change.MXException
- Thrown if there is a problem.java.rmi.RemoteException
StatefulMbo.canChangeStatus(String)
public void cancelInvoices(MboSetRemote assetSet) throws MXException, java.rmi.RemoteException
cancelInvoices
in interface LeaseViewRemote
assetSet
- MXException
java.rmi.RemoteException
cancelInvoices(psdi.mbo.MboSetRemote)