Page 5212 Absence Registration

Base Application, Microsoft.HumanResources.Absence

src/Layers/W1/BaseApp/HumanResources/Absence/AbsenceRegistration.Page.al134 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.HumanResources.Absence;using Microsoft.HumanResources.Comment;using Microsoft.HumanResources.Employee;page 5212 "Absence Registration"{    AdditionalSearchTerms = 'vacation holiday sickness leave registration';    ApplicationArea = BasicHR;    Caption = 'Absence Registration';    DataCaptionFields = "Employee No.";    DelayedInsert = true;    PageType = List;    SourceTable = "Employee Absence";    UsageCategory = Lists;    layout    {        area(content)        {            repeater(Control1)            {                ShowCaption = false;                field("Employee No."; Rec."Employee No.")                {                    ApplicationArea = BasicHR;                }                field("From Date"; Rec."From Date")                {                    ApplicationArea = BasicHR;                }                field("To Date"; Rec."To Date")                {                    ApplicationArea = BasicHR;                }                field("Cause of Absence Code"; Rec."Cause of Absence Code")                {                    ApplicationArea = BasicHR;                }                field(Description; Rec.Description)                {                    ApplicationArea = BasicHR;                }                field(Quantity; Rec.Quantity)                {                    ApplicationArea = BasicHR;                }                field("Unit of Measure Code"; Rec."Unit of Measure Code")                {                    ApplicationArea = Suite;                }                field("Quantity (Base)"; Rec."Quantity (Base)")                {                    ApplicationArea = BasicHR;                    ToolTip = 'Specifies the quantity associated with absences, in hours or days.';                    Visible = false;                }                field(Comment; Rec.Comment)                {                    ApplicationArea = Comments;                }            }        }        area(factboxes)        {            systempart(Control1900383207; Links)            {                ApplicationArea = RecordLinks;                Visible = false;            }            systempart(Control1905767507; Notes)            {                ApplicationArea = Notes;                Visible = true;            }        }    }    actions    {        area(navigation)        {            group("A&bsence")            {                Caption = 'A&bsence';                Image = Absence;                action("Co&mments")                {                    ApplicationArea = Comments;                    Caption = 'Co&mments';                    Image = ViewComments;                    RunObject = Page "Human Resource Comment Sheet";                    RunPageLink = "Table Name" = const("Employee Absence"),                                  "Table Line No." = field("Entry No.");                    ToolTip = 'View or add comments for the record.';                }                separator(Action31)                {                }                action("Overview by &Categories")                {                    ApplicationArea = BasicHR;                    Caption = 'Overview by &Categories';                    Image = AbsenceCategory;                    RunObject = Page "Absence Overview by Categories";                    RunPageLink = "Employee No. Filter" = field("Employee No.");                    ToolTip = 'View categorized absence information for employees.';                }                action("Overview by &Periods")                {                    ApplicationArea = BasicHR;                    Caption = 'Overview by &Periods';                    Image = AbsenceCalendar;                    RunObject = Page "Absence Overview by Periods";                    ToolTip = 'View absence information for employees by period.';                }            }        }    }    trigger OnInsertRecord(BelowxRec: Boolean): Boolean    begin        exit(Employee.Get(Rec."Employee No."));    end;    var        Employee: Record Employee;}