psdi.webclient.beans.desktopreq

Class DesktopReqAppBean

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, DataBeanListener
    Direct Known Subclasses:
    SearchBean


    public class DesktopReqAppBean
    extends AppBean
    • Field Detail

      • reqFromTemplate

        protected boolean reqFromTemplate
      • createDRAppName

        protected java.lang.String createDRAppName
    • Constructor Detail

      • DesktopReqAppBean

        public DesktopReqAppBean()
    • Method Detail

      • initialize

        public void initialize()
                        throws MXException,
                               java.rmi.RemoteException
        Description copied from class: AppBean
        Typically called after the DataBean gets a new MboSetRemote On the MboSetRemote it sets the app, the app defaults, user defaults If the remote is an instanceof NonPersistentMboSetRemote then setup is called on it and
        Overrides:
        initialize in class AppBean
        Throws:
        MXException
        java.rmi.RemoteException
      • newrecord

        public int newrecord()
                      throws MXException,
                             java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • editdr

        public void editdr()
                    throws MXException,
                           java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • editdrfromlist

        public void editdrfromlist()
                            throws MXException,
                                   java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • editdraft

        public int editdraft(long uid)
                      throws MXException,
                             java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • createdrfromtmpl

        public void createdrfromtmpl()
                              throws MXException,
                                     java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • createdrfromtmpllist

        public void createdrfromtmpllist()
                                  throws MXException,
                                         java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • createdrfromtemplate

        public int createdrfromtemplate(MRRemote mr)
                                 throws MXException,
                                        java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • viewreqdetails

        public int viewreqdetails()
                           throws MXException,
                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • viewdraftdetails

        public int viewdraftdetails()
                             throws MXException,
                                    java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • submit

        public int submit()
                   throws MXException,
                          java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • nexttabvalidate

        public int nexttabvalidate()
                            throws MXException,
                                   java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • tabvalidate

        public int tabvalidate()
                        throws MXException,
                               java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • returnLookupValue

        public int returnLookupValue(MboRemote lookupMbo)
                              throws MXException
        12-14062/12-14062:Override this method to check if the lookup mbo is in a different site(for example, workorder) from the MR. They should not be different as the MR object is site level and its site cannot be changed by the lookup mbo(the mbo returned from appLink). If the MR.siteid is changed, the siteid of the related sets(child sets) are changed too. example: for a new MR, if appLink is off the wonum field and user selects a wonum in a different site, the framework would change the current MR's siteid to be the workorder's siteid. As the MR is new, the related sets of the new MR are changed to the workorder's siteid, causing the locations records to be modifiable. If the user did a Select Value on the MR.wonum, it showed only the workorders in the current site. if the user manually entered a wo in a different site, it was rejected. AppLink should not allow workorder in a different site to be returned.
        Overrides:
        returnLookupValue in class DataBean
        Throws:
        MXException
      • autoInitiateWorkflow

        public void autoInitiateWorkflow()
                                  throws java.rmi.RemoteException,
                                         MXException
        IV30892/60580: issue 12-14517:overrides the AppBean.autoInitateWorkflow to be only run inside of submit() and be executed explicitly by the code.
        Overrides:
        autoInitiateWorkflow in class AppBean
        Throws:
        java.rmi.RemoteException
        MXException