Interface IUnitSelectorHost
- Namespace
- Acuit.Pinpoint.Workstation
- Assembly
- Acuit.Pinpoint.Workstation.Interfaces.dll
A unit selection host (provided to the IUnitSelector).
public interface IUnitSelectorHost
Methods
RaiseUnitScanError(Unit, string)
Raise a unit scan error.
void RaiseUnitScanError(Unit unit, string errorMessage)
Parameters
Remarks
This causes the error information to be indicated via the user interface. It does not stop the unit selection process.
SelectPreassembly(string, string, string)
Selects a preassembly.
Unit SelectPreassembly(string componentSerialNumber, string componentModelNumber, string unitModelNumber)
Parameters
componentSerialNumber
stringThe component serial number.
componentModelNumber
stringThe component model number. This may be null or an empty string if the unit record already exists or if the component type does not scan component model numbers.
unitModelNumber
stringThe model number of the unit. This may be null or an empty string if the unit record already exists.
Returns
- Unit
The resulting unit, or null if either a unit already at the station could not be released, or if the new unit scan was canceled (i.e., by a plug-in).
SelectPreassembly(string, string, string, string, int?)
Selects a preassembly.
Unit SelectPreassembly(string componentSerialNumber, string componentModelNumber, string unitModelNumber, string productionGroupName, int? sequenceNumber)
Parameters
componentSerialNumber
stringThe component serial number.
componentModelNumber
stringThe component model number. This may be null or an empty string if the unit record already exists or if the component type does not scan component model numbers. This must be specified if the component type is configured for uniqueSerialNumbersPerPartNumber.
unitModelNumber
stringThe model number of the unit. This may be null or an empty string if the unit record already exists. If this is provided and the unit record already exists, this must match the value for the existing unit.
productionGroupName
stringThe optional production group name to assign to a new unit. If this is provided and the unit record already exists, this must match the value for the existing unit.
sequenceNumber
int?The optional production sequence number to assign to a new unit. If this is provided and the unit record already exists, this must match the value for the existing unit.
Returns
- Unit
The resulting unit, or null if either a unit already at the station could not be released, or if the new unit scan was canceled (i.e., by a plug-in).
Remarks
Note that if this is used to create a new preassembly, any productionGroupName
or sequenceNumber
values provided to this
method will be discarded when the preassembly is later merged into a unit, but these values can be useful for providing to label templates when the preassembly is created.
SelectUnit(string, string)
Selects a unit.
Unit SelectUnit(string serialNumber, string modelNumber)
Parameters
serialNumber
stringThe unit serial number.
modelNumber
stringThe unit model number. This may be null or an empty string if the unit record already exists.