Statistica donazioni per tipo e punto di prelievo
git-svn-id: svn://10.65.10.50/trunk@6141 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
763d7ce6c2
commit
d85d2bace3
@ -4,7 +4,7 @@
|
||||
|
||||
#include "at3.h"
|
||||
|
||||
#define usage "Error - usage : %s -{0|1|2|3|4|5|6}"
|
||||
#define usage "Error - usage : %s -{0|1|2|3|4|5|6|7}"
|
||||
|
||||
int main(int argc,char** argv)
|
||||
{
|
||||
@ -26,6 +26,8 @@ int main(int argc,char** argv)
|
||||
rt = at3600(argc,argv) ; break;
|
||||
case 6:
|
||||
rt = at3700(argc,argv) ; break;
|
||||
case 7:
|
||||
rt = at3800(argc,argv) ; break;
|
||||
default:
|
||||
error_box(usage, argv[0]) ; break;
|
||||
}
|
||||
|
1
at/at3.h
1
at/at3.h
@ -8,6 +8,7 @@ int at3400(int argc, char* argv[]);
|
||||
int at3500(int argc, char* argv[]);
|
||||
int at3600(int argc, char* argv[]);
|
||||
int at3700(int argc, char* argv[]);
|
||||
int at3800(int argc, char* argv[]);
|
||||
|
||||
#endif // __AT3_H
|
||||
|
||||
|
@ -39,3 +39,8 @@ MENUBAR MENU_BAR(6)
|
||||
MENU MENU_BAR(6)
|
||||
SUBMENU MENU_FILE "~File"
|
||||
|
||||
/* at3 -7 statistica donazioni per tipo e punto */
|
||||
MENUBAR MENU_BAR(7)
|
||||
MENU MENU_BAR(7)
|
||||
SUBMENU MENU_FILE "~File"
|
||||
|
||||
|
541
at/at3800.cpp
Executable file
541
at/at3800.cpp
Executable file
@ -0,0 +1,541 @@
|
||||
#include <applicat.h>
|
||||
#include <mask.h>
|
||||
#include <printer.h>
|
||||
#include <progind.h>
|
||||
#include <real.h>
|
||||
#include <relation.h>
|
||||
#include <tabutil.h>
|
||||
#include <urldefid.h>
|
||||
#include <utility.h>
|
||||
|
||||
#include "at3.h"
|
||||
|
||||
// nomi campi maschera
|
||||
#include "at3800a.h"
|
||||
|
||||
// nomi dei campi
|
||||
#include "soggetti.h"
|
||||
#include "donaz.h"
|
||||
#include "atstatd.h"
|
||||
#include "sezioni.h"
|
||||
|
||||
// classe per la definizione di una riga di statistica
|
||||
class TRigaP : public TObject
|
||||
{
|
||||
TString16 _punto;
|
||||
TArray _valori;
|
||||
|
||||
protected:
|
||||
const TRigaP& copy(const TRigaP& riga);
|
||||
public:
|
||||
const TDate punto() const { return _punto; }
|
||||
TObject* dup() const { return new TRigaP(*this); }
|
||||
const TRigaP& operator = (const TRigaP& riga);
|
||||
const real& operator [] (int colonna) const;
|
||||
void aggiorna_valore(int colonna, const real& numero) ;
|
||||
void azzera_valori();
|
||||
// costruttore
|
||||
TRigaP(TString16 punto) {_punto = punto;}
|
||||
// costruttore di copia
|
||||
TRigaP(const TRigaP& riga) { copy(riga); }
|
||||
virtual ~TRigaP() {};
|
||||
};
|
||||
|
||||
const TRigaP& TRigaP::copy(const TRigaP& riga)
|
||||
{
|
||||
_punto = riga._punto;
|
||||
_valori = riga._valori;
|
||||
return (*this);
|
||||
}
|
||||
|
||||
const TRigaP& TRigaP::operator = (const TRigaP& riga)
|
||||
{
|
||||
copy(riga);
|
||||
return (*this);
|
||||
}
|
||||
|
||||
const real& TRigaP::operator [] (int colonna) const
|
||||
{
|
||||
real* valore = (real*)_valori.objptr(colonna);
|
||||
if (valore == NULL)
|
||||
return ZERO;
|
||||
else
|
||||
return *valore;
|
||||
}
|
||||
|
||||
void TRigaP::aggiorna_valore(int colonna, const real& numero)
|
||||
{
|
||||
real* valore = (real*)_valori.objptr(colonna);
|
||||
if (valore == NULL)
|
||||
_valori.add(new real(numero), colonna);
|
||||
else
|
||||
*valore += numero;
|
||||
}
|
||||
|
||||
void TRigaP::azzera_valori()
|
||||
{
|
||||
_valori.destroy();
|
||||
}
|
||||
|
||||
class TRiepilogoPunto : public TApplication
|
||||
{
|
||||
TMask* _msk;
|
||||
TRelation* _rel;
|
||||
TCursor* _cur;
|
||||
TLocalisamfile* _sezioni;
|
||||
TLocalisamfile* _soggetti;
|
||||
TLocalisamfile* _donaz;
|
||||
TLocalisamfile* _atstatd;
|
||||
TDate _dataini, _datafin;
|
||||
TAssoc_array* _colonne;
|
||||
TAssoc_array* _punti;
|
||||
TArray _righe; // array per riepilogo donazioni
|
||||
TString16 _sezini, _sotini, _sezfin, _sotfin;
|
||||
|
||||
protected:
|
||||
virtual bool create();
|
||||
virtual bool destroy();
|
||||
virtual bool menu(MENU_TAG m);
|
||||
virtual TMask& get_mask() { return *_msk; }
|
||||
virtual TRelation* get_relation() const { return _rel; }
|
||||
int data2row(const TString16 punto);
|
||||
bool riepilogo();
|
||||
bool stampa();
|
||||
bool crea_colonne();
|
||||
bool crea_righe();
|
||||
void azzera_righe();
|
||||
void stampa_sezione(TString16 codsez, TString16 codsot);
|
||||
void crea_intestazione();
|
||||
public:
|
||||
TRiepilogoPunto() {}
|
||||
|
||||
};
|
||||
|
||||
HIDDEN inline TRiepilogoPunto& app() { return (TRiepilogoPunto&) main_app(); }
|
||||
|
||||
int TRiepilogoPunto::data2row(const TString16 punto)
|
||||
{
|
||||
real& indicer = (real&)_punti->find((const char*) punto);
|
||||
return indicer.integer();
|
||||
}
|
||||
|
||||
bool TRiepilogoPunto::crea_colonne()
|
||||
{
|
||||
_colonne->destroy();
|
||||
TTable tdn("TDN");
|
||||
real contatore(ZERO);
|
||||
for (tdn.first(); !tdn.eof(); tdn.next())
|
||||
{
|
||||
real* oggetto = new real(contatore);
|
||||
_colonne->add((const char*)tdn.get("CODTAB"),(TObject*)oggetto);
|
||||
contatore+=1;
|
||||
}
|
||||
return !tdn.empty();
|
||||
}
|
||||
|
||||
bool TRiepilogoPunto::crea_righe()
|
||||
{
|
||||
TTable ldn("LDN");
|
||||
TString16 punto = "**";
|
||||
int indice = 0;
|
||||
_punti->destroy();
|
||||
real* oggetto1 = new real(indice);
|
||||
_punti->add((const char*) punto, (TObject*) oggetto1);
|
||||
_righe.add(new TRigaP(punto), indice);
|
||||
for (ldn.first(); !ldn.eof(); ldn.next())
|
||||
{
|
||||
indice++;
|
||||
punto = ldn.get("CODTAB");
|
||||
_righe.add(new TRigaP(punto), indice);
|
||||
real* oggetto = new real(indice);
|
||||
_punti->add((const char*) punto,(TObject*) oggetto);
|
||||
}
|
||||
return _righe.items()>0;
|
||||
}
|
||||
|
||||
bool TRiepilogoPunto::create()
|
||||
{
|
||||
TApplication::create();
|
||||
_msk = new TMask("at3800a");
|
||||
_rel = new TRelation(LF_DONAZ);
|
||||
_rel->add(LF_SOGGETTI, "CODICE==CODICE");
|
||||
_soggetti = new TLocalisamfile(LF_SOGGETTI);
|
||||
_donaz = new TLocalisamfile(LF_DONAZ);
|
||||
_atstatd = new TLocalisamfile(LF_ATSTATD);
|
||||
_sezioni = new TLocalisamfile(LF_SEZIONI);
|
||||
_colonne = new TAssoc_array();
|
||||
_punti = new TAssoc_array();
|
||||
dispatch_e_menu(BAR_ITEM(1));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
bool TRiepilogoPunto::destroy()
|
||||
{
|
||||
delete _rel;
|
||||
delete _msk;
|
||||
delete _soggetti;
|
||||
delete _donaz;
|
||||
delete _atstatd;
|
||||
delete _sezioni;
|
||||
delete _colonne;
|
||||
delete _punti;
|
||||
return TApplication::destroy();
|
||||
}
|
||||
|
||||
bool TRiepilogoPunto::menu(MENU_TAG m)
|
||||
{
|
||||
TMask& msk = get_mask();
|
||||
KEY tasto;
|
||||
tasto = msk.run();
|
||||
if (tasto == K_ENTER)
|
||||
{
|
||||
_dataini = msk.get(F_DATAINI);
|
||||
_datafin = msk.get(F_DATAFIN);
|
||||
_sezini = _msk->get(F_SEZINI);
|
||||
_sotini = _msk->get(F_SOTINI);
|
||||
_sezfin = _msk->get(F_SEZFIN);
|
||||
_sotfin = _msk->get(F_SOTFIN);
|
||||
if (riepilogo())
|
||||
stampa();
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void TRiepilogoPunto::crea_intestazione()
|
||||
{
|
||||
TPrintrow row;
|
||||
TString256 sep;
|
||||
sep = "RIEPILOGO DONAZIONI PER TIPO E PUNTO ";
|
||||
sep.center_just(80);
|
||||
row.put(sep);
|
||||
row.put("@>", 1);
|
||||
row.put("Pag. @#", 70);
|
||||
printer().setheaderline(2, row);
|
||||
row.reset();
|
||||
sep = "";
|
||||
if (_dataini.ok())
|
||||
{
|
||||
sep << " dal ";
|
||||
sep << _dataini.string();
|
||||
}
|
||||
if (_datafin.ok())
|
||||
{
|
||||
sep << " al ";
|
||||
sep << _datafin.string();
|
||||
}
|
||||
sep.center_just(80);
|
||||
row.put(sep);
|
||||
printer().setheaderline(3, row);
|
||||
row.reset();
|
||||
sep = "Punto di prelievo ";
|
||||
TTable tdn("TDN");
|
||||
int pos = 27;
|
||||
for (tdn.first(); !tdn.eof(); tdn.next())
|
||||
{
|
||||
sep.overwrite((const char*)tdn.get("CODTAB"),pos);
|
||||
pos = pos+10;
|
||||
}
|
||||
sep.overwrite("Totale",pos);
|
||||
row.put(sep);
|
||||
printer().setheaderline(5, row);
|
||||
sep = "";
|
||||
sep.fill('-');
|
||||
row.reset();
|
||||
row.put(sep);
|
||||
printer().setheaderline(6, row);
|
||||
}
|
||||
|
||||
bool TRiepilogoPunto::stampa()
|
||||
{
|
||||
if (printer().open())
|
||||
{
|
||||
crea_intestazione();
|
||||
TRelation* relstat = new TRelation(LF_ATSTATD);
|
||||
TCursor* curstat = new TCursor(relstat, "", 1);
|
||||
TString16 oldsez = "**";
|
||||
TString16 oldsot = "**";
|
||||
double numero;
|
||||
TString16 actsez, actsot;
|
||||
TString16 tipodon, punto;
|
||||
long last = curstat->items();
|
||||
for ( *curstat=0; curstat->pos() < last; ++(*curstat) )
|
||||
{
|
||||
actsez = curstat->curr().get(ATS_CODSEZ);
|
||||
actsot = curstat->curr().get(ATS_CODSOT);
|
||||
tipodon = curstat->curr().get(ATS_TIPODON);
|
||||
punto = curstat->curr().get(ATS_PUNTO);
|
||||
numero = (double)curstat->curr().get_int(ATS_NUMERO);
|
||||
if (actsez != oldsez || actsot != oldsot)
|
||||
{
|
||||
if (oldsez != "**" && oldsot != "**")
|
||||
{
|
||||
stampa_sezione(oldsez,oldsot);
|
||||
azzera_righe();
|
||||
}
|
||||
oldsez = actsez;
|
||||
oldsot = actsot;
|
||||
}
|
||||
TRigaP& riga = (TRigaP&)_righe[data2row(punto)];
|
||||
real& colonna = (real&)_colonne->find((const char*)tipodon);
|
||||
real n = numero;
|
||||
riga.aggiorna_valore(colonna.integer(),n);
|
||||
}
|
||||
if (oldsez != "**" && oldsot != "**")
|
||||
stampa_sezione(oldsez,oldsot);
|
||||
delete curstat;
|
||||
delete relstat;
|
||||
printer().close();
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void TRiepilogoPunto::azzera_righe()
|
||||
{
|
||||
TString16 punto = "**";
|
||||
int indice = data2row(punto);
|
||||
TRigaP& riga = (TRigaP&)_righe[indice];
|
||||
riga.azzera_valori();
|
||||
TTable ldn("LDN");
|
||||
for (ldn.first(); !ldn.eof(); ldn.next())
|
||||
{
|
||||
punto = ldn.get("CODTAB");
|
||||
indice = data2row(punto);
|
||||
TRigaP& riga = (TRigaP&)_righe[indice];
|
||||
riga.azzera_valori();
|
||||
}
|
||||
}
|
||||
|
||||
void TRiepilogoPunto::stampa_sezione(TString16 codsez, TString16 codsot)
|
||||
{
|
||||
TPrintrow row;
|
||||
TString256 rigastampa;
|
||||
rigastampa = "Sezione: ";
|
||||
rigastampa << codsez;
|
||||
if (codsot.not_empty())
|
||||
{
|
||||
rigastampa << "/";
|
||||
rigastampa << codsot;
|
||||
}
|
||||
rigastampa << " ";
|
||||
TLocalisamfile sezioni(LF_SEZIONI);
|
||||
sezioni.setkey(1);
|
||||
sezioni.zero();
|
||||
sezioni.put(SEZ_CODSEZ,codsez);
|
||||
sezioni.put(SEZ_CODSOT,codsot);
|
||||
if (sezioni.read() == NOERR)
|
||||
{
|
||||
TString80 den = sezioni.get(SEZ_DENSEZ);
|
||||
rigastampa << den;
|
||||
den = sezioni.get(SEZ_DENSOT);
|
||||
if (den.not_empty())
|
||||
{
|
||||
rigastampa << "/";
|
||||
rigastampa << den;
|
||||
}
|
||||
}
|
||||
rigastampa.center_just(80);
|
||||
row.put(rigastampa);
|
||||
printer().setheaderline(1, row);
|
||||
|
||||
TRigaP rigatotali("");
|
||||
real totalepunto = ZERO;
|
||||
TString16 valore;
|
||||
TString16 punto = "**";
|
||||
TRigaP& riga = (TRigaP&)_righe[data2row(punto)];
|
||||
row.reset();
|
||||
rigastampa = "Senza punto di prelievo";
|
||||
totalepunto = ZERO;
|
||||
int pos = 21;
|
||||
for (int i=0;i<_colonne->items();i++)
|
||||
{
|
||||
rigatotali.aggiorna_valore(i,riga[i]);
|
||||
totalepunto+=riga[i];
|
||||
valore = "";
|
||||
valore.format("%8d",riga[i].integer());
|
||||
rigastampa.overwrite((const char*)valore, pos);
|
||||
pos = pos+10;
|
||||
}
|
||||
if (totalepunto != ZERO)
|
||||
{
|
||||
valore = "";
|
||||
valore.format("%8d",totalepunto.integer());
|
||||
rigastampa.overwrite((const char*)valore, pos+4);
|
||||
row.put((const char*) rigastampa);
|
||||
printer().print(row);
|
||||
}
|
||||
|
||||
TTable ldn("LDN");
|
||||
for (ldn.first(); !ldn.eof(); ldn.next())
|
||||
{
|
||||
punto = ldn.get("CODTAB");
|
||||
TRigaP& riga = (TRigaP&)_righe[data2row(punto)];
|
||||
row.reset();
|
||||
rigastampa = "";
|
||||
rigastampa << punto;
|
||||
rigastampa << " ";
|
||||
rigastampa << ldn.get("S0");
|
||||
totalepunto = ZERO;
|
||||
int pos = 21;
|
||||
for (int i=0;i<_colonne->items();i++)
|
||||
{
|
||||
rigatotali.aggiorna_valore(i,riga[i]);
|
||||
totalepunto+=riga[i];
|
||||
valore = "";
|
||||
valore.format("%8d",riga[i].integer());
|
||||
rigastampa.overwrite((const char*)valore, pos);
|
||||
pos = pos+10;
|
||||
}
|
||||
if (totalepunto != ZERO)
|
||||
{
|
||||
valore = "";
|
||||
valore.format("%8d",totalepunto.integer());
|
||||
rigastampa.overwrite((const char*)valore, pos+4);
|
||||
row.put((const char*) rigastampa);
|
||||
printer().print(row);
|
||||
}
|
||||
}
|
||||
// stampa totali per sezione
|
||||
rigastampa = "";
|
||||
rigastampa.fill('-');
|
||||
row.reset();
|
||||
row.put(rigastampa);
|
||||
printer().print(row);
|
||||
row.reset();
|
||||
rigastampa = "";
|
||||
rigastampa = "Totale ";
|
||||
totalepunto = ZERO;
|
||||
pos = 21;
|
||||
for (i=0;i<_colonne->items();i++)
|
||||
{
|
||||
totalepunto+=rigatotali[i];
|
||||
valore = "";
|
||||
valore.format("%8d",rigatotali[i].integer());
|
||||
rigastampa.overwrite((const char*)valore, pos);
|
||||
pos = pos+10;
|
||||
}
|
||||
valore = "";
|
||||
valore.format("%8d",totalepunto.integer());
|
||||
rigastampa.overwrite((const char*)valore, pos+4);
|
||||
row.put((const char*) rigastampa);
|
||||
printer().print(row);
|
||||
row.reset();
|
||||
printer().setheaderline(3, row);
|
||||
printer().formfeed();
|
||||
}
|
||||
|
||||
bool TRiepilogoPunto::riepilogo()
|
||||
{
|
||||
if (crea_colonne() && crea_righe())
|
||||
{
|
||||
// cancello i risultati della elaborazione precedente
|
||||
TLocalisamfile stat(LF_ATSTATD);
|
||||
for (stat.first(); !stat.eof(); stat.next())
|
||||
stat.remove();
|
||||
// filtro per data
|
||||
TRectype da(LF_DONAZ);
|
||||
TRectype a (LF_DONAZ);
|
||||
if (_dataini.ok())
|
||||
da.put(DON_DATADON, _dataini);
|
||||
if (_datafin.ok())
|
||||
a.put(DON_DATADON, _datafin);
|
||||
_cur = new TCursor(_rel, "", 2, &da, &a);
|
||||
TString256 filtro = "";
|
||||
|
||||
// filtro per sezione/sottogruppo
|
||||
if (_sezini.not_empty())
|
||||
{
|
||||
if (filtro.empty())
|
||||
filtro = format("(90->CODSEZ >= \"%s\")",(const char*)_sezini);
|
||||
else
|
||||
{
|
||||
filtro << " && ";
|
||||
filtro << format("(90->CODSEZ >= \"%s\")",(const char*)_sezini);
|
||||
}
|
||||
if (_sotini.not_empty())
|
||||
{
|
||||
if (filtro.empty())
|
||||
filtro = format("(90->CODSOT >= \"%s\")",(const char*)_sotini);
|
||||
else
|
||||
{
|
||||
filtro << " && ";
|
||||
filtro << format("(90->CODSOT >= \"%s\")",(const char*)_sotini);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (_sezfin.not_empty())
|
||||
{
|
||||
if (filtro.empty())
|
||||
filtro = format("(90->CODSEZ <= \"%s\")",(const char*)_sezfin);
|
||||
else
|
||||
{
|
||||
filtro << " && ";
|
||||
filtro << format("(90->CODSEZ <= \"%s\")",(const char*)_sezfin);
|
||||
}
|
||||
if (_sotfin.not_empty())
|
||||
{
|
||||
if (filtro.empty())
|
||||
filtro = format("(90->CODSOT <= \"%s\")",(const char*)_sotfin);
|
||||
else
|
||||
{
|
||||
filtro << " && ";
|
||||
filtro << format("(90->CODSOT <= \"%s\")",(const char*)_sotfin);
|
||||
}
|
||||
}
|
||||
}
|
||||
_cur->setfilter((const char*) filtro, TRUE);
|
||||
TString16 codsez, codsot, tipodon, punto;
|
||||
long numero;
|
||||
TRectype& recdon = _cur->curr();
|
||||
TRectype& recsog = _cur->curr(LF_SOGGETTI);
|
||||
long last = _cur->items();
|
||||
TProgind prg (last, "Elaborazione in corso... Prego attendere", FALSE, TRUE, 30);
|
||||
for ( *_cur=0; _cur->pos() < last; ++(*_cur) )
|
||||
{
|
||||
prg.addstatus(1);
|
||||
codsez = recdon.get(DON_CODSEZ);
|
||||
codsot = recdon.get(DON_CODSOT);
|
||||
if (codsez.empty())
|
||||
{
|
||||
codsez = recsog.get(SOG_CODSEZ);
|
||||
codsot = recsog.get(SOG_CODSOT);
|
||||
}
|
||||
tipodon = recdon.get(DON_TIPODON);
|
||||
punto = recdon.get(DON_LUOGODON);
|
||||
stat.zero();
|
||||
stat.put(ATS_CODSEZ, codsez);
|
||||
stat.put(ATS_CODSOT, codsot);
|
||||
stat.put(ATS_TIPODON, tipodon);
|
||||
stat.put(ATS_PUNTO, punto);
|
||||
if (stat.read() == NOERR)
|
||||
{
|
||||
numero = stat.get_long(ATS_NUMERO);
|
||||
numero++;
|
||||
stat.put(ATS_NUMERO, numero);
|
||||
int err = stat.rewrite();
|
||||
}
|
||||
else
|
||||
{
|
||||
stat.zero();
|
||||
stat.put(ATS_CODSEZ, codsez);
|
||||
stat.put(ATS_CODSOT, codsot);
|
||||
stat.put(ATS_TIPODON, tipodon);
|
||||
stat.put(ATS_PUNTO, punto);
|
||||
numero = 1;
|
||||
stat.put(ATS_NUMERO, numero);
|
||||
int err = stat.write();
|
||||
}
|
||||
}
|
||||
return (stat.eod() > 0);
|
||||
}
|
||||
else
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
int at3800(int argc, char* argv[])
|
||||
{
|
||||
TRiepilogoPunto a;
|
||||
a.run(argc, argv, "Riepilogo donazioni per tipo e punto");
|
||||
return 0;
|
||||
}
|
14
at/at3800a.h
Executable file
14
at/at3800a.h
Executable file
@ -0,0 +1,14 @@
|
||||
// riepilogo donazioni per tipo e punto
|
||||
// definizione campi per maschera di selezione
|
||||
|
||||
#define F_SEZINI 101
|
||||
#define F_D_SEZINI 102
|
||||
#define F_SOTINI 103
|
||||
#define F_D_SOTINI 104
|
||||
#define F_SEZFIN 105
|
||||
#define F_D_SEZFIN 106
|
||||
#define F_SOTFIN 107
|
||||
#define F_D_SOTFIN 108
|
||||
|
||||
#define F_DATAINI 301
|
||||
#define F_DATAFIN 302
|
148
at/at3800a.uml
Executable file
148
at/at3800a.uml
Executable file
@ -0,0 +1,148 @@
|
||||
#include "at3800a.h"
|
||||
|
||||
PAGE "Riepilogo donazioni per tipo e punto" -1 -1 78 12
|
||||
|
||||
GROUPBOX DLG_NULL 77 4
|
||||
BEGIN
|
||||
PROMPT 1 1 "Scelta sezioni/sottogruppi"
|
||||
END
|
||||
|
||||
STRING F_SEZINI 2
|
||||
BEGIN
|
||||
PROMPT 2 2 "Da "
|
||||
FLAGS "U"
|
||||
USE LF_SEZIONI
|
||||
INPUT CODSEZ F_SEZINI
|
||||
INPUT CODSOT F_SOTINI
|
||||
DISPLAY "Cod.sez" CODSEZ
|
||||
DISPLAY "Cod.sot." CODSOT
|
||||
DISPLAY "Sezione@25" DENSEZ
|
||||
DISPLAY "Sottogruppo@25" DENSOT
|
||||
OUTPUT F_SEZINI CODSEZ
|
||||
OUTPUT F_D_SEZINI DENSEZ
|
||||
OUTPUT F_SOTINI CODSOT
|
||||
OUTPUT F_D_SOTINI DENSOT
|
||||
CHECKTYPE SEARCH
|
||||
HELP "Codice sezione da cui partire"
|
||||
END
|
||||
|
||||
STRING F_D_SEZINI 25
|
||||
BEGIN
|
||||
PROMPT 11 2 ""
|
||||
FLAGS "U"
|
||||
USE LF_SEZIONI KEY 2
|
||||
INPUT DENSEZ F_D_SEZINI
|
||||
DISPLAY "Sezione@25" DENSEZ
|
||||
DISPLAY "Sottogruppo@25" DENSOT
|
||||
DISPLAY "Cod.sez" CODSEZ
|
||||
DISPLAY "Cod.sot." CODSOT
|
||||
COPY OUTPUT F_SEZINI
|
||||
CHECKTYPE NORMAL
|
||||
HELP "Sezione da cui partire"
|
||||
END
|
||||
|
||||
STRING F_SOTINI 2
|
||||
BEGIN
|
||||
PROMPT 2 3 " "
|
||||
COPY ALL F_SEZINI
|
||||
CHECKTYPE SEARCH
|
||||
HELP "Codice sottogruppo da cui partire"
|
||||
END
|
||||
|
||||
STRING F_D_SOTINI 25
|
||||
BEGIN
|
||||
PROMPT 11 3 ""
|
||||
FLAGS "U"
|
||||
COPY USE F_D_SEZINI
|
||||
INPUT DENSEZ F_D_SEZINI
|
||||
INPUT DENSOT F_D_SOTINI
|
||||
COPY DISPLAY F_D_SEZINI
|
||||
COPY OUTPUT F_D_SEZINI
|
||||
CHECKTYPE NORMAL
|
||||
HELP "Sottogruppo da cui partire"
|
||||
END
|
||||
|
||||
STRING F_SEZFIN 2
|
||||
BEGIN
|
||||
PROMPT 41 2 "A "
|
||||
FLAGS "U"
|
||||
USE LF_SEZIONI
|
||||
INPUT CODSEZ F_SEZFIN
|
||||
INPUT CODSOT F_SOTFIN
|
||||
DISPLAY "Cod.sez" CODSEZ
|
||||
DISPLAY "Cod.sot." CODSOT
|
||||
DISPLAY "Sezione@25" DENSEZ
|
||||
DISPLAY "Sottogruppo@25" DENSOT
|
||||
OUTPUT F_SEZFIN CODSEZ
|
||||
OUTPUT F_D_SEZFIN DENSEZ
|
||||
OUTPUT F_SOTFIN CODSOT
|
||||
OUTPUT F_D_SOTFIN DENSOT
|
||||
CHECKTYPE SEARCH
|
||||
HELP "Codice sezione finale"
|
||||
END
|
||||
|
||||
STRING F_D_SEZFIN 25
|
||||
BEGIN
|
||||
PROMPT 49 2 ""
|
||||
FLAGS "U"
|
||||
USE LF_SEZIONI KEY 2
|
||||
INPUT DENSEZ F_D_SEZFIN
|
||||
DISPLAY "Sezione@25" DENSEZ
|
||||
DISPLAY "Sottogruppo@25" DENSOT
|
||||
DISPLAY "Cod.sez" CODSEZ
|
||||
DISPLAY "Cod.sot." CODSOT
|
||||
COPY OUTPUT F_SEZFIN
|
||||
CHECKTYPE NORMAL
|
||||
HELP "Sezione finale"
|
||||
END
|
||||
|
||||
STRING F_SOTFIN 2
|
||||
BEGIN
|
||||
PROMPT 41 3 " "
|
||||
COPY ALL F_SEZFIN
|
||||
CHECKTYPE SEARCH
|
||||
HELP "Codice sottogruppo finale"
|
||||
END
|
||||
|
||||
STRING F_D_SOTFIN 25
|
||||
BEGIN
|
||||
PROMPT 49 3 ""
|
||||
FLAGS "U"
|
||||
COPY USE F_D_SEZFIN
|
||||
INPUT DENSEZ F_D_SEZFIN
|
||||
INPUT DENSOT F_D_SOTFIN
|
||||
COPY DISPLAY F_D_SEZFIN
|
||||
COPY OUTPUT F_D_SEZFIN
|
||||
CHECKTYPE NORMAL
|
||||
HELP "Sottogruppo finale"
|
||||
END
|
||||
|
||||
GROUPBOX DLG_NULL 77 3
|
||||
BEGIN
|
||||
PROMPT 1 5 "Opzioni per il riepilogo"
|
||||
END
|
||||
|
||||
DATE F_DATAINI
|
||||
BEGIN
|
||||
PROMPT 2 6 "Donazioni effettuate dal "
|
||||
HELP "Data iniziale"
|
||||
END
|
||||
|
||||
DATE F_DATAFIN
|
||||
BEGIN
|
||||
PROMPT 40 6 "al "
|
||||
HELP "Data finale"
|
||||
END
|
||||
|
||||
BUTTON DLG_OK 9 2
|
||||
BEGIN
|
||||
PROMPT -12 -1 ""
|
||||
END
|
||||
|
||||
BUTTON DLG_QUIT 9 2
|
||||
BEGIN
|
||||
PROMPT -22 -1 ""
|
||||
END
|
||||
|
||||
ENDPAGE
|
||||
ENDMASK
|
@ -13,3 +13,4 @@
|
||||
#define ATS_NUMPRIME2 "NUMPRIME2"
|
||||
#define ATS_GRUPPO "GRUPPO"
|
||||
#define ATS_RH "RH"
|
||||
#define ATS_PUNTO "PUNTO"
|
||||
|
Loading…
x
Reference in New Issue
Block a user