Patch level :4.0 428

Files correlati     :cg7.exe
Ricompilazione Demo : [ ]
Commento            :eliminato problema di voler dare il focus alla prima cella di uno sheet in seconda pagina di una maschera anche se tale cella e' disabilitata! Problema sull'invio a proforma.

sistemato il problema di Acconto/Saldo nel tipo pagamento.


git-svn-id: svn://10.65.10.50/trunk@14091 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2006-06-15 11:56:35 +00:00
parent a96f0de002
commit 8c5240f66e

View File

@ -264,6 +264,7 @@ class TInvioP : public TSkeleton_application
TInvioP_mask* _msk; TInvioP_mask* _msk;
TDate _dataini, _datafin; TDate _dataini, _datafin;
long _nregcosto, _nregpag; long _nregcosto, _nregpag;
bool _chiusa;
real _importo; real _importo;
TConfig* _configfile; TConfig* _configfile;
TAssoc_array _fiscali,_sociali; //array che contengono i conti TAssoc_array _fiscali,_sociali; //array che contengono i conti
@ -291,8 +292,9 @@ protected:
public: public:
const real get_importo() {return _importo;}; const real get_importo() {return _importo;};
const char* get_nregcosto() const {return format("%d", _nregcosto);}; const long get_nregcosto() const {return _nregcosto;};
const char* get_nregpag() const {return format("%d", _nregpag);}; const long get_nregpag() const {return _nregpag;};
const bool get_chiusa() const {return _chiusa;};
const TString& get_vocespesa(const TString& zio) const; const TString& get_vocespesa(const TString& zio) const;
TInvioP_file* apri_file(const char* nome); TInvioP_file* apri_file(const char* nome);
void chiudi_file(TInvioP_file* trasfile); void chiudi_file(TInvioP_file* trasfile);
@ -335,17 +337,20 @@ void TInvioP_file::validate(TCursor& cur,TRecord_text &rec, TToken_string &s, TS
} }
else if (code == "_FLAG") else if (code == "_FLAG")
{ {
const char chiusa = str[0]; const bool chiusa = app().get_chiusa();
valore = (chiusa=='X') ? "S" : "A"; if (chiusa)
valore = "S";
else
valore = "A";
} }
else if (code == "_NREGCOSTO") else if (code == "_NREGCOSTO")
{ {
valore = app().get_nregcosto(); valore.format("%ld", app().get_nregcosto());
} }
else if (code == "_NREGPAG") else if (code == "_NREGPAG")
{ {
valore = app().get_nregpag(); valore.format("%ld", app().get_nregpag());
} }
else if (code == "_IMPORTO") else if (code == "_IMPORTO")
{ {
@ -1073,6 +1078,7 @@ bool TInvioP::i_proforma_pagamenti()
_nregpag = cur.curr().get_long(MOV_NUMREG); _nregpag = cur.curr().get_long(MOV_NUMREG);
_nregcosto = partita.get_long(PART_NREG); _nregcosto = partita.get_long(PART_NREG);
_importo = *cp; _importo = *cp;
_chiusa = partita.get_bool(PART_CHIUSA);
TRecord_text recpag; TRecord_text recpag;
recpag.set_type("G"); recpag.set_type("G");
trasfilepag->autoload(recpag, curpag); trasfilepag->autoload(recpag, curpag);