From 73ac5e6cb114e4110927e45693e0cd30c127f38a Mon Sep 17 00:00:00 2001 From: pirro Date: Fri, 24 Mar 1995 16:49:18 +0000 Subject: [PATCH] Eliminato prefhndl git-svn-id: svn://10.65.10.50/trunk@1171 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ba/ba4300.cpp | 4 ++-- ba/bacnv.cpp | 4 ++-- cg/cg2300.cpp | 2 +- cg/cg2400.cpp | 2 +- cg/cg2600.cpp | 2 +- cg/cg2700.cpp | 2 +- cg/cg2800.cpp | 2 +- cg/cg2801.cpp | 2 +- cg/cg2802.cpp | 2 +- cg/cg5400.cpp | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ba/ba4300.cpp b/ba/ba4300.cpp index ab1ebf943..56b787b56 100755 --- a/ba/ba4300.cpp +++ b/ba/ba4300.cpp @@ -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) diff --git a/ba/bacnv.cpp b/ba/bacnv.cpp index a19120665..62502acc6 100755 --- a/ba/bacnv.cpp +++ b/ba/bacnv.cpp @@ -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) diff --git a/cg/cg2300.cpp b/cg/cg2300.cpp index 694221caf..f7c73c073 100755 --- a/cg/cg2300.cpp +++ b/cg/cg2300.cpp @@ -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 { diff --git a/cg/cg2400.cpp b/cg/cg2400.cpp index e8a536d73..e6dab2158 100755 --- a/cg/cg2400.cpp +++ b/cg/cg2400.cpp @@ -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 diff --git a/cg/cg2600.cpp b/cg/cg2600.cpp index 4b2f7d059..b27f7466b 100755 --- a/cg/cg2600.cpp +++ b/cg/cg2600.cpp @@ -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()) diff --git a/cg/cg2700.cpp b/cg/cg2700.cpp index 0dcf925bc..a438bcfb5 100755 --- a/cg/cg2700.cpp +++ b/cg/cg2700.cpp @@ -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(); diff --git a/cg/cg2800.cpp b/cg/cg2800.cpp index d388d5310..1e61cdbf3 100755 --- a/cg/cg2800.cpp +++ b/cg/cg2800.cpp @@ -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()) diff --git a/cg/cg2801.cpp b/cg/cg2801.cpp index d2a29b392..99eebf3ac 100755 --- a/cg/cg2801.cpp +++ b/cg/cg2801.cpp @@ -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 == "") diff --git a/cg/cg2802.cpp b/cg/cg2802.cpp index fe4381292..8999f3a8c 100755 --- a/cg/cg2802.cpp +++ b/cg/cg2802.cpp @@ -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()) diff --git a/cg/cg5400.cpp b/cg/cg5400.cpp index 3636f8038..192df5392 100755 --- a/cg/cg5400.cpp +++ b/cg/cg5400.cpp @@ -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)