openpss / com.hendraanggrian.openpss.ui.wage / Attendee

Attendee

data class Attendee

Data class representing an Attendee with id as its identifier to avoid duplicates in Set scenario.

Constructors

<init>

Attendee(id: Int, name: String, role: String? = null, recesses: ObservableList<Recess> = mutableObservableListOf(), attendances: RevertibleObservableList<DateTime> = RevertibleObservableList(), dailyProperty: IntegerProperty = SimpleIntegerProperty(), hourlyOvertimeProperty: IntegerProperty = SimpleIntegerProperty())

Data class representing an Attendee with id as its identifier to avoid duplicates in Set scenario.

Properties

attendances

val attendances: RevertibleObservableList<DateTime>

Attendances and shift should be set in com.hendraanggrian.openpss.ui.wage.AttendeePane.

daily

var daily: Int

dailyProperty

val dailyProperty: IntegerProperty

Wages below are retrieved from sql, or dailyEmpty if there is none.

hourlyOvertime

var hourlyOvertime: Int

hourlyOvertimeProperty

val hourlyOvertimeProperty: IntegerProperty

id

val id: Int

Id and name are final value that should be determined upon xlsx reading.

name

val name: String

recesses

val recesses: ObservableList<Recess>

role

val role: String?

Functions

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

mergeDuplicates

fun mergeDuplicates(): Boolean

saveWage

fun saveWage(): Unit

toChildRecords

fun toChildRecords(resources: Resources): Set<Record>

toNodeRecord

fun toNodeRecord(resources: Resources): Record

toString

fun toString(): String

toTotalRecords

fun toTotalRecords(resources: Resources, children: Collection<Record>): Record

Companion Object Properties

DUMMY

val DUMMY: Attendee

Dummy for invisible javafx.scene.control.TreeTableView root.