Ga naar inhoud

Newbarcode

Form NewBarcode

  • Unit name: Forms.NewBarCode
  • Form name: NewBarCodeForm
  • Old form name: unit5 (form5)

Synopsis

Form to register new barcodes for articles.

Functionalities

  1. Edit to enter article name/barcode. On Enter key, execute SearchArticle action. On Enter event, select all text.
  2. Button to execute SearchOnLocation action.
  3. Button to select through location.
  4. Edit to display/edit EANCODE
  5. Edit to display/edit EANCODE1
  6. Edit to display/edit EANCODE2
  7. Edit to display/edit EANCODE3
  8. Edit to display/edit EANCODE4
  9. For all edits: ENTER key executes ChangeBarCodeN action. (N in [0..4])
  10. Active edit has red background.

Actions

SearchArticle

  1. Enabled when the article name edit is nonempty.
  2. When executed, opens ArticleFromBarCode.
  3. If it is empty, an exception is raised:
    Wrong or unknown article: :Code
    
  4. If there is a record, the 5 edits are filled with the EANCODEN field values (N in [0..4]).

SearchOnLocation

  1. Show the SearchArticleOnLocation form.
  2. if the form result is mrOK then set selected article edit, execute SearchArticle action.

ChangeBarCodeN (N in [0..4])

  1. Change the value of the EANCODE N.
  2. Post the changes to server.
  3. Set focus on article edit.

Tables/Views

Needed Service Calls

None.

Reports

None.