public class MoveDetails
extends java.lang.Object
psdi.app.asset.Asset.java| Constructor and Description |
|---|
MoveDetails(Asset owner) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForItemMismatch(boolean doCheck)
enable the Asset/Location Item mismatch check
|
void |
checkForLocationOccupied(boolean doCheck)
enable the Location check to ensure that the
Location is not occupied before moving an
Asset object there
|
void |
createAssetTransactionForNullLocation()
creates an AssetTrans transaction object when newlocation = null
|
void |
doMove()
does the move across sites within an organization which has been setup by
creating asset transaction records, updating asset data
and updating the priority on open work orders.
|
void |
setCommonParameters(java.lang.String memo,
java.util.Date dateMoved,
java.lang.String enterBy)
sets the memo, moved date and enter by information
provided when moving an Asset object between
non-inventory locations.
|
void |
setCommonParameters(java.lang.String memo,
java.util.Date dateMoved,
java.lang.String matUseTransID,
java.lang.String matRecTransID)
provides the memo, moved date, MatUseTransID and MatRecTransID
information
|
void |
setPonum(java.lang.String ponum)
If this move is done in context of a return and transfer,
supply the purchase order number.
|
void |
setToInvLocParameters(java.lang.String newBinnum,
java.lang.String glCreditAcct,
java.lang.String glDebitAcct)
provides new bin number, gl credit and gl debit accounts for
moves to inventory type locations.
|
void |
setToParent(java.lang.String newParent)
povides the new parent for moves to non-inventory type locations.
|
void |
setupMove(MboRemote newAssetLocation)
This method does the checks and figures out where the asset's children go.
|
void |
setWonum(java.lang.String wonum)
If this move is done in context of a work order, supply the
workorder number.
|
void |
updateOpenWorkorders(boolean doUpdate)
enable option to update open work orders for
the Asset being moved
|
void |
updateParentChildrenField()
for the Asset object being moved, updates its parent's
children attribute to be false if the asset being moved
is the only child of its parent, that is, if before the move,
the Asset being moved does not have any siblings.
|
protected MboRemote |
updatePossibleIssue(MboRemote theNewAssetTrans)
Created for issue#88871: update the possible MatUseTrans record if the asset is being moved
from an operating location back to a storeroom location.
|
public MoveDetails(Asset owner)
public void setWonum(java.lang.String wonum)
wonum - work order numberAsset.canIssueAsset,
Asset.canReturnAsset,
Asset.canMoveAssetWithinNonInventorypublic void setPonum(java.lang.String ponum)
ponum - purchase order numberAsset.canReturnAsset,
Asset.canMoveAssetWithinInventorypublic void setCommonParameters(java.lang.String memo,
java.util.Date dateMoved,
java.lang.String matUseTransID,
java.lang.String matRecTransID)
memo - memo fielddateMoved - date movedmatUseTransID - matUseTransID (could be null)matRecTransID - matRecTransID (could be null)Asset.canIssueAsset,
Asset.canReturnAsset,
Asset.canMoveAssetWithinInventorypublic void setCommonParameters(java.lang.String memo,
java.util.Date dateMoved,
java.lang.String enterBy)
memo - memo fielddateMoved - date movedenterBy - Asset.canMoveAssetWithinNonInventorypublic void setToInvLocParameters(java.lang.String newBinnum,
java.lang.String glCreditAcct,
java.lang.String glDebitAcct)
newBinnum - new binnum (move to binnum)glCreditAcct - credit gl accountglDebitAcct - debit gl accountAsset.canReturnAsset,
Asset.canMoveAssetWithinInventorypublic void setToParent(java.lang.String newParent)
newParent - new parentAsset.canMoveAssetWithinNonInventorypublic void checkForItemMismatch(boolean doCheck)
doCheck - boolean to enable the checkAsset.canIssueAsset,
Asset.canMoveAssetWithinNonInventorypublic void checkForLocationOccupied(boolean doCheck)
doCheck - boolean to enable the location checkAsset.canIssueAsset,
Asset.canMoveAssetWithinNonInventorypublic void updateOpenWorkorders(boolean doUpdate)
doCheck - boolean to enable the update optionAsset.canIssueAsset,
Asset.canReturnAsset,
Asset.canMoveAssetWithinNonInventorypublic void setupMove(MboRemote newAssetLocation) throws MXException, java.rmi.RemoteException
newAssetLocation - location mbo that represents the
"move to" destination for the
AssetMXExceptionjava.rmi.RemoteExceptionAsset.canIssueAsset,
Asset.canReturnAsset,
Asset.canMoveAssetWithinNonInventory,
Asset.canMoveAssetWithinInventorypublic void doMove()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionAsset.issueAsset,
Asset.returnAsset,
Asset.moveAssetWithinNonInventory,
Asset.moveAssetWithinInventorypublic void updateParentChildrenField()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptiondoMovepublic void createAssetTransactionForNullLocation()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected MboRemote updatePossibleIssue(MboRemote theNewAssetTrans) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteException