#include "BATBUBI.h"

TOOLBAR "" 0 20 60 2
 #include <toolbar.h>
ENDPAGE

PAGE "Ubicazioni " 11 60 14

GROUPBOX DLG_NULL 75 7
BEGIN
 PROMPT 1 0 ""
 FLAGS "R"
END

STRING F_CODICE 3
BEGIN
  PROMPT 2 2 "Cod. Ubicazione   "
  FIELD UBI->CODTAB 
  KEY 1
  USE UBI
  FLAG "U"
  FLAG "R"
  INPUT CODTAB  F_CODICE
  DISPLAY "Codice " CODTAB
  DISPLAY "Descrizione@50" S0
  DISPLAY "Piano  "     S6
  DISPLAY "Corridoio "  S7
  DISPLAY "Fila "       S8
  DISPLAY "Scaffale "   S9
  DISPLAY "Piano scaffale " S5
  OUTPUT F_CODICE CODTAB
  OUTPUT F_DESCR      S0 
  OUTPUT F_PIANO      S6
  OUTPUT F_CORRIDOIO  S7
  OUTPUT F_FILA       S8
  OUTPUT F_SCAFFALE   S9
  OUTPUT F_PSCAFFALE  S5
  CHECKTYPE REQUIRED
  
END

STRING F_DESCR 50
BEGIN
  PROMPT 2 4 "Descrizione       "
  FIELD UBI->S0
  KEY 2
  USE UBI KEY 2
  INPUT S0  F_DESCR
  DISPLAY "Codice " CODTAB
  DISPLAY "Descrizione@50" S0
  DISPLAY "Piano  "     S6
  DISPLAY "Corridoio "  S7
  DISPLAY "Fila "       S8
  DISPLAY "Scaffale "   S9
  DISPLAY "Piano scaffale " S5
  OUTPUT F_CODICE CODTAB
  OUTPUT F_DESCR      S0 
  OUTPUT F_PIANO      S6
  OUTPUT F_CORRIDOIO  S7
  OUTPUT F_FILA       S8
  OUTPUT F_SCAFFALE   S9
  OUTPUT F_PSCAFFALE  S5
	WARNING "Necessaria la descrizione"
  CHECKTYPE REQUIRED
  
END
  
STRING F_PIANO 4
BEGIN
  PROMPT 2 8 "Piano        "
  FIELD UBI->S6
END

STRING F_CORRIDOIO 4
BEGIN
  PROMPT 26 8 "Corridoio       "
  FIELD UBI->S7
END

STRING F_FILA 4
BEGIN
  PROMPT 52 8 "Fila  "
  FIELD UBI->S8
END

STRING F_SCAFFALE 4
BEGIN
  PROMPT 2 10 "Scaffale     "
  FIELD UBI->S9
END

STRING F_PSCAFFALE 4
BEGIN
  PROMPT 26 10 "Piano scaffale  "
  FIELD UBI->S5
END

ENDPAGE

ENDMASK
