Module: repository/device

Methods

getInputDevice(batch, location) → {Device}

This function to get all input device and get device details
Parameters:
Name Type Description
batch String The device batch
location String The device location * @param {String} role The device Role
Returns:
Type
Device

getOutputDetails(ocNumber, location) → {Device}

This function to get all input device and get device details
Parameters:
Name Type Description
ocNumber String The device batch
location String The device location
Returns:
Type
Device

getPackingDetails(ocNumber, location) → {Device}

This function to get all input device and get device details
Parameters:
Name Type Description
ocNumber String The device ocNumber
location String The device location
Returns:
Type
Device

registerInputDevice(id, batchNumber, location, role) → {Number}

This function to register input device
Parameters:
Name Type Description
id String The device id
batchNumber String The batch number
location String The location
role String The role of the device
Returns:
Type
Number

registerOutputDevice(id, location) → {Number}

This function to register output device
Parameters:
Name Type Description
id String The device id
location String The location
Returns:
Type
Number

unregisterInputDevice(id) → {Number}

This function to unregister input device
Parameters:
Name Type Description
id String The device id
Returns:
Type
Number

unregisterOutputDevice(id) → {Number}

This function to unregister output device
Parameters:
Name Type Description
id String The device id
Returns:
Type
Number

validateInputDevice(id, location) → {Device}

This function to validate input device and get device details
Parameters:
Name Type Description
id String The device id
location String The device location
Returns:
Type
Device

validateOutputDevice(id, location) → {Device}

This function to validate output device and get device details
Parameters:
Name Type Description
id String The device id
location String The device location
Returns:
Type
Device