Page extension 6452 Serv. Item Card, source in 29
Source29
src/Layers/W1/BaseApp/Service/Item/ServItemCard.PageExt.al116 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.Inventory.Item;
using Microsoft.Service.Document;
using Microsoft.Service.Item;
using Microsoft.Service.Maintenance;
using Microsoft.Service.Resources;
pageextension 6452 "Serv. Item Card" extends "Item Card"
{
layout
{
addafter("Manufacturer Code")
{
field("Service Item Group"; Rec."Service Item Group")
{
ApplicationArea = Service;
Importance = Additional;
ToolTip = 'Specifies the code of the service item group that the item belongs to.';
}
}
addafter("Qty. on Sales Order")
{
field("Qty. on Service Order"; Rec."Qty. on Service Order")
{
ApplicationArea = Service;
Importance = Additional;
ToolTip = 'Specifies how many units of the item are allocated to service orders, meaning listed on outstanding service order lines.';
}
}
}
actions
{
addafter(Navigation_Warehouse)
{
group(Service)
{
Caption = 'Service';
Image = ServiceItem;
action("Ser&vice Items")
{
ApplicationArea = Service;
Caption = 'Ser&vice Items';
Image = ServiceItem;
RunObject = Page "Service Items";
RunPageLink = "Item No." = field("No.");
RunPageView = sorting("Item No.");
ToolTip = 'View instances of the item as service items, such as machines that you maintain or repair for customers through service orders. ';
}
action(Troubleshooting)
{
AccessByPermission = TableData "Service Header" = R;
ApplicationArea = Service;
Caption = 'Troubleshooting';
Image = Troubleshoot;
ToolTip = 'View or edit information about technical problems with a service item.';
trigger OnAction()
var
TroubleshootingHeader: Record "Troubleshooting Header";
begin
TroubleshootingHeader.ShowForItem(Rec);
end;
}
action("Troubleshooting Setup")
{
ApplicationArea = Service;
Caption = 'Troubleshooting Setup';
Image = Troubleshoot;
RunObject = Page "Troubleshooting Setup";
RunPageLink = Type = const(Item),
"No." = field("No.");
ToolTip = 'View or edit your settings for troubleshooting service items.';
}
}
group(Resources)
{
Caption = 'Resources';
Image = Resource;
action("Resource Skills")
{
ApplicationArea = Basic, Suite;
Caption = 'Resource Skills';
Image = ResourceSkills;
RunObject = Page "Resource Skills";
RunPageLink = Type = const(Item),
"No." = field("No.");
ToolTip = 'View the assignment of skills to resources, items, service item groups, and service items. You can use skill codes to allocate skilled resources to service items or items that need special skills for servicing.';
}
action("Skilled Resources")
{
AccessByPermission = TableData "Service Header" = R;
ApplicationArea = Basic, Suite;
Caption = 'Skilled Resources';
Image = ResourceSkills;
ToolTip = 'View a list of all registered resources with information about whether they have the skills required to service the particular service item group, item, or service item.';
trigger OnAction()
var
ResourceSkill: Record "Resource Skill";
SkilledResourceList: Page "Skilled Resource List";
begin
Clear(SkilledResourceList);
SkilledResourceList.Initialize(ResourceSkill.Type::Item, Rec."No.", Rec.Description);
SkilledResourceList.RunModal();
end;
}
}
}
}
}