Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : git-svn-id: svn://10.65.10.50/branches/R_10_00@22575 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
bc38b3776a
commit
1dd55b2e91
@ -295,6 +295,6 @@ const TDate& fnc_max(const TDate& a, const TDate& b);
|
|||||||
const char* itom(int month);
|
const char* itom(int month);
|
||||||
const char* itow(int dayofweek);
|
const char* itow(int dayofweek);
|
||||||
|
|
||||||
const TDate botime(0,0,0), eotime(31,12,2050);
|
const TDate botime(0,0,0), eotime(31,12,3000);
|
||||||
|
|
||||||
#endif // __DATE_H
|
#endif // __DATE_H
|
||||||
|
@ -22,6 +22,18 @@ TRelation_application::TRelation_application()
|
|||||||
TRelation_application::~TRelation_application()
|
TRelation_application::~TRelation_application()
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
bool TRelation_application::has_filtered_cursor() const
|
||||||
|
{
|
||||||
|
bool yes = filtered();
|
||||||
|
if (yes)
|
||||||
|
{
|
||||||
|
const TEdit_field& f = get_search_field();
|
||||||
|
yes = f.browse() != NULL;
|
||||||
|
}
|
||||||
|
return yes;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TCursor& TRelation_application::get_filtered_cursor() const
|
TCursor& TRelation_application::get_filtered_cursor() const
|
||||||
{
|
{
|
||||||
const TEdit_field& f = get_search_field();
|
const TEdit_field& f = get_search_field();
|
||||||
@ -278,7 +290,7 @@ void TRelation_application::set_toolbar()
|
|||||||
pos = _mask->id2pos(DLG_DELREC);
|
pos = _mask->id2pos(DLG_DELREC);
|
||||||
if (pos >= 0)
|
if (pos >= 0)
|
||||||
{
|
{
|
||||||
bool enabdel = ((mode == MODE_QUERY && can_edit_some) || (mode == MODE_MOD)) && can_nav;
|
bool enabdel = ((mode == MODE_QUERY && can_edit_some) || (mode == MODE_MOD))/* && can_nav*/; // Voglio poter cancellare cg2 da cg3
|
||||||
if (enabdel && mode == MODE_MOD)
|
if (enabdel && mode == MODE_MOD)
|
||||||
{
|
{
|
||||||
TRelation& r = *get_relation();
|
TRelation& r = *get_relation();
|
||||||
|
@ -105,8 +105,7 @@ private:
|
|||||||
// @cmember:(INTERNAL) Permette di autonumerare un record
|
// @cmember:(INTERNAL) Permette di autonumerare un record
|
||||||
bool autonum(TMask* m, bool rec);
|
bool autonum(TMask* m, bool rec);
|
||||||
// @cmember:(INTERNAL) Controlla se il <c TCursor> ha un filtro
|
// @cmember:(INTERNAL) Controlla se il <c TCursor> ha un filtro
|
||||||
virtual bool has_filtered_cursor() const
|
virtual bool has_filtered_cursor() const;
|
||||||
{ return filtered(); }
|
|
||||||
virtual TCursor& get_filtered_cursor() const;
|
virtual TCursor& get_filtered_cursor() const;
|
||||||
|
|
||||||
// @cmember:(INTERNAL) Sistema il bottone ricerca se necessario
|
// @cmember:(INTERNAL) Sistema il bottone ricerca se necessario
|
||||||
|
Loading…
x
Reference in New Issue
Block a user