Restaurant's menus are organized in hierarchical tree structures. Each tree consists of a main folder and in it folders and menu items - the leaves in the tree. The nesting levels of folders within folders and menu items are virtually unlimited. This organization also appears as a directory explorer on computers. In front of each item there is a check box, pressing it expands or collapses the folder tree. The difference with directories on computers is that folder names and menu item names are entered in the user's preferred language.
This organization of restaurant menus is very convenient for easily finding menu items when preparing customer requests.
The activity Restaurant's menu serves to maintain the restaurant menus. When creating a main folder, only its name is entered. When creating a new item - folder or restaurant menu item, its place in the hierarchy is first determined, this must be in a previously created folder - old folder. By pressing a button whether it is in front of an element of the old folder or only directly subordinate. A dialog appears to choose whether to create a folder or a menu item. When creating a folder, only its name is entered.
When creating a restaurant menu item (portion of food) it is more complicated.For the menu item, the price is entered, two dates are selected, the first when it is modified and the second until when this menu item can be offered to customers. An image can be attached to a menu item from the file directory, for example, .jpg or .txt with a description of the recipe for preparing a menu item, or a photo of the portion of food. In the hierarchical tree, the image appears in front of the menu item name and can be displayed for the client to view.
Two dates are selected for the menu item, the first when it is modified and the second by when this menu item should be available to customers. An image for example .jpg or .txt with a description of the recipe for preparing the menu item or a photo of the food portion can be attached to the menu item from the file directory. In the hierarchy tree, the image appears before the menu item name and can be displayed for viewing by the client. After all this, the menu item can be saved and returned to for updating.
The MenuAmountActivity serves to maintain the total amount of portions of cooked food - the number of restaurant menu items that can be offered to customers. When an order is fulfilled (served to customers) portions of food, this total quantity is reduced by the corresponding units. From this activity, a function can be performed to calculate the value of the cooked food for all menu items, by pressing the Show Bill button.
The RequestActivity is designed to maintain requests for the amount of cooked food - the number of restaurant menu items connected and delivered to objects, creation of the account( bill) and export and import of requests. Each request is associated with an object selected from a drop-down list - described above. Tables of possible menu items are also selected from a drop-down list formed by the main menu item folders - described above. In such a table, against the name of the menu item, the number of ordered menu items can be entered.