#include "at3900a.h"

TOOLBAR "" 0 0 0 2
#include <printbar.h>
ENDPAGE

PAGE "Statistica donatori per comune domicilio" 0 2 0 0

GROUPBOX DLG_NULL 77 4
BEGIN
  PROMPT 1 1 "Scelta sezioni/sottogruppi"
END

STRING F_SEZINI  2
BEGIN
  PROMPT 2 2 "Da "
  FLAGS "U"
  USE LF_SEZIONI
  INPUT CODSEZ F_SEZINI
  INPUT CODSOT F_SOTINI
  DISPLAY "Cod.sez" CODSEZ
  DISPLAY "Cod.sot." CODSOT
  DISPLAY "Sezione@25" DENSEZ
  DISPLAY "Sottogruppo@25" DENSOT
  OUTPUT F_SEZINI CODSEZ
  OUTPUT F_D_SEZINI DENSEZ
  OUTPUT F_SOTINI CODSOT
  OUTPUT F_D_SOTINI DENSOT
  CHECKTYPE SEARCH
  HELP "Codice sezione da cui partire"
END

STRING F_D_SEZINI 25
BEGIN
  PROMPT 11 2 ""
  FLAGS "U"
  USE LF_SEZIONI KEY 2
  INPUT DENSEZ F_D_SEZINI
  DISPLAY "Sezione@25" DENSEZ
  DISPLAY "Sottogruppo@25" DENSOT
  DISPLAY "Cod.sez" CODSEZ
  DISPLAY "Cod.sot." CODSOT
  COPY OUTPUT F_SEZINI
  CHECKTYPE NORMAL
  HELP "Sezione da cui partire"
END

STRING F_SOTINI 2
BEGIN
  PROMPT 2 3 "   "
  COPY ALL F_SEZINI
  CHECKTYPE SEARCH
  HELP "Codice sottogruppo da cui partire"
END

STRING F_D_SOTINI 25
BEGIN        	
  PROMPT 11 3 ""
  FLAGS "U"
  COPY USE F_D_SEZINI
  INPUT DENSEZ F_D_SEZINI
  INPUT DENSOT F_D_SOTINI
  COPY DISPLAY F_D_SEZINI
  COPY OUTPUT F_D_SEZINI
  CHECKTYPE NORMAL
  HELP "Sottogruppo da cui partire"
END

STRING F_SEZFIN  2
BEGIN
  PROMPT 41 2 "A "
  FLAGS "U"
  USE LF_SEZIONI
  INPUT CODSEZ F_SEZFIN
  INPUT CODSOT F_SOTFIN
  DISPLAY "Cod.sez" CODSEZ
  DISPLAY "Cod.sot." CODSOT
  DISPLAY "Sezione@25" DENSEZ
  DISPLAY "Sottogruppo@25" DENSOT
  OUTPUT F_SEZFIN CODSEZ
  OUTPUT F_D_SEZFIN DENSEZ
  OUTPUT F_SOTFIN CODSOT
  OUTPUT F_D_SOTFIN DENSOT
  CHECKTYPE SEARCH
  HELP "Codice sezione finale"
END

STRING F_D_SEZFIN 25
BEGIN
  PROMPT 49 2 ""
  FLAGS "U"
  USE LF_SEZIONI KEY 2
  INPUT DENSEZ F_D_SEZFIN
  DISPLAY "Sezione@25" DENSEZ
  DISPLAY "Sottogruppo@25" DENSOT
  DISPLAY "Cod.sez" CODSEZ
  DISPLAY "Cod.sot." CODSOT
  COPY OUTPUT F_SEZFIN
  CHECKTYPE NORMAL
  HELP "Sezione finale"
END

STRING F_SOTFIN 2
BEGIN
  PROMPT 41 3 "  "
  COPY ALL F_SEZFIN
  CHECKTYPE SEARCH
  HELP "Codice sottogruppo finale"
END

