public class POService extends AppService implements POServiceRemote
| Modifier and Type | Field and Description |
|---|---|
java.util.Vector |
errorVector
Deprecated.
|
critAPPR, critAPPRINPRG, critCANCEL, critCLOSE, critINPRG, critOPENPO, critWAPPRAPPLOGGER, 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 |
|---|
POService() |
POService(MXServer mxServer) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeStatus(PORemote po,
java.lang.String status,
java.util.Date date,
java.lang.String memo)
Service Method used to change status.
|
void |
checkPOValidity(MboRemote poRemote)
General purpose method to check the Validity of a PO before creating a
receipts.
|
void |
compareCopyTerms(MboSetRemote fromTermSet,
MboSetRemote toTermSet)
Copy Terms from one table to another.
|
void |
compareCopyTerms(MboSetRemote fromTermSet,
MboSetRemote toTermSet,
MboRemote mbo)
Copy Terms from one table to another.
|
MboRemote |
createReceipt(UserInfo userInfo,
MboSetRemote receiptSet,
java.lang.String ponum,
long polinenum,
java.lang.String porevnum,
java.lang.String ownersysid,
java.lang.String siteid) |
java.util.Vector |
createReceipts(UserInfo ui,
java.lang.String ponum)
Called by the Receipts Power App to obtain a set of matrectrans and
servrectrans records for a particular PONUM being passed in.
|
java.util.Vector |
createReceipts(UserInfo ui,
java.lang.String ponum,
java.lang.String catalogCode,
java.lang.String itemnum,
java.lang.String itemsetid,
java.lang.String mrnum,
java.lang.String modelnum,
java.lang.String packingSlipNum,
java.lang.String requestedby)
Called by gui to obtain a set of matrectrans and servrectrans
records that are pre-created from the poline.
|
java.util.Vector |
createReceipts(UserInfo ui,
java.lang.String ponum,
java.lang.String catalogCode,
java.lang.String itemnum,
java.lang.String itemsetid,
java.lang.String mrnum,
java.lang.String modelnum,
java.lang.String packingSlipNum,
java.lang.String requestedby,
boolean isPowerApp)
Creates Receipts(both MatRecTrans and ServRecTrans) for the POLines that
have not yet been received.
|
void |
createReceipts(UserInfo ui,
java.lang.String ponum,
java.lang.String catalogCode,
java.lang.String itemnum,
java.lang.String itemsetid,
java.lang.String mrnum,
java.lang.String modelnum,
java.lang.String packingSlipNum,
java.lang.String requestedby,
int noOfRows)
Determine the number of possible MatRecTrans or ServRecTrans records that
need to be created so that the user can be warned about this time
consuming process.
|
MboRemote |
createReturn(UserInfo userInfo,
MboSetRemote receiptSet,
java.lang.String ponum,
long polinenum,
java.lang.String porevnum,
java.lang.String ownersysid,
java.util.List assets,
java.lang.String siteid,
boolean returnHasReference,
MboRemote origReceipt,
java.lang.String binnum,
java.lang.String lotnum)
Called for the MEA interface.
|
MboRemote |
createReturn(UserInfo userInfo,
MboSetRemote receiptSet,
java.lang.String ponum,
long polinenum,
java.lang.String porevnum,
java.lang.String ownersysid,
java.lang.String siteid) |
void |
destroy()
Destroy the POStatusChangeListener.
|
boolean |
doesWoHaveServices(UserInfo userInfo,
java.lang.String wonum)
Returns true if this work order has services defined against it.
|
boolean |
generateReceipts(UserInfo ui,
MboSetRemote targetMbos,
MboSetRemote dataSheet)
Based on the selected rows of the MboSet containing the information
required to create receipts, service or material receipts are created and
added to the target mbo set passed in as the parameter.
|
java.lang.String |
getInternalStatus(java.lang.String extStatus) |
java.util.Vector |
getPOReferences(java.lang.String mrnum,
java.lang.String mrlinenum,
UserInfo userInfo)
This service method gets all the POs associated with an MRLine.We all
know that one MRLine can go into ONLY one POLINE.
|
MboSetRemote |
getReceiptSetForReturn(MboRemote poRemote)
Creates a new MATRECTRANS Set for returns.
|
void |
init()
Initialization
|
void |
initCriteriaList(java.util.Hashtable criteriaTable)
Criteria defined for the POService object: HISTORY - all closed and
cancelled purchase orders.
|
boolean |
isRotating(MboRemote poLineRemote)
Checks if the item num on the poline that is passed in is a rotating
item.
|
MboSetRemote |
itemsToBeReceived(MboSetRemote poLineSetRemote,
boolean checkInvBalance,
java.lang.String ownerSysId,
UserInfo userInfo,
boolean isPowerApp)
Create MatRecTrans Mbos from POLines if the POLines do not have their
receipts complete.
|
MboSetRemote |
returnReceiptSetForReturn(MboSetRemote receiptSetForReturn,
MboSetRemote matRecTransSetRemote)
Creates MATRECTRANS Mbos that are to be returned.
|
MboSetRemote |
servicesToBeReceived(MboSetRemote poLineSetRemote,
boolean checkInvBalance,
java.lang.String ownerSysId,
UserInfo userInfo)
Create ServRecTrans Mbos from all those POLine whose receipts are
incomplete.
|
checkSecurity, configure, freeDBConnection, freeMboSet, getCriteria, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, isAppService, isRunning, isSingletonService, restart, setProxy, setRunning, setURL, verifyUser, verifyUserequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic POService()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic POService(MXServer mxServer) throws java.rmi.RemoteException
srvEnv - --
the "Server Environment" this Service is being created in.java.rmi.RemoteExceptionpublic void init()
init in interface Serviceinit in class AppServiceStarts up this listenerpublic void destroy()
destroy in interface Servicedestroy in class AppServiceAppService.destroy()public boolean doesWoHaveServices(UserInfo userInfo, java.lang.String wonum) throws MXException, java.rmi.RemoteException
doesWoHaveServices in interface POServiceRemoteuserInfo - UserInfo of the object calling this methodrefwo - The workorder numberMXExceptionjava.rmi.RemoteExceptiondoesWoHaveServices(UserInfo, String)public MboRemote createReceipt(UserInfo userInfo, MboSetRemote receiptSet, java.lang.String ponum, long polinenum, java.lang.String porevnum, java.lang.String ownersysid, java.lang.String siteid) throws MXException, java.rmi.RemoteException
createReceipt in interface POServiceRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.po.POService#createReceipt(UserInfo, MboSetRemote, String, int, String)public MboRemote createReturn(UserInfo userInfo, MboSetRemote receiptSet, java.lang.String ponum, long polinenum, java.lang.String porevnum, java.lang.String ownersysid, java.lang.String siteid) throws MXException, java.rmi.RemoteException
createReturn in interface POServiceRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.po.POService#createReturn(UserInfo, MboSetRemote, String, int, String)public MboRemote createReturn(UserInfo userInfo, MboSetRemote receiptSet, java.lang.String ponum, long polinenum, java.lang.String porevnum, java.lang.String ownersysid, java.util.List assets, java.lang.String siteid, boolean returnHasReference, MboRemote origReceipt, java.lang.String binnum, java.lang.String lotnum) throws MXException, java.rmi.RemoteException
createReturn in interface POServiceRemoteMXExceptionjava.rmi.RemoteExceptionpublic void initCriteriaList(java.util.Hashtable criteriaTable)
throws MXException,
java.rmi.RemoteException
initCriteriaList in class AppServiceMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getInternalStatus(java.lang.String extStatus)
throws MXException,
java.rmi.RemoteException
getInternalStatus in interface POServiceRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.po.POService#getInternalStatus(UserInfo, String, String, String, String, String, String)public java.util.Vector getPOReferences(java.lang.String mrnum,
java.lang.String mrlinenum,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
getPOReferences in interface POServiceRemote- - The Mrnum,MrLineNum of the MRLine whose PO associations need
to be found, UserInfoMXExceptionjava.rmi.RemoteExceptionpsdi.app.po.POService#getPOReferences(UserInfo, String, String, String, String, String, String)public void createReceipts(UserInfo ui, java.lang.String ponum, java.lang.String catalogCode, java.lang.String itemnum, java.lang.String itemsetid, java.lang.String mrnum, java.lang.String modelnum, java.lang.String packingSlipNum, java.lang.String requestedby, int noOfRows) throws MXException, java.rmi.RemoteException
createReceipts. It first determines the possible number
of MatRecTrans and ServRecTrans Mbos that need to be created. It accepts
an integer as a parameter. An exception is thrown if the number of
records to be created exceeds the integer parameter passed in. For
example, if the integer parameter passed in was 25 and if more that 25
records need to be created by MatRecTrans or ServRecTrans this method
will give out an error message which will be used by the UI. The UI calls
this method to determine if it is OK to proceed if the returned Result
set is very large. The user is informed that there might be significant
processing time involved in processing his request.createReceipts in interface POServiceRemote- - Includes all the parameters on which the user desires to
search on
MXExceptionjava.rmi.RemoteExceptionpsdi.app.po.POService#createReceipts(UserInfo, String, String, String, String, String, String, String, int)public java.util.Vector createReceipts(UserInfo ui, java.lang.String ponum, java.lang.String catalogCode, java.lang.String itemnum, java.lang.String itemsetid, java.lang.String mrnum, java.lang.String modelnum, java.lang.String packingSlipNum, java.lang.String requestedby, boolean isPowerApp) throws MXException, java.rmi.RemoteException
true and
the buyer app must call this with a value of false.
- - Includes the parameters on which the user desires to search on
and also the ISPOWERAPP boolean flag.
MXExceptionjava.rmi.RemoteExceptionservicesToBeReceived(psdi.mbo.MboSetRemote, boolean, java.lang.String, psdi.security.UserInfo),
itemsToBeReceived(psdi.mbo.MboSetRemote, boolean, java.lang.String, psdi.security.UserInfo, boolean),
setReceiptVariables(psdi.mbo.MboRemote, psdi.mbo.MboRemote, psdi.mbo.MboRemote, psdi.security.UserInfo)public MboSetRemote servicesToBeReceived(MboSetRemote poLineSetRemote, boolean checkInvBalance, java.lang.String ownerSysId, UserInfo userInfo) throws MXException, java.rmi.RemoteException
errorVector on the SERVRECTRANSSET. Anybody(the UI) who
wants to further process the error messages must loop through this vector
and display the messages or log into into an error log. The error vector
is emptied every time this method is called.MXExceptionjava.rmi.RemoteExceptioncreateReceipts(psdi.security.UserInfo, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int)public MboSetRemote itemsToBeReceived(MboSetRemote poLineSetRemote, boolean checkInvBalance, java.lang.String ownerSysId, UserInfo userInfo, boolean isPowerApp) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionservicesToBeReceived(psdi.mbo.MboSetRemote, boolean, java.lang.String, psdi.security.UserInfo),
setReceiptVariables(psdi.mbo.MboRemote, psdi.mbo.MboRemote, psdi.mbo.MboRemote, psdi.security.UserInfo)public java.util.Vector createReceipts(UserInfo ui, java.lang.String ponum, java.lang.String catalogCode, java.lang.String itemnum, java.lang.String itemsetid, java.lang.String mrnum, java.lang.String modelnum, java.lang.String packingSlipNum, java.lang.String requestedby) throws MXException, java.rmi.RemoteException
createReceipts in interface POServiceRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.po.POService#createReceipts(UserInfo, String, String, String, String, String, String)public java.util.Vector createReceipts(UserInfo ui, java.lang.String ponum) throws MXException, java.rmi.RemoteException
createReceipts in interface POServiceRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.po.POService#getApprovalLimit(UserInfo, String)public boolean isRotating(MboRemote poLineRemote) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic boolean generateReceipts(UserInfo ui, MboSetRemote targetMbos, MboSetRemote dataSheet) throws MXException, java.rmi.RemoteException
generateReceipts in interface POServiceRemoteui - The user Info of who is calling this method.targetMbos, - ServRecTransSetRemote or MatRecTransSetRemote, where the newly
created receipts will be added to.dataSheet - the non persistent mbo set remote of ReceiptInput Mbos which
the selected ones will be based on to create the receipts.MXExceptionjava.rmi.RemoteExceptionpsdi.app.po.POService#generateReceipts(userInfo, MboSetRemote, MboSetRemote)public MboSetRemote getReceiptSetForReturn(MboRemote poRemote) throws MXException, java.rmi.RemoteException
getReceiptSetForReturn in interface POServiceRemoteMXExceptionjava.rmi.RemoteExceptiongetReceiptSetForReturn(psdi.mbo.MboRemote)public MboSetRemote returnReceiptSetForReturn(MboSetRemote receiptSetForReturn, MboSetRemote matRecTransSetRemote) throws MXException, java.rmi.RemoteException
returnReceiptSetForReturn in interface POServiceRemoteMXExceptionjava.rmi.RemoteExceptionreturnReceiptSetForReturn(psdi.mbo.MboSetRemote, psdi.mbo.MboSetRemote)public void checkPOValidity(MboRemote poRemote) throws MXException, java.rmi.RemoteException
checkPOValidity in interface POServiceRemoteMXApplicationException("po","NotAPPROrINPRG") - thrown when the PO is not approved.MXExceptionjava.rmi.RemoteExceptioncheckPOValidity(psdi.mbo.MboRemote)public void compareCopyTerms(MboSetRemote fromTermSet, MboSetRemote toTermSet) throws MXException, java.rmi.RemoteException
compareCopyTerms in interface POServiceRemotefromTermSet - The fromTermSet is the base terms to be copied from.toTermSet - The toTermSet is the term set to be copied to.MXExceptionjava.rmi.RemoteExceptioncompareCopyTerms(MboSetRemote, MboSetRemote)public void compareCopyTerms(MboSetRemote fromTermSet, MboSetRemote toTermSet, MboRemote mbo) throws MXException, java.rmi.RemoteException
compareCopyTerms in interface POServiceRemotefromTermSet - The fromTermSet is the base terms to be copied from.toTermSet - The toTermSet is the term set to be copied to.mbo - The calling mbo. toTermSet could be an empty set.MXExceptionjava.rmi.RemoteExceptioncompareCopyTerms(MboSetRemote, MboSetRemote, MboRemote)public void changeStatus(PORemote po, java.lang.String status, java.util.Date date, java.lang.String memo) throws MXException, java.rmi.RemoteException
changeStatus in interface POServiceRemotepo - PO Mbositeid - SiteID of the POstatus - The new statusdate - The datememo - The memo.MXApplicationException("po", - "invalidstatuschange");
MXApplicationException("po", "invalidstatus")
MXApplicationException("po", "vendor")
MXApplicationException("po", "shipmentExists")
MXApplicationException("po", "statusdate")
MXApplicationException("po", "exceedsMaxRelVol")
MXApplicationException("po", "exceededMaxVol", params2")
MXApplicationException("po", "approveamountexceeded")
MXApplicationException("po","assetwolocglNull", params1)
MXApplicationException("po","StoreLocIsNull", params1)
MXApplicationException("po", "agreementnotapproved")
MXApplicationException("po", "glcreditnotfull", params)
MXApplicationException("po", "gldebitnotfull", params)
MXApplicationException("financial", "GLRequiredForTrans")
MXApplicationException("po", "GLDebitMustBeFull", params)
MXApplicationException("po", "cannotClose");
MXApplicationException("po", "InspectionNotApproved", params)
MXApplicationException("po", "ReceiptsNotInvoiced", params)MXExceptionjava.rmi.RemoteExceptionthrows MXException, RemoteException