Patch level : 10.0

Files correlati     : ve0
Ricompilazione Demo : [ ]
Commento            :
Reso const il metodo cached_numerazione()


git-svn-id: svn://10.65.10.50/trunk@17391 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2008-10-08 12:39:45 +00:00
parent b83d63030b
commit 72ae22af4c
5 changed files with 8 additions and 7 deletions

View File

@ -314,6 +314,8 @@ bool TDeletedoc_app::create()
make_dir(_tmp_dir); make_dir(_tmp_dir);
_tmp_dir.insert("%"); // Add % sign _tmp_dir.insert("%"); // Add % sign
// Guy says: NON ESISTE UNO STATO ELIMINABILE VALIDO PER TUTTI I DOCUMENTI!!!!!!!!!!!!!!!!!!
// Quanto segue è completamente ERRATO ed impensabile da usare.
TTable std("%STD"); TTable std("%STD");
std.last(); // Reperisce lo stato eliminabile std.last(); // Reperisce lo stato eliminabile
_last_std = std.get("CODTAB"); _last_std = std.get("CODTAB");
@ -325,7 +327,7 @@ bool TDeletedoc_app::destroy()
{ {
_tmp_dir=_tmp_dir.sub(1); // Cut out % sign _tmp_dir=_tmp_dir.sub(1); // Cut out % sign
if (_tmp_dir.exist()) if (_tmp_dir.exist())
rmdir(_tmp_dir); xvt_fsys_rmdir(_tmp_dir);
return TSkeleton_application::destroy(); return TSkeleton_application::destroy();
} }

View File

@ -194,7 +194,7 @@ void TIndustriosa_app::get_field(const TDocumento& doc, const TRectype& mov, TCa
if (!n.is_zero()) if (!n.is_zero())
{ {
val = n.stringa(); val = n.stringa();
if (r->num() == LF_MOV && field == MOV_TOTDOC && val[0] == '-') if (val[0] == '-' && r->num() == LF_MOV && strcmp(field, MOV_TOTDOC) == 0)
val.ltrim(1); val.ltrim(1);
} }
else else

View File

@ -366,7 +366,7 @@ public:
}; };
TCodice_numerazione & cached_numerazione(const char * codnum); const TCodice_numerazione& cached_numerazione(const char * codnum);
class TTipo_riga_documento : public TRectype // velib02 class TTipo_riga_documento : public TRectype // velib02
{ {

View File

@ -95,10 +95,9 @@ TCodice_numerazione & TNumerazione_cache::num(const char* key)
return num; return num;
} }
TCodice_numerazione & cached_numerazione(const char * codnum) const TCodice_numerazione& cached_numerazione(const char * codnum)
{ {
HIDDEN TNumerazione_cache __cache_numerazioni; HIDDEN TNumerazione_cache __cache_numerazioni;
return __cache_numerazioni.num(codnum); return __cache_numerazioni.num(codnum);
} }

View File

@ -151,7 +151,7 @@ BEGIN
FLAG "U" FLAG "U"
USE %FRD USE %FRD
INPUT CODTAB PRS_NCAMPOCAL INPUT CODTAB PRS_NCAMPOCAL
DISPLAY "Codice " CODTAB DISPLAY "Codice@10" CODTAB
DISPLAY "Descrizione@50" S0 DISPLAY "Descrizione@50" S0
OUTPUT PRS_NCAMPOCAL CODTAB OUTPUT PRS_NCAMPOCAL CODTAB
OUTPUT PRS_NCAMPOCAL1 S0 OUTPUT PRS_NCAMPOCAL1 S0
@ -165,7 +165,7 @@ BEGIN
USE %FRD KEY 2 USE %FRD KEY 2
INPUT S0 PRS_NCAMPOCAL1 INPUT S0 PRS_NCAMPOCAL1
DISPLAY "Descrizione@50" S0 DISPLAY "Descrizione@50" S0
DISPLAY "Codice " CODTAB DISPLAY "Codice@10" CODTAB
OUTPUT PRS_NCAMPOCAL CODTAB OUTPUT PRS_NCAMPOCAL CODTAB
OUTPUT PRS_NCAMPOCAL1 S0 OUTPUT PRS_NCAMPOCAL1 S0
CHECKTYPE NORMAL CHECKTYPE NORMAL