Patch level : 10.0
Files correlati : ve0 Ricompilazione Demo : [ ] Commento : Aggiunta gestione tabelle di modulo ve git-svn-id: svn://10.65.10.50/trunk@18394 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
9e99a434fb
commit
15414943ae
@ -14,6 +14,7 @@ protected:
|
|||||||
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
int load(const TRectype& head) { return 0; }
|
||||||
TCVM_mask() : TAutomask("vetbcvm") {}
|
TCVM_mask() : TAutomask("vetbcvm") {}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -30,6 +31,7 @@ class TVE_tab_mod_app : public TTable_module_application
|
|||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
virtual TMask* user_create_mask();
|
virtual TMask* user_create_mask();
|
||||||
|
virtual int read(TMask& m);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
const TString& table_name() const;
|
const TString& table_name() const;
|
||||||
@ -38,7 +40,7 @@ public:
|
|||||||
const TString& TVE_tab_mod_app::table_name() const
|
const TString& TVE_tab_mod_app::table_name() const
|
||||||
{
|
{
|
||||||
TRelation* rel = get_relation();
|
TRelation* rel = get_relation();
|
||||||
return get_tmp_string() = rel->lfile().name();
|
return rel->curr().get("COD");
|
||||||
}
|
}
|
||||||
|
|
||||||
TMask* TVE_tab_mod_app::user_create_mask()
|
TMask* TVE_tab_mod_app::user_create_mask()
|
||||||
@ -51,7 +53,7 @@ TMask* TVE_tab_mod_app::user_create_mask()
|
|||||||
int TVE_tab_mod_app::read(TMask& m)
|
int TVE_tab_mod_app::read(TMask& m)
|
||||||
{
|
{
|
||||||
if (table_name() == "CVM")
|
if (table_name() == "CVM")
|
||||||
return ((TCVM_mask&)m).read_mask(*get_realtion());
|
return ((TCVM_mask&)m).load(get_relation()->curr());
|
||||||
return TTable_module_application::read(m);
|
return TTable_module_application::read(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user