public class CountBookService extends AppService implements CountBookServiceRemote
currentState, dbManager, INIT, liveObjCount, load, LOAD, mxServer, name, RUN, running, stateCmdList, stateList, STOP, url
ALL_ITEMS_CRIT, ALLITEMS, NOBALANCE, NOISSUES, ROTATING_ITEMS_CRIT, TOOLS_CRIT
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
CountBookService()
Constructor.
|
CountBookService(MXServer mxServer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
changeStatus(CountBookRemote countbook,
java.lang.String status,
java.util.Date date,
java.lang.String memo)
Service Method used to change status.
|
MboSet |
clearSet(MboSet set)
Clear the given mboset
|
MboSetRemote |
clearSet(MboSetRemote setRemote)
Clear the given mboset remote
|
MboSetRemote |
findItemsForPhysCount(UserInfo userInfo,
ProfileRemote profileRemote,
java.lang.String location,
java.util.Date userDate)
Find the eligible balances records for physical count by items due to be counted.
|
MboSetRemote |
getBalances(UserInfo userInfo,
java.lang.String itemnum,
java.lang.String itemsetid,
java.lang.String location,
java.lang.String siteid) |
Inventory |
getInventory(UserInfo userInfo,
java.lang.String itemnum,
java.lang.String location,
java.lang.String siteid)
Gets Inventory mbo based on the itemnum/location passed.
|
Inventory |
getInventory(UserInfo userInfo,
java.lang.String itemnum,
java.lang.String itemsetid,
java.lang.String location,
java.lang.String siteid) |
MboSetRemote |
getItemsInGroupForStore(UserInfo userInfo,
ProfileRemote profileRemote,
java.lang.String storeroom,
java.lang.String invGroup)
Returns an MboSetRemote of ITEM's in the specified group of inventory in a specified Storeroom
|
MboSetRemote |
getItemsInStore(UserInfo userInfo,
ProfileRemote profileRemote,
java.lang.String storeroom,
java.lang.String criteria)
Returns an MboSetRemote of Rotating ITEM's in the specified Storeroom.
|
int |
getLastDaysQuantityForNoIssue(MboRemote countBook)
NOISSUE excludes items that have had no issues or receipts in the last 30 days.
|
MboSetRemote |
getRotatingAssetForItem(UserInfo userInfo,
java.lang.String itemnum,
java.lang.String storeRoom,
java.lang.String binNum,
java.lang.String conditioncode)
Get the equipment set for rotating items
|
boolean |
isCountValid(MboRemote invBal,
UserInfo userInfo,
MboRemote countBook)
Check from the Multisite set up if you do have to count items with zero balance, or items who have been issues or received in the last 30 days.
|
boolean |
isItemIssuedOrReceived(MboRemote item,
MboRemote countBook)
This method checks if the item is issued or received in the last 30 days
|
CountBookLineSetRemote |
populateCBLine(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote cbLineSetRemote,
java.lang.String countBookNum)
This method populates the CBLine with the required data.
|
CountBookLineSetRemote |
populateCBLineForAItem(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote cbLineSetRemote,
java.lang.String countBookNum,
java.lang.String itemNum)
This method populates the count book line for a particular item with the required data.
|
CountBookLineSetRemote |
populateCBLineForBinInCriteria(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote countBookLinesSetRemote,
java.lang.String countBookNum,
MboRemote countBookSelType)
This method populates the count book line for items which binnum match the binCriteria.
|
CountBookLineSetRemote |
populateCBLineForCountFrequency(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote cbLineSetRemote,
java.lang.String countBookNum,
java.util.Date userDate)
This method is used to generate count book line from Count Frequency
|
CountBookLineRemote |
populateCBLineForInvBalance(java.lang.String storeRoom,
UserInfo userInfo,
CountBookLineSetRemote cbLineSetRemote,
java.lang.String countBookNum,
boolean isRotating,
MboRemote itemRemote,
java.lang.String itemNum,
java.lang.String internalItemType,
MboRemote invBalances)
This method populates the count book line for given inventory balance object.
|
CountBookLineSetRemote |
populateCBLineForItem(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote cbLineSetRemote,
ItemRemote itemRemote,
java.lang.String countBookNum)
This method populates the count book line for given item.
|
CountBookLineSetRemote |
populateCBLineForItemInGroup(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote cbLineSetRemote,
java.lang.String countBookNum,
java.lang.String invGroup)
This method populates the count book line for items in a specified group of the inventory with the required data.
|
CountBookLineSetRemote |
populateCBLineForItems(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote cbLineSetRemote,
ItemSetRemote itemSetRemote,
java.lang.String countBookNum)
This method populates the count book line for given ItemSet
|
CountBookLineSetRemote |
populateRotableCBLines(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote cbLineSetRemote,
java.lang.String countBookNum)
This method populates the CBLines for all rotating items with the required data.
|
CountBookLineSetRemote |
populateToolsCBLines(java.lang.String storeRoom,
UserInfo userInfo,
ProfileRemote profileRemote,
CountBookLineSetRemote cbLineSetRemote,
java.lang.String countBookNum)
This method populates the count book line for all 'tool' items with the required data.
|
boolean |
validateInventory(UserInfo userInfo,
java.lang.String item,
java.lang.String location)
Checks the ITEMNUM/LOCATION combination against the Inventory table.
|
checkSecurity, configure, destroy, freeDBConnection, freeMboSet, getCriteria, getCriteriaList, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, init, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setName, setProxy, setRunning, setURL, verifyUser, verifyUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
public CountBookService() throws java.rmi.RemoteException
java.rmi.RemoteException
public CountBookService(MXServer mxServer) throws java.rmi.RemoteException
mxServer
- java.rmi.RemoteException
public MboSet clearSet(MboSet set) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
clearSet
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService.clearSet(MboSet)
public MboSetRemote clearSet(MboSetRemote setRemote) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
clearSet
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService.clearSet(MboSetRemote)
public void changeStatus(CountBookRemote countbook, java.lang.String status, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
countbook
- Countbook Mbo.status
- The new statusdate
- The date of the status change. Defaults to the current date/time if null.memo
- The status change memo.MXException
java.rmi.RemoteException
public MboSetRemote findItemsForPhysCount(UserInfo userInfo, ProfileRemote profileRemote, java.lang.String location, java.util.Date userDate) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
findItemsForPhysCount
in interface CountBookServiceRemote
userInfo
- User Information to instantiate the mbo setlocation
- storeroom where the count is taking place.MXException
java.rmi.RemoteException
CountBookService.findItemsForPhysCount(UserInfo, ProfileRemote, String, Date)
public MboSetRemote getBalances(UserInfo userInfo, java.lang.String itemnum, java.lang.String itemsetid, java.lang.String location, java.lang.String siteid) throws MXException, java.rmi.RemoteException
getBalances
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService.getBalances(UserInfo, String, String, String, String)
public int getLastDaysQuantityForNoIssue(MboRemote countBook) throws java.rmi.RemoteException
CountBookServiceRemote
getLastDaysQuantityForNoIssue
in interface CountBookServiceRemote
java.rmi.RemoteException
CountBookService.getLastDaysQuantityForNoIssue(MboRemote)
public Inventory getInventory(UserInfo userInfo, java.lang.String itemnum, java.lang.String location, java.lang.String siteid) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
getInventory
in interface CountBookServiceRemote
userInfo
- the User informationitemnum
- the itemnum of the inventory record for which a balance is requested.location
- the location of the inventory record for which a balance is requested.MXApplicationException
- GROUP | KEY | REASON | |
---|---|---|---|
inventory | invbalNotInInventory | if an inventory record can not be found. |
MXException
java.rmi.RemoteException
CountBookService.getInventory(UserInfo, String, String, String)
public Inventory getInventory(UserInfo userInfo, java.lang.String itemnum, java.lang.String itemsetid, java.lang.String location, java.lang.String siteid) throws MXException, java.rmi.RemoteException
getInventory
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService.getInventory(UserInfo, String, String, String, String)
public MboSetRemote getItemsInGroupForStore(UserInfo userInfo, ProfileRemote profileRemote, java.lang.String storeroom, java.lang.String invGroup) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
getItemsInGroupForStore
in interface CountBookServiceRemote
userInfo
- passed by the callerstoreroom
- the storeroom for which you seek a list of itemsMXException
java.rmi.RemoteException
CountBookService.getItemsInGroupForStore(UserInfo, ProfileRemote, String, String)
public MboSetRemote getItemsInStore(UserInfo userInfo, ProfileRemote profileRemote, java.lang.String storeroom, java.lang.String criteria) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
getItemsInStore
in interface CountBookServiceRemote
userInfo
- passed by the callerstoreroom
- the storeroom for which you seek a list of itemsMXException
java.rmi.RemoteException
CountBookService#getItemsInStore(UserInfo userInfo, ProfileRemote profileRemote, String storeroom, boolean isRotable)
public MboSetRemote getRotatingAssetForItem(UserInfo userInfo, java.lang.String itemnum, java.lang.String storeRoom, java.lang.String binNum, java.lang.String conditioncode) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
getRotatingAssetForItem
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService.getRotatingAssetForItem(UserInfo, String, String, String, String)
public boolean isCountValid(MboRemote invBal, UserInfo userInfo, MboRemote countBook) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
isCountValid
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService.isCountValid(MboRemote, UserInfo, MboRemote)
public boolean isItemIssuedOrReceived(MboRemote item, MboRemote countBook) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
isItemIssuedOrReceived
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService.isItemIssuedOrReceived(MboRemote, MboRemote)
public CountBookLineSetRemote populateCBLine(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote cbLineSetRemote, java.lang.String countBookNum) throws MXException, java.rmi.RemoteException
populateCBLine
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService#populateCBLine(String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSet cbLineSet, String countBookNum)
public CountBookLineSetRemote populateCBLineForAItem(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote cbLineSetRemote, java.lang.String countBookNum, java.lang.String itemNum) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
populateCBLineForAItem
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService#populateCBLineForAItem(String storeRoom, UserInfo userInfo, CountBookLineSet cbLineSet, String countBookNum, String itemNum)
public CountBookLineSetRemote populateCBLineForCountFrequency(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote cbLineSetRemote, java.lang.String countBookNum, java.util.Date userDate) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
populateCBLineForCountFrequency
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService.populateCBLineForCountFrequency(String, UserInfo, ProfileRemote, CountBookLineSetRemote, String, Date)
public CountBookLineSetRemote populateCBLineForItem(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote cbLineSetRemote, ItemRemote itemRemote, java.lang.String countBookNum) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
populateCBLineForItem
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService.populateCBLineForItem(String, UserInfo, ProfileRemote, CountBookLineSetRemote, ItemRemote, String)
public CountBookLineSetRemote populateCBLineForItemInGroup(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote cbLineSetRemote, java.lang.String countBookNum, java.lang.String invGroup) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
populateCBLineForItemInGroup
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService#populateCBLineForItemInGroup(String storeRoom, UserInfo userInfo, CountBookLineSet cbLineSet, String countBookNum, String invGroup)
public CountBookLineSetRemote populateCBLineForItems(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote cbLineSetRemote, ItemSetRemote itemSetRemote, java.lang.String countBookNum) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
populateCBLineForItems
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService.populateCBLineForItems(String, UserInfo, ProfileRemote, CountBookLineSetRemote, ItemSetRemote, String)
public CountBookLineRemote populateCBLineForInvBalance(java.lang.String storeRoom, UserInfo userInfo, CountBookLineSetRemote cbLineSetRemote, java.lang.String countBookNum, boolean isRotating, MboRemote itemRemote, java.lang.String itemNum, java.lang.String internalItemType, MboRemote invBalances) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
populateCBLineForInvBalance
in interface CountBookServiceRemote
itemRemote
- Cannot be null.invBalances
- Can be null.MXException
java.rmi.RemoteException
CountBookService#populateCBLineForInvBalance(String, UserInfo, CountBookLineSetRemote, String, Translate, CountBookLineRemote, boolean, MboRemote, String, String, MboRemote)
public CountBookLineSetRemote populateRotableCBLines(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote cbLineSetRemote, java.lang.String countBookNum) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
populateRotableCBLines
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService#populateRotableCBLine(String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSet cbLineSet, String countBookNum)
public CountBookLineSetRemote populateToolsCBLines(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote cbLineSetRemote, java.lang.String countBookNum) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
populateToolsCBLines
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService#populateToolsCBLine(String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSet cbLineSet, String countBookNum)
public boolean validateInventory(UserInfo userInfo, java.lang.String item, java.lang.String location) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
validateInventory
in interface CountBookServiceRemote
userInfo
- user information to instantiate Locations setitem
- itemnumlocation
- fromstoreloc or tostorelocMXException
java.rmi.RemoteException
CountBookService.validateInventory(UserInfo, String, String)
public CountBookLineSetRemote populateCBLineForBinInCriteria(java.lang.String storeRoom, UserInfo userInfo, ProfileRemote profileRemote, CountBookLineSetRemote countBookLinesSetRemote, java.lang.String countBookNum, MboRemote countBookSelType) throws MXException, java.rmi.RemoteException
CountBookServiceRemote
populateCBLineForBinInCriteria
in interface CountBookServiceRemote
MXException
java.rmi.RemoteException
CountBookService.populateCBLineForBinInCriteria(String, UserInfo, ProfileRemote, CountBookLineSetRemote, String, MboRemote)