Page extension 20532 Subc. PstdDirectTransfSub

Subcontracting, Microsoft.Manufacturing.Subcontracting

src/Apps/W1/Subcontracting/App/src/Transfer/SubcPstdDirectTransfSub.PageExt.al154 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.Subcontracting;using Microsoft.Inventory.Transfer;pageextension 20532 "Subc. PstdDirectTransfSub" extends "Posted Direct Transfer Subform"{    layout    {        addlast(Control1)        {            field("Subcontr. Purch. Order No."; Rec."Subcontr. Purch. Order No.")            {                ApplicationArea = Subcontracting;                ToolTip = 'Specifies the number of the related purchase order.';                Visible = false;            }            field("Subcontr. PO Line No."; Rec."Subcontr. PO Line No.")            {                ApplicationArea = Subcontracting;                ToolTip = 'Specifies the number of the related purchase order line.';                Visible = false;            }            field("Prod. Order No."; Rec."Prod. Order No.")            {                ApplicationArea = Subcontracting;                ToolTip = 'Specifies the number of the related production order.';                Visible = false;            }            field("Prod. Order Line No."; Rec."Prod. Order Line No.")            {                ApplicationArea = Subcontracting;                ToolTip = 'Specifies the number of the related production order line.';                Visible = false;            }            field("Prod. Order. Comp. Line No."; Rec."Prod. Order Comp. Line No.")            {                ApplicationArea = Subcontracting;                ToolTip = 'Specifies the line number of the related production order component line.';                Visible = false;            }            field("Routing No."; Rec."Routing No.")            {                ApplicationArea = Subcontracting;                ToolTip = 'Specifies the number of the related production routing.';                Visible = false;            }            field("Routing Reference No."; Rec."Routing Reference No.")            {                ApplicationArea = Subcontracting;                ToolTip = 'Specifies the number of the related production routing reference no.';                Visible = false;            }            field("WorkCenter No."; Rec."Work Center No.")            {                ApplicationArea = Subcontracting;                ToolTip = 'Specifies the number of the related production work center.';                Visible = false;            }            field("Operation No."; Rec."Operation No.")            {                ApplicationArea = Subcontracting;                ToolTip = 'Specifies the number of the related production operation no.';                Visible = false;            }            field("Transfer WIP Item"; Rec."Transfer WIP Item")            {                ApplicationArea = Subcontracting;                Visible = false;            }        }    }    actions    {        addafter("&Line")        {            group(Production)            {                Caption = 'Production';                action("Production Order")                {                    ApplicationArea = Subcontracting;                    Caption = 'Production Order';                    Image = Production;                    ToolTip = 'View the related production order.';                    trigger OnAction()                    begin                        ShowProductionOrder(Rec);                    end;                }                action("Production Order Routing")                {                    ApplicationArea = Subcontracting;                    Caption = 'Production Order Routing';                    Image = Route;                    ToolTip = 'View the related production order routing.';                    trigger OnAction()                    begin                        ShowProductionOrderRouting(Rec);                    end;                }                action("Production Order Components")                {                    ApplicationArea = Subcontracting;                    Caption = 'Production Order Components';                    Image = Components;                    ToolTip = 'View the related production order components.';                    trigger OnAction()                    begin                        ShowProductionOrderComponents(Rec);                    end;                }                action("Purchase Order")                {                    ApplicationArea = Subcontracting;                    Caption = 'Subcontracting Purchase Order';                    Image = Order;                    ToolTip = 'View the related subcontracting purchase order.';                    trigger OnAction()                    begin                        ShowPurchaseOrder(Rec);                    end;                }            }        }    }    var        SubcProdOrderFactboxMgmt: Codeunit "Subc. ProdO. Factbox Mgmt.";        SubcPurchFactboxMgmt: Codeunit "Subc. Purch. Factbox Mgmt.";    local procedure ShowProductionOrder(RecRelatedVariant: Variant)    begin        SubcProdOrderFactboxMgmt.ShowProductionOrder(RecRelatedVariant);    end;    local procedure ShowProductionOrderRouting(RecRelatedVariant: Variant)    begin        SubcProdOrderFactboxMgmt.ShowProductionOrderRouting(RecRelatedVariant);    end;    local procedure ShowProductionOrderComponents(RecRelatedVariant: Variant)    begin        SubcProdOrderFactboxMgmt.ShowProductionOrderComponents(RecRelatedVariant);    end;    local procedure ShowPurchaseOrder(RecRelatedVariant: Variant)    begin        SubcPurchFactboxMgmt.ShowPurchaseOrder(RecRelatedVariant);    end;}