Page 965 Time Sheet Line Res. Detail
- App
- Base Application
- Namespace
- Microsoft.Projects.TimeSheet
- Versions
- 17-28
- Source table
- 951
Versions171819202122232425262728
Source29
Source in 29
src/Layers/W1/BaseApp/Projects/TimeSheet/TimeSheetLineResDetail.Page.al58 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;
page 965 "Time Sheet Line Res. Detail"
{
Caption = 'Time Sheet Line Res. Detail';
PageType = StandardDialog;
SourceTable = "Time Sheet Line";
SourceTableTemporary = true;
layout
{
area(content)
{
group(General)
{
Caption = 'General';
field(Description; Rec.Description)
{
ApplicationArea = Jobs;
Editable = AllowEdit;
}
field("Work Type Code"; Rec."Work Type Code")
{
ApplicationArea = Jobs;
Editable = WorkTypeCodeAllowEdit;
}
}
}
}
actions
{
}
trigger OnAfterGetCurrRecord()
begin
AllowEdit := Rec.GetAllowEdit(0, ManagerRole);
WorkTypeCodeAllowEdit := Rec.GetAllowEdit(Rec.FieldNo("Work Type Code"), ManagerRole);
end;
protected var
ManagerRole: Boolean;
AllowEdit: Boolean;
WorkTypeCodeAllowEdit: Boolean;
procedure SetParameters(TimeSheetLine: Record "Time Sheet Line"; NewManagerRole: Boolean)
begin
Rec := TimeSheetLine;
Rec.Insert();
ManagerRole := NewManagerRole;
end;
}