*** empty log message ***
git-svn-id: svn://10.65.10.50/trunk@12026 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
86d9da241a
commit
ea15dec6a7
14
ve/sconti.h
14
ve/sconti.h
@ -17,19 +17,19 @@ class TCond_vendita : public TObject
|
|||||||
{
|
{
|
||||||
TString80 _sconto;
|
TString80 _sconto;
|
||||||
TString16 _codiva;
|
TString16 _codiva;
|
||||||
bool _ivarid;
|
|
||||||
real _prezzo;
|
real _prezzo;
|
||||||
real _provv;
|
real _provv;
|
||||||
real _molt_sconto;
|
real _molt_sconto;
|
||||||
TLocalisamfile _condv;
|
|
||||||
TLocalisamfile _rcondv;
|
|
||||||
TLocalisamfile _anamag;
|
|
||||||
TLocalisamfile _sconti;
|
|
||||||
TLocalisamfile _umart;
|
|
||||||
|
|
||||||
TDocumento_mask* _testa;
|
TDocumento_mask* _testa;
|
||||||
TMask* _riga;
|
TMask* _riga;
|
||||||
|
TLocalisamfile _condv;
|
||||||
|
TLocalisamfile _rcondv;
|
||||||
|
TLocalisamfile _sconti;
|
||||||
|
TLocalisamfile _anamag;
|
||||||
|
TLocalisamfile _umart;
|
||||||
|
|
||||||
|
bool _ivarid;
|
||||||
bool _load_mask;
|
bool _load_mask;
|
||||||
|
|
||||||
bool cerca(int tiporicerca);
|
bool cerca(int tiporicerca);
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include "verig.h"
|
#include "verig.h"
|
||||||
|
|
||||||
#include "sconti.h"
|
#include "sconti.h"
|
||||||
#include "..\mg\mglib.h"
|
#include "../mg/mglib.h"
|
||||||
|
|
||||||
void TMotore_application::init_query_mode( TMask& m )
|
void TMotore_application::init_query_mode( TMask& m )
|
||||||
{
|
{
|
||||||
@ -345,7 +345,9 @@ void TMotore_application::sheet2ini(TSheet_field &sheet,TConfig& ini)
|
|||||||
TString16 defpar;
|
TString16 defpar;
|
||||||
TString str(80);
|
TString str(80);
|
||||||
TDocumento_mask &m = (TDocumento_mask &)sheet.mask();
|
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);
|
defpar.format("%d,%d",LF_RIGHEDOC,r);
|
||||||
const TMask * sm = m.riga_mask(r-1);
|
const TMask * sm = m.riga_mask(r-1);
|
||||||
@ -441,7 +443,7 @@ void TMotore_application::ini2mask(TConfig& ini, TMask& msk, bool query)
|
|||||||
val++;
|
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();
|
TString s = esc(val); s.rtrim();
|
||||||
int split_pos = s.find('\n');
|
int split_pos = s.find('\n');
|
||||||
@ -465,8 +467,8 @@ void TMotore_application::ini2mask(TConfig& ini, TMask& msk, bool query)
|
|||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (stricmp(key, RDOC_NRIGA) != 0) // Ignora il numero riga ..
|
if (xvt_str_compare_ignoring_case(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_TIPORIGA) != 0) // ... ed il tipo riga
|
||||||
rec.put(key, val);
|
rec.put(key, val);
|
||||||
}
|
}
|
||||||
// solo la insert chiama la post_insert necessaria alla disabilitazione verifichiamo
|
// solo la insert chiama la post_insert necessaria alla disabilitazione verifichiamo
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef __FSTREAM_H
|
#ifndef __INCSTR_H
|
||||||
#include <fstream.h>
|
#include <incstr.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __CHECKS_H
|
#ifndef __CHECKS_H
|
||||||
@ -300,7 +300,6 @@ TMaschera::TMaschera( const TFilename outfile ) : _out( outfile )
|
|||||||
_curline = 1;
|
_curline = 1;
|
||||||
_curpage = 1;
|
_curpage = 1;
|
||||||
_pageopen = FALSE;
|
_pageopen = FALSE;
|
||||||
bool _groupopen = FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TMaschera::outline( const TString& s, const TString& prefix, const char sep )
|
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 )
|
void TMask_generator::carica_tabella( const TFilename& fn, TString_array& tabella )
|
||||||
{
|
{
|
||||||
TScanner in( fn );
|
TScanner in( fn );
|
||||||
TToken_string line = in.line( );
|
TToken_string line(in.line());
|
||||||
while( line.not_empty( ) )
|
while( line.not_empty( ) )
|
||||||
{ // Attacca tutte le righe che finiscono con §
|
{ // Attacca tutte le righe che finiscono con §
|
||||||
while ( line.right( 1 ) == "§" )
|
while ( line.right( 1 ) == "§" )
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
|
|
||||||
class TGlossario_application : public TRelation_application
|
class TGlossario_application : public TRelation_application
|
||||||
{
|
{
|
||||||
TRelation* _rel;
|
|
||||||
TMask* _msk;
|
TMask* _msk;
|
||||||
|
TRelation* _rel;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool user_create();
|
virtual bool user_create();
|
||||||
|
@ -86,20 +86,22 @@ TRectype& TRDocisamfile::curr() const
|
|||||||
class TDocumento_form : public TForm
|
class TDocumento_form : public TForm
|
||||||
{
|
{
|
||||||
static TDocumento_form* _form;
|
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
|
TRelation &_firmrel; // relazione di gestione dei dati della ditta corrente
|
||||||
TString _module; // codice del modulo di carta associato a questo al form
|
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
|
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
|
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.
|
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 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
|
// il secondo il n.ro di decimali per importi in lire ed il terzo il n.ro
|
||||||
// di decimali per gli importi in valuta
|
// 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:
|
// I gruppi sono cosi' predefiniti:
|
||||||
// PRI_DECIMALS corrisponde al gruppo 29
|
// PRI_DECIMALS corrisponde al gruppo 29
|
||||||
// QTA_DECIMALS corrisponde al gruppo 30
|
// 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)
|
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;
|
_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)
|
// costruttore per stampa lista documenti (uso convenzionale dei forms)
|
||||||
TDocumento_form::TDocumento_form(const char* form, TRelation& rel)
|
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;
|
_cli_loaded= FALSE;
|
||||||
_sorted_cur = new TSorted_cursor(relation(), "PROVV|ANNO|CODNUM|STATO|DATADOC|NDOC");
|
_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
|
// stampa tutte le righe
|
||||||
TPrint_section& body = section('B');
|
TPrint_section& body = section('B');
|
||||||
TPrint_section& foot = section('F');
|
// TPrint_section& foot = section('F'); // qui verificare
|
||||||
TPrint_section* sect = exist('B', last_page);
|
TPrint_section* sect = exist('B', last_page);
|
||||||
TString last_section;
|
TString last_section;
|
||||||
|
|
||||||
@ -922,7 +924,9 @@ bool TDocumento_form::validate(TForm_item &cf, TToken_string &s)
|
|||||||
cf.set(descrizione);
|
cf.set(descrizione);
|
||||||
TParagraph_string p(descrizione, cf.width());
|
TParagraph_string p(descrizione, cf.width());
|
||||||
const int h = cf.height();
|
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);
|
// cf.put_paragraph(descrizione);
|
||||||
// Setta l'altezza effettiva del body, per evitare sprechi di righe
|
// Setta l'altezza effettiva del body, per evitare sprechi di righe
|
||||||
cf.section().set_height(p.empty() ? 1 : i);
|
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
|
ret= skip; // il documento viene saltato
|
||||||
break;
|
break;
|
||||||
case K_ESC:
|
case K_ESC:
|
||||||
|
default:
|
||||||
ret= cancel; // la stampa viene interrotta
|
ret= cancel; // la stampa viene interrotta
|
||||||
break;
|
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 TStampaDoc_application::range_handler(TMask_field& f, KEY key)
|
||||||
{
|
{
|
||||||
bool rt = TRUE;
|
bool rt = TRUE;
|
||||||
TMask& m = f.mask();
|
|
||||||
if (key == K_TAB && f.focusdirty())
|
if (key == K_TAB && f.focusdirty())
|
||||||
{
|
{
|
||||||
const long lim_sup = atol(f.get());
|
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
|
const bool riep = argc == 4 && argv[2][0] == 'L'; // Lista documenti
|
||||||
a.run(argc, argv, riep ? TR("Lista documenti") : TR("Stampa documenti"));
|
a.run(argc, argv, riep ? TR("Lista documenti") : TR("Stampa documenti"));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -317,4 +317,4 @@ int ve5400(int argc, char* argv[])
|
|||||||
TArchive_doc a;
|
TArchive_doc a;
|
||||||
a.run(argc, argv, "Invio/Ricezione");
|
a.run(argc, argv, "Invio/Ricezione");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user