Patch level : 1.7 at 684

Files correlati     : at2.exe
Ricompilazione Demo : [ ]
Commento            : Stampa sospesi: stampa anche il responsabile (solo nella stampa completa)


git-svn-id: svn://10.65.10.50/trunk@11794 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
cris 2004-03-01 14:24:54 +00:00
parent 0b87d28685
commit 12cce74d9e

View File

@ -43,7 +43,7 @@ class TStampaSospesi : public TPrintapp
TEti_sospesi_form* _form_let;
TEti_sospesi_form* _form_car;
TAssoc_array _categorie;
TParagraph_string _cognome_nome, _dencom, _motivo;
TParagraph_string _cognome_nome, _dencom, _motivo, _responsab;
TDate _data_stampa;
TDate _dataini, _datafin, _sodataini, _sodatafin;
ts _tipostampa;
@ -78,7 +78,7 @@ public:
void footer_sezione();
void fine_stampa();
TMask& app_mask() { return *_msk; }
TStampaSospesi() : _data_stampa(TODAY), _cognome_nome("",25), _dencom("",30), _motivo("",5) {}
TStampaSospesi() : _data_stampa(TODAY), _cognome_nome("",25), _dencom("",30), _motivo("",5), _responsab("",50) {}
};
HIDDEN inline TStampaSospesi& app() { return (TStampaSospesi&) main_app(); }
@ -305,6 +305,7 @@ void TStampaSospesi::set_page(int file, int cnt)
set_row(3,"@82gFe @S", FLD(LF_SOGGETTI,SOG_FENOTIPORH));
set_row(4,"@82gKe @S", FLD(LF_SOGGETTI,SOG_KELL));
set_row(5,"@82gDu @S", FLD(LF_SOGGETTI,SOG_DU));
set_row(6,"@82g#a", &_responsab);
set_row(1,"@94g@S", FLD(LF_SOGGETTI,SOG_STATO));
set_row(2,"@94g@ld", FLD(LF_SOGGETTI,SOG_DATASTATO));
@ -319,7 +320,7 @@ void TStampaSospesi::set_page(int file, int cnt)
set_row(1,"@116g@ld", FLD(LF_SOGGETTI,SOG_DATAULTDON));
set_row(2,"@116g@S", FLD(LF_SOGGETTI,SOG_TIPOULTDON));
set_row(4,"@123g@pn", FLD(LF_SOGGETTI,SOG_TOTDON,"###"));
set_row(6,"");
set_row(7,"");
}
break;
}
@ -397,13 +398,18 @@ bool TStampaSospesi::preprocess_page(int file, int counter)
localita.trim();
_dencom = localita;
TString16 motivo = "";
TString80 responsab = "";
TLocalisamfile contsan(LF_CONTSAN);
contsan.setkey(2);
contsan.put(CON_DATACON, recsog.get(SOG_DATASTATO));
contsan.put(CON_CODICE, recsog.get(SOG_CODICE));
if (contsan.read() == NOERR)
{
motivo = contsan.get(CON_MOTIVO);
responsab = contsan.get(CON_RESPONSAB);
}
_motivo = motivo;
_responsab = responsab;
// salto pagina se cambio sezione
if (_pergruppo)
{
@ -701,7 +707,7 @@ void TStampaSospesi::crea_intestazione()
set_header(6,"@0gTessera@9gNome@66gTel.lavoro@82gzazione@94gData@105gTipo@116gTipo");
set_header(7,"@0gCateg.@9gData nascita@66gTel.altro@94gPr.tipo");
set_header(8,"@94gData pros.@109gInt.SI@118gTot.don.");
set_header(9,"@94gMotivo@109gInt.AF");
set_header(9,"@82gResp.@94gMotivo@109gInt.AF");
set_header(10,"@0g--------@9g-------------------------@35g------------------------------@66g--------------@82g------------@94g----------@105g----------@116g----------");
}
printer().footerlen(3);