Correzione MI3541.
git-svn-id: svn://10.65.10.50/trunk@4218 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
4067e2329b
commit
0f86adfeae
@ -323,6 +323,7 @@ TTransfer_file::TTransfer_file(char scelta)
|
|||||||
_tot_rec = 0L;
|
_tot_rec = 0L;
|
||||||
_numreg_p = 0L;
|
_numreg_p = 0L;
|
||||||
_numreg_piva = 0L;
|
_numreg_piva = 0L;
|
||||||
|
_scelta = scelta;
|
||||||
_control_rec = new TFixed_string(__dep, LEN_REC_HEAD);
|
_control_rec = new TFixed_string(__dep, LEN_REC_HEAD);
|
||||||
if (scelta == 'S')
|
if (scelta == 'S')
|
||||||
_trc.leggi_modulo(tracciato_AS);
|
_trc.leggi_modulo(tracciato_AS);
|
||||||
@ -4179,7 +4180,7 @@ void TTransfer_file::write_testata_movimenti(TString& record)
|
|||||||
if (fname == MOV_DESCR)
|
if (fname == MOV_DESCR)
|
||||||
{
|
{
|
||||||
field.trim();
|
field.trim();
|
||||||
if (field.empty())
|
if (field.empty() && _scelta == 'S')
|
||||||
field = descr;
|
field = descr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5017,22 +5018,23 @@ void TTransfer_file::write_pagsca(TString& record)
|
|||||||
void TMappa_trc::leggi_modulo(const char* tracciato)
|
void TMappa_trc::leggi_modulo(const char* tracciato)
|
||||||
{
|
{
|
||||||
TScanner s(tracciato);
|
TScanner s(tracciato);
|
||||||
TString16 key;
|
TString16 key,sigla;
|
||||||
TToken_string record;
|
|
||||||
|
|
||||||
while (s.ok())
|
while (s.ok())
|
||||||
{
|
{
|
||||||
record = s.line();
|
const TString& line = s.line();
|
||||||
|
if (line[0] == '#') continue; //Perche' e' un commento
|
||||||
if (record.mid(0,1) == "#") continue; //Perche' e' un commento
|
|
||||||
|
TToken_string* record = new TToken_string(line);
|
||||||
TString sigla = record.get(0);
|
sigla = record->get(0);
|
||||||
long numrec = record.get_long(1);
|
long numrec = record->get_long(1);
|
||||||
key.format("%2s%d", (const char*)sigla,numrec);
|
key.format("%2s%d", (const char*)sigla,numrec);
|
||||||
|
|
||||||
add(key, record);
|
add(key, record);
|
||||||
}
|
}
|
||||||
|
#ifdef DBG
|
||||||
long item = items();
|
long item = items();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int TMappa_trc::from(const char* key)
|
int TMappa_trc::from(const char* key)
|
||||||
|
@ -194,6 +194,7 @@ class TTransfer_file
|
|||||||
TString _SCAnumpart,_SCAnumpart_p;
|
TString _SCAnumpart,_SCAnumpart_p;
|
||||||
real _imp,_impval;
|
real _imp,_impval;
|
||||||
bool _esiste_pagsca;
|
bool _esiste_pagsca;
|
||||||
|
char _scelta;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Inizializza l'indice leggendo il record di controllo
|
// Inizializza l'indice leggendo il record di controllo
|
||||||
@ -287,7 +288,7 @@ public:
|
|||||||
void close ();
|
void close ();
|
||||||
bool exist() const { return _trasfer != NULL; }
|
bool exist() const { return _trasfer != NULL; }
|
||||||
|
|
||||||
void setta_sistema(char scelta);
|
void setta_sistema(char scelta) ;
|
||||||
|
|
||||||
long get_pos(const char* key);
|
long get_pos(const char* key);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user