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

PAGE "Quadro B" -1 -1 78 21

GROUPBOX DLG_NULL 78 3
BEGIN
    PROMPT 1 0 ""
END

NUMBER QBF_CODDITTA 5
BEGIN
  PROMPT 3 1 "Ditta  "
  FLAGS "GRD"
  KEY 1
  CHECKTYPE REQUIRED             
  USE LF_NDITTE KEY 1
  INPUT CODDITTA QBF_CODDITTA
  OUTPUT QBF_RAGDITTA RAGSOC
  FIELD LF_QUAB->CODDITTA
END

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

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

TEXT DLG_NULL
BEGIN
  PROMPT 1 7 "@bDati dipendente"
END

NUMBER QBF_CODDIP 6
BEGIN      
  PROMPT 80 80 ""
  FLAGS "D"      
  FIELD LF_QUAB->CODDIP
  CHECKTYPE REQUIRED    
  KEY 1  
END

NUMBER QBF_CODDIP_ANAG 6
BEGIN
  PROMPT 1 8 "@bCodice  " 
  USE LF_DIPEND KEY 1 
  INPUT CODDITTA 	QBF_CODDITTA  SELECT
  INPUT CODDIP 		QBF_CODDIP_ANAG
  DISPLAY "Codice " 	CODDIP
  DISPLAY "Cognome@24" 	COGNOME  
  DISPLAY "Nome@20" 	NOME
  OUTPUT QBF_CODDIP_ANAG 	CODDIP
  OUTPUT QBF_COGNOME 	COGNOME
  OUTPUT QBF_NOME 		NOME  
  ADD RUN 773mod -1 771150a 45 "Anagrafica dipendenti"
  MESSAGE COPY,QBF_CODDIP 
  FLAGS "H" 
  GROUP QBG_ANADIP     
  KEY 1
END    

NUMBER QBF_CODDIP_QB 6
BEGIN
  PROMPT 1 8 "@bCodice  " 
  USE LF_QUAB KEY 1 
  JOIN LF_DIPEND KEY 1 INTO CODDITTA==CODDITTA CODDIP==CODDIP
  INPUT CODDITTA 	QBF_CODDITTA  SELECT
  INPUT CODDIP 		QBF_CODDIP_QB
  DISPLAY "Codice " 	CODDIP
  DISPLAY "Cognome@24" 	LF_DIPEND->COGNOME  
  DISPLAY "Nome@20" 	LF_DIPEND->NOME
  DISPLAY "N°@4" 			NPROG
  OUTPUT QBF_CODDIP_QB 	CODDIP
  OUTPUT QBF_COGNOME 	LF_DIPEND->COGNOME
  OUTPUT QBF_NOME 		LF_DIPEND->NOME 
  MESSAGE COPY, QBF_CODDIP
  GROUP QBG_QUADROB  
  KEY 1
END

STRING QBF_COGNOME 24
BEGIN
  PROMPT 25 8 ""
  FLAGS "D"
END            

STRING QBF_NOME 20
BEGIN
  PROMPT 49 8 ""
  FLAGS "D"
END            

NUMBER QBF_NPROG 4
BEGIN
  PROMPT 1 10 "@bNumero  "  
  CHECKTYPE REQUIRED
  USE LF_QUAB KEY 1 
  JOIN LF_DIPEND KEY 1 INTO CODDITTA=CODDITTA CODDIP=CODDIP
  INPUT CODDITTA 	QBF_CODDITTA SELECT
  INPUT CODDIP 		QBF_CODDIP     
  INPUT NPROG 		QBF_NPROG 
  DISPLAY "Codice@10"	CODDIP    
  DISPLAY "Cognome@24" 	LF_DIPEND->COGNOME  
  DISPLAY "Nome@20" 	LF_DIPEND->NOME
  DISPLAY "N°@4" 		NPROG
  OUTPUT QBF_CODDIP	    CODDIP
  OUTPUT QBF_COGNOME 	LF_DIPEND->COGNOME
  OUTPUT QBF_NOME 		LF_DIPEND->NOME 
  OUTPUT QBF_NPROG 	NPROG  
  FIELD LF_QUAB->NPROG        
  CHECKTYPE REQUIRED
  KEY 1     
END  

ENDPAGE

ENDMASK                            

