Page 99000764 Routing List
src/Layers/W1/BaseApp/Manufacturing/Routing/RoutingList.Page.al156 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.Manufacturing.Routing;using Microsoft.Manufacturing.Comment;using Microsoft.Manufacturing.ProductionBOM;using Microsoft.Manufacturing.Reports;page 99000764 "Routing List"{ AdditionalSearchTerms = 'operations,process structure'; ApplicationArea = Manufacturing; Caption = 'Routings'; CardPageID = Routing; DataCaptionFields = "No.", Description; Editable = false; PageType = List; AboutTitle = 'About Routings'; AboutText = 'Create and manage routings that define the sequence and structure of manufacturing operations, assign resources and quality measures, and control production scheduling with support for multiple versions and statuses.'; SourceTable = "Routing Header"; UsageCategory = Lists; layout { area(content) { repeater(Control1) { ShowCaption = false; field("No."; Rec."No.") { ApplicationArea = Manufacturing; } field(Description; Rec.Description) { ApplicationArea = Manufacturing; } field(Type; Rec.Type) { ApplicationArea = Manufacturing; Visible = false; } field(Status; Rec.Status) { ApplicationArea = Manufacturing; StyleExpr = StatusStyleTxt; } field("Version Nos."; Rec."Version Nos.") { ApplicationArea = Manufacturing; Visible = false; } field("Last Date Modified"; Rec."Last Date Modified") { ApplicationArea = Manufacturing; Visible = false; } } } area(factboxes) { systempart(Control1900383207; Links) { ApplicationArea = RecordLinks; Visible = false; } systempart(Control1905767507; Notes) { ApplicationArea = Notes; Visible = true; } } } actions { area(navigation) { group("&Routing") { Caption = '&Routing'; Image = Route; action("Co&mments") { ApplicationArea = Manufacturing; Caption = 'Co&mments'; Image = ViewComments; RunObject = Page "Manufacturing Comment Sheet"; RunPageLink = "Table Name" = const("Routing Header"), "No." = field("No."); ToolTip = 'View or add comments for the record.'; } action("&Versions") { ApplicationArea = Manufacturing; Caption = '&Versions'; Image = RoutingVersions; //The property 'PromotedCategory' can only be set if the property 'Promoted' is set to 'true' //PromotedCategory = Process; RunObject = Page "Routing Version List"; RunPageLink = "Routing No." = field("No."); ToolTip = 'View or edit other versions of the routing, typically with other operations data. '; } action("Where-used") { ApplicationArea = Manufacturing; Caption = 'Where-used'; Image = "Where-Used"; RunObject = Page "Where-Used Item List"; RunPageLink = "Routing No." = field("No."); RunPageView = sorting("Routing No."); ToolTip = 'View a list of BOMs in which the item is used.'; } } } area(reporting) { action("Routing Sheet") { ApplicationArea = Manufacturing; Caption = 'Routing Sheet'; Image = "Report"; //The property 'PromotedCategory' can only be set if the property 'Promoted' is set to 'true' //PromotedCategory = "Report"; RunObject = Report "Routing Sheet"; } } area(Promoted) { } } trigger OnAfterGetRecord() begin SetStatusStyle(); end; var StatusStyleTxt: Text; local procedure SetStatusStyle() begin case Rec.Status of Rec.Status::Certified: StatusStyleTxt := 'Strong'; Rec.Status::New, Rec.Status::"Under Development": StatusStyleTxt := 'Favorable'; else StatusStyleTxt := ''; end; end;}