From ea15dec6a7a1191a1d4faee2917efd4659dea373 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 28 Apr 2004 21:14:03 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://10.65.10.50/trunk@12026 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ve/sconti.h | 14 +++++++------- ve/ve0100.cpp | 12 +++++++----- ve/ve0300.cpp | 7 +++---- ve/ve0500.cpp | 2 +- ve/ve1100.cpp | 27 ++++++++++++++++----------- ve/ve5400.cpp | 2 +- 6 files changed, 35 insertions(+), 29 deletions(-) diff --git a/ve/sconti.h b/ve/sconti.h index 76a10d3c7..be9d5c75e 100755 --- a/ve/sconti.h +++ b/ve/sconti.h @@ -17,19 +17,19 @@ class TCond_vendita : public TObject { TString80 _sconto; TString16 _codiva; - bool _ivarid; real _prezzo; real _provv; real _molt_sconto; - TLocalisamfile _condv; - TLocalisamfile _rcondv; - TLocalisamfile _anamag; - TLocalisamfile _sconti; - TLocalisamfile _umart; TDocumento_mask* _testa; TMask* _riga; - + TLocalisamfile _condv; + TLocalisamfile _rcondv; + TLocalisamfile _sconti; + TLocalisamfile _anamag; + TLocalisamfile _umart; + + bool _ivarid; bool _load_mask; bool cerca(int tiporicerca); diff --git a/ve/ve0100.cpp b/ve/ve0100.cpp index 73cdad913..1a0a641d2 100755 --- a/ve/ve0100.cpp +++ b/ve/ve0100.cpp @@ -12,7 +12,7 @@ #include "verig.h" #include "sconti.h" -#include "..\mg\mglib.h" +#include "../mg/mglib.h" void TMotore_application::init_query_mode( TMask& m ) { @@ -345,7 +345,9 @@ void TMotore_application::sheet2ini(TSheet_field &sheet,TConfig& ini) TString16 defpar; TString str(80); TDocumento_mask &m = (TDocumento_mask &)sheet.mask(); - for (int r = 1; r <= sheet.items(); r++) + int r; + + for (r = 1; r <= sheet.items(); r++) { defpar.format("%d,%d",LF_RIGHEDOC,r); const TMask * sm = m.riga_mask(r-1); @@ -441,7 +443,7 @@ void TMotore_application::ini2mask(TConfig& ini, TMask& msk, bool query) val++; } - if (stricmp(key, RDOC_DESCR) == 0) // Trattamento speciale per la descrizione + if (xvt_str_compare_ignoring_case(key, RDOC_DESCR) == 0) // Trattamento speciale per la descrizione qui verificare { TString s = esc(val); s.rtrim(); int split_pos = s.find('\n'); @@ -465,8 +467,8 @@ void TMotore_application::ini2mask(TConfig& ini, TMask& msk, bool query) } else - if (stricmp(key, RDOC_NRIGA) != 0) // Ignora il numero riga .. - if (stricmp(key, RDOC_TIPORIGA) != 0) // ... ed il tipo riga + if (xvt_str_compare_ignoring_case(key, RDOC_NRIGA) != 0) // Ignora il numero riga .. + if (xvt_str_compare_ignoring_case(key, RDOC_TIPORIGA) != 0) // ... ed il tipo riga rec.put(key, val); } // solo la insert chiama la post_insert necessaria alla disabilitazione verifichiamo diff --git a/ve/ve0300.cpp b/ve/ve0300.cpp index 0dc5b1665..0a1e14baf 100755 --- a/ve/ve0300.cpp +++ b/ve/ve0300.cpp @@ -11,8 +11,8 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -#ifndef __FSTREAM_H -#include +#ifndef __INCSTR_H +#include #endif #ifndef __CHECKS_H @@ -300,7 +300,6 @@ TMaschera::TMaschera( const TFilename outfile ) : _out( outfile ) _curline = 1; _curpage = 1; _pageopen = FALSE; - bool _groupopen = FALSE; } void TMaschera::outline( const TString& s, const TString& prefix, const char sep ) @@ -1013,7 +1012,7 @@ void TMask_generator::carica_dati_campi( const TFilename& fn, TAssoc_array& a ) void TMask_generator::carica_tabella( const TFilename& fn, TString_array& tabella ) { TScanner in( fn ); - TToken_string line = in.line( ); + TToken_string line(in.line()); while( line.not_empty( ) ) { // Attacca tutte le righe che finiscono con § while ( line.right( 1 ) == "§" ) diff --git a/ve/ve0500.cpp b/ve/ve0500.cpp index 6120f42f5..529e897dd 100755 --- a/ve/ve0500.cpp +++ b/ve/ve0500.cpp @@ -4,8 +4,8 @@ class TGlossario_application : public TRelation_application { - TRelation* _rel; TMask* _msk; + TRelation* _rel; protected: virtual bool user_create(); diff --git a/ve/ve1100.cpp b/ve/ve1100.cpp index 6f31c67f1..3dbda88aa 100755 --- a/ve/ve1100.cpp +++ b/ve/ve1100.cpp @@ -86,20 +86,22 @@ TRectype& TRDocisamfile::curr() const class TDocumento_form : public TForm { static TDocumento_form* _form; - TDocisamfile* _docfile; - TRDocisamfile* _rdocfile; - TSorted_cursor * _sorted_cur; // Valido solo per i form di lista documenti TRelation &_firmrel; // relazione di gestione dei dati della ditta corrente TString _module; // codice del modulo di carta associato a questo al form TString_array _exclude_array; // array di tipi riga e articoli da escludere dalla stampa - TDocumentoEsteso * _doc; // Documento da stampare TAssoc_array _doc_totals; // Assocarray per codice numerazione contenente i totali nel caso di stampa lista documenti - bool _valid, _cli_loaded; // flag che indica se il form e' valido | se l'oggetto cliente č giā stato caricato TString_array _group_decimals; // Array di TToken_string per ogni gruppo definito in GENERAL. // Il primo elelemento della token_string conterra' il numero del gruppo // il secondo il n.ro di decimali per importi in lire ed il terzo il n.ro // di decimali per gli importi in valuta + + TSorted_cursor * _sorted_cur; // Valido solo per i form di lista documenti + TDocisamfile* _docfile; + TRDocisamfile* _rdocfile; + TDocumentoEsteso * _doc; // Documento da stampare + bool _valid, _cli_loaded; // flag che indica se il form e' valido | se l'oggetto cliente č giā stato caricato + // I gruppi sono cosi' predefiniti: // PRI_DECIMALS corrisponde al gruppo 29 // QTA_DECIMALS corrisponde al gruppo 30 @@ -168,7 +170,7 @@ void TDocumento_form::set_doc_ext(TRectype* doc) } TDocumento_form::TDocumento_form(TRectype& doc, TRelation& rel, bool definitiva, bool interattivo, bool aggiuntivo) - : _firmrel(rel), _valid(FALSE), _sorted_cur(NULL), _doc(NULL), _docfile(NULL), _rdocfile(NULL) + : _firmrel(rel), _sorted_cur(NULL), _docfile(NULL), _rdocfile(NULL), _doc(NULL), _valid(FALSE) { _form = this; @@ -238,7 +240,7 @@ TDocumento_form::TDocumento_form(TRectype& doc, TRelation& rel, bool definitiva, // costruttore per stampa lista documenti (uso convenzionale dei forms) TDocumento_form::TDocumento_form(const char* form, TRelation& rel) - : TForm(form), _firmrel(rel), _valid(FALSE), _doc(NULL), _docfile(NULL), _rdocfile(NULL) + : TForm(form), _firmrel(rel), _docfile(NULL), _rdocfile(NULL), _doc(NULL), _valid(FALSE) { _cli_loaded= FALSE; _sorted_cur = new TSorted_cursor(relation(), "PROVV|ANNO|CODNUM|STATO|DATADOC|NDOC"); @@ -319,7 +321,7 @@ void TDocumento_form::print_documento() // stampa tutte le righe TPrint_section& body = section('B'); - TPrint_section& foot = section('F'); +// TPrint_section& foot = section('F'); // qui verificare TPrint_section* sect = exist('B', last_page); TString last_section; @@ -922,7 +924,9 @@ bool TDocumento_form::validate(TForm_item &cf, TToken_string &s) cf.set(descrizione); TParagraph_string p(descrizione, cf.width()); const int h = cf.height(); - for (int i=0; p.get() != NULL && i < h; i++); + int i; + + for (i = 0; p.get() != NULL && i < h; i++); // cf.put_paragraph(descrizione); // Setta l'altezza effettiva del body, per evitare sprechi di righe cf.section().set_height(p.empty() ? 1 : i); @@ -1538,6 +1542,7 @@ behaviour TStampaDoc_application::on_module_change(const TString &modulo, TStrin ret= skip; // il documento viene saltato break; case K_ESC: + default: ret= cancel; // la stampa viene interrotta break; } @@ -1837,7 +1842,7 @@ bool TStampaDoc_application::date2num_handler(TMask_field& f, KEY key) bool TStampaDoc_application::range_handler(TMask_field& f, KEY key) { bool rt = TRUE; - TMask& m = f.mask(); + if (key == K_TAB && f.focusdirty()) { const long lim_sup = atol(f.get()); @@ -2063,4 +2068,4 @@ int ve1100(int argc, char* argv[]) const bool riep = argc == 4 && argv[2][0] == 'L'; // Lista documenti a.run(argc, argv, riep ? TR("Lista documenti") : TR("Stampa documenti")); return 0; -} \ No newline at end of file +} diff --git a/ve/ve5400.cpp b/ve/ve5400.cpp index b2c9d372b..d23313036 100755 --- a/ve/ve5400.cpp +++ b/ve/ve5400.cpp @@ -317,4 +317,4 @@ int ve5400(int argc, char* argv[]) TArchive_doc a; a.run(argc, argv, "Invio/Ricezione"); return 0; -} \ No newline at end of file +}