Patch level : 2.0 552

Files correlati     : cg3.exe
Ricompilazione Demo : [ ]
Commento            :
CM20042
Il doppio clic sulla riga di una registrazione non mi collega direttamente
alla scrittura di prima nota.


git-svn-id: svn://10.65.10.50/trunk@11373 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2003-08-06 09:58:14 +00:00
parent 347c1d3901
commit 5e7134ef78

View File

@ -1603,10 +1603,8 @@ bool TGrid_control::event_handler(XI_OBJ* itf, XI_EVENT *xiev)
{
if (xiev->v.select.column == 0)
{
#ifndef XI_R4
_cur_rec = rec; // Assegno subito il record corrente
_grid->on_record_button(rec);
#endif
if (_read_only)
refused = TRUE;
}
@ -2505,25 +2503,29 @@ void TMastrini_grid::on_grid_button()
void TMastrini_grid::on_record_button(long rec)
{
TWait_cursor hourglass;
const TRectype& testata = _mastrino.testata(rec);
TString text;
text << "1|" << testata.get(MOV_NUMREG);
const char* const appname = "cg2 -0";
TMessage pn(appname, MSG_LN, text);
pn.send();
TExternal_app a(appname);
a.run();
mask().set_focus();
bool refresh = testata.edit(); // Nuovo metodo bello ed elegante
TMailbox mail;
if (mail.next_s(MSG_LN) != NULL)
if (!refresh) // Vecchio modo brutto ed obsoleto da rimuovere
{
if (yesno_box(TR("Si desidera aggiornare il mastrino?")))
reread();
}
TString text;
text << "1|" << testata.get(MOV_NUMREG);
const char* const appname = "cg2 -0";
TMessage pn(appname, MSG_LN, text);
pn.send();
TExternal_app a(appname);
a.run();
mask().set_focus();
TMailbox mail;
refresh = mail.next_s(MSG_LN) != NULL;
}
if (refresh && yesno_box(TR("Si desidera aggiornare il mastrino?")))
reread();
}
// Posso ridimensionare solo le descrizioni, le altre devono rimanere fisse per