Refrigerator Types
Refrigerator Types represent the different models of refrigerators available. This is convenient for adding a new refrigerator to a health facility, as the model will already include information about the refrigerator that might not be obvious to the worker installing the unit. It also provides an easy reference if spare parts are needed or the model itself is needed for any reason.
Lists of Refrigerator Types
Function
A List of Refrigerator Types is similar to a Lists of Refrigerators. It is launched by pressing the View Refrigerator Models button on the Region Menu.
The list portion contains each refrigerator type. Clicking that list item will open the Refrigerator Type Menu. The list can be searched by the refrigerator type ID, catalog ID, or the manufacturer. A substring of the search string can be provided and all matching records will be displayed.
The list items each show a picture of the refrigerator model to ease navigation and provide a more familiar reference than the model name.
This page is paginated by default to 10 refrigerator types per page. This can be adjusted to 20, 50, 100, or 1000 by selecting the option from the drop menu. To navigate between pages of refrigerator types, use the Next and Prev buttons.
Implementation
The refrigerator types list uses the files tables/refrigerator_types/html/regrigerator_types_list.html
and tables/refrigerator_types/js/refrigerator_types.js
similarly to the refrigerators list.
The key differences are the listQuery
and searchParams
variables that define the values that will populate the same user interface. This file's versions of listQuery
performs a simple SELECT *
from the Refrigerator Types table and this versions of searchParams
searches for matching catalog ID, manufacturer, or model ID.
That logic that implements that user interface is discussed in The list_view_logic.js library.
Files
tables/refrigerator_types/html/refrigerator_types_list.html
tables/refrigerator_types/js/refrigerator_types_list.js
Forms
None
Database Tables
Refrigerator Types