Patch level : 4.0 nopatch
Files correlati : Ricompilazione Demo : [ ] Commento : git-svn-id: svn://10.65.10.50/trunk@14719 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
7ccb0c9cc2
commit
0bff6e09ea
@ -105,7 +105,7 @@ protected:
|
|||||||
virtual void preprocess_header();
|
virtual void preprocess_header();
|
||||||
virtual void preprocess_footer();
|
virtual void preprocess_footer();
|
||||||
virtual void set_page(int,int);
|
virtual void set_page(int,int);
|
||||||
virtual void process_link(int id, const char* txt);
|
virtual bool process_link(int id, const char* txt);
|
||||||
|
|
||||||
void set_handlers(TMask* msk) const;
|
void set_handlers(TMask* msk) const;
|
||||||
bool mask2sheet();
|
bool mask2sheet();
|
||||||
@ -198,18 +198,12 @@ int TMastrini_application::righe_rimaste_da_stampare()
|
|||||||
return righe_rimaste;
|
return righe_rimaste;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TMastrini_application::process_link(int id, const char* txt)
|
bool TMastrini_application::process_link(int id, const char* txt)
|
||||||
{
|
{
|
||||||
const char* const app = "cg2 -0";
|
TRectype mov(LF_MOV);
|
||||||
TToken_string ss(10);
|
|
||||||
ss.add("1");
|
|
||||||
ss.add(txt);
|
|
||||||
|
|
||||||
TMessage fs(cmd2name(app), MSG_LN, ss);
|
mov.put(MOV_NUMREG, txt);
|
||||||
fs.send();
|
return mov.edit();
|
||||||
|
|
||||||
TExternal_app pn(app);
|
|
||||||
pn.run();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TMastrini_application::sottoc_handler_ini(TMask_field& f, KEY key)
|
bool TMastrini_application::sottoc_handler_ini(TMask_field& f, KEY key)
|
||||||
@ -658,7 +652,7 @@ bool TMastrini_application::almeno_un_record()
|
|||||||
|
|
||||||
if (_cdc != 0)
|
if (_cdc != 0)
|
||||||
{
|
{
|
||||||
const long cdc = rmov.get_long(RMV_CDC);
|
const long cdc = rmov.get_long("NUMGIO");
|
||||||
if (_cdc != cdc)
|
if (_cdc != cdc)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -1545,7 +1539,7 @@ bool TMastrini_application::preprocess_page(int file, int counter)
|
|||||||
_g_contr = rmov.get(RMV_GRUPPOC);
|
_g_contr = rmov.get(RMV_GRUPPOC);
|
||||||
_c_contr = rmov.get(RMV_CONTOC);
|
_c_contr = rmov.get(RMV_CONTOC);
|
||||||
_s_contr = rmov.get(RMV_SOTTOCONTOC);
|
_s_contr = rmov.get(RMV_SOTTOCONTOC);
|
||||||
_centrodicosto = rmov.get(RMV_CDC);
|
_centrodicosto = rmov.get("NUMGIO");
|
||||||
|
|
||||||
// Se non ha il richiesto numero di centro di costo salta la stampa di questa riga di movimento
|
// Se non ha il richiesto numero di centro di costo salta la stampa di questa riga di movimento
|
||||||
if (_cdc != 0L && _cdc != atol(_centrodicosto))
|
if (_cdc != 0L && _cdc != atol(_centrodicosto))
|
||||||
@ -3196,7 +3190,7 @@ void TMastrini_application::calcola_progressivi_al()
|
|||||||
|
|
||||||
if (_cdc != 0)
|
if (_cdc != 0)
|
||||||
{
|
{
|
||||||
const long cdc = rmov.get_long(RMV_CDC);
|
const long cdc = rmov.get_long("NUMGIO");
|
||||||
if (_cdc != cdc)
|
if (_cdc != cdc)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -3235,7 +3229,7 @@ void TMastrini_application::calcola_cdc_al(real& dare, real& avere)
|
|||||||
if ((gruppo != _gruppo)||(conto != _conto)||(sottoc != _sottoc))
|
if ((gruppo != _gruppo)||(conto != _conto)||(sottoc != _sottoc))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
const long cdc = rmov.get_long(RMV_CDC);
|
const long cdc = rmov.get_long("NUMGIO");
|
||||||
if (_cdc != cdc)
|
if (_cdc != cdc)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -3293,7 +3287,7 @@ void TMastrini_application::calcola_progressivi()
|
|||||||
* record */
|
* record */
|
||||||
|
|
||||||
|
|
||||||
TLocalisamfile saldi(LF_SALDI, FALSE);
|
TLocalisamfile saldi(LF_SALDI);
|
||||||
real progdare_attuale,progavere_attuale,progdare_prec,progavere_prec;
|
real progdare_attuale,progavere_attuale,progdare_prec,progavere_prec;
|
||||||
real saldo,progredare_eseprec,progreavere_eseprec,pdarep,paverep,saldoini_attuale,saldofine_attuale;
|
real saldo,progredare_eseprec,progreavere_eseprec,pdarep,paverep,saldoini_attuale,saldofine_attuale;
|
||||||
char salini,salini_attuale,salfine_attuale;
|
char salini,salini_attuale,salfine_attuale;
|
||||||
|
@ -121,7 +121,7 @@ bool TCGPSaldo::data_limite_bilancio(int bilancio, int g, int c, long s, const T
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
if (_cdc != 0L)
|
if (_cdc != 0L)
|
||||||
if (rmov.get_long(RMV_NUMGIO) != _cdc) // Filtro per centro di costo
|
if (rmov.get_long("NUMGIO") != _cdc) // Filtro per centro di costo
|
||||||
continue;
|
continue;
|
||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
num_rec++;
|
num_rec++;
|
||||||
@ -132,7 +132,7 @@ bool TCGPSaldo::data_limite_bilancio(int bilancio, int g, int c, long s, const T
|
|||||||
{
|
{
|
||||||
TString80 msg;
|
TString80 msg;
|
||||||
msg.format("%ld records at %ld rec/sec", num_rec, long(num_rec/sec));
|
msg.format("%ld records at %ld rec/sec", num_rec, long(num_rec/sec));
|
||||||
xvt_statbar_set(msg);
|
xvtil_statbar_set(msg);
|
||||||
do_events();
|
do_events();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -206,7 +206,7 @@ bool TCGPSaldo::data_limite_bilancio(int bilancio, int g, int c, long s, const T
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
xvt_statbar_refresh();
|
xvtil_statbar_refresh();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return _movimentato;
|
return _movimentato;
|
||||||
@ -427,7 +427,7 @@ int TStampaBilanciCDC_application::date2esc(const TDate& d, int* prevesc)
|
|||||||
{
|
{
|
||||||
const TDate ia(esc.get("D0")); // Data inizio esercizio
|
const TDate ia(esc.get("D0")); // Data inizio esercizio
|
||||||
const TDate fa(esc.get("D1")); // Data fine esercizio
|
const TDate fa(esc.get("D1")); // Data fine esercizio
|
||||||
const anno = esc.get_int("CODTAB");
|
const int anno = esc.get_int("CODTAB");
|
||||||
app()._inizioEs = ia;
|
app()._inizioEs = ia;
|
||||||
app()._fineEs = fa;
|
app()._fineEs = fa;
|
||||||
if (d >= ia && d <= fa)
|
if (d >= ia && d <= fa)
|
||||||
@ -1933,7 +1933,7 @@ bool TStampaBilanciCDC_application::calcola(int g, int c, long s)
|
|||||||
data = rmov.get_date(RMV_DATAREG);
|
data = rmov.get_date(RMV_DATAREG);
|
||||||
num_reg = rmov.get_long(RMV_NUMREG);
|
num_reg = rmov.get_long(RMV_NUMREG);
|
||||||
|
|
||||||
if (_cdc_cod != 0L && _cdc_cod != rmov.get_long(RMV_CDC))
|
if (_cdc_cod != 0L && _cdc_cod != rmov.get_long("NUMGIO"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
mov.setkey(1);
|
mov.setkey(1);
|
||||||
@ -2422,7 +2422,7 @@ void TStampaBilanciCDC_application::riempi_record(char t,int g,int c,long s,
|
|||||||
void TStampaBilanciCDC_application::leggi_clifo(const TArray& gccf)
|
void TStampaBilanciCDC_application::leggi_clifo(const TArray& gccf)
|
||||||
{
|
{
|
||||||
TSaldo sld;
|
TSaldo sld;
|
||||||
TLocalisamfile saldi(LF_SALDI, FALSE);
|
TLocalisamfile saldi(LF_SALDI);
|
||||||
int g=0, c=0;
|
int g=0, c=0;
|
||||||
long codcf=0l;
|
long codcf=0l;
|
||||||
TString80 ragsoc;
|
TString80 ragsoc;
|
||||||
@ -3898,7 +3898,7 @@ print_action TStampaBilanciCDC_application::postprocess_page(int file, int count
|
|||||||
TDate TStampaBilanciCDC_application::UltimaData(int g, int c, long s, int anno)
|
TDate TStampaBilanciCDC_application::UltimaData(int g, int c, long s, int anno)
|
||||||
{
|
{
|
||||||
TDate uldata;
|
TDate uldata;
|
||||||
TLocalisamfile saldi(LF_SALDI, FALSE); //il parametro a false permette di usare un record corrente del file saldi differente a quello del file tmp
|
TLocalisamfile saldi(LF_SALDI); //il parametro a false permette di usare un record corrente del file saldi differente a quello del file tmp
|
||||||
|
|
||||||
saldi.zero();
|
saldi.zero();
|
||||||
if (_annoes != 0)
|
if (_annoes != 0)
|
||||||
@ -3923,7 +3923,7 @@ const char* TStampaBilanciCDC_application::DescrizioneConto(int g, int c, long s
|
|||||||
{
|
{
|
||||||
TString80 ragsoc;
|
TString80 ragsoc;
|
||||||
const char* desc = NULL;
|
const char* desc = NULL;
|
||||||
TLocalisamfile pconti(LF_PCON,FALSE);
|
TLocalisamfile pconti(LF_PCON);
|
||||||
TLocalisamfile clifo (LF_CLIFO);
|
TLocalisamfile clifo (LF_CLIFO);
|
||||||
|
|
||||||
pconti.zero();
|
pconti.zero();
|
||||||
|
@ -241,7 +241,7 @@ void TGenera_ord_bon::add_totaledoc(TConfig *ordbon,int nrigadoc,const char * ti
|
|||||||
ordbon->set_paragraph(format("%d,%d",LF_RIGHEDOC, nrigadoc));
|
ordbon->set_paragraph(format("%d,%d",LF_RIGHEDOC, nrigadoc));
|
||||||
ordbon->set(RDOC_TIPORIGA,tiporiga);
|
ordbon->set(RDOC_TIPORIGA,tiporiga);
|
||||||
ordbon->set(RDOC_CODART,codspesa);
|
ordbon->set(RDOC_CODART,codspesa);
|
||||||
ordbon->set(RDOC_PREZZO,importo);
|
ordbon->set(RDOC_PREZZO, importo.string());
|
||||||
ordbon->set(RDOC_DESCR,"Totale");
|
ordbon->set(RDOC_DESCR,"Totale");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ protected:
|
|||||||
virtual void preprocess_header();
|
virtual void preprocess_header();
|
||||||
virtual void preprocess_footer();
|
virtual void preprocess_footer();
|
||||||
virtual void set_page(int,int);
|
virtual void set_page(int,int);
|
||||||
virtual void process_link(int id, const char* txt);
|
virtual bool process_link(int id, const char* txt);
|
||||||
|
|
||||||
void set_handlers(TMask* msk) const;
|
void set_handlers(TMask* msk) const;
|
||||||
bool mask2sheet();
|
bool mask2sheet();
|
||||||
@ -214,18 +214,11 @@ int TMastrini_application::righe_rimaste_da_stampare()
|
|||||||
return righe_rimaste;
|
return righe_rimaste;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TMastrini_application::process_link(int id, const char* txt)
|
bool TMastrini_application::process_link(int id, const char* txt)
|
||||||
{
|
{
|
||||||
const char* const app = "cg2 -0";
|
TRectype mov(LF_MOV);
|
||||||
TToken_string ss(10);
|
mov.put(MOV_NUMREG, txt);
|
||||||
ss.add("1");
|
return mov.edit();
|
||||||
ss.add(txt);
|
|
||||||
|
|
||||||
TMessage fs(cmd2name(app), MSG_LN, ss);
|
|
||||||
fs.send();
|
|
||||||
|
|
||||||
TExternal_app pn(app);
|
|
||||||
pn.run();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TMastrini_application::gruppo_hnd (TMask_field& f, KEY k)
|
bool TMastrini_application::gruppo_hnd (TMask_field& f, KEY k)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user