Ga naar inhoud

Form Forms.Grids.Deliveries

  • Unit name: Forms.Grids.Deliveries
  • Form name: TDeliveryGridForm
  • Old form name: (none)

Synopsis

Form to search & display delivery orders.

Functionalities

  1. Dropdown to select client. On Enter key, move focus to delivery order.
  2. Edit to enter delivery name. On enter key, execute action SearchOrder'
  3. Button to execute action SearchOrder
  4. 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

  1. Always available
  2. Shows DeleteDelivery form to allow deleting a range of blocks.

Tables/Views

  1. OUT filter based on search criteria.

Needed Service Calls

DeliveryControl.DeleteDelivery

To delete a delivery

DeliveryControl.CreateDelivery

To create a new delivery

Reports