Skip to content

Instantly share code, notes, and snippets.

@edudant
Created April 20, 2023 14:40
Show Gist options
  • Save edudant/f6a218a5aa6e3d40b2ff92705da3da5f to your computer and use it in GitHub Desktop.
Save edudant/f6a218a5aa6e3d40b2ff92705da3da5f to your computer and use it in GitHub Desktop.
package cz.datalite.tsm.pm.model
import cz.datalite.tsm.commons.model.AbstractCodeTableEntity
import jakarta.persistence.ManyToOne
import java.util.*
class MaintenanceActivityType(
code: String, name: String,
@ManyToOne
var maintenanceActivityGroup: MaintenanceActivityGroup,
/**
* Priority of the activity type from 1-10 // TODO - hodnoty
*/
var priority: Int = 1,
) : AbstractCodeTableEntity<UUID>(code, name) {
// TODO - je to corovy atribut?
/**
* Allow to plan this activity type in Element Inventory
* true ... Yes, it is possible to plan activity directly in Element Inventory
* false ... No, it is not possible to plan activity directly in Element Inventory
*/
var planningFromElementInventoryPermitted: Boolean = false
/** List of skills required to perform the activity. */
var skills: List<String>? = ArrayList()
/**
* Additional attributes based on module configuration.
* TsmModule['tsm-preventive-maintenance']
* .formSpecification['tsm-maintenance-activity-type']
* -> Form (Jsom Schema) with definition of custom attributes.
*
* It allows to add additional attributes to the activity type such as:
* - workRequirementType - definition of work for WFM
* - costCategory - category for ERP system (SAP)
*/
var config: Any? = null
/**
*
*/
var activityGenerationTime: Int = 0
/**
* Počet dní, po kterých bude naplánovaná aktivita zrušena
* TODO - lepsi vysvetleni k cemu to je.
*/
var cancelPlannedActivityAfter: Int = 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment