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:
guy 2009-03-02 13:53:32 +00:00
parent 9e99a434fb
commit 15414943ae

View File

@ -14,6 +14,7 @@ protected:
virtual bool on_field_event(TOperable_field& o, TField_event e, long jolly);
public:
int load(const TRectype& head) { return 0; }
TCVM_mask() : TAutomask("vetbcvm") {}
};
@ -30,6 +31,7 @@ class TVE_tab_mod_app : public TTable_module_application
{
protected:
virtual TMask* user_create_mask();
virtual int read(TMask& m);
public:
const TString& table_name() const;
@ -38,7 +40,7 @@ public:
const TString& TVE_tab_mod_app::table_name() const
{
TRelation* rel = get_relation();
return get_tmp_string() = rel->lfile().name();
return rel->curr().get("COD");
}
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)
{
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);
}