STRING F_D_SOTFIN 25
BEGIN        	
  PROMPT 49 3 ""
  FLAGS "U"
  COPY USE F_D_SEZFIN
  INPUT DENSEZ F_D_SEZFIN
  INPUT DENSOT F_D_SOTFIN
  COPY DISPLAY F_D_SEZFIN
  COPY OUTPUT F_D_SEZFIN
  CHECKTYPE NORMAL
  HELP "Sottogruppo finale"
END

GROUPBOX DLG_NULL 77 5
BEGIN
  PROMPT 1 5 "Categorie donatori"
END

STRING F_CAT1 2
BEGIN
  PROMPT 2 6 ""
  FLAGS "U"
  USE CTD
  INPUT CODTAB F_CAT1
  DISPLAY "Codice" CODTAB
  DISPLAY "Descrizione@30" S0
  OUTPUT F_CAT1 CODTAB
  OUTPUT F_D_CAT1 S0
  CHECKTYPE NORMAL
  WARNING "Codice non presente"
  HELP "Categoria di appartenenza"
END

STRING F_D_CAT1 30
BEGIN
  PROMPT 8 6 ""
  FLAGS "D"
END

STRING F_CAT2 2
BEGIN
  PROMPT 2 7 ""
  FLAGS "U"
  USE CTD
  INPUT CODTAB F_CAT2
  COPY DISPLAY F_CAT1
  OUTPUT F_CAT2 CODTAB
  OUTPUT F_D_CAT2 S0
  CHECKTYPE NORMAL
  WARNING "Codice non presente"
  HELP "Categoria di appartenenza"
END

STRING F_D_CAT2 30
BEGIN
  PROMPT 8 7 ""
  FLAGS "D"
END

STRING F_CAT3 2
BEGIN
  PROMPT 2 8 ""
  FLAGS "U"
  USE CTD
  INPUT CODTAB F_CAT3
  COPY DISPLAY F_CAT1
  OUTPUT F_CAT3 CODTAB
  OUTPUT F_D_CAT3 S0
  CHECKTYPE NORMAL
  WARNING "Codice non presente"
  HELP "Categoria di appartenenza"
END

STRING F_D_CAT3 30
BEGIN
  PROMPT 8 8 ""
  FLAGS "D"
END

STRING F_CAT4 2
BEGIN
  PROMPT 40 6 ""
  FLAGS "U"
  USE CTD
  INPUT CODTAB F_CAT4
  COPY DISPLAY F_CAT1
  OUTPUT F_CAT4 CODTAB
  OUTPUT F_D_CAT4 S0
  CHECKTYPE NORMAL
  WARNING "Codice non presente"
  HELP "Categoria di appartenenza"
END

STRING F_D_CAT4 30
BEGIN
  PROMPT 46 6 ""
  FLAGS "D"
END

STRING F_CAT5 2
BEGIN
  PROMPT 40 7 ""
  FLAGS "U"
  USE CTD
  INPUT CODTAB F_CAT5
  COPY DISPLAY F_CAT1
  OUTPUT F_CAT5 CODTAB
  OUTPUT F_D_CAT5 S0
  CHECKTYPE NORMAL
  WARNING "Codice non presente"
  HELP "Categoria di appartenenza"
END

STRING F_D_CAT5 30
BEGIN
  PROMPT 46 7 ""
  FLAGS "D"
END

STRING F_CAT6 2
BEGIN
  PROMPT 40 8 ""
  FLAGS "U"
  USE CTD
  INPUT CODTAB F_CAT6
  COPY DISPLAY F_CAT1
  OUTPUT F_CAT6 CODTAB
  OUTPUT F_D_CAT6 S0
  CHECKTYPE NORMAL
  WARNING "Codice non presente"
  HELP "Categoria di appartenenza"
END

STRING F_D_CAT6 30
BEGIN
  PROMPT 46 8 ""
  FLAGS "D"
END

STRING F_PROVINCIA 5
BEGIN
   PROMPT 2 11 "Statistica per la provincia di "
   FLAGS "U"
END

ENDPAGE
ENDMASK