Aggiunto recarray.h e modificate le set_notify

git-svn-id: svn://10.65.10.50/trunk@4008 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1996-12-17 12:06:03 +00:00
parent edd3ea61d2
commit 16e977654f
3 changed files with 18 additions and 8 deletions

View File

@ -2,6 +2,10 @@
#include <relation.h> #include <relation.h>
#endif #endif
#ifndef __RECARRAY_H
#include <recarray.h>
#endif
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
// definizione dell'oggetto Effetto con la classe TEffetto // // definizione dell'oggetto Effetto con la classe TEffetto //
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////

View File

@ -119,19 +119,25 @@ bool Creazione_Effetti_da_EC::Gen_Handler(TMask_field& f, KEY k)
bool Creazione_Effetti_da_EC::Gen_Notify(TSheet_field& sheet, int r, KEY k) bool Creazione_Effetti_da_EC::Gen_Notify(TSheet_field& sheet, int r, KEY k)
{ {
if (k == K_CTRL + K_DEL)
return TRUE;
if (k == K_INS)
{
if (app().get_res().is_zero())
{
warning_box("Residuo da ripartire gia' annullato");
return FALSE;
}
else
return TRUE;
}
TToken_string & row = sheet.row(r); TToken_string & row = sheet.row(r);
const real importo(row.get(1)); const real importo(row.get(1));
static real old_rata; static real old_rata;
switch (k) switch (k)
{ {
case K_INS:
if (app().get_res().is_zero())
{
warning_box("Residuo da ripartire gia' annullato");
return FALSE;
}
break;
case K_SPACE: case K_SPACE:
old_rata = importo; old_rata = importo;
break; break;

View File

@ -876,7 +876,7 @@ bool TVariazione_distinte::impdist_notify(TSheet_field& s, int r, KEY key)
{ {
if (s.to_check(key, TRUE)) if (s.to_check(key, TRUE))
calcola_totale(); calcola_totale();
if (key == K_INS) // se si vuole aggiungere una riga alla sheet degli effetti nella distinta if (key == K_CTRL + K_INS) // se si vuole aggiungere una riga alla sheet degli effetti nella distinta
aggiungi(); aggiungi();
return TRUE; return TRUE;
} }