Correzione MI2318 + indentazione.

git-svn-id: svn://10.65.10.50/trunk@4250 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1997-04-02 11:03:15 +00:00
parent a8d4d9d952
commit e8713a4f6d

View File

@ -109,7 +109,7 @@ protected:
bool sheet2mask(); bool sheet2mask();
public: public:
TDate _inizioEs,_fineEs; //TDate _inizioEs,_fineEs;
int date2esc(const TDate& d); int date2esc(const TDate& d);
void ricerca_clifo(); void ricerca_clifo();
@ -704,10 +704,10 @@ bool TMastrini_application::data_inizio(TMask_field& f, KEY k)
if (anno == 0) if (anno == 0)
{ {
if (data == botime) if (data == botime)
{ return f.error_box("La data deve essere obbligatoriamente indicata");
f.error_box("La data deve essere obbligatoriamente indicata");
return FALSE; if (app().date2esc(data) == 0)
} return f.error_box("La data indicata non appartiene ad alcun esercizio");
else else
app()._data_ini = data; app()._data_ini = data;
} }
@ -747,21 +747,20 @@ bool TMastrini_application::data_fine(TMask_field& f, KEY k)
if (annoes == 0) if (annoes == 0)
{ {
if (data == botime) if (data == botime)
{ return f.error_box("La data deve essere obbligatoriamente indicata");
f.error_box("La data deve essere obbligatoriamente indicata");
return FALSE;
}
app()._anno_ghost = app().date2esc(data_ini); app()._anno_ghost = app().date2esc(data_ini);
app()._inizioes = app()._inizioEs; if (app()._anno_ghost == 0)
return f.error_box("La data indicata non appartiene ad alcun esercizio");
//app()._inizioes = app()._inizioEs;
if (data < app()._inizioEs || data > app()._fineEs) //if (data < app()._inizioEs || data > app()._fineEs)
{ //{
f.error_box("La data non appartiene all'esercizio indicato"); // f.error_box("La data non appartiene all'esercizio indicato");
return FALSE; // return FALSE;
} //}
else //else
app()._data_fine = data; app()._data_fine = data;
} }