Newbarcode
Form NewBarcode
- Unit name: Forms.NewBarCode
- Form name: NewBarCodeForm
- Old form name: unit5 (form5)
Synopsis
Form to register new barcodes for articles.
Functionalities
- Edit to enter article name/barcode. On Enter key, execute SearchArticle action. On Enter event, select all text.
- Button to execute SearchOnLocation action.
- Button to select through location.
- Edit to display/edit EANCODE
- Edit to display/edit EANCODE1
- Edit to display/edit EANCODE2
- Edit to display/edit EANCODE3
- Edit to display/edit EANCODE4
- For all edits: ENTER key executes ChangeBarCodeN action. (N in [0..4])
- Active edit has red background.
Actions
SearchArticle
- Enabled when the article name edit is nonempty.
- When executed, opens ArticleFromBarCode.
- If it is empty, an exception is raised:
Wrong or unknown article: :Code
- If there is a record, the 5 edits are filled with the EANCODEN field values (N in [0..4]).
SearchOnLocation
- Show the SearchArticleOnLocation form.
- if the form result is mrOK then set selected article edit, execute SearchArticle action.
ChangeBarCodeN (N in [0..4])
- Change the value of the EANCODE N.
- Post the changes to server.
- Set focus on article edit.
Tables/Views
- ArticleFromBarCode See StockArticle form.
Needed Service Calls
None.
Reports
None.