#include "at3700a.h"

TOOLBAR "" 0 20 0 2
BUTTON DLG_OK 9 2
BEGIN
        PROMPT -12 -1 ""
END

BUTTON DLG_QUIT 9 2
BEGIN
        PROMPT -22 -1 ""
END
ENDPAGE

PAGE "Statistica donatori per sesso, gruppo e rh" -1 -1 78 12

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 7
BEGIN
  PROMPT 1 5 "Opzioni per la statistica"
END

STRING F_CATDON 2
BEGIN
  PROMPT 2 6 "Cat. "
  FLAGS "U"
  USE CTD
  INPUT CODTAB F_CATDON
  DISPLAY "Codice" CODTAB
  DISPLAY "Descrizione@40" S0
  OUTPUT F_CATDON CODTAB
  OUTPUT F_D_CATDON S0
  CHECKTYPE NORMAL
  WARNING "Codice categoria non presente"
  HELP "Categoria di appartenenza"
END

STRING F_D_CATDON 25
BEGIN
  PROMPT 12 6 ""
  FLAGS "D"
END

DATE F_DATA
BEGIN
   PROMPT 45 6 "Data elaborazione "
END

TEXT DLG_NULL
BEGIN
   PROMPT 2 7 "Se la categoria e' vuota, la statistica vale"
END

TEXT DLG_NULL
BEGIN
   PROMPT 2 8 "per tutte le categorie non di dimissione"
END

BOOLEAN F_PERGRUPPO
BEGIN
   PROMPT 2 9 "Stampa per gruppo aziendale"
   MESSAGE TRUE ENABLE,F_GRUPPOAZIE|ENABLE,F_D_GRUPPOAZIE|RESET,F_SOLOTOT|DISABLE,F_SOLOTOT
   MESSAGE FALSE RESET,F_GRUPPOAZIE|RESET,F_D_GRUPPOAZIE|DISABLE,F_GRUPPOAZIE|DISABLE,F_D_GRUPPOAZIE|ENABLE,F_SOLOTOT
END

STRING F_GRUPPOAZIE 4
BEGIN
  PROMPT 35 9 ""
  FLAGS "U"
  USE GAZ
  INPUT CODTAB F_GRUPPOAZIE
  DISPLAY "Codice" CODTAB
  DISPLAY "Descrizione@30" S0
  OUTPUT F_GRUPPOAZIE CODTAB
  OUTPUT F_D_GRUPPOAZIE S0
  CHECKTYPE NORMAL
  WARNING "Codice gruppo aziendale non presente"
  HELP "Gruppo aziendale di appartenenza"
END

STRING F_D_GRUPPOAZIE 30
BEGIN
  PROMPT 43 9 ""
  FLAGS "U"
  USE GAZ KEY 2
  INPUT S0 F_D_GRUPPOAZIE
  DISPLAY "Codice" CODTAB
  DISPLAY "Descrizione@30" S0
  COPY OUTPUT F_GRUPPOAZIE
  CHECKTYPE NORMAL
  WARNING "Gruppo aziendale non presente"
  HELP "Gruppo aziendale di appartenenza"
END

BOOLEAN F_SOLOTOT
BEGIN
   PROMPT 2 10 "Stampa solo totale finale (non stampa il dettaglio per sezione)"
END

ENDPAGE
ENDMASK