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

PAGE "MODULO 770 - Manutenzione 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 4 "Anno dichiarazione "
  FLAGS "DR"
END

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

NUMBER QBF_HCODDIP 6
BEGIN      
  PROMPT 80 80 ""
  FLAGS "D" 
  CHECKTYPE REQUIRED    
  KEY 1  
END

NUMBER QBF_CODDIP 6
BEGIN
  PROMPT 1 8 "@bCodice  " 
  USE LF_DIPEND KEY 1 SELECT ((CODDITTA=#QBF_CODDITTA))
  INPUT CODDITTA 	QBF_CODDITTA
  INPUT CODIP 		QBF_CODDIP
  DISPLAY "Codice " 	CODIP
  DISPLAY "Cognome@24" 	COGNOME  
  DISPLAY "Nome@20" 	NOME
  OUTPUT QBF_CODDIP 	CODIP
  OUTPUT QBF_COGNOME 	COGNOME
  OUTPUT QBF_NOME 		NOME 
  ADD RUN 773 -1 771150a 45 "Anagrafica dipendenti"
  MESSAGE COPY,QBF_HCODDIP
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 SELECT ((CODDITTA=#QBF_CODDITTA)) 
  JOIN LF_DIPEND KEY 1 INTO CODIP=CODDIP
  INPUT CODDITTA 	QBF_CODDITTA 
  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 	COGNOME
  OUTPUT QBF_NOME 		NOME 
  OUTPUT QBF_NPROG 	NPROG  
  FIELD LF_QUAB->NPROG        
  CHECKTYPE REQUIRED
  KEY 1     
END  

ENDPAGE

ENDMASK                            

