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.
|
public MoveDetails(Asset owner)
public void setWonum(java.lang.String wonum)
wonum
- work order numberAsset.canIssueAsset
,
Asset.canReturnAsset
,
Asset.canMoveAssetWithinNonInventory
public void setPonum(java.lang.String ponum)
ponum
- purchase order numberAsset.canReturnAsset
,
Asset.canMoveAssetWithinInventory
public 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.canMoveAssetWithinInventory
public void setCommonParameters(java.lang.String memo, java.util.Date dateMoved, java.lang.String enterBy)
memo
- memo fielddateMoved
- date movedenterBy
- Asset.canMoveAssetWithinNonInventory
public 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.canMoveAssetWithinInventory
public void setToParent(java.lang.String newParent)
newParent
- new parentAsset.canMoveAssetWithinNonInventory
public void checkForItemMismatch(boolean doCheck)
doCheck
- boolean to enable the checkAsset.canIssueAsset
,
Asset.canMoveAssetWithinNonInventory
public void checkForLocationOccupied(boolean doCheck)
doCheck
- boolean to enable the location checkAsset.canIssueAsset
,
Asset.canMoveAssetWithinNonInventory
public void updateOpenWorkorders(boolean doUpdate)
doCheck
- boolean to enable the update optionAsset.canIssueAsset
,
Asset.canReturnAsset
,
Asset.canMoveAssetWithinNonInventory
public void setupMove(MboRemote newAssetLocation) throws MXException, java.rmi.RemoteException
newAssetLocation
- location mbo that represents the
"move to" destination for the
AssetMXException
java.rmi.RemoteException
Asset.canIssueAsset
,
Asset.canReturnAsset
,
Asset.canMoveAssetWithinNonInventory
,
Asset.canMoveAssetWithinInventory
public void doMove() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
Asset.issueAsset
,
Asset.returnAsset
,
Asset.moveAssetWithinNonInventory
,
Asset.moveAssetWithinInventory
public void updateParentChildrenField() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
doMove
public void createAssetTransactionForNullLocation() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException