Modifiche dalla versione Linux sulla 2.1
git-svn-id: svn://10.65.10.50/trunk@12025 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
a8a3641198
commit
86d9da241a
@ -683,8 +683,8 @@ bool TStampaScadenzario::preprocess_page(int file, int counter)
|
|||||||
// totali del mese e lo schema riepilogativo mensile
|
// totali del mese e lo schema riepilogativo mensile
|
||||||
bool month_changed = _cur_data.month() != datascad.month();
|
bool month_changed = _cur_data.month() != datascad.month();
|
||||||
|
|
||||||
for (int n=1; n<MaxRowsForTotal; n++) reset_row(n);
|
for (int i=1; i<MaxRowsForTotal; i++) reset_row(i);
|
||||||
n = 1;
|
int n = 1;
|
||||||
set_row(n++,"");
|
set_row(n++,"");
|
||||||
print_totali(n,month_changed,FALSE);
|
print_totali(n,month_changed,FALSE);
|
||||||
switch (_tipost)
|
switch (_tipost)
|
||||||
@ -696,6 +696,9 @@ bool TStampaScadenzario::preprocess_page(int file, int counter)
|
|||||||
case altri:
|
case altri:
|
||||||
set_page_pcon(n);
|
set_page_pcon(n);
|
||||||
break;
|
break;
|
||||||
|
case nessuno:
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
_modified=TRUE;
|
_modified=TRUE;
|
||||||
// Azzera i totali del giorno in ogni caso.
|
// Azzera i totali del giorno in ogni caso.
|
||||||
@ -746,8 +749,8 @@ bool TStampaScadenzario::preprocess_page(int file, int counter)
|
|||||||
if (_cur_gr != -1 && _cur_co != -1 && _cur_codcf != -1)
|
if (_cur_gr != -1 && _cur_co != -1 && _cur_codcf != -1)
|
||||||
if (_cur_gr != gruppo || _cur_co != conto || _cur_codcf != codcf)
|
if (_cur_gr != gruppo || _cur_co != conto || _cur_codcf != codcf)
|
||||||
{
|
{
|
||||||
for (int n=1; n<MaxRowsForTotal; n++) reset_row(n);
|
for (int i=1; i<MaxRowsForTotal; i++) reset_row(i);
|
||||||
n = 1;
|
int n = 1;
|
||||||
set_row(n++,"");
|
set_row(n++,"");
|
||||||
print_totali_c(n,FALSE);
|
print_totali_c(n,FALSE);
|
||||||
if (_tipost == altri)
|
if (_tipost == altri)
|
||||||
@ -1160,7 +1163,7 @@ void TStampaScadenzario::print_header()
|
|||||||
if (_tipopag != 0)
|
if (_tipopag != 0)
|
||||||
{
|
{
|
||||||
TList_field& fld_tipopag = (TList_field&) _m->field(F_TIPOPAG);
|
TList_field& fld_tipopag = (TList_field&) _m->field(F_TIPOPAG);
|
||||||
TToken_string& pagam = (TToken_string) fld_tipopag.get_values();
|
TToken_string pagam(fld_tipopag.get_values());
|
||||||
set_header (soh++,FR("@bTipo pagamento: %d %s@r"),_tipopag, (const char*)pagam.get(_tipopag));
|
set_header (soh++,FR("@bTipo pagamento: %d %s@r"),_tipopag, (const char*)pagam.get(_tipopag));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1187,7 +1190,7 @@ void TStampaScadenzario::print_header()
|
|||||||
if (_tipopag != 0)
|
if (_tipopag != 0)
|
||||||
{
|
{
|
||||||
TList_field& fld_tipopag = (TList_field&) _m->field(F_TIPOPAG);
|
TList_field& fld_tipopag = (TList_field&) _m->field(F_TIPOPAG);
|
||||||
TToken_string& pagam = (TToken_string) fld_tipopag.get_values();
|
TToken_string pagam(fld_tipopag.get_values());
|
||||||
set_header (soh++,FR("@bTipo pagamento: %d %s@r"),_tipopag, (const char*)pagam.get(_tipopag));
|
set_header (soh++,FR("@bTipo pagamento: %d %s@r"),_tipopag, (const char*)pagam.get(_tipopag));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -232,7 +232,8 @@ void TStampaScaduto::compute_all(TPartita& p, TBill& bill)
|
|||||||
const int lst = rs.last();
|
const int lst = rs.last();
|
||||||
int prima_riga_pagamento = -1;
|
int prima_riga_pagamento = -1;
|
||||||
TDate first_date;// data relativa alla prima riga di pagamento
|
TDate first_date;// data relativa alla prima riga di pagamento
|
||||||
for (int pp = rs.first(); pp <= lst; pp = rs.succ(pp))
|
int pp;
|
||||||
|
for (pp = rs.first(); pp <= lst; pp = rs.succ(pp))
|
||||||
{
|
{
|
||||||
const TRiga_partite& sum = p.riga(pp);
|
const TRiga_partite& sum = p.riga(pp);
|
||||||
TDate current_date(sum.get_date(PART_DATAPAG));
|
TDate current_date(sum.get_date(PART_DATAPAG));
|
||||||
|
@ -16,10 +16,10 @@
|
|||||||
|
|
||||||
class TStampaSol_application: public TSkeleton_application
|
class TStampaSol_application: public TSkeleton_application
|
||||||
{
|
{
|
||||||
TSol_mask *_msk;
|
|
||||||
TSol_form *_form;
|
|
||||||
TString _lingua_ditta;
|
TString _lingua_ditta;
|
||||||
|
TSol_mask *_msk;
|
||||||
bool _gesval;
|
bool _gesval;
|
||||||
|
TSol_form *_form;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool create();
|
virtual bool create();
|
||||||
|
16
sc/sc2401.h
16
sc/sc2401.h
@ -133,23 +133,27 @@ class TESSL_form : public TForm
|
|||||||
|
|
||||||
TCursor* _cursore;
|
TCursor* _cursore;
|
||||||
TTotalizer _totali;
|
TTotalizer _totali;
|
||||||
TDecoder _causali; // Decodificatore dei codici causale
|
|
||||||
TDecoder _valute; // Decodificatore dei codici valuta
|
|
||||||
TDecoder _movimenti; // Decodificatore delle descrizioni dei movimenti
|
|
||||||
|
|
||||||
|
|
||||||
TString _lingua;
|
TString _lingua;
|
||||||
TDate _dlo, _dls, _dir;
|
TDate _dlo, _dls, _dir;
|
||||||
|
|
||||||
|
int _fincatura; // 0 = nessuna, 1 = testo, 2 = grafica
|
||||||
|
char _who;
|
||||||
|
|
||||||
int _giorni_rischio;
|
int _giorni_rischio;
|
||||||
|
word _maxtot; // numero massimo di totali
|
||||||
|
|
||||||
bool _in_valuta;
|
bool _in_valuta;
|
||||||
bool _stampa_esp;
|
bool _stampa_esp;
|
||||||
bool _stampa_saldo; // Stampa il saldo di ogni partita
|
bool _stampa_saldo; // Stampa il saldo di ogni partita
|
||||||
|
|
||||||
int _fincatura; // 0 = nessuna, 1 = testo, 2 = grafica
|
|
||||||
word _num_rip; // numero di righe usate per i riporti
|
word _num_rip; // numero di righe usate per i riporti
|
||||||
word _total_rows; // numero di righe usate per i totali
|
word _total_rows; // numero di righe usate per i totali
|
||||||
word _maxtot; // numero massimo di totali
|
|
||||||
char _who;
|
TDecoder _causali; // Decodificatore dei codici causale
|
||||||
|
TDecoder _movimenti; // Decodificatore delle descrizioni dei movimenti
|
||||||
|
TDecoder _valute; // Decodificatore dei codici valuta
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void init_header(const TMask& m);
|
void init_header(const TMask& m);
|
||||||
|
@ -101,7 +101,7 @@ TImporto TConfronta_mask::importo_riga(const TRectype& riga) const
|
|||||||
const TString16 codval = riga.get(PART_CODVAL);
|
const TString16 codval = riga.get(PART_CODVAL);
|
||||||
const bool in_valuta = codval.not_empty(); // Determina valuta
|
const bool in_valuta = codval.not_empty(); // Determina valuta
|
||||||
|
|
||||||
real abb = riga.get(PART_ABBUONI);
|
real abb = riga.get_real(PART_ABBUONI);
|
||||||
if (in_valuta)
|
if (in_valuta)
|
||||||
{
|
{
|
||||||
TCurrency abbval(abb, codval, riga.get_real(PART_CAMBIO));
|
TCurrency abbval(abb, codval, riga.get_real(PART_CAMBIO));
|
||||||
@ -409,4 +409,4 @@ int sc2500(int argc, char** argv)
|
|||||||
TConfronta_saldi app;
|
TConfronta_saldi app;
|
||||||
app.run(argc, argv, TR("Stampa controllo saldi"));
|
app.run(argc, argv, TR("Stampa controllo saldi"));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -564,7 +564,7 @@ bool TForm_EC_editor::edit(char s, pagetype p)
|
|||||||
TString80 caption;
|
TString80 caption;
|
||||||
bool dirty = FALSE;
|
bool dirty = FALSE;
|
||||||
bool other = FALSE;
|
bool other = FALSE;
|
||||||
KEY k;
|
KEY k = K_ESC;
|
||||||
|
|
||||||
if (extra())
|
if (extra())
|
||||||
{
|
{
|
||||||
|
@ -26,17 +26,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __CGLIB01_H
|
#ifndef __CGLIB01_H
|
||||||
#include "..\cg\cglib01.h"
|
#include "../cg/cglib01.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class TSelection_mask : public TMask
|
class TSelection_mask : public TMask
|
||||||
{
|
{
|
||||||
TRelation* _clifo_rel;
|
|
||||||
TCursor* _cli_cur_k1;
|
|
||||||
TCursor* _cli_cur_k2;
|
|
||||||
TCursor* _for_cur_k1;
|
|
||||||
TCursor* _for_cur_k2;
|
|
||||||
|
|
||||||
TCursor_sheet* _cli_sh_k1;
|
TCursor_sheet* _cli_sh_k1;
|
||||||
TCursor_sheet* _cli_sh_k2;
|
TCursor_sheet* _cli_sh_k2;
|
||||||
TCursor_sheet* _for_sh_k1;
|
TCursor_sheet* _for_sh_k1;
|
||||||
@ -44,6 +38,11 @@ class TSelection_mask : public TMask
|
|||||||
|
|
||||||
char _who; // Clienti, fornitori, conti
|
char _who; // Clienti, fornitori, conti
|
||||||
int _key; // 1 = per codice, 2 = per descrizione
|
int _key; // 1 = per codice, 2 = per descrizione
|
||||||
|
TRelation* _clifo_rel;
|
||||||
|
TCursor* _cli_cur_k1;
|
||||||
|
TCursor* _cli_cur_k2;
|
||||||
|
TCursor* _for_cur_k1;
|
||||||
|
TCursor* _for_cur_k2;
|
||||||
|
|
||||||
TAssoc_array _assoc;
|
TAssoc_array _assoc;
|
||||||
bool _all_selected;
|
bool _all_selected;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user