Measure unit

The user interface for administering units of measure is opened by clicking on the 'Administrator' button on the toolbar and selecting the 'Measure unit' option. The user interface consists of a table and a toolbar, located on the right.

The table consists of the following columns:

  • 'ID' - unique identification mark of the unit of measurement
  • 'Name' - name of the unit of measurement
  • 'Active' - can be selected in the drop-down menus to select the unit of measure

The toolbar consists of the following buttons 'New', 'Edit', 'Delete', 'Save' and 'Load from Repository'.

Setting up a new unit of measurement

Clicking on the 'New' button adds a new unit of measure with an automatically generated ID and name, and an indication that it is not active (that it cannot be selected), and opens a window for editing the newly entered unit of measure.

Editing unit data

Clicking on the 'Edit' button, next to the previously marked unit of measure within the table, opens the 'Edit selected measure unit' window in which the data is edited.

This window consists of a data entry form that contains the following fields:

  • 'ID' - change of the unique identifier of the unit of measurement
  • 'Name' - change the name of the unit of measurement
  • 'Active' - a box in which a check mark is placed if we want this unit of measure to be displayed in the drop-down menus for selecting a unit of measure

In the lower right corner of the window there are two buttons - 'OK' and 'Cancel'. Pressing the 'OK' button saves the entered changes, while pressing the 'Cancel' closes the window without changes.

Delete the unit of measure

The unit of measurement, once highlighted within the table, can be deleted by pressing the 'Delete' button on the toolbar. Before deleting, the application will ask you to confirm whether we want to delete that unit of measure safely. Pressing the 'Yes' button confirms the deletion, while pressing 'Cancel' closes the window without changes.

Saving and loading

All unit changes are saved by pressing the 'Save' button on the toolbar.

By pressing the 'Load from repository' button, the data on the units of measurement that were last saved are loaded. Before loading, the application will ask for confirmation to discard all changes and load the last saved state. Pressing the 'Yes' button will load the last saved state, while pressing the 'Cancel' window closes and nothing changes.