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:
parent
eb4a944ebc
commit
eb11b89721
@ -706,6 +706,7 @@ bool TApplication::get_spotlite_path(TFilename& path) const
|
|||||||
ok = path.exist(); // Controlla se esiste gia'
|
ok = path.exist(); // Controlla se esiste gia'
|
||||||
if (!ok)
|
if (!ok)
|
||||||
{
|
{
|
||||||
|
make_dir("servers"); // Assicuiramoci che esista la cartella servers
|
||||||
TConfig ini("servers/servers.ini", "Spotlite");
|
TConfig ini("servers/servers.ini", "Spotlite");
|
||||||
for (int i = 0; ; i++)
|
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()
|
bool TSkeleton_application::create()
|
||||||
{
|
{
|
||||||
dispatch_e_menu(BAR_ITEM_ID(1));
|
// dispatch_e_menu(BAR_ITEM_ID(1));
|
||||||
return TApplication::create();
|
// 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)
|
bool TSkeleton_application::menu(MENU_TAG tag)
|
||||||
{
|
{
|
||||||
if (tag == BAR_ITEM_ID(1))
|
if (tag == BAR_ITEM_ID(1))
|
||||||
main_loop();
|
main_loop();
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
@ -1,48 +1,48 @@
|
|||||||
ba Base
|
ba Base
|
||||||
ct CUP Tracciabilita'
|
ct CUP Tracciabilità
|
||||||
np No Profit
|
np No Profit
|
||||||
fe Comunicazione dati rilevanti
|
fe Spesometro
|
||||||
77 Gestione Percipienti
|
77 Percipienti
|
||||||
iv Gestione IVA
|
?? Modulo vario ex- Gestione IVA
|
||||||
se Contabilita' Semplificata
|
se Contabilità Semplificata
|
||||||
cg Contabilita' Generale
|
cg Contabilità Generale
|
||||||
ci Contabilita' Industriale
|
ci Contabilità Industriale
|
||||||
dc Dichiarazione CONAI
|
dc Dichiarazione CONAI
|
||||||
tp Trasferimento Pack
|
tp Trasferimento Pack
|
||||||
ce Cespiti
|
ce Cespiti
|
||||||
rs Report di Stampa
|
rs Report di Stampa
|
||||||
sc Saldaconto
|
sc Saldaconto
|
||||||
sr Servers multiutenza
|
sr Servers multiutenza
|
||||||
cm Gestione Commesse
|
cm Commesse
|
||||||
li Lettere d'Intento
|
li Lettere d'Intento
|
||||||
at AVIS Provinciale
|
at AVIS Provinciale
|
||||||
in Elenchi Intracomunitari
|
in Elenchi Intracomunitari
|
||||||
po Gestione Penna Ottica
|
po Penna Ottica
|
||||||
ab Analisi di bilancio
|
ab Analisi di bilancio
|
||||||
gv Gestione versamenti F24
|
?? Modulo vario ex-gv Gestione versamenti F24
|
||||||
ca Contabilita' Analitica
|
ca Contabilità Analitica
|
||||||
vd Vendita al dettaglio
|
?? Modulo vario ex-vd Vendita al dettaglio
|
||||||
ic IVA per cassa
|
ic IVA per cassa
|
||||||
pe Preventivazione
|
pe Preventivazione
|
||||||
ep Effetti Passivi
|
ep Effetti Passivi
|
||||||
tc Trasferimento altre Contabilita'
|
tc Trasferimento altre Contabilità
|
||||||
fd Firma digitale
|
fd Firma digitale
|
||||||
co Gestione cooperative
|
?? Modulo vario ex-co Gestione cooperative
|
||||||
av AVIS Assist
|
av AVIS Assist
|
||||||
ve Vendite
|
ve Vendite
|
||||||
mg Magazzino
|
mg Magazzino
|
||||||
or Ordini
|
or Ordini
|
||||||
ef Gestione Effetti
|
ef Effetti
|
||||||
db Distinta Base
|
db Distinta Base
|
||||||
pr Provvigioni Agenti
|
pr Provvigioni Agenti
|
||||||
cu Codice Unico Progetto
|
?? Modulo vario ex-cu Codice Unico Progetto
|
||||||
sv Statistiche di Vendita
|
sv Statistiche di Vendita
|
||||||
mr Manufacturing Resource Planning
|
mr Manufacturing Resource Planning
|
||||||
ec Collegamento E-commerce
|
?? Modulo vario ex-ec Collegamento E-commerce
|
||||||
lv Gestione Lavanderie
|
lv Lavanderie
|
||||||
l1 Gestione Lavanderie Ext1
|
?? Modulo vario ex-l1 Gestione Lavanderie Ext1
|
||||||
l2 Gestione Lavanderie 02
|
l2 Lavanderie 02
|
||||||
l3 Gestione Lavanderie Ext3
|
?? Modulo vario ex-l3 Gestione Lavanderie Ext3
|
||||||
l4 Gestione Lavanderie Ext4
|
?? Modulo vario ex-l4 Gestione Lavanderie Ext4
|
||||||
ha Hardy Caffe'
|
ha Hardy Caffè
|
||||||
ri Riclassificazioni
|
ri Riclassificazioni
|
||||||
|
@ -1266,9 +1266,9 @@ void TMask::read_page(
|
|||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
const int pf = fields();
|
const int pf = fields();
|
||||||
TString e;
|
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)
|
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);
|
error_box(e);
|
||||||
#endif
|
#endif
|
||||||
while (scanner.popkey() != "EN");
|
while (scanner.popkey() != "EN");
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#define NPAUT 2
|
#define NPAUT 2
|
||||||
#define FEAUT 3
|
#define FEAUT 3
|
||||||
#define M77AUT 4
|
#define M77AUT 4
|
||||||
#define GIAUT 5
|
// #define GIAUT 5 Obsoleta Gestione IVA implicita in CG (7)
|
||||||
#define SEAUT 6
|
#define SEAUT 6
|
||||||
#define CGAUT 7
|
#define CGAUT 7
|
||||||
#define CIAUT 8
|
#define CIAUT 8
|
||||||
@ -22,30 +22,30 @@
|
|||||||
#define INAUT 18
|
#define INAUT 18
|
||||||
#define POAUT 19
|
#define POAUT 19
|
||||||
#define ABAUT 20
|
#define ABAUT 20
|
||||||
#define GVAUT 21
|
//#define GVAUT 21
|
||||||
#define CAAUT 22
|
#define CAAUT 22
|
||||||
#define VDAUT 23
|
//#define VDAUT 23
|
||||||
#define ICAUT 24
|
#define ICAUT 24
|
||||||
#define PEAUT 25
|
#define PEAUT 25
|
||||||
#define EPAUT 26
|
#define EPAUT 26
|
||||||
#define TCAUT 27
|
#define TCAUT 27
|
||||||
#define FDAUT 28
|
#define FDAUT 28
|
||||||
#define COAUT 29
|
//#define COAUT 29
|
||||||
#define VEAUT 31
|
#define VEAUT 31
|
||||||
#define MGAUT 32
|
#define MGAUT 32
|
||||||
#define ORAUT 33
|
#define ORAUT 33
|
||||||
#define EFAUT 34
|
#define EFAUT 34
|
||||||
#define DBAUT 35
|
#define DBAUT 35
|
||||||
#define PRAUT 36
|
#define PRAUT 36
|
||||||
#define CUAUT 37
|
//#define CUAUT 37 Obsoleta CUP implicita in CT (1)
|
||||||
#define SVAUT 38
|
#define SVAUT 38
|
||||||
#define MRAUT 39
|
#define MRAUT 39
|
||||||
#define ECAUT 40
|
#define ECAUT 40
|
||||||
#define LVAUT 41
|
#define LVAUT 41
|
||||||
#define L1AUT 42
|
//#define L1AUT 42
|
||||||
#define L2AUT 43
|
#define L2AUT 43
|
||||||
#define L3AUT 44
|
//#define L3AUT 44
|
||||||
#define L4AUT 45
|
//#define L4AUT 45
|
||||||
#define HAAUT 46
|
#define HAAUT 46
|
||||||
#define RIAUT 47
|
#define RIAUT 47
|
||||||
#define ENDAUT 48
|
#define ENDAUT 48
|
||||||
|
@ -417,14 +417,14 @@ void TPostman::load_filters()
|
|||||||
TAuto_token_string row(80);
|
TAuto_token_string row(80);
|
||||||
|
|
||||||
// Costruisce il nome dell'applicazione principale
|
// Costruisce il nome dell'applicazione principale
|
||||||
TFilename app(main_app().argv(0));
|
const TApplication& ma = main_app();
|
||||||
app.ext("");
|
TFilename app(ma.argv(0));
|
||||||
app = app.name();
|
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);
|
row = ma.argv(a); row.upper();
|
||||||
if (row[0] != '/')
|
if (row[0] != '/' && row[1] != 'I')
|
||||||
app << ' ' << row;
|
app << ' ' << row;
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
|
@ -271,7 +271,7 @@ bool TRelation_application::can_I_write(const TRelation* rel) const
|
|||||||
{ return user_can_write(rel); }
|
{ return user_can_write(rel); }
|
||||||
|
|
||||||
bool TRelation_application::can_I_read(const TRelation* rel) const
|
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()
|
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_edit_some = can_I_write(NULL);
|
||||||
const bool can_nav = _lnflag == 0 && _curr_transaction != TRANSACTION_LINK;
|
const bool can_nav = _lnflag == 0 && _curr_transaction != TRANSACTION_LINK;
|
||||||
|
|
||||||
|
bool enabsave = can_edit_some;
|
||||||
int pos = _mask->id2pos(DLG_SAVEREC);
|
int pos = _mask->id2pos(DLG_SAVEREC);
|
||||||
if (pos >= 0)
|
if (pos >= 0)
|
||||||
{
|
{
|
||||||
bool enabsave=mode != MODE_QUERY;
|
enabsave = can_edit_some && (mode != MODE_QUERY) && can_I_write(get_relation());
|
||||||
if (enabsave)
|
|
||||||
enabsave = can_I_write(get_relation());
|
|
||||||
_mask->fld(pos).enable(enabsave);
|
_mask->fld(pos).enable(enabsave);
|
||||||
}
|
}
|
||||||
pos = _mask->id2pos(DLG_DELREC);
|
pos = _mask->id2pos(DLG_DELREC);
|
||||||
if (pos >= 0)
|
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)
|
if (enabdel && mode == MODE_MOD)
|
||||||
{
|
{
|
||||||
TRelation& r = *get_relation();
|
TRelation& r = *get_relation();
|
||||||
const TRecnotype oldpos = r.lfile().recno();
|
const TRecnotype oldpos = r.lfile().recno();
|
||||||
enabdel = !protected_record(r);
|
enabdel = enabsave && !protected_record(r) && user_can_delete(&r);
|
||||||
if (r.lfile().recno() != oldpos)
|
if (r.lfile().recno() != oldpos)
|
||||||
r.lfile().readat(oldpos);
|
r.lfile().readat(oldpos);
|
||||||
}
|
}
|
||||||
|
@ -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
|
bool ok = (pages() > 0) && main_app().has_module(RSAUT); // Controllo paranoico dei permessi
|
||||||
if (ok)
|
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())
|
if (filename.exist() && !filename.fremove())
|
||||||
return error_box(FR("Impossibile riscrivere %s"), (const char*)filename);
|
return error_box(FR("Impossibile riscrivere %s"), (const char*)filename);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user