#include "771200.h"
TOOLBAR "" 0 18 0 4
#include <toolbar.h>
BUTTON F_BASEOCCUPA 24 2
BEGIN
  PROMPT -13 -3 "~Base occupazionale"
END
ENDPAGE

#define	G_DIPEND	1
#define	G_QUADROA	2

PAGE "Quadro A3" -1 -1 78 18

GROUPBOX DLG_NULL 78 3
BEGIN
    PROMPT 1 0 ""
END

NUMBER QAF_CODDITTA 5
BEGIN
  PROMPT 3 1 "Ditta  "
  FLAGS "GRD"           
  USE LF_NDITTE KEY 1
  INPUT CODDITTA QAF_CODDITTA
  OUTPUT QAF_RAGDITTA RAGSOC
  FIELD LF_QUAA3->CODDITTA 
  CHECKTYPE REQUIRED     
  KEY 1
END

STRING QAF_RAGDITTA 50
BEGIN
  PROMPT 17 1 "Ragione "
  FLAGS "D"
END

NUMBER QAF_ANNODIC 4
BEGIN
  PROMPT 52 3 "Anno dichiarazione "
  FLAGS "DR"
END

TEXT DLG_NULL
BEGIN
  PROMPT 1 7 "@bCodice "
END

NUMBER F_CODIP 6
BEGIN
  PROMPT 80 80 ""
  FLAGS "D"
END

NUMBER F_CODANAGDIP 6
BEGIN
  PROMPT 10 7 "" 
  USE LF_DIPEND KEY 1 SELECT (CODDITTA=#QAF_CODDITTA)
  INPUT CODDITTA QAF_CODDITTA
  INPUT CODDIP F_CODANAGDIP
  DISPLAY "Codice " CODDIP
  DISPLAY "Cognome@24" 	COGNOME  
  DISPLAY "Nome@20" 	NOME
  OUTPUT F_CODANAGDIP CODDIP
  OUTPUT QAF_COGNOME COGNOME
  OUTPUT QAF_NOME NOME
  MESSAGE COPY, F_CODIP	 
  MESSAGE COPY, F_CODIPQUADRO
  ADD RUN 773mod -1 771150a 45 "Anagrafica dipendenti" 
  GROUP G_DIPEND
  FLAGS "H"    
  FIELD LF_QUAA3->CODDIP
  CHECKTYPE REQUIRED
  KEY 1
END

NUMBER F_CODIPQUADRO 6
BEGIN
  PROMPT 10 7 "" 
  USE LF_QUAA3 KEY 1 SELECT ((CODDITTA=#QAF_CODDITTA) && (NPROG="1"))
  INPUT CODDITTA QAF_CODDITTA
  INPUT CODDIP F_CODIPQUADRO
  DISPLAY "Codice" CODDIP
  DISPLAY "N.ro" NPROG
  DISPLAY "Inizio rapporto" 	DIRAPTI
  DISPLAY "gg.incremento" 		NGINC15
  DISPLAY "Reddito corrisposto" REDCOR16
  DISPLAY "gg.incremento" 		NGINC17
  DISPLAY "Reddito corrisposto" REDCOR18
  OUTPUT F_CODIPQUADRO 	CODDIP             
  MESSAGE COPY, F_CODIP  
  MESSAGE COPY, F_CODANAGDIP
  GROUP G_QUADROA   
  FIELD LF_QUAA3->CODDIP
  CHECKTYPE REQUIRED
  KEY 1
END   

NUMBER QAF_NPROG 4
BEGIN
  PROMPT 80 80 ""
  FIELD LF_QUAA3->NPROG   
  CHECKTYPE REQUIRED
  KEY 1
END

STRING QAF_COGNOME 24
BEGIN
  PROMPT 21 7 ""
  FLAGS "D"
END            

STRING QAF_NOME 20
BEGIN
  PROMPT 45 7 ""
  FLAGS "D"
END            

ENDPAGE

ENDMASK

