Migliorata rilevazione cambio ditta nel menu principale

git-svn-id: svn://10.65.10.50/branches/R_10_00@22754 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2012-10-26 09:11:40 +00:00
parent d8d92f48c7
commit b4692685a8
8 changed files with 24 additions and 36 deletions

View File

@ -1337,10 +1337,10 @@ bool TMenu_application::copy_setup(const TString& remote_path)
TFilename strsrc, strdst; TFilename strsrc, strdst;
FOR_EACH_ARRAY_ROW (ar, i, row) FOR_EACH_ARRAY_ROW (ar, i, row)
{ {
const char* n = strsrc.name();
if (xvt_str_compare_ignoring_case(n, "Thumbs.db") == 0)
continue;
strsrc = *row; strsrc = *row;
const TFixed_string n = strsrc.name();
if (n.blank() || n.compare("Thumbs.db", -1, true) == 0)
continue;
strdst = local_setupdir; strdst = local_setupdir;
strdst.add(n); strdst.add(n);
//se la copia dei files si inchioda esce //se la copia dei files si inchioda esce

View File

@ -1040,8 +1040,7 @@ bool TSpidey_mask::stop_run(KEY k)
if (ADVANCED_GRAPHICS) if (ADVANCED_GRAPHICS)
{ {
const int divider = 8; const int divider = 8;
const WINDOW window[4] = { win(), dlg2win(101), const WINDOW window[4] = { win(), dlg2win(101), dlg2win(102), dlg2win(103) };
dlg2win(102), dlg2win(103) };
XVT_IMAGE image[4]; memset(image, 0, sizeof(image)); XVT_IMAGE image[4]; memset(image, 0, sizeof(image));
int i; int i;
for (i = 0; i < 4; i++) for (i = 0; i < 4; i++)

View File

@ -333,6 +333,12 @@ void TBook_window::erode_antipa()
xvt_vobj_destroy(_ctrl); xvt_vobj_destroy(_ctrl);
_ctrl = NULL_WIN; _ctrl = NULL_WIN;
enable_options_menu(true); // Riabilita le opzioni enable_options_menu(true); // Riabilita le opzioni
// Controlla se qualche simpaticone ha cambiato ditta a nostra insaputa
const long dt = main_app().get_firm();
const long di = ini_get_int(CONFIG_INSTALL, "Main", "Firm");
if (di > 0 && dt > 0 && di != dt)
main_app().set_firm(di);
} }
} }
@ -722,7 +728,7 @@ bool TOutlook_mask::on_field_event(TOperable_field& o, TField_event e, long joll
{ {
if (mi.is_submenu()) if (mi.is_submenu())
{ {
if (!_tree.expanded()) if (!_tree.expanded() || mi.child_submenu()->query_firm())
mi.perform(); mi.perform();
} }
else else
@ -775,8 +781,11 @@ bool TOutlook_mask::on_field_event(TOperable_field& o, TField_event e, long joll
} }
} }
} }
if (e == fe_modify) // Permette l'aggiunta ai preferiti per i non NON radice if (e == fe_modify)
{
// Permette l'aggiunta ai preferiti per i non NON radice
main_app().enable_menu_item(30005, _tree.has_father()); main_app().enable_menu_item(30005, _tree.has_father());
}
break; break;
case DLG_LOOK: case DLG_LOOK:
if (e == fe_modify) if (e == fe_modify)

View File

@ -180,26 +180,6 @@ bool TInstaller_mask::is_visible_patch(TConfig& ini) const
bool yes = true; bool yes = true;
TAuto_token_string oem = ini.get("OEM"); TAuto_token_string oem = ini.get("OEM");
if (oem.blank())
{
const TString& module = ini.get_paragraph();
CHECKS(module.len() == 2, "Invalid module ", (const char*)module);
const int mod = dongle().module_name2code(module);
if (mod > BAAUT && mod < ENDAUT)
{
// Pezza temporanea: assegno OEM noti eventualmente assenti dalla patch
switch (mod)
{
case COAUT: oem = "5"; break;
case HAAUT: oem = "0,3"; break;
case LVAUT: oem = "2,4"; break;
case PEAUT: oem = "3"; break;
case RIAUT: oem = "0,6"; break;
default: break;
}
}
}
if (oem.full()) if (oem.full())
{ {
const int my_oem = dongle().oem(); const int my_oem = dongle().oem();

View File

@ -137,7 +137,7 @@ BEGIN
PROMPT 1 10 "@bUfficio" PROMPT 1 10 "@bUfficio"
END END
STRING F_MAIL 30 STRING F_MAIL 60 30
BEGIN BEGIN
PROMPT 2 11 "Mail " PROMPT 2 11 "Mail "
FIELD MAIL FIELD MAIL
@ -235,7 +235,7 @@ BEGIN
PROMPT 1 1 "@bCasa" PROMPT 1 1 "@bCasa"
END END
STRING F_MAIL2 30 STRING F_MAIL2 60 30
BEGIN BEGIN
PROMPT 2 2 "Mail " PROMPT 2 2 "Mail "
FIELD MAIL2 FIELD MAIL2

View File

@ -1,3 +1,3 @@
170 170
0 0
$contact|0|0|598|0|Contatti||| $contact|0|0|658|0|Contatti|||

View File

@ -8,8 +8,8 @@ CODALT|1|20|0|Nome alternativo
TIPOCF|1|1|0|Tipo Cliente/Fornitore (opzionale) TIPOCF|1|1|0|Tipo Cliente/Fornitore (opzionale)
CODCF|3|6|0|Codice cliente (opzionale) CODCF|3|6|0|Codice cliente (opzionale)
QUALIFICA|1|20|0|Qualifica QUALIFICA|1|20|0|Qualifica
MAIL|1|30|0|Mail Ufficio MAIL|1|60|0|Mail Ufficio
MAIL2|1|30|0|Mail personale MAIL2|1|60|0|Mail personale
NUMTEL|1|30|0|Telefono Ufficio NUMTEL|1|30|0|Telefono Ufficio
NUMCEL|1|30|0|Cellulare Ufficio NUMCEL|1|30|0|Cellulare Ufficio
NUMTEL2|1|30|0|Telefono Casa NUMTEL2|1|30|0|Telefono Casa

View File

@ -67,7 +67,7 @@ Descrizione = Tracciabilita' CUP - CIG
[np] [np]
Descrizione = Gestione No-Profit Descrizione = Gestione No-Profit
OEM = 0,0 OEM =
[gv] [gv]
Descrizione = Gestione versamenti F24 Descrizione = Gestione versamenti F24
@ -107,7 +107,7 @@ Descrizione = Statistiche di Vendita
[pe] [pe]
Descrizione = Preventivazione Descrizione = Preventivazione
OEM=0,3 OEM=3
[_area_magazzino_produzione] [_area_magazzino_produzione]
Descrizione=AREA MAGAZZINO E PRODUZIONE Descrizione=AREA MAGAZZINO E PRODUZIONE
@ -136,11 +136,11 @@ Descrizione = Trasferimento ad altre Contabilita'
[co] [co]
Descrizione = Gestione cooperative pesca Descrizione = Gestione cooperative pesca
OEM=0,5 OEM=5
[ha] [ha]
Descrizione = Caffe' Hardy Descrizione = Caffe' Hardy
OEM=0,3 OEM=
[sy1] [sy1]
File(0) = ba0.exe File(0) = ba0.exe