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:
alex 2004-04-28 21:07:06 +00:00
parent a8a3641198
commit 86d9da241a
7 changed files with 32 additions and 25 deletions

View File

@ -683,8 +683,8 @@ bool TStampaScadenzario::preprocess_page(int file, int counter)
// totali del mese e lo schema riepilogativo mensile
bool month_changed = _cur_data.month() != datascad.month();
for (int n=1; n<MaxRowsForTotal; n++) reset_row(n);
n = 1;
for (int i=1; i<MaxRowsForTotal; i++) reset_row(i);
int n = 1;
set_row(n++,"");
print_totali(n,month_changed,FALSE);
switch (_tipost)
@ -696,6 +696,9 @@ bool TStampaScadenzario::preprocess_page(int file, int counter)
case altri:
set_page_pcon(n);
break;
case nessuno:
default:
break;
}
_modified=TRUE;
// 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 != gruppo || _cur_co != conto || _cur_codcf != codcf)
{
for (int n=1; n<MaxRowsForTotal; n++) reset_row(n);
n = 1;
for (int i=1; i<MaxRowsForTotal; i++) reset_row(i);
int n = 1;
set_row(n++,"");
print_totali_c(n,FALSE);
if (_tipost == altri)
@ -1160,7 +1163,7 @@ void TStampaScadenzario::print_header()
if (_tipopag != 0)
{
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));
}
@ -1187,7 +1190,7 @@ void TStampaScadenzario::print_header()
if (_tipopag != 0)
{
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));
}

View File

@ -232,7 +232,8 @@ void TStampaScaduto::compute_all(TPartita& p, TBill& bill)
const int lst = rs.last();
int prima_riga_pagamento = -1;
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);
TDate current_date(sum.get_date(PART_DATAPAG));

View File

@ -16,10 +16,10 @@
class TStampaSol_application: public TSkeleton_application
{
TSol_mask *_msk;
TSol_form *_form;
TString _lingua_ditta;
TSol_mask *_msk;
bool _gesval;
TSol_form *_form;
protected:
virtual bool create();

View File

@ -133,23 +133,27 @@ class TESSL_form : public TForm
TCursor* _cursore;
TTotalizer _totali;
TDecoder _causali; // Decodificatore dei codici causale
TDecoder _valute; // Decodificatore dei codici valuta
TDecoder _movimenti; // Decodificatore delle descrizioni dei movimenti
TString _lingua;
TDate _dlo, _dls, _dir;
int _fincatura; // 0 = nessuna, 1 = testo, 2 = grafica
char _who;
int _giorni_rischio;
word _maxtot; // numero massimo di totali
bool _in_valuta;
bool _stampa_esp;
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 _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:
void init_header(const TMask& m);

View File

@ -101,7 +101,7 @@ TImporto TConfronta_mask::importo_riga(const TRectype& riga) const
const TString16 codval = riga.get(PART_CODVAL);
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)
{
TCurrency abbval(abb, codval, riga.get_real(PART_CAMBIO));
@ -409,4 +409,4 @@ int sc2500(int argc, char** argv)
TConfronta_saldi app;
app.run(argc, argv, TR("Stampa controllo saldi"));
return 0;
}
}

View File

@ -564,7 +564,7 @@ bool TForm_EC_editor::edit(char s, pagetype p)
TString80 caption;
bool dirty = FALSE;
bool other = FALSE;
KEY k;
KEY k = K_ESC;
if (extra())
{

View File

@ -26,17 +26,11 @@
#endif
#ifndef __CGLIB01_H
#include "..\cg\cglib01.h"
#include "../cg/cglib01.h"
#endif
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_k2;
TCursor_sheet* _for_sh_k1;
@ -44,6 +38,11 @@ class TSelection_mask : public TMask
char _who; // Clienti, fornitori, conti
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;
bool _all_selected;