#include "batbtip.h"

TOOLBAR "" 0 20 60 2

#include "toolbar.h"

ENDPAGE

PAGE "Tabella tipi di documento" -1 -1 60 14

GROUPBOX DLG_NULL 75 4
BEGIN
  PROMPT 1 1 ""
  FLAG "R"
END

STRING F_CODTAB 4
BEGIN
  PROMPT 2 2 "Codice      "
  FIELD CODTAB
  USE %TIP
  CHECKTYPE REQUIRED
  INPUT CODTAB F_CODTAB
  DISPLAY "Codice" CODTAB
  DISPLAY "Descrizione@50" S0
  OUTPUT F_CODTAB CODTAB
  OUTPUT F_DESNUM S0
  KEY 1
  FLAG "UZ"
END

STRING F_DESNUM 50
BEGIN
  PROMPT 2 3 "Descrizione "
  FIELD S0
  HELP "Descrizione tipo documento"
  USE %TIP KEY 2
  CHECKTYPE REQUIRED
  INPUT S0 F_DESNUM
  DISPLAY "Descrizione@40" S0
  DISPLAY "Codice" CODTAB
  COPY OUTPUT F_CODTAB
  KEY 2
END

STRING F_RIFERIMENTO 50
BEGIN
  PROMPT 2 6 "Riferimento              "
  FIELD S1
  CHECKTYPE NORMAL
END

STRING F_PROFILO 8
BEGIN
  PROMPT 2 8 "Profilo documento        "
  FIELD S4
  CHECKTYPE REQUIRED
END

STRING F_PSTAMPA 8
BEGIN
  PROMPT 2 9 "Profilo stampa documento "
  FIELD S5
  CHECKTYPE REQUIRED
END

NUMBER F_NCOPIE 3
BEGIN
  PROMPT 2 10 "Numero di copie          "
  FIELD I0
  NUM_EXPR {(#THIS_FIELD >= 0)}
  WARNING "Il numero di copie deve essere positivo"
END

STRING F_CODCAUS 3
BEGIN
  PROMPT 2 12 "Codice causale           "
  FIELD S6
  USE LF_CAUSALI
  INPUT CODCAUS F_CODCAUS
  DISPLAY "Codice" CODCAUS
  DISPLAY "Descrizione@50" DESCR
  OUTPUT F_CODCAUS CODCAUS
  OUTPUT F_DESCAUS DESCR
  CHECKTYPE NORMAL
END

STRING F_DESCAUS 50
BEGIN
  PROMPT 2 13 "Descrizione causale      "
  FLAG "U"
  USE LF_CAUSALI KEY 2
  INPUT DESCR F_DESCAUS
  DISPLAY "Descrizione@50" DESCR
  DISPLAY "Codice" CODCAUS
  OUTPUT F_DESCAUS DESCR
  OUTPUT F_CODCAUS CODCAUS
  CHECKTYPE NORMAL
END

BOOLEAN F_SPESEAUT
BEGIN
  PROMPT 2 15 "Addebito automatico spese cliente"
  FIELD B0
END
ENDPAGE

ENDMASK

