Page 962 Manager Time Sheet Arc. List

Base Application, Microsoft.Projects.TimeSheet

src/Layers/W1/BaseApp/Projects/TimeSheet/ManagerTimeSheetArcList.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.Projects.TimeSheet;using System.Security.User;page 962 "Manager Time Sheet Arc. List"{    ApplicationArea = Jobs;    Caption = 'Manager Time Sheet Archives';    InsertAllowed = false;    ModifyAllowed = false;    PageType = List;    SourceTable = "Time Sheet Header Archive";    SourceTableView = sorting("Resource No.", "Starting Date") order(descending);    UsageCategory = History;    layout    {        area(content)        {            repeater(Control1)            {                ShowCaption = false;                field("No."; Rec."No.")                {                    ApplicationArea = Jobs;                }                field("Starting Date"; Rec."Starting Date")                {                    ApplicationArea = Jobs;                }                field("Ending Date"; Rec."Ending Date")                {                    ApplicationArea = Jobs;                }                field("Resource No."; Rec."Resource No.")                {                    ApplicationArea = Jobs;                }            }        }    }    actions    {        area(processing)        {            action("&View Time Sheet")            {                ApplicationArea = Jobs;                Caption = '&View Time Sheet';                Image = OpenJournal;                ShortCutKey = 'Return';                ToolTip = 'Open the time sheet.';                trigger OnAction()                begin                    EditTimeSheet();                end;            }        }        area(navigation)        {            group("&Time Sheet")            {                Caption = '&Time Sheet';                Image = Timesheet;                action("Co&mments")                {                    ApplicationArea = Comments;                    Caption = 'Co&mments';                    Image = ViewComments;                    RunObject = Page "Time Sheet Arc. Comment Sheet";                    RunPageLink = "No." = field("No."),                                  "Time Sheet Line No." = const(0);                    ToolTip = 'View or add comments for the record.';                }                action("Posting E&ntries")                {                    ApplicationArea = Jobs;                    Caption = 'Posting E&ntries';                    Image = PostingEntries;                    RunObject = Page "Time Sheet Posting Entries";                    RunPageLink = "Time Sheet No." = field("No.");                    ToolTip = 'View the resource ledger entries that have been posted in connection with the.';                }            }        }        area(Promoted)        {            group(Category_Process)            {                Caption = 'Process';                actionref("&View Time Sheet_Promoted"; "&View Time Sheet")                {                }                actionref("Co&mments_Promoted"; "Co&mments")                {                }                actionref("Posting E&ntries_Promoted"; "Posting E&ntries")                {                }            }        }    }    trigger OnOpenPage()    begin        if UserSetup.Get(UserId) then            CurrPage.Editable := UserSetup."Time Sheet Admin.";        TimeSheetMgt.FilterTimeSheetsArchive(Rec, Rec.FieldNo("Approver User ID"));        OnAfterOnOpenPage(Rec);    end;    var        UserSetup: Record "User Setup";        TimeSheetMgt: Codeunit "Time Sheet Management";    local procedure EditTimeSheet()    begin        Page.Run(Page::"Time Sheet Archive Card", Rec)    end;    [IntegrationEvent(true, false)]    local procedure OnAfterOnOpenPage(var TimeSheetHeaderArchive: Record "Time Sheet Header Archive")    begin    end;}