Corretti errori CINZIA

git-svn-id: svn://10.65.10.50/trunk@3574 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1996-09-12 13:11:02 +00:00
parent f9b938f706
commit 8a0578bf47
2 changed files with 10 additions and 26 deletions

View File

@ -37,7 +37,8 @@ TSaldaconto_app::TSaldaconto_app()
{}
bool TSaldaconto_app::create()
{
{
open_files(LF_TAB, LF_TABCOM, LF_CLIFO, 0);
open_files(LF_PARTITE, LF_SCADENZE, LF_PAGSCA, 0);
_msk = new TMask("sc0100a");

View File

@ -947,33 +947,16 @@ bool TGame_mask::edit_fattura(TPartita& p, int nriga)
bool TGame_mask::prima_nota(const long nreg)
{
bool ok = TRUE;
/* Attualmente tutte le mnodifiche vengono salvata subito
if (_changed)
{
ok = yesno_box("Registrare le parite modificate?");
if (ok)
{
app().partite().rewrite();
_changed = FALSE; // Resetta flag di cambiato
}
}
*/
if (ok)
{
app().partite().destroy(); // Distrugge tutte le partite in memoria
app().partite().destroy(); // Distrugge tutte le partite in memoria
const char* const pn = "cg2 -0";
TExternal_app prima_nota(pn);
TString numreg; numreg << "1|" << nreg;
TMessage msg(pn, MSG_LN, numreg);
msg.send(); // Messaggio di collegamento al movimento nreg
ok = prima_nota.run() == 0; // Lancia la prima nota
const char* const pn = "cg2 -0";
TExternal_app prima_nota(pn);
TString numreg; numreg << "1|" << nreg;
TMessage msg(pn, MSG_LN, numreg);
msg.send(); // Messaggio di collegamento al movimento nreg
bool ok = prima_nota.run() == 0; // Lancia la prima nota
fill_partite(); // Rilegge partite
}
fill_partite(); // Rilegge partite
return ok;
}