Logistics.Security.LogisticsCheckAccess.ItemName C# (CSharp) Method

ItemName() public method

Retrieve Item name from a Operation Enum.
public ItemName ( System.Operation operation ) : string
operation System.Operation The operation.
return string
        public virtual string ItemName(Operation operation)
        {
            if ((operation == Operation.Assign_Hub))
            {
                return "Assign Hub";
            }
            if ((operation == Operation.Delete_transporter))
            {
                return "Delete transporter";
            }
            if ((operation == Operation.Edit__transport_order))
            {
                return "Edit  transport order";
            }
            if ((operation == Operation.Edit_transport_supplier))
            {
                return "Edit transport supplier";
            }
            if ((operation == Operation.Export_bid_winner_list))
            {
                return "Export bid winner list";
            }
            if ((operation == Operation.Export_hub_allocation))
            {
                return "Export hub allocation";
            }
            if ((operation == Operation.Export_transport_order))
            {
                return "Export transport order";
            }
            if ((operation == Operation.Export_transporters_list))
            {
                return "Export transporters list";
            }
            if ((operation == Operation.Generate_TR))
            {
                return "Generate TR";
            }
            if ((operation == Operation.Hub_Allocation))
            {
                return "Hub Allocation";
            }
            if ((operation == Operation.New_transport_order))
            {
                return "New transport order";
            }
            if ((operation == Operation.New_transport_supplier))
            {
                return "New transport supplier";
            }
            if ((operation == Operation.PC_SI_Code_Allocation))
            {
                return "PC/SI Code Allocation";
            }
            if ((operation == Operation.Price_quatation_data_entry))
            {
                return "Price quatation data entry";
            }
            if ((operation == Operation.Print_bid_winners_list))
            {
                return "Print bid winners list";
            }
            if ((operation == Operation.Print_hub_allocation))
            {
                return "Print hub allocation";
            }
            if ((operation == Operation.Print_RFQ))
            {
                return "Print RFQ";
            }
            if ((operation == Operation.Print_transport_order))
            {
                return "Print transport order";
            }
            if ((operation == Operation.Print_transporters_list))
            {
                return "Print transporters list";
            }
            if ((operation == Operation.View_active_contracts))
            {
                return "View active contracts";
            }
            if ((operation == Operation.View_allocated_hubs))
            {
                return "View allocated hubs";
            }
            if ((operation == Operation.View_bid_winner_transporters))
            {
                return "View bid winner transporters";
            }
            if ((operation == Operation.View_contract_history))
            {
                return "View contract history";
            }
            if ((operation == Operation.View_Destinations))
            {
                return "View Destinations";
            }
            if ((operation == Operation.View_Dispatch_Allocation))
            {
                return "View Dispatch Allocation";
            }
            if ((operation == Operation.View_draft_hub_allocation))
            {
                return "View draft hub allocation";
            }
            if ((operation == Operation.View_Transport_Requisition))
            {
                return "View Transport Requisition";
            }
            if ((operation == Operation.View_Transport_Requisition_Detail))
            {
                return "View Transport Requisition Detail";
            }
            if ((operation == Operation.View_transporter_list))
            {
                return "View transporter list";
            }
            throw new System.ArgumentException("Unknown Operation name", "operation");
        }

Same methods

LogisticsCheckAccess::ItemName ( Role role ) : string
LogisticsCheckAccess::ItemName ( System.Threading.Tasks.Task task ) : string