Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Show if
groupIdse45c9fb3-68ab-4c08-972a-bdd4f555637e
users
matchUsingany

This section is only visible for the Adonis employees.

Customer

The view was originally created for Eckero Group

note
Page Properties

Summary

overview Overview of planned and current sick type activities for crew

Keywords

Sick Activities

Category

Crew List View

Please remember to add labels to the article. Only the labels from the lit are allowed: /wiki/spaces/PnP/pages/4523197124

Description

Overview of planned and current sick type activities for crew.

View Sample

...

Main Data Selection

Crew members employed under the current organization and units below.

Select only activities with activity type ‘Sick’ (General Codes > Activity Codes > Options > Activity Type = Sick).

...

Expand
titlesql select statement
Code Block
CREATE VIEW dbo.PW001SRV46 AS
Select
p01.PIN,
p01.NAME,
p03.CODE as CODE_TEXT,
c12.TEXT,
p03.DATEFROM as DATE_FROM,
p03.DATETO as DATE_TO,
p03.TODATEESTIMATED as ESTIMATED_END_DATE,
p03.DAYS as NO_OF_DAYS,
p03.VESSELNAME,
c02.NAME as RANK,
p01.Client AS NUMORGID,
p01.EMPLOYMENTSTARTDATE,
p01.EMPLOYMENTENDDATE
From pw001p01 p01
JOIN pw001p03 p03
	on p01.PIN = p03.PIN
	and p03.CODE LIKE '%SICK%'
	--and (P03.DATETO IS NOT NULL AND PLANNED <> 'Y')
	and (P03.DATETO IS NULL OR P03.DATETO >= GETDATE())
	and P03.DATEFROM <= GETDATE()
and P03.TODATEESTIMATED >= GETDATE()
LEFT JOIN pw001c12 c12
	on p03.CODE = c12.CODE
LEFT JOIN pw001c02 c02
	on p01.RANK = c02.CODE

Columns Specification

Column

Description/ Location in APM

PIN

Select from Personal Details > Personal > Pin

NAME

LastName FirstName (no comma, only space)

Select from Personal Details > Personal > Name

CODE TEXT

Select from activity of sick type > Details > Code

TEXT

Select from activity of sick type > Details > Code Text

DATE FROM

Select from activity of sick type > Details > Date From

DATE TO

Select from activity of sick type > Details > Date To

ESTIMATED END DATE

Select from activity of sick type > Details > EED

NO OF DAYS

Number of days from activity in question

VESSEL NAME

Select from activity of sick type > Details > Vessel

name of the vessel activity is linked

RANK

Select from Personal Details > Employment, Rank, Current Rank; name of current rank

EMPLOYMENT START DATE

Select from Personal Details > Employment > Employment State > Start

Format dd/mm/yyyy

EMPLOYMENT END DATE

Select from Personal Details > Employment > Employment State > End

Format dd/mm/yyyy

Start Page

N/A