Form Forms.Grids.Deliveries
- Unit name: Forms.Grids.Deliveries
- Form name: TDeliveryGridForm
- Old form name: (none)
Synopsis
Form to search & display delivery orders.
Functionalities
- Dropdown to select client. On Enter key, move focus to delivery order.
- Edit to enter delivery name. On enter key, execute action SearchOrder'
- Button to execute action SearchOrder
- Below client & delivery edit: grid to display found orders.
Actions
SearchOrder
Search order based on edits: 1. Only active if the edit box is not empty. 2. If a client is selected, then an order is searched which starts with the text in the edit box. 3. If no client is selected, an exact search on the text in the edit box is done. 4. The result is shown in the orders grid.
ShowDetails
Opens the details form of an order. 1. Only available if an order is selected in the grid. 2. Opens the DeliveryDetails form.
DeleteOrder
Deletes the currently selected order. 1. Only available if an order is selected in the grid. 2. Asks for confirmation to delete the order delivery. 3. If the user confirms, deletes the order by executing DeliveryControl.DeleteDelivery service call. 4. Refresh the search grid.
AddOrder
Adds new order and shows it in the details form. 1. Only available if a client is selected. 2. Opens a dialog (AddDeliveryDialog) where the following data is entered: * Client: label with currently selected client. * Date: (date edit, showing today) * Order: (edit, showing contents of search box) when the user entered the data, a new order is made using these parameters, by calling the DeliveryControl.CreateDelivery call. a new blockno is allocated (use sequence). A new record is created
Deleteblock
- Always available
- Shows DeleteDelivery form to allow deleting a range of blocks.
Tables/Views
- OUT filter based on search criteria.
Needed Service Calls
DeliveryControl.DeleteDelivery
To delete a delivery
DeliveryControl.CreateDelivery
To create a new delivery
Reports
- DeliveryDifferences Parameter BlockNo is needed, take from current record.