Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : conversione file f125 rilore git-svn-id: svn://10.65.10.50/branches/R_10_00@22278 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
d8bce2f210
commit
003d4820db
25
ba/bacnv.cpp
25
ba/bacnv.cpp
@ -2318,16 +2318,29 @@ void TConversione_archivi::convert_rilore()
|
||||
TRectype& curr_rec = recset.cursor()->curr();
|
||||
for (bool ok = recset.move_first(); ok; ok = recset.move_next())
|
||||
{
|
||||
const int anno = curr_rec.get_int(RILORE_ANNO);
|
||||
const int mese = curr_rec.get_int(RILORE_MESE);
|
||||
const int giorno = curr_rec.get_int(RILORE_GIORNO);
|
||||
TDate data(giorno, mese, anno);
|
||||
const char tipo = curr_rec.get_char(RILORE_TIPO);
|
||||
|
||||
curr_rec.put(RILORE_DADATA, data);
|
||||
curr_rec.put(RILORE_ADATA, data);
|
||||
if (tipo == 'C')
|
||||
{
|
||||
const int anno = curr_rec.get_int("ANNO");
|
||||
const int mese = curr_rec.get_int("MESE");
|
||||
const int giorno = curr_rec.get_int("GIORNO");
|
||||
TDate data(giorno, mese, anno);
|
||||
|
||||
if (data.ok())
|
||||
{
|
||||
curr_rec.put(RILORE_DADATA, data);
|
||||
curr_rec.put(RILORE_ADATA, data);
|
||||
}
|
||||
}
|
||||
const long idrec = curr_rec.get_long(RILORE_ID);
|
||||
|
||||
//poi deve rimuovere i campi del documento collegato
|
||||
curr_rec.put(RILORE_PROVV, "");
|
||||
curr_rec.put(RILORE_ANNOD, "");
|
||||
curr_rec.put(RILORE_CODNUM, "");
|
||||
curr_rec.put(RILORE_NDOC, "");
|
||||
curr_rec.put(RILORE_IDRIGA, "");
|
||||
|
||||
const int err = recset.cursor()->relation()->rewrite();
|
||||
if (err != NOERR)
|
||||
|
Loading…
x
Reference in New Issue
Block a user