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

#define	G_DIPEND	1
#define	G_QUADROA	2

PAGE "Manutenzione dati base occupazionale" -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"
    KEY 1
    CHECKTYPE REQUIRED             
    USE LF_NDITTE KEY 1
    INPUT CODDITTA QAF_CODDITTA
    OUTPUT QAF_RAGDITTA RAGSOC
    FIELD LF_QUAA3->CODDITTA
END

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

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

TEXT DLG_NULL
BEGIN
  PROMPT 1 7 "@bCodice "
END

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

NUMBER F_CODIP 6
BEGIN
  PROMPT 80 80 ""
  FLAGS "D" 
  FIELD LF_QUAA3->CODDIP
  CHECKTYPE REQUIRED    
  KEY 1  
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  
  ADD RUN 773mod -1 771150a 45 "Anagrafica dipendenti" 
  GROUP G_DIPEND
  FLAGS "H"
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  
  OUTPUT F_CODANAGDIP	CODDIP
  OUTPUT QAF_NPROG		NPROG
//  ADD RUN BA4 -1
  FLAGS "H"              
  MESSAGE COPY, F_CODIP    
  GROUP G_QUADROA
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

