Page 9014 Job Resource Manager RC, source in 29

Source29

src/Layers/W1/BaseApp/Projects/RoleCenters/JobResourceManagerRC.Page.al300 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.RoleCenters;

using Microsoft.EServices.EDocument;
using Microsoft.Foundation.Navigate;
using Microsoft.Foundation.Task;
using Microsoft.Projects.Project.Job;
using Microsoft.Projects.Resources.Journal;
using Microsoft.Projects.Resources.Resource;
using Microsoft.Projects.TimeSheet;
using Microsoft.RoleCenters;
using Microsoft.Sales.Customer;
using Microsoft.Utilities;
using System.Threading;

page 9014 "Job Resource Manager RC"
{
    Caption = 'Resource Manager';
    PageType = RoleCenter;

    layout
    {
        area(rolecenter)
        {
            part(Control1904257908; "Resource Manager Activities")
            {
                ApplicationArea = Jobs;
            }
            part("User Tasks Activities"; "User Tasks Activities")
            {
                ApplicationArea = Suite;
            }
            part("Job Queue Tasks Activities"; "Job Queue Tasks Activities")
            {
                ApplicationArea = Suite;
            }
            part(Control1907692008; "My Customers")
            {
                ApplicationArea = Jobs;
            }
            part(Control19; "My Job Queue")
            {
                ApplicationArea = Jobs;
                Visible = false;
            }
            part(Control18; "Time Sheet Chart")
            {
                ApplicationArea = Jobs;
            }
            part(Control22; "Report Inbox Part")
            {
                ApplicationArea = Jobs;
            }
            systempart(Control1901377608; MyNotes)
            {
                ApplicationArea = Jobs;
            }
        }
    }

    actions
    {
        area(reporting)
        {
            action("Resource &Statistics")
            {
                ApplicationArea = Suite;
                Caption = 'Resource &Statistics';
                Image = "Report";
                RunObject = Report "Resource Statistics";
            }
            action("Resource &Utilization")
            {
                ApplicationArea = Jobs;
                Caption = 'Resource &Utilization';
                Image = "Report";
                RunObject = Report "Resource Usage";
            }
            action("Resource - &Price List")
            {
                ApplicationArea = Jobs;
                Caption = 'Resource - &Price List';
                Image = "Report";
                RunObject = Report "Resource - List";
            }
            action("Resource - Cost &Breakdown")
            {
                ApplicationArea = Jobs;
                Caption = 'Resource - Cost &Breakdown';
                Image = "Report";
                RunObject = Report "Resource - Cost Breakdown";
            }
        }
        area(embedding)
        {
            action(Resources)
            {
                ApplicationArea = Jobs;
                Caption = 'Resources';
                RunObject = Page "Resource List";
                ToolTip = 'Manage your resources'' job activities by setting up their costs and prices. The job-related prices, discounts, and cost factor rules are set up on the respective job card. You can specify the costs and prices for individual resources, resource groups, or all available resources of the company. When resources are used or sold in a job, the specified prices and costs are recorded for the project.';
            }
            action(ResourcesPeople)
            {
                ApplicationArea = Jobs;
                Caption = 'People';
                RunObject = Page "Resource List";
                RunPageView = where(Type = filter(Person));
                ToolTip = 'View the list of people that can be assigned to projects.';
            }
            action(ResourcesMachines)
            {
                ApplicationArea = Manufacturing;
                Caption = 'Machines';
                RunObject = Page "Resource List";
                RunPageView = where(Type = filter(Machine));
                ToolTip = 'View the list of machines that can be assigned to projects.';
            }
            action("Resource Groups")
            {
                ApplicationArea = Jobs;
                Caption = 'Resource Groups';
                RunObject = Page "Resource Groups";
                ToolTip = 'View all resource groups.';
            }
            action(ResourceJournals)
            {
                ApplicationArea = Jobs;
                Caption = 'Resource Journals';
                RunObject = Page "Resource Jnl. Batches";
                RunPageView = where(Recurring = const(false));
                ToolTip = 'View all resource journals.';
            }
            action(RecurringResourceJournals)
            {
                ApplicationArea = Jobs;
                Caption = 'Recurring Resource Journals';
                RunObject = Page "Resource Jnl. Batches";
                RunPageView = where(Recurring = const(true));
                ToolTip = 'View all recurring resource journals.';
            }
            action(Jobs)
            {
                ApplicationArea = Jobs;
                Caption = 'Projects';
                Image = Job;
                RunObject = Page "Job List";
                ToolTip = 'Define a project activity by creating a project card with integrated project tasks and project planning lines, structured in two layers. The project task enables you to set up project planning lines and to post consumption to the project. The project planning lines specify the detailed use of resources, items, and various general ledger expenses.';
            }
            action("Time Sheets")
            {
                ApplicationArea = Jobs;
                Caption = 'Time Sheets';
                RunObject = Page "Time Sheet List";
                ToolTip = 'Enable resources to register time. When approved, if approval is required, time sheet entries can be posted to the relevant project journal or resource journal as part of project progress reporting. To save setup time and to ensure data correctness, you can copy project planning lines into time sheets.';
            }
            action("Page Time Sheet List Open")
            {
                ApplicationArea = Suite;
                Caption = 'Open';
                RunObject = Page "Time Sheet List";
                RunPageView = where("Open Exists" = const(true));
                ToolTip = 'Open the card for the selected record.';
            }
            action("Page Time Sheet List Submitted")
            {
                ApplicationArea = Suite;
                Caption = 'Submitted';
                RunObject = Page "Time Sheet List";
                RunPageView = where("Submitted Exists" = const(true));
                ToolTip = 'View submitted time sheets.';
            }
            action("Page Time Sheet List Rejected")
            {
                ApplicationArea = Suite;
                Caption = 'Rejected';
                RunObject = Page "Time Sheet List";
                RunPageView = where("Rejected Exists" = const(true));
                ToolTip = 'View rejected time sheets.';
            }
            action("Page Time Sheet List Approved")
            {
                ApplicationArea = Suite;
                Caption = 'Approved';
                RunObject = Page "Time Sheet List";
                RunPageView = where("Approved Exists" = const(true));
                ToolTip = 'View approved time sheets.';
            }
            action("Manager Time Sheets")
            {
                ApplicationArea = Jobs;
                Caption = 'Manager Time Sheets';
                RunObject = Page "Manager Time Sheet List";
                ToolTip = 'Open the list of your time sheets.';
            }
        }
        area(sections)
        {
            group(Administration)
            {
                Caption = 'Administration';
                Image = Administration;
                action("Resource Costs")
                {
                    ApplicationArea = Jobs;
                    Caption = 'Resource Costs';
                    RunPageView = where("Object Type" = const(Page), "Object ID" = const(203)); // "Resource Costs";
                    RunObject = Page "Role Center Page Dispatcher";
                    ToolTip = 'View or edit alternate costs for resources. Resource costs can apply to all resources, to resource groups or to individual resources. They can also be filtered so that they apply only to a specific work type code. For example, if an employee has a different hourly rate for overtime work, you can set up a resource cost for this work type.';
                }
                action("Resource Prices")
                {
                    ApplicationArea = Jobs;
                    Caption = 'Resource Prices';
                    RunPageView = where("Object Type" = const(Page), "Object ID" = const(204)); // "Resource Prices";
                    RunObject = Page "Role Center Page Dispatcher";
                    ToolTip = 'View the prices of resources.';
                }
                action("Work Types")
                {
                    ApplicationArea = Manufacturing;
                    Caption = 'Work Types';
                    RunObject = Page "Work Types";
                    ToolTip = 'View or edit the list of work types that are used with the registration of both the usage and sales of resources in project journals, resource journals, sales invoices, and so on. Work types indicate the various kinds of work that a resource is capable of carrying out, such as overtime or transportation.';
                }
                action("Navi&gate")
                {
                    ApplicationArea = Basic, Suite;
                    Caption = 'Find entries...';
                    Image = Navigate;
                    RunObject = Page Navigate;
                    ShortCutKey = 'Ctrl+Alt+Q';
                    ToolTip = 'Find entries and documents that exist for the document number and posting date on the selected document. (Formerly this action was named Navigate.)';
                }
            }
        }
        area(processing)
        {
            separator(Tasks)
            {
                Caption = 'Tasks';
                IsHeader = true;
            }
            action("Adjust R&esource Costs/Prices")
            {
                ApplicationArea = Jobs;
                Caption = 'Adjust R&esource Costs/Prices';
                Image = "Report";
                RunObject = Report "Adjust Resource Costs/Prices";
            }
            action("Resource P&rice Changes")
            {
                ApplicationArea = Jobs;
                Caption = 'Resource P&rice Changes';
                Image = ResourcePrice;
                RunPageView = where("Object Type" = const(Page), "Object ID" = const(493)); // "Resource Price Changes";
                RunObject = Page "Role Center Page Dispatcher";
                ToolTip = 'Edit or update alternate resource prices, by running either the Suggest Res. Price Chg. (Res.) batch job or the Suggest Res. Price Chg. (Price) batch job.';
            }
            action("Resource Pr&ice Chg from Resource")
            {
                ApplicationArea = Jobs;
                Caption = 'Resource Pr&ice Chg from Resource';
                Image = "Report";
                RunPageView = where("Object Type" = const(Report), "Object ID" = const(1191)); // "Suggest Res. Price Chg. (Res.)";
                RunObject = Page "Role Center Page Dispatcher";
                ToolTip = 'Update the alternate prices in the Resource Prices window with the ones in the Resource Price Change s window.';
            }
            action("Resource Pri&ce Chg from Prices")
            {
                ApplicationArea = Jobs;
                Caption = 'Resource Pri&ce Chg from Prices';
                Image = "Report";
                RunPageView = where("Object Type" = const(Report), "Object ID" = const(1192)); // "Suggest Res. Price Chg.(Price)";
                RunObject = Page "Role Center Page Dispatcher";
                ToolTip = 'Update the alternate prices in the Resource Prices window with the ones in the Resource Price Change s window.';
            }
            action("I&mplement Resource Price Changes")
            {
                ApplicationArea = Jobs;
                Caption = 'I&mplement Resource Price Changes';
                Image = ImplementPriceChange;
                RunPageView = where("Object Type" = const(Report), "Object ID" = const(1193)); // "Implement Res. Price Change";
                RunObject = Page "Role Center Page Dispatcher";
                ToolTip = 'Update the alternate prices in the Resource Prices window with the ones in the Resource Price Changes window. Price change suggestions can be created with the Suggest Res. Price Chg.(Price) or the Suggest Res. Price Chg. (Res.) batch job. You can also modify the price change suggestions in the Resource Price Changes window before you implement them.';
            }
            action("Create Time Sheets")
            {
                ApplicationArea = Jobs;
                Caption = 'Create Time Sheets';
                Image = NewTimesheet;
                RunObject = Report "Create Time Sheets";
            }
        }
    }
}