Eliminato prefhndl
git-svn-id: svn://10.65.10.50/trunk@1171 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
df9796898b
commit
73ac5e6cb1
@ -82,7 +82,7 @@ bool ba4300_handler(TMask& m, KEY k)
|
||||
{
|
||||
TDitte_application& app = (TDitte_application&)main_app();
|
||||
|
||||
if (k == (K_SHIFT+K_F12) && m.mode() == MODE_MOD && app.user() == "PRASSI")
|
||||
if (k == (K_SHIFT+K_F12) && m.mode() == MODE_MOD && user() == "PRASSI")
|
||||
{
|
||||
m.enable(FLD_GD1_TIPOA);
|
||||
m.enable(FLD_GD1_CODANAGR);
|
||||
@ -349,7 +349,7 @@ void TDitte_application::enable_reg(TMask& m)
|
||||
{
|
||||
const long codditta = m.get_long(FLD_GD1_CODDITTA);
|
||||
|
||||
m.enable(DLG_REG, codditta > 0 && prefhndl->exist(codditta));
|
||||
m.enable(DLG_REG, codditta > 0 && prefix().exist(codditta));
|
||||
}
|
||||
|
||||
void TDitte_application::init_modify_mode(TMask& m)
|
||||
|
@ -53,7 +53,7 @@ bool TConversione_archivi::create()
|
||||
_nconv = atoi(argv(1));
|
||||
if (_codditta != _oldditta)
|
||||
{
|
||||
if (_codditta == 0) prefhndl->set("com");
|
||||
if (_codditta == 0) prefix().set("com");
|
||||
else set_firm(_codditta);
|
||||
}
|
||||
dispatch_e_menu(MENU_ITEM(1));
|
||||
@ -65,7 +65,7 @@ bool TConversione_archivi::destroy()
|
||||
{
|
||||
if (_codditta != _oldditta)
|
||||
{
|
||||
if (_oldditta == 0) prefhndl->set("com");
|
||||
if (_oldditta == 0) prefix().set("com");
|
||||
else set_firm(_oldditta);
|
||||
}
|
||||
if (_error > 0)
|
||||
|
@ -46,7 +46,7 @@ HIDDEN bool ditta_handler(TMask_field& f, KEY k)
|
||||
|
||||
if (codditta != 0)
|
||||
{
|
||||
if (prefhndl->exist(codditta))
|
||||
if (prefix().exist(codditta))
|
||||
return TRUE;
|
||||
else
|
||||
{
|
||||
|
@ -192,7 +192,7 @@ bool TRic_sistema::leggi_marker()
|
||||
|
||||
if (_dittaric != 0)
|
||||
{
|
||||
if (!prefhndl->exist(_dittaric))
|
||||
if (!prefix().exist(_dittaric))
|
||||
return error_box("Libreria archivi ditta non presente su disco");
|
||||
}
|
||||
else
|
||||
|
@ -1624,7 +1624,7 @@ bool TRic_tab::video()
|
||||
if (tasto != K_ENTER)
|
||||
return FALSE;
|
||||
|
||||
if (!prefhndl->exist(_dittaric))
|
||||
if (!prefix().exist(_dittaric))
|
||||
return error_box("Rilevati gravi errori negli archivi: procedura interrotta");
|
||||
|
||||
if (!controlli())
|
||||
|
@ -267,7 +267,7 @@ bool TRic_ListaMov::check_archivi(TProgind* pnd)
|
||||
TString80 nome;
|
||||
long ditta_ric = get_firm();
|
||||
|
||||
if (!prefhndl->exist(ditta_ric))
|
||||
if (!prefix().exist(ditta_ric))
|
||||
return error_box("Rilevati errori gravi negli archivi: procedura interrotta");
|
||||
|
||||
TTransfer_file& tr = trasfer();
|
||||
|
@ -1389,7 +1389,7 @@ bool TVar_mov::esegui_controlli()
|
||||
|
||||
_std = conf.get("FlStTra");
|
||||
|
||||
if (!prefhndl->exist(_dittaric))
|
||||
if (!prefix().exist(_dittaric))
|
||||
return error_box("Rilevati gravi errori negli archivi: procedura interrotta");
|
||||
|
||||
if (!leggi_trasfer())
|
||||
|
@ -69,7 +69,7 @@ bool TDitta_ric::esegui_controlli()
|
||||
|
||||
_std = conf.get("FlStTra");
|
||||
|
||||
if (!prefhndl->exist(_dittaric))
|
||||
if (!prefix().exist(_dittaric))
|
||||
return error_box("Codice ditta NON PRESENTE in archivio oppure NON ATTIVATO in contabilita' generale");
|
||||
|
||||
if (_std == "")
|
||||
|
@ -304,7 +304,7 @@ bool TAnn_mov::esegui_controlli()
|
||||
|
||||
_std = conf.get("FlStTra");
|
||||
|
||||
if (!prefhndl->exist(_dittaric))
|
||||
if (!prefix().exist(_dittaric))
|
||||
return error_box("Rilevati GRAVI ERRORI negli archivi: procedura interrotta");
|
||||
|
||||
if (!leggi_trasfer())
|
||||
|
@ -232,7 +232,7 @@ bool TRipristina_stampa::menu(MENU_TAG)
|
||||
int day = giornale ? msk.get_int(F_DAY) : 1;
|
||||
if (day < 1) day = 1;
|
||||
|
||||
if (prefhndl->exist(firm))
|
||||
if (prefix().exist(firm))
|
||||
{
|
||||
TString256 mess("Attenzione ripristino della stampa de");
|
||||
if (_op == restore_reg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user