Sample States

Sepasoft MES Module Suite

Sample States Object

This object contains the state of the sample. Various states are unknown, overdue, due, coming due, waiting approval, approved and excluded. The default integer corresponding to these states are -1, 0, 1, 2, 3, 4, 5 respectively.

State Name

Code

Unknown

-1
Overdue 0
Due 1
Coming Due2
Waiting Approval3
Approved4
Excluded 
5

Object Functions


addState(state)

Adds a state.

Syntax

addState(state)

  • Parameters

state - The integer representing state of the sample to add.

  • Returns

Nothing

  • Scope

All


getState()

Returns the integer corresponding to state of this sample.

Syntax

getState()

  • Parameters

None

  • Returns

Integer state - The integer representing the state of sample.

  • Scope

All


hasState()

Checks the existence of the given state.

Syntax

hasState()

  • Parameters

Integer state - The state of the sample.

  • Returns

boolean state - True if there exist the sample represented by the given parameter.

  • Scope

All


removeState(state)

Removes a state.

Syntax

removeState(state)

  • Parameters

Integer state - The integer representing state of the sample to remove.

  • Returns

Nothing

  • Scope

All

Sepasoft MES Module Suite