Form PickPaletteForm
- Unit name: Forms.PickPalette
- Form name: PickPaletteForm
- Old form name: form40 (unit40, scanner app)
Synopsis
Form to pick an article from an order from a palette.
Functionalities
- Edit to enter order number. On enter key, call ShowOrder action.
- Button to execute ShowOrder action.
- Grid to show order content using OrderForPalette view. Records where the pickedby is not empty, are colored green.
- Edit to enter palette number. On enter key, call CreateOrder action.
- Button to execute CreateOrder action.
- Button to execute Close form.
Actions
ShowOrder
- Enabled when there is an order number.
- When executed, refreshes the grid OrderForPalette view.
CreateOrder
- Enabled when
- there is an order number and the order has data.
- There is palette number is not empty.
- The palette number equals the palette number of the currently selected line.
- The current selected line in the grid has 'Picked' is not 'Y'.
- When executed, it executes the service call returns.PickFromPalette passing it the following parameters: OrderNumber,Return number (from current line), pallette number
Close
- Always enabled.
- When executed, close form with ModalResult mrOK
Tables/Views
OrderForPalette
SELECT
A.IDNO, A.PalNo, A.ReturNo, A.TransactionType, A.CREATIONDATE, A.CREATIONTIME,
A.PCNAME, A.Picked, A.PickedBy, A.PickedDate, A.ID, MAX(B.LOCATION) AS LOCATION
FROM
RETUROUTDET A
INNER JOIN INVDETAILS B ON
(A.ReturNo=B.INVOICE)
AND (A.PALNO=B.COLNO)
WHERE
(A.IDNO=:ReturnID)
GROUP BY
A.IDNO, A.PalNo, A.ReturNo, A.TransactionType, A.CREATIONDATE, A.CREATIONTIME,
A.PCNAME, A.Picked, A.PickedBy, A.PickedDate, A.ID
ORDER BY
A.PALNO ASC