Aperti tutti i files necessari
git-svn-id: svn://10.65.10.50/trunk@5120 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
b137404f05
commit
a63e182c6e
@ -52,7 +52,10 @@ class TContabilizzazione_app : public TApplication
|
|||||||
TMask *_msk; // maschera di selezione dati
|
TMask *_msk; // maschera di selezione dati
|
||||||
TArray_sheet *_num_sheet; // Array sheet selezionabile dei codici numerazione
|
TArray_sheet *_num_sheet; // Array sheet selezionabile dei codici numerazione
|
||||||
TString_array _tipi_doc; // Array di stringhe contenente i tipi documenti da elaborare
|
TString_array _tipi_doc; // Array di stringhe contenente i tipi documenti da elaborare
|
||||||
|
TArray _file;
|
||||||
|
|
||||||
protected: // TApplication
|
protected: // TApplication
|
||||||
|
void open_files(int logicnum, ...);
|
||||||
// Contabilizza i documenti
|
// Contabilizza i documenti
|
||||||
void contabilize();
|
void contabilize();
|
||||||
// Le 4 seguenti non hanno bisogno di commenti
|
// Le 4 seguenti non hanno bisogno di commenti
|
||||||
@ -81,6 +84,18 @@ public:
|
|||||||
|
|
||||||
inline TContabilizzazione_app& app() { return (TContabilizzazione_app&) main_app(); }
|
inline TContabilizzazione_app& app() { return (TContabilizzazione_app&) main_app(); }
|
||||||
|
|
||||||
|
void TContabilizzazione_app::open_files(int logicnum, ...)
|
||||||
|
{
|
||||||
|
va_list marker;
|
||||||
|
va_start(marker, logicnum);
|
||||||
|
while (logicnum > 0)
|
||||||
|
{
|
||||||
|
CHECKD(_file.objptr(logicnum) == NULL, "File gia' aperto: ", logicnum);
|
||||||
|
_file.add(new TLocalisamfile(logicnum), logicnum);
|
||||||
|
logicnum = va_arg(marker, int);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool TContabilizzazione_app::handle_data_range(TMask_field& f, KEY k)
|
bool TContabilizzazione_app::handle_data_range(TMask_field& f, KEY k)
|
||||||
{
|
{
|
||||||
if (k==K_ENTER && f.dirty())
|
if (k==K_ENTER && f.dirty())
|
||||||
@ -239,6 +254,7 @@ bool TContabilizzazione_app::create()
|
|||||||
error_box("Impossibile eseguire il programma se il modulo Contabilita' Generale non e' abilitato");
|
error_box("Impossibile eseguire il programma se il modulo Contabilita' Generale non e' abilitato");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
open_files(LF_TABCOM, LF_CLIFO, LF_CFVEN, LF_DOC, LF_RIGHEDOC, LF_OCCAS, 0);
|
||||||
_msk = new TMask("ve6100a");
|
_msk = new TMask("ve6100a");
|
||||||
_msk->set_handler(F_CODICE_ELAB,handle_cod_eld);
|
_msk->set_handler(F_CODICE_ELAB,handle_cod_eld);
|
||||||
_msk->set_handler(F_DATA_INI,handle_data_range);
|
_msk->set_handler(F_DATA_INI,handle_data_range);
|
||||||
|
@ -36,7 +36,7 @@ void TFatturazione_bolle_app::open_files(int logicnum, ...)
|
|||||||
|
|
||||||
bool TFatturazione_bolle_app::create()
|
bool TFatturazione_bolle_app::create()
|
||||||
{
|
{
|
||||||
open_files(LF_TABCOM, LF_CLIFO, LF_CFVEN, LF_DOC, LF_RIGHEDOC, 0);
|
open_files(LF_TABCOM, LF_CLIFO, LF_CFVEN, LF_DOC, LF_RIGHEDOC, LF_OCCAS, 0);
|
||||||
dispatch_e_menu(MENU_ITEM(1));
|
dispatch_e_menu(MENU_ITEM(1));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,9 @@ class TGenerazioneEffetti_app : public TApplication
|
|||||||
_group_by_type, // raggruppa per tipo di documento
|
_group_by_type, // raggruppa per tipo di documento
|
||||||
_group_by_num, // raggruppa per cod. numerazione
|
_group_by_num, // raggruppa per cod. numerazione
|
||||||
_group_by_agent; // raggruppa per agente
|
_group_by_agent; // raggruppa per agente
|
||||||
|
TArray _file;
|
||||||
protected: // TApplication
|
protected: // TApplication
|
||||||
|
void open_files(int logicnum, ...);
|
||||||
// Le 4 seguenti non hanno bisogno di commenti
|
// Le 4 seguenti non hanno bisogno di commenti
|
||||||
virtual bool menu(MENU_TAG mt);
|
virtual bool menu(MENU_TAG mt);
|
||||||
virtual bool create();
|
virtual bool create();
|
||||||
@ -91,6 +93,18 @@ public:
|
|||||||
|
|
||||||
inline TGenerazioneEffetti_app& app() { return (TGenerazioneEffetti_app&) main_app(); }
|
inline TGenerazioneEffetti_app& app() { return (TGenerazioneEffetti_app&) main_app(); }
|
||||||
|
|
||||||
|
void TGenerazioneEffetti_app::open_files(int logicnum, ...)
|
||||||
|
{
|
||||||
|
va_list marker;
|
||||||
|
va_start(marker, logicnum);
|
||||||
|
while (logicnum > 0)
|
||||||
|
{
|
||||||
|
CHECKD(_file.objptr(logicnum) == NULL, "File gia' aperto: ", logicnum);
|
||||||
|
_file.add(new TLocalisamfile(logicnum), logicnum);
|
||||||
|
logicnum = va_arg(marker, int);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool TGenerazioneEffetti_app::handle_data_range(TMask_field& f, KEY k)
|
bool TGenerazioneEffetti_app::handle_data_range(TMask_field& f, KEY k)
|
||||||
{
|
{
|
||||||
if (k==K_ENTER && f.dirty())
|
if (k==K_ENTER && f.dirty())
|
||||||
@ -202,6 +216,7 @@ bool TGenerazioneEffetti_app::create()
|
|||||||
error_box("Impossibile eseguire il programma se il modulo Effetti non e' abilitato");
|
error_box("Impossibile eseguire il programma se il modulo Effetti non e' abilitato");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
open_files(LF_TABCOM, LF_CLIFO, LF_CFVEN, LF_DOC, LF_RIGHEDOC, LF_OCCAS, 0);
|
||||||
_msk = new TMask("ve6300a");
|
_msk = new TMask("ve6300a");
|
||||||
_msk->set_handler(F_CODICE_ELAB,handle_cod_eld);
|
_msk->set_handler(F_CODICE_ELAB,handle_cod_eld);
|
||||||
_msk->set_handler(F_DATA_INI,handle_data_range);
|
_msk->set_handler(F_DATA_INI,handle_data_range);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user