Ga naar inhoud

Form MovePaletteForm

  • Unit name: Dialogs.MovePalette
  • Form name: TMovePaletteForm
  • Old form name: form44 (unit 44)

Synopsis

Dialog to allow user to move palette to a location in the database.

Functionalities

  1. Edit to enter palette number.
  2. When changed, the current location is cleared.
  3. On Enter key, execute Search action.
  4. Button to execute Search action.
  5. Label to show current palette location.
  6. Edit to enter location.
  7. Disabled initially.
  8. On enter, execute Move action.
  9. Edit is enabled by search action.
  10. Button to execute Move action.
  11. Button to execute Close action.

Actions

  1. Enabled when a palette number is present.
  2. When executed, executes the 'Returns.CheckPaletteLocation' service call.
  3. When successful:
  4. The result of the call is entered in the current location edit a
  5. The location edit is enabled, cleared and focused.

Move

  1. Enabled when a palette number and new location is entered: the new location must differ from the old location.
  2. Execute the Returns.MovePalette service call, passing the palette code and location code. If the move was successful, the form is closed with modal result mrOK.

Close

  1. Always enabled.
  2. Close dialog with mrCancel modal result.

Tables/Views

None.

Needed Service Calls

Returns.CheckPaletteLocation

To check the current location of the palette.

Returns.MovePalette

To move the pâlette to a new location.

Reports

None.