Poniższy artykuł dotyczy definiowania typów absencji. Typy absencji możliwe są do zdefiniowania przez super administratora:
Mapowanie pól:

Obiekt:
Typy mapowań:
- Pracuje - 0
- Chorobowe - 1
- Delegacja - 2
- N Nieusp... - 3
- Dyżur (P) - 4
- Dyżur (G) - 5
- Urlop wypoczynkowy - 10
- Na żądanie - 11
- Urlop inny - 12
- Kompensata 1:1 - 13
- Kompensata 1:1,5 - 14
- Opieka nad dzieckiem - 16
- Praca zdalna - 201
- Interwencja - 202
- Szkolenie - 203
- Wyjście prywatne - 234
- Wyjście prywatne odpracowanie - 205
- Przestój - 236
- Dzień wolny za pracę w niedzielę lub święto - 100
- Dzień wolny za sobotę - 101
- Dzień wolny za pracę w dniu wolnym - 102
- Dyżur medyczny - 6
Pobieranie listy zdefiniowanych absencji, GET:
URL: /api/AbsenceTypes
Przykładowa odpowiedź:
{
"Name": "URL. WYPOCZYNKOWY",
"Code": "UW",
"WorkSettlementCode": "11111",
"PrintoutSymbol": "UW",
"PaymentPercent": 100.00,
"IsRequestingEnabled": true,
"IsRequestingPartDayEnabled": true,
"IsAvailableViaRequestOnly": false,
"IsOverwritingAvailable": true,
"IsSuspension": true,
"AddColumnToReports": true,
"AddColumnToReportsInDays": true,
"ExecutionOnly": true,
"CanBeAddedForPriorityDay": true,
"BlockPlanDuringAbsence": true,
"RequestWithoutPlanAndExecution": true,
"AddColumnToWorkTimeCard": true,
"HideForEmployeeEdit": true,
"AvailablePrint": true,
"IsWorkType": true,
"Color": "",
"ScheduleType": 10,
"TimeOffTypeID": "",
"IsForDisabled": true
}Status odpowiedzi: 200 OK
Definiowanie absencji, POST:
URL: /api/AbsenceTypes
Format żądania:
{
"name": "string",
"code": "string",
"workSettlementCode": "string",
"printoutSymbol": "string",
"paymentPercent": 0,
"isRequestingEnabled": true,
"isRequestingPartDayEnabled": true,
"isAvailableViaRequestOnly": true,
"isOverwritingAvailable": true,
"isSuspension": true,
"addColumnToReports": true,
"addColumnToReportsInDays": true,
"executionOnly": true,
"canBeAddedForPriorityDay": true,
"blockPlanDuringAbsence": true,
"requestWithoutPlanAndExecution": true,
"addColumnToWorkTimeCard": true,
"hideForEmployeeEdit": true,
"availablePrint": true,
"isWorkType": true,
"color": "string",
"scheduleType": 0,
"timeOffTypeID": "string",
"isForDisabled": true
}Status odpowiedzi: 201 CREATED
Pobieranie zdefiniowanej absencji po nazwie, GET:
URL: /api/AbsenceTypes/GetAbsenceTypeByName/{Name}
Przykładowa odpowiedź:
{
"Name": "URL. WYPOCZYNKOWY",
"Code": "UW",
"WorkSettlementCode": "11111",
"PrintoutSymbol": "UW",
"PaymentPercent": 100.00,
"IsRequestingEnabled": true,
"IsRequestingPartDayEnabled": true,
"IsAvailableViaRequestOnly": false,
"IsOverwritingAvailable": true,
"IsSuspension": true,
"AddColumnToReports": true,
"AddColumnToReportsInDays": true,
"ExecutionOnly": true,
"CanBeAddedForPriorityDay": true,
"BlockPlanDuringAbsence": true,
"RequestWithoutPlanAndExecution": true,
"AddColumnToWorkTimeCard": true,
"HideForEmployeeEdit": true,
"AvailablePrint": true,
"IsWorkType": true,
"Color": "",
"ScheduleType": 10,
"TimeOffTypeID": "",
"IsForDisabled": true
}Status odpowiedzi: 200 OK
Pobieranie zdefiniowanej absencji po kodzie, GET:
URL: /api/AbsenceTypes/GetAbsenceTypeByCode/{Code}
Przykładowa odpowiedź:
{
"Name": "URL. WYPOCZYNKOWY",
"Code": "UW",
"WorkSettlementCode": "11111",
"PrintoutSymbol": "UW",
"PaymentPercent": 100.00,
"IsRequestingEnabled": true,
"IsRequestingPartDayEnabled": true,
"IsAvailableViaRequestOnly": false,
"IsOverwritingAvailable": true,
"IsSuspension": true,
"AddColumnToReports": true,
"AddColumnToReportsInDays": true,
"ExecutionOnly": true,
"CanBeAddedForPriorityDay": true,
"BlockPlanDuringAbsence": true,
"RequestWithoutPlanAndExecution": true,
"AddColumnToWorkTimeCard": true,
"HideForEmployeeEdit": true,
"AvailablePrint": true,
"IsWorkType": true,
"Color": "",
"ScheduleType": 10,
"TimeOffTypeID": "",
"IsForDisabled": true
}Status odpowiedzi: 200 OK