Page 20416 Qlty. Inspection Result List

Quality Management, Microsoft.QualityManagement.Configuration.Result

src/Apps/W1/Quality Management/app/src/Configuration/Result/QltyInspectionResultList.Page.al174 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.QualityManagement.Configuration.Result;using Microsoft.QualityManagement.Telemetry;/// <summary>/// Results are effectively the incomplete/pass/fail state of an inspection. It is typical to have three results (incomplete, fail, pass), however you can configure as many results as you want, and in what circumstances. The results with a lower number for the priority test are evaluated first./// </summary>page 20416 "Qlty. Inspection Result List"{    Caption = 'Quality Inspection Results';    SourceTable = "Qlty. Inspection Result";    SourceTableView = sorting("Evaluation Sequence");    CardPageId = "Qlty. Inspection Result Card";    AccessByPermission = tabledata "Qlty. Inspection Result" = R;    PageType = List;    ApplicationArea = QualityManagement;    UsageCategory = Lists;    AboutTitle = 'About Inspection Results';    AboutText = 'Inspection results show the outcome of an inspection, such as *In progress, Fail*, or *Pass*. You can set up custom grades to match your process.';    layout    {        area(Content)        {            repeater(Repeater)            {                field(Code; Rec.Code)                {                    ShowMandatory = true;                }                field(Description; Rec.Description)                {                    ShowMandatory = true;                }                field("Evaluation Sequence"; Rec."Evaluation Sequence")                {                    AboutTitle = 'Evaluation Sequence';                    AboutText = 'The evaluation sequence sets the priority order for checking results. Inspection results with lower numbers are checked first, so *Fail* or *In progress* conditions are usually prioritized before *Pass*.';                    trigger OnValidate()                    begin                        Rec.ValidateEvaluationSequenceNotUsedElsewhere();                    end;                }                field("Copy Behavior"; Rec."Copy Behavior")                {                    Visible = false;                }                field("Result Visibility"; Rec."Result Visibility")                {                    AboutTitle = 'Result Visibility';                    AboutText = '*Promote* important results, typically pass conditions, so they will show on pages and reports, such as Quality Tests, Quality Inspections and Certificate of Analysis.';                }                field("Result Category"; Rec."Result Category")                {                }                field("Finish Allowed"; Rec."Finish Allowed")                {                }                field("Default Number Condition"; Rec."Default Number Condition")                {                    Visible = false;                }                field("Default Text Condition"; Rec."Default Text Condition")                {                    Visible = false;                }                field("Default Boolean Condition"; Rec."Default Boolean Condition")                {                    Visible = false;                }                field("Item Tracking Allow Sales"; Rec."Item Tracking Allow Sales")                {                    AboutTitle = 'Allow or block specific transactions';                    AboutText = 'For items with lot, serial, or package tracking, you can specify how quality inspection results affect specific document transactions. For example, you can block purchase documents while inspections are in progress and block sales documents for failed inspections.';                }                field("Item Tracking Allow Purchase"; Rec."Item Tracking Allow Purchase")                {                }                field("Item Tracking Allow Transfer"; Rec."Item Tracking Allow Transfer")                {                }                field("Item Tracking Allow Consump."; Rec."Item Tracking Allow Consump.")                {                    ApplicationArea = Manufacturing;                }                field("Item Tracking Allow Output"; Rec."Item Tracking Allow Output")                {                    ApplicationArea = Manufacturing;                }                field("Item Tracking Allow Asm. Cons."; Rec."Item Tracking Allow Asm. Cons.")                {                    ApplicationArea = Assembly;                }                field("Item Tracking Allow Asm. Out."; Rec."Item Tracking Allow Asm. Out.")                {                    ApplicationArea = Assembly;                }                field("Item Tracking Allow Invt. Mov."; Rec."Item Tracking Allow Invt. Mov.")                {                }                field("Item Tracking Allow Invt. Pick"; Rec."Item Tracking Allow Invt. Pick")                {                }                field("Item Tracking Allow Invt. PA"; Rec."Item Tracking Allow Invt. PA")                {                }                field("Item Tracking Allow Movement"; Rec."Item Tracking Allow Movement")                {                }                field("Item Tracking Allow Pick"; Rec."Item Tracking Allow Pick")                {                }                field("Item Tracking Allow Put-Away"; Rec."Item Tracking Allow Put-Away")                {                }                field("Override Style"; Rec."Override Style")                {                    Editable = false;                    trigger OnAssistEdit()                    begin                        Rec.AssistEditResultStyle();                    end;                }            }        }    }    actions    {        area(Processing)        {            action(CopyResultsToAllTemplates)            {                ApplicationArea = QualityManagement;                Caption = 'Update Tests, Templates, and Inspections';                ToolTip = 'Adds newly created results to existing quality tests and templates, adjusts evaluation sequences, and updates promoted results. Inspections based on these templates are also updated.';                Image = CopyToTask;                trigger OnAction()                begin                    Rec.UpdateTestsTemplatesAndInspections();                end;            }        }    }    trigger OnOpenPage()    var        QltyMgmtFeatureTelemetry: Codeunit "Qlty. Mgmt. Feature Telemetry";    begin        QltyMgmtFeatureTelemetry.LogFeatureUptakeDiscovered(ObjectType::Page, Page::"Qlty. Inspection Result List");    end;    trigger OnNewRecord(BelowxRec: Boolean)    begin        Rec.SetDefaultEvaluationSequence();    end;    trigger OnInsertRecord(BelowxRec: Boolean): Boolean    begin        Rec.ValidateEvaluationSequenceNotUsedElsewhere();    end;    trigger OnModifyRecord(): Boolean    begin        Rec.ValidateEvaluationSequenceNotUsedElsewhere();    end;}