public class CountBookService extends AppService implements CountBookServiceRemote
currentState, dbManager, INIT, liveObjCount, load, LOAD, mxServer, name, RUN, running, stateCmdList, stateList, STOP, urlALL_ITEMS_CRIT, ALLITEMS, NOBALANCE, NOISSUES, ROTATING_ITEMS_CRIT, TOOLS_CRITAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, 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
|
void |
populateCBLineForOneItem4LoginUser(CountBookRemote countbook,
java.lang.String countbooknum,
java.lang.String storeroom,
java.lang.String itemnum) |
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, verifyUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic CountBookService()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic CountBookService(MXServer mxServer) throws java.rmi.RemoteException
mxServer - java.rmi.RemoteExceptionpublic MboSet clearSet(MboSet set) throws MXException, java.rmi.RemoteException
CountBookServiceRemoteclearSet in interface CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService.clearSet(MboSet)public MboSetRemote clearSet(MboSetRemote setRemote) throws MXException, java.rmi.RemoteException
CountBookServiceRemoteclearSet in interface CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService.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.MXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote findItemsForPhysCount(UserInfo userInfo, ProfileRemote profileRemote, java.lang.String location, java.util.Date userDate) throws MXException, java.rmi.RemoteException
CountBookServiceRemotefindItemsForPhysCount in interface CountBookServiceRemoteuserInfo - User Information to instantiate the mbo setlocation - storeroom where the count is taking place.MXExceptionjava.rmi.RemoteExceptionCountBookService.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 CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService.getBalances(UserInfo, String, String, String, String)public int getLastDaysQuantityForNoIssue(MboRemote countBook) throws java.rmi.RemoteException
CountBookServiceRemotegetLastDaysQuantityForNoIssue in interface CountBookServiceRemotejava.rmi.RemoteExceptionCountBookService.getLastDaysQuantityForNoIssue(MboRemote)public Inventory getInventory(UserInfo userInfo, java.lang.String itemnum, java.lang.String location, java.lang.String siteid) throws MXException, java.rmi.RemoteException
CountBookServiceRemotegetInventory in interface CountBookServiceRemoteuserInfo - 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. |
MXExceptionjava.rmi.RemoteExceptionCountBookService.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 CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService.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
CountBookServiceRemotegetItemsInGroupForStore in interface CountBookServiceRemoteuserInfo - passed by the callerstoreroom - the storeroom for which you seek a list of itemsMXExceptionjava.rmi.RemoteExceptionCountBookService.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
CountBookServiceRemotegetItemsInStore in interface CountBookServiceRemoteuserInfo - passed by the callerstoreroom - the storeroom for which you seek a list of itemsMXExceptionjava.rmi.RemoteExceptionCountBookService#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
CountBookServiceRemotegetRotatingAssetForItem in interface CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService.getRotatingAssetForItem(UserInfo, String, String, String, String)public boolean isCountValid(MboRemote invBal, UserInfo userInfo, MboRemote countBook) throws MXException, java.rmi.RemoteException
CountBookServiceRemoteisCountValid in interface CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService.isCountValid(MboRemote, UserInfo, MboRemote)public boolean isItemIssuedOrReceived(MboRemote item, MboRemote countBook) throws MXException, java.rmi.RemoteException
CountBookServiceRemoteisItemIssuedOrReceived in interface CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService.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 CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService#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
CountBookServiceRemotepopulateCBLineForAItem in interface CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService#populateCBLineForAItem(String storeRoom, UserInfo userInfo, CountBookLineSet cbLineSet, String countBookNum, String itemNum)public void populateCBLineForOneItem4LoginUser(CountBookRemote countbook, java.lang.String countbooknum, java.lang.String storeroom, java.lang.String itemnum) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic 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
CountBookServiceRemotepopulateCBLineForCountFrequency in interface CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService.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
CountBookServiceRemotepopulateCBLineForItem in interface CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService.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
CountBookServiceRemotepopulateCBLineForItemInGroup in interface CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService#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
CountBookServiceRemotepopulateCBLineForItems in interface CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService.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
CountBookServiceRemotepopulateCBLineForInvBalance in interface CountBookServiceRemoteitemRemote - Cannot be null.invBalances - Can be null.MXExceptionjava.rmi.RemoteExceptionCountBookService#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
CountBookServiceRemotepopulateRotableCBLines in interface CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService#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
CountBookServiceRemotepopulateToolsCBLines in interface CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService#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
CountBookServiceRemotevalidateInventory in interface CountBookServiceRemoteuserInfo - user information to instantiate Locations setitem - itemnumlocation - fromstoreloc or tostorelocMXExceptionjava.rmi.RemoteExceptionCountBookService.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
CountBookServiceRemotepopulateCBLineForBinInCriteria in interface CountBookServiceRemoteMXExceptionjava.rmi.RemoteExceptionCountBookService.populateCBLineForBinInCriteria(String, UserInfo, ProfileRemote, CountBookLineSetRemote, String, MboRemote)