Patch level : 12.00 1375
Files correlati : sc Commento : patch
This commit is contained in:
parent
a5a4510488
commit
47624290b7
1
cd/test/sc1375.txt
Normal file
1
cd/test/sc1375.txt
Normal file
@ -0,0 +1 @@
|
||||
sc2.exe
|
20
cd/test/sc1375a.ini
Normal file
20
cd/test/sc1375a.ini
Normal file
@ -0,0 +1,20 @@
|
||||
[Main]
|
||||
Demo=0
|
||||
[sc2]
|
||||
File(27) = sc2.exe|X
|
||||
Patch = 1375
|
||||
Versione = 21511200
|
||||
|
||||
[sc]
|
||||
Data = 28-11-2024
|
||||
Descrizione = Saldaconto
|
||||
Dischi = 1
|
||||
Moduli = ba,cg
|
||||
OEM =
|
||||
Patch = 1375
|
||||
PostProcess =
|
||||
PreProcess =
|
||||
Prezzo(1) =
|
||||
Prezzo(2) =
|
||||
Versione = 21511200
|
||||
|
BIN
cd/test/sc1375a1.zip
Normal file
BIN
cd/test/sc1375a1.zip
Normal file
Binary file not shown.
@ -349,10 +349,11 @@ public:
|
||||
virtual TRelation* relation() const
|
||||
{ return _relation; }
|
||||
// @cmember Ritorna la <c TCursor> corrente
|
||||
virtual TCursor* cursor() const
|
||||
{ return _cursor; }
|
||||
virtual TCursor* cursor() const { return _cursor; }
|
||||
// @cmember Ritorna la <c TCursor> corrente
|
||||
virtual TSorted_cursor* sorted_cursor() const { return _sorted_cursor ? (TSorted_cursor *) _cursor : NULL; }
|
||||
virtual TCursor* set_cursor(TCursor * c) { safe_delete(_cursor); _cursor = c; return _cursor; }
|
||||
// @cmember Ritorna la <c TCursor> corrente
|
||||
virtual TSorted_cursor* sorted_cursor() const { return _sorted_cursor ? (TSorted_cursor *) _cursor : nullptr; }
|
||||
// @cmember Ritorna la <c TRelation_description> corrente
|
||||
TRelation_description& rel_desc() const;
|
||||
// @cmember Effettua operazioni personalizzate dall'applicazione sul <c TForm_item>
|
||||
|
@ -590,11 +590,14 @@ int TEC_mask::print_one(const char * tipo, const long codice)
|
||||
_form->azzera_totali(); // Azzera totali di fine pagina
|
||||
|
||||
// Filtra solo le partite del cliente selezionato
|
||||
TRectype & fcrec = _form->cursor()->curr();
|
||||
TCursor * c = _form->cursor();
|
||||
TRectype & fcrec = c->curr();
|
||||
TRelation rel(LF_PARTITE);
|
||||
TRectype filter(rel.curr());
|
||||
long savepos = c->pos();
|
||||
long savekey = c->key();
|
||||
|
||||
|
||||
c->setkey(1);
|
||||
fcrec.zero();
|
||||
fcrec.put(CLI_TIPOCF, who());
|
||||
fcrec.put(CLI_CODCF, codice);
|
||||
@ -703,6 +706,8 @@ int TEC_mask::print_one(const char * tipo, const long codice)
|
||||
// f.recordset().new_rec();
|
||||
}
|
||||
}
|
||||
*c = savepos;
|
||||
c->setkey(savekey);
|
||||
}
|
||||
xvtil_statbar_set(nullptr);
|
||||
return printed;
|
||||
|
@ -253,6 +253,17 @@ int TSol_mask::print_one(const char * tipo, const long codice)
|
||||
partite.put(PART_TIPOCF, tipo);
|
||||
partite.put(PART_SOTTOCONTO, codice);
|
||||
|
||||
TCursor * cur = f.cursor();
|
||||
TRectype & fcrec = cur->curr();
|
||||
long savepos = cur->pos();
|
||||
long savekey = cur->key();
|
||||
|
||||
fcrec.zero();
|
||||
fcrec.put(CLI_TIPOCF, who());
|
||||
fcrec.put(CLI_CODCF, codice);
|
||||
cur->setkey(1);
|
||||
cur->read();
|
||||
|
||||
const TRectype& parkur = partite.curr();
|
||||
const TRectype filter(parkur);
|
||||
bool one_printed = false; // booleano di controllo di riuscita della stampa
|
||||
@ -360,6 +371,8 @@ int TSol_mask::print_one(const char * tipo, const long codice)
|
||||
printer().formfeed();
|
||||
}
|
||||
}
|
||||
*cur = savepos;
|
||||
cur->setkey(savekey);
|
||||
return one_printed ? 1 : 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user