Table of Contents

Class AddUnitDefectRepairMessage

Namespace
Acuit.Pinpoint.Workstation.Messaging
Assembly
Acuit.Pinpoint.Workstation.Abstractions.dll

The message raised by the IMessenger service when the operator selects a repair to add for a defect for the unit at the station.

public class AddUnitDefectRepairMessage : WorkstationRequestMessage<UnitDefectRepair?>, IWorkstationRequestMessage
Inheritance
AddUnitDefectRepairMessage
Implements
Inherited Members

Remarks

By default, Acuit Pinpoint Workstation will handle this message when a unit is at the station by showing a dialog allowing the operator to optionally enter notes and record the repair.

If the repair was successfully added, the message Response will contain the resulting UnitDefectRepair; otherwise, it will contain null (i.e., the operator canceled the dialog).

A plug-in can customize the default behavior by registering a recipient for this message. To suppress the default behavior, the plug-in should use Reply(T) to set the response to the message.

A plug-in can emulate the operator action that this message represents by sending this message.

Constructors

AddUnitDefectRepairMessage(int, string, bool)

Initializes a new instance of the AddUnitDefectRepairMessage class.

public AddUnitDefectRepairMessage(int unitDefectId, string fullRepairName, bool appendCustomPart)

Parameters

unitDefectId int

The unit defect identifier for the defect that is being repaired.

fullRepairName string

The full name of the repair to add, where the repair parts are separated by PathSeparator.

appendCustomPart bool

Whether to prompt the operator to enter a custom repair part to append to the full repair name.

Exceptions

ArgumentNullException

fullRepairName is null.

Properties

AppendCustomPart

Gets whether to prompt the operator to enter a custom defect part to append to the full defect name.

public bool AppendCustomPart { get; }

Property Value

bool

FullRepairName

Gets the full name of the repair to add, where the repair parts are separated by PathSeparator.

public string FullRepairName { get; }

Property Value

string

UnitDefectId

Gets the unit defect identifier for the defect that is being repaired.

public int UnitDefectId { get; }

Property Value

int