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

#define QB1F_CODDIP 197
#define QB1F_NPROG	183

PAGE "MODULO 770 - Manutenzione Quadro B1" -1 -1 78 21

GROUPBOX DLG_NULL 78 3
BEGIN
    PROMPT 1 0 ""
END

NUMBER QB1F_CODDITTA 5
BEGIN
  PROMPT 3 1 "Ditta  "
  FLAGS "GRD"
  KEY 1
  CHECKTYPE REQUIRED             
  USE LF_NDITTE KEY 1
  INPUT CODDITTA QB1F_CODDITTA
  OUTPUT QB1F_RAGDITTA RAGSOC
  FIELD LF_QUAB1->CODDITTA
END

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

NUMBER QB1F_ANNODIC 4
BEGIN
  PROMPT 52 4 "Anno dichiarazione "
  FLAGS "DR"
END

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

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

NUMBER QB1F_CODDIP 6
BEGIN
  PROMPT 1 8 "@bCodice  " 
  USE LF_DIPEND KEY 1 SELECT ((CODDITTA=#QB1F_CODDITTA))
  INPUT CODDITTA 	QB1F_CODDITTA
  INPUT CODIP 		QB1F_CODDIP
  DISPLAY "Codice " 	CODIP
  DISPLAY "Cognome@24" 	COGNOME  
  DISPLAY "Nome@20" 	NOME
  OUTPUT QB1F_CODDIP 	CODIP
  OUTPUT QB1F_COGNOME 	COGNOME
  OUTPUT QB1F_NOME 		NOME 
  ADD RUN 773 -1 771150a 45 "Anagrafica dipendenti"
  MESSAGE COPY, QB1F_HCODDIP    
END

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

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

NUMBER QB1F_NPROG 4
BEGIN
  PROMPT 1 10 "@bNumero  "  
  CHECKTYPE REQUIRED
  USE LF_QUAB1 KEY 1 SELECT ((CODDITTA=#QB1F_CODDITTA)) 
  JOIN LF_DIPEND KEY 1 INTO CODIP=CODDIP
  INPUT CODDITTA 	QB1F_CODDITTA 
  INPUT CODDIP 		QB1F_CODDIP     
  INPUT NPROG 		QB1F_NPROG 
  DISPLAY "Codice@10"	CODDIP    
  DISPLAY "Cognome@24" 	LF_DIPEND->COGNOME  
  DISPLAY "Nome@20" 	LF_DIPEND->NOME
  DISPLAY "N°@4" 		NPROG
  OUTPUT QB1F_CODDIP	CODDIP
  OUTPUT QB1F_NPROG 	NPROG  
  FIELD LF_QUAB1->NPROG        
  KEY 1     
END  

ENDPAGE

ENDMASK                            

