psdi.app.financial

Class FinControlSet

    • Constructor Detail

      • FinControlSet

        public FinControlSet(MboServerInterface ms)
                      throws java.rmi.RemoteException
        Construct the set
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • canAdd

        public void canAdd()
                    throws MXException
        Can an object be added to the FinControl(FINCNTRL)? Since the PROJECT type FinControl and the TASK type FinControl are both added to the same FINCNTRL table we have to make a distinction between when the two are added at the same time. For a new PROJECT type added, the TASK type cannot be added untill we enter the projectid on the owner PROJECT type mbo as that needs to copied down to the task.
        Overrides:
        canAdd in class MboSet
        Throws:
        MXApplicationException(financial, - CannotAddTask) Cannot add task without a project.
        MXException
      • setProjectType

        public void setProjectType()
                            throws MXException,
                                   java.rmi.RemoteException
        Called by the UI to set the class variable "projectType". This should be set to PROJECT as the UI wants to display the cost management records based on the fctype equal to PROJECT. It is used to set the user SQL where clause.
        Specified by:
        setProjectType in interface FinControlSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        FinControlSet.setProjectType()
      • getUserPrefWhere

        public java.lang.String getUserPrefWhere()
        Overrides the MboSet getUserPrefWhere() to return a user preference where clause which is appended to the existing where clause. When called from the UI, the set should return all the records with fctype equal to PROJECT.
        Overrides:
        getUserPrefWhere in class MboSet
        Returns:
        String The user preference where clause.