Eliminati moduli obsoleti da modaut

Corretta gestione permessi di lettura in TRelapp: erano confusi con quelli di scrittura!

git-svn-id: svn://10.65.10.50/branches/R_10_00@22826 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2013-03-15 11:03:47 +00:00
parent eb4a944ebc
commit eb11b89721
7 changed files with 52 additions and 49 deletions

View File

@ -706,6 +706,7 @@ bool TApplication::get_spotlite_path(TFilename& path) const
ok = path.exist(); // Controlla se esiste gia'
if (!ok)
{
make_dir("servers"); // Assicuiramoci che esista la cartella servers
TConfig ini("servers/servers.ini", "Spotlite");
for (int i = 0; ; i++)
{
@ -795,13 +796,16 @@ bool TApplication::get_next_mail(TToken_string& to, TToken_string& cc, TToken_st
bool TSkeleton_application::create()
{
dispatch_e_menu(BAR_ITEM_ID(1));
return TApplication::create();
// dispatch_e_menu(BAR_ITEM_ID(1));
// return TApplication::create();
const bool ok = TApplication::create();
if (ok) dispatch_e_menu(BAR_ITEM_ID(1));
return ok;
}
bool TSkeleton_application::menu(MENU_TAG tag)
{
if (tag == BAR_ITEM_ID(1))
main_loop();
return FALSE;
return false;
}

View File

@ -1,48 +1,48 @@
ba Base
ct CUP Tracciabilita'
ct CUP Tracciabilità
np No Profit
fe Comunicazione dati rilevanti
77 Gestione Percipienti
iv Gestione IVA
se Contabilita' Semplificata
cg Contabilita' Generale
ci Contabilita' Industriale
fe Spesometro
77 Percipienti
?? Modulo vario ex- Gestione IVA
se Contabilità Semplificata
cg Contabilità Generale
ci Contabilità Industriale
dc Dichiarazione CONAI
tp Trasferimento Pack
ce Cespiti
rs Report di Stampa
sc Saldaconto
sr Servers multiutenza
cm Gestione Commesse
cm Commesse
li Lettere d'Intento
at AVIS Provinciale
in Elenchi Intracomunitari
po Gestione Penna Ottica
po Penna Ottica
ab Analisi di bilancio
gv Gestione versamenti F24
ca Contabilita' Analitica
vd Vendita al dettaglio
?? Modulo vario ex-gv Gestione versamenti F24
ca Contabilità Analitica
?? Modulo vario ex-vd Vendita al dettaglio
ic IVA per cassa
pe Preventivazione
ep Effetti Passivi
tc Trasferimento altre Contabilita'
tc Trasferimento altre Contabilità
fd Firma digitale
co Gestione cooperative
?? Modulo vario ex-co Gestione cooperative
av AVIS Assist
ve Vendite
mg Magazzino
or Ordini
ef Gestione Effetti
ef Effetti
db Distinta Base
pr Provvigioni Agenti
cu Codice Unico Progetto
?? Modulo vario ex-cu Codice Unico Progetto
sv Statistiche di Vendita
mr Manufacturing Resource Planning
ec Collegamento E-commerce
lv Gestione Lavanderie
l1 Gestione Lavanderie Ext1
l2 Gestione Lavanderie 02
l3 Gestione Lavanderie Ext3
l4 Gestione Lavanderie Ext4
ha Hardy Caffe'
?? Modulo vario ex-ec Collegamento E-commerce
lv Lavanderie
?? Modulo vario ex-l1 Gestione Lavanderie Ext1
l2 Lavanderie 02
?? Modulo vario ex-l3 Gestione Lavanderie Ext3
?? Modulo vario ex-l4 Gestione Lavanderie Ext4
ha Hardy Caffè
ri Riclassificazioni

View File

@ -1266,9 +1266,9 @@ void TMask::read_page(
#ifdef DBG
const int pf = fields();
TString e;
e << "Campo non riconosciuto alla posizione " << pf << ": " << scanner.key();
e << "Campo non riconosciuto nella pagina " << title << " alla posizione " << pf << ": " << scanner.key();
if (pf > 0)
e << "\nL'ultimo riconosciuto e' " << fld(pf-1).dlg() << ": " << fld(pf-1).prompt();
e << "\nL'ultimo riconosciuto è " << fld(pf-1).dlg() << ": " << fld(pf-1).prompt();
error_box(e);
#endif
while (scanner.popkey() != "EN");

View File

@ -6,7 +6,7 @@
#define NPAUT 2
#define FEAUT 3
#define M77AUT 4
#define GIAUT 5
// #define GIAUT 5 Obsoleta Gestione IVA implicita in CG (7)
#define SEAUT 6
#define CGAUT 7
#define CIAUT 8
@ -22,30 +22,30 @@
#define INAUT 18
#define POAUT 19
#define ABAUT 20
#define GVAUT 21
//#define GVAUT 21
#define CAAUT 22
#define VDAUT 23
//#define VDAUT 23
#define ICAUT 24
#define PEAUT 25
#define EPAUT 26
#define TCAUT 27
#define FDAUT 28
#define COAUT 29
//#define COAUT 29
#define VEAUT 31
#define MGAUT 32
#define ORAUT 33
#define EFAUT 34
#define DBAUT 35
#define PRAUT 36
#define CUAUT 37
//#define CUAUT 37 Obsoleta CUP implicita in CT (1)
#define SVAUT 38
#define MRAUT 39
#define ECAUT 40
#define LVAUT 41
#define L1AUT 42
//#define L1AUT 42
#define L2AUT 43
#define L3AUT 44
#define L4AUT 45
//#define L3AUT 44
//#define L4AUT 45
#define HAAUT 46
#define RIAUT 47
#define ENDAUT 48

View File

@ -417,14 +417,14 @@ void TPostman::load_filters()
TAuto_token_string row(80);
// Costruisce il nome dell'applicazione principale
TFilename app(main_app().argv(0));
app.ext("");
app = app.name();
const TApplication& ma = main_app();
TFilename app(ma.argv(0));
app = app.name_only();
for (int a = 1; a < main_app().argc(); a++)
for (int a = 1; a < ma.argc(); a++)
{
row = main_app().argv(a);
if (row[0] != '/')
row = ma.argv(a); row.upper();
if (row[0] != '/' && row[1] != 'I')
app << ' ' << row;
else
break;

View File

@ -271,7 +271,7 @@ bool TRelation_application::can_I_write(const TRelation* rel) const
{ return user_can_write(rel); }
bool TRelation_application::can_I_read(const TRelation* rel) const
{ return user_can_write(rel); }
{ return user_can_read(rel); }
void TRelation_application::set_toolbar()
{
@ -279,23 +279,22 @@ void TRelation_application::set_toolbar()
const bool can_edit_some = can_I_write(NULL);
const bool can_nav = _lnflag == 0 && _curr_transaction != TRANSACTION_LINK;
bool enabsave = can_edit_some;
int pos = _mask->id2pos(DLG_SAVEREC);
if (pos >= 0)
{
bool enabsave=mode != MODE_QUERY;
if (enabsave)
enabsave = can_I_write(get_relation());
enabsave = can_edit_some && (mode != MODE_QUERY) && can_I_write(get_relation());
_mask->fld(pos).enable(enabsave);
}
pos = _mask->id2pos(DLG_DELREC);
if (pos >= 0)
{
bool enabdel = ((mode == MODE_QUERY && can_edit_some) || (mode == MODE_MOD))/* && can_nav*/; // Voglio poter cancellare cg2 da cg3
bool enabdel = can_edit_some && (mode == MODE_QUERY || mode == MODE_MOD);
if (enabdel && mode == MODE_MOD)
{
TRelation& r = *get_relation();
const TRecnotype oldpos = r.lfile().recno();
enabdel = !protected_record(r);
enabdel = enabsave && !protected_record(r) && user_can_delete(&r);
if (r.lfile().recno() != oldpos)
r.lfile().readat(oldpos);
}

View File

@ -2167,7 +2167,7 @@ bool TBook::export_pdf(TFilename& filename, bool signature)
bool ok = (pages() > 0) && main_app().has_module(RSAUT); // Controllo paranoico dei permessi
if (ok)
{
// Evita problemi di aggiornamento del pdf: deve sempre rigeneralo!
// Evita problemi di aggiornamento del pdf: deve sempre rigenerarlo!
if (filename.exist() && !filename.fremove())
return error_box(FR("Impossibile riscrivere %s"), (const char*)filename);