Aggiunto supporto per flushing cache articoli
git-svn-id: svn://10.65.10.50/branches/R_10_00@22785 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
4f8cb06a5e
commit
13e6a3fa82
@ -289,8 +289,8 @@ public:
|
||||
TArticolo_giacenza_loadable(const TRectype& rec);
|
||||
};
|
||||
|
||||
TArticolo & cached_article(const char * codart);
|
||||
TArticolo_giacenza & cached_article_balances(const char * codart);
|
||||
TArticolo& cached_article(const char* codart);
|
||||
TArticolo_giacenza& cached_article_balances(const char* codart);
|
||||
|
||||
// *******************************
|
||||
// LIBRERIA DI utility del magazzino
|
||||
@ -301,11 +301,11 @@ class TR_automa;
|
||||
|
||||
class TMetachar : public TObject
|
||||
{
|
||||
TR_automa * _au;
|
||||
TR_automa* _au;
|
||||
TString _language;
|
||||
|
||||
protected:
|
||||
void set_language(const char * language); // setta l'automa che ricosce il linguaggio passato
|
||||
void set_language(const char* language); // setta l'automa che ricosce il linguaggio passato
|
||||
void add_tran(int statenum,unsigned char symbol,int next);// aggiunge le transizioni all'automa
|
||||
|
||||
public:
|
||||
|
@ -412,10 +412,14 @@ TCache_articoli::TCache_articoli()
|
||||
set_items_limit(257); // Numero primo!
|
||||
}
|
||||
|
||||
TArticolo & cached_article(const char * codart)
|
||||
TArticolo& cached_article(const char* codart)
|
||||
{
|
||||
HIDDEN TCache_articoli __cache_articoli;
|
||||
|
||||
if (codart == NULL)
|
||||
{
|
||||
__cache_articoli.destroy();
|
||||
codart = "";
|
||||
}
|
||||
return __cache_articoli.art(codart);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user