Class MResourceUnAvailable

    • Constructor Detail

      • MResourceUnAvailable

        public MResourceUnAvailable​(Properties ctx,
                                    int S_ResourceUnAvailable_ID,
                                    String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        S_ResourceUnAvailable_ID - id
        trxName - trx
      • MResourceUnAvailable

        public MResourceUnAvailable​(Properties ctx,
                                    ResultSet rs,
                                    String trxName)
        MResourceUnAvailable
        Parameters:
        ctx - context
        rs - result set
    • Method Detail

      • isUnAvailable

        public static boolean isUnAvailable​(I_S_Resource r,
                                            Timestamp dateTime)
        Check if a resource is not available
        Parameters:
        r - resource
        dateTime - date (date is truncated to day)
        Returns:
        true if resource is unavailable
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved
      • isUnAvailable

        public boolean isUnAvailable​(Timestamp dateTime)
        Check if the resource is unavailable for date
        Parameters:
        dateTime -
        Returns:
        true if valid