Patch level : 10.0
Files correlati : cg3.exe cg3500a.msk Ricompilazione Demo : [ ] Commento : 0001142: maschera old la maschera di richiesta parametri dei stampa riepiloghi è ancora modello 3.2 git-svn-id: svn://10.65.10.50/trunk@18187 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
a6768fda51
commit
4dec30617b
@ -41,7 +41,6 @@ typedef enum {stampagruppo, stampaconto, stampasottoconto, fine} tipo;
|
|||||||
|
|
||||||
class TStampa_riepilogo : public TPrintapp
|
class TStampa_riepilogo : public TPrintapp
|
||||||
{
|
{
|
||||||
TProgind * _prog;
|
|
||||||
TSaldi_list* _lista;
|
TSaldi_list* _lista;
|
||||||
TIsamtempfile * _tmp_saldi;
|
TIsamtempfile * _tmp_saldi;
|
||||||
tipo _tp;
|
tipo _tp;
|
||||||
@ -55,10 +54,9 @@ class TStampa_riepilogo : public TPrintapp
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
bool menu (MENU_TAG m) { return TPrintapp::menu(m) ; }
|
virtual bool user_create() ;
|
||||||
bool user_create() ;
|
virtual bool user_destroy();
|
||||||
bool user_destroy();
|
virtual bool set_print(int);
|
||||||
bool set_print(int);
|
|
||||||
|
|
||||||
virtual bool preprocess_print(int,int);
|
virtual bool preprocess_print(int,int);
|
||||||
virtual void preprocess_header();
|
virtual void preprocess_header();
|
||||||
@ -100,11 +98,17 @@ bool TStampa_riepilogo::riepilogo()
|
|||||||
cp=-1;
|
cp=-1;
|
||||||
_udata_max = 0l;
|
_udata_max = 0l;
|
||||||
|
|
||||||
TLocalisamfile pcn(LF_PCON);
|
TRelation rel(LF_PCON);
|
||||||
|
TCursor cur(&rel);
|
||||||
|
cur.freeze();
|
||||||
|
const TRectype& pcn = rel.curr();
|
||||||
|
const TRecnotype items = cur.items();
|
||||||
|
TProgind prog(items, TR("Elaborazione in corso..."), true, true);
|
||||||
|
|
||||||
for (pcn.first(); !pcn.eof(); pcn.next())
|
for (cur = 0L; cur.pos() < items; ++cur)
|
||||||
{
|
{
|
||||||
_prog->addstatus(1);
|
if (!prog.addstatus(1))
|
||||||
|
break;
|
||||||
g = pcn.get_int (PCN_GRUPPO);
|
g = pcn.get_int (PCN_GRUPPO);
|
||||||
c = pcn.get_int (PCN_CONTO);
|
c = pcn.get_int (PCN_CONTO);
|
||||||
s = pcn.get_long(PCN_SOTTOCONTO);
|
s = pcn.get_long(PCN_SOTTOCONTO);
|
||||||
@ -182,9 +186,7 @@ bool TStampa_riepilogo::riepilogo()
|
|||||||
gp = conto.gruppo();
|
gp = conto.gruppo();
|
||||||
cp = conto.conto();
|
cp = conto.conto();
|
||||||
}
|
}
|
||||||
TRecnotype recnum = pcn.recno();
|
if (cur.pos() == items-1)
|
||||||
pcn.next();
|
|
||||||
if (pcn.eof())
|
|
||||||
{
|
{
|
||||||
saldo_conto = prg_conto_dare - prg_conto_avere;
|
saldo_conto = prg_conto_dare - prg_conto_avere;
|
||||||
prg_gruppo_dare += prg_conto_dare;
|
prg_gruppo_dare += prg_conto_dare;
|
||||||
@ -236,7 +238,6 @@ bool TStampa_riepilogo::riepilogo()
|
|||||||
_tmp_saldi->write();
|
_tmp_saldi->write();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pcn.readat(recnum);
|
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -298,9 +299,7 @@ bool TStampa_riepilogo::riepilogo()
|
|||||||
cp = conto.conto();
|
cp = conto.conto();
|
||||||
}
|
}
|
||||||
|
|
||||||
TRecnotype recnum = pcn.recno();
|
if (cur.pos() == items-1)
|
||||||
pcn.next();
|
|
||||||
if (pcn.eof())
|
|
||||||
{
|
{
|
||||||
saldo_conto = prg_conto_dare - prg_conto_avere;
|
saldo_conto = prg_conto_dare - prg_conto_avere;
|
||||||
prg_gruppo_dare += prg_conto_dare;
|
prg_gruppo_dare += prg_conto_dare;
|
||||||
@ -344,15 +343,15 @@ bool TStampa_riepilogo::riepilogo()
|
|||||||
//_tmp_saldi->put(SLD_PDARESCA,saldo_gruppo);
|
//_tmp_saldi->put(SLD_PDARESCA,saldo_gruppo);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
saldo_gruppo = saldo_gruppo * (-1.00);
|
saldo_gruppo = -saldo_gruppo;
|
||||||
_tmp_saldi->put(SLD_PAVEREPRO,saldo_gruppo); // W96SALDI del 10-06-96
|
_tmp_saldi->put(SLD_PAVEREPRO,saldo_gruppo); // W96SALDI del 10-06-96
|
||||||
//_tmp_saldi->put(SLD_PAVERESCA,saldo_gruppo);
|
//_tmp_saldi->put(SLD_PAVERESCA,saldo_gruppo);
|
||||||
}
|
}
|
||||||
_tmp_saldi->write();
|
_tmp_saldi->write();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pcn.readat(recnum);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -372,7 +371,6 @@ bool TStampa_riepilogo::ricerca_cf(TConto& conto,int indbil,real& prg_conto_dare
|
|||||||
prg_conto_avere = 0.00;
|
prg_conto_avere = 0.00;
|
||||||
for (int i = 0; i < items; i++)
|
for (int i = 0; i < items; i++)
|
||||||
{
|
{
|
||||||
_prog->addstatus(1);
|
|
||||||
const TRectype* r = _lista->saldi();
|
const TRectype* r = _lista->saldi();
|
||||||
s = r->get_long(SLD_SOTTOCONTO);
|
s = r->get_long(SLD_SOTTOCONTO);
|
||||||
prg_dare = 0.00;
|
prg_dare = 0.00;
|
||||||
@ -831,13 +829,8 @@ bool TStampa_riepilogo::set_print(int)
|
|||||||
_scelta = m.get_int(F_STAMPA);
|
_scelta = m.get_int(F_STAMPA);
|
||||||
_richiesta = m.get_int(F_RICHIESTA);
|
_richiesta = m.get_int(F_RICHIESTA);
|
||||||
_data = m.get(F_DATASTAMPA);
|
_data = m.get(F_DATASTAMPA);
|
||||||
TLocalisamfile pcn(LF_PCON);
|
|
||||||
|
|
||||||
_prog = new TProgind(pcn.items(), TR("Elaborazione in corso..."), FALSE);
|
|
||||||
|
|
||||||
riepilogo();
|
riepilogo();
|
||||||
|
|
||||||
delete _prog;
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -6,7 +6,7 @@ NUMBER F_CODDITTA 5
|
|||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 1 "Ditta "
|
PROMPT 2 1 "Ditta "
|
||||||
FLAGS "FRD"
|
FLAGS "FRD"
|
||||||
USE LF_NDITTE KEY 1
|
USE LF_NDITTE
|
||||||
CHECKTYPE REQUIRED
|
CHECKTYPE REQUIRED
|
||||||
INPUT CODDITTA F_CODDITTA
|
INPUT CODDITTA F_CODDITTA
|
||||||
DISPLAY "Codice" CODDITTA
|
DISPLAY "Codice" CODDITTA
|
||||||
@ -30,7 +30,7 @@ END
|
|||||||
|
|
||||||
NUMBER F_ANNO 4
|
NUMBER F_ANNO 4
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 3 "Cod. esercizio "
|
PROMPT 2 3 "Esercizio "
|
||||||
HELP "Codice esercizio di cui effettuare la stampa"
|
HELP "Codice esercizio di cui effettuare la stampa"
|
||||||
FLAGS "RZ"
|
FLAGS "RZ"
|
||||||
USE ESC
|
USE ESC
|
||||||
@ -44,7 +44,7 @@ BEGIN
|
|||||||
ADD RUN cg0 -5 esc
|
ADD RUN cg0 -5 esc
|
||||||
END
|
END
|
||||||
|
|
||||||
RADIOBUTTON F_STAMPA 30
|
RADIOBUTTON F_STAMPA 1 30
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 5 "Scelta stampa "
|
PROMPT 2 5 "Scelta stampa "
|
||||||
HELP "Indicare il grado di riepilogo"
|
HELP "Indicare il grado di riepilogo"
|
||||||
@ -52,7 +52,7 @@ BEGIN
|
|||||||
ITEM "2|Stampa riepilogo gruppi"
|
ITEM "2|Stampa riepilogo gruppi"
|
||||||
END
|
END
|
||||||
|
|
||||||
RADIOBUTTON F_RICHIESTA 44
|
RADIOBUTTON F_RICHIESTA 1 44
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 9 "Richiesta stampa "
|
PROMPT 2 9 "Richiesta stampa "
|
||||||
HELP "Indicare il tipo di movimenti da stampare"
|
HELP "Indicare il tipo di movimenti da stampare"
|
||||||
@ -60,16 +60,10 @@ BEGIN
|
|||||||
ITEM "2|Stampa progressivi movimenti eliminati"
|
ITEM "2|Stampa progressivi movimenti eliminati"
|
||||||
END
|
END
|
||||||
|
|
||||||
BUTTON DLG_OK 9 2
|
ENDPAGE
|
||||||
BEGIN
|
|
||||||
PROMPT -12 -1 ""
|
|
||||||
END
|
|
||||||
|
|
||||||
BUTTON DLG_QUIT 9 2
|
|
||||||
BEGIN
|
|
||||||
PROMPT -22 -1 ""
|
|
||||||
END
|
|
||||||
|
|
||||||
|
TOOLBAR "topbar" 0 0 0 2
|
||||||
|
#include <printbar.h>
|
||||||
ENDPAGE
|
ENDPAGE
|
||||||
|
|
||||||
ENDMASK
|
ENDMASK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user