Revert "Patch level : nopatch"
This reverts commit 830e58a74f1e8413551bae769241ec6cec3f7b49.
This commit is contained in:
parent
5300fe55dc
commit
a02d3f8d27
@ -13,9 +13,11 @@
|
|||||||
#include "ba1100.h"
|
#include "ba1100.h"
|
||||||
#include "ba1103.h"
|
#include "ba1103.h"
|
||||||
|
|
||||||
|
#include <applicat.h>
|
||||||
#include <dongle.h>
|
#include <dongle.h>
|
||||||
#include <relapp.h>
|
#include <printer.h>
|
||||||
#include <progind.h>
|
#include <progind.h>
|
||||||
|
#include <reputils.h>
|
||||||
#include <utility.h>
|
#include <utility.h>
|
||||||
#include <user.h>
|
#include <user.h>
|
||||||
|
|
||||||
@ -33,6 +35,59 @@
|
|||||||
#define Dir_file "dir.gen"
|
#define Dir_file "dir.gen"
|
||||||
#define Trc_file "trc.gen"
|
#define Trc_file "trc.gen"
|
||||||
|
|
||||||
|
class TManutenzione_app : public TSkeleton_application
|
||||||
|
{
|
||||||
|
TDir_sheet* _browse;
|
||||||
|
TArray _dirs;
|
||||||
|
TArray _recs;
|
||||||
|
TMask* _mask;
|
||||||
|
long _firm;
|
||||||
|
long _level;
|
||||||
|
long _history_firm;
|
||||||
|
TRec_sheet* _rec;
|
||||||
|
TLog_report* _log;
|
||||||
|
bool _print_log;
|
||||||
|
|
||||||
|
bool _superprassi;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual void main_loop();
|
||||||
|
virtual bool create () ;
|
||||||
|
virtual bool destroy();
|
||||||
|
void insert_riga(long, TToken_string&);
|
||||||
|
void edit_riga(long, TToken_string&);
|
||||||
|
void edit_riga(const TString&);
|
||||||
|
void delete_riga(long);
|
||||||
|
virtual bool extended_firm() const { return true; }
|
||||||
|
|
||||||
|
bool set_converting();
|
||||||
|
bool reset_converting();
|
||||||
|
|
||||||
|
bool try_to_recover(TSystemisamfile& f, int err);
|
||||||
|
void update();
|
||||||
|
void update_dir();
|
||||||
|
void convert_dir();
|
||||||
|
virtual void print();
|
||||||
|
virtual void do_print(TPrinter & p, TRec_sheet & r);
|
||||||
|
const char* dumpfilename(const FileDes& dep) const;
|
||||||
|
void load_des();
|
||||||
|
void open_history();
|
||||||
|
void put_history(const char* firm);
|
||||||
|
void close_history();
|
||||||
|
void dump_trc(const char * dir, const bool des_too, const long modules);
|
||||||
|
void repair_file(int i);
|
||||||
|
void save_file(const char * file);
|
||||||
|
|
||||||
|
void open_log();
|
||||||
|
void write_log(const char* line, const int severity = 0);
|
||||||
|
void close_log();
|
||||||
|
|
||||||
|
bool moveable_file(int file) const;
|
||||||
|
public:
|
||||||
|
|
||||||
|
TManutenzione_app();
|
||||||
|
};
|
||||||
|
|
||||||
HIDDEN bool browse_file_handler(TMask_field& f, KEY k)
|
HIDDEN bool browse_file_handler(TMask_field& f, KEY k)
|
||||||
{
|
{
|
||||||
if (k == K_F9)
|
if (k == K_F9)
|
||||||
@ -263,10 +318,11 @@ void TManutenzione_app::print()
|
|||||||
|
|
||||||
bool TManutenzione_app::create() // initvar e arrmask
|
bool TManutenzione_app::create() // initvar e arrmask
|
||||||
{
|
{
|
||||||
|
_firm = get_firm();
|
||||||
|
|
||||||
TString sw(argc()>2 ? argv(2) : "");
|
TString sw(argc()>2 ? argv(2) : "");
|
||||||
// Posso fare le operazione avanzate solo se sono ammistratore
|
// Posso fare le operazione avanzate solo se sono ammistratore
|
||||||
// e NON mi trovo su di una installazione di tipo client
|
// e NON mi trovo su di una installazione di tipo client
|
||||||
|
|
||||||
xvt_vobj_show(TASK_WIN);
|
xvt_vobj_show(TASK_WIN);
|
||||||
_superprassi = user() == ::dongle().administrator() && !::dongle().demo();
|
_superprassi = user() == ::dongle().administrator() && !::dongle().demo();
|
||||||
if (_superprassi)
|
if (_superprassi)
|
||||||
@ -306,7 +362,6 @@ bool TManutenzione_app::create() // initvar e arrmask
|
|||||||
else
|
else
|
||||||
if (!::dongle().demo() && !set_firm())
|
if (!::dongle().demo() && !set_firm())
|
||||||
return false;
|
return false;
|
||||||
_firm = atol(prefix().name());
|
|
||||||
load_des();
|
load_des();
|
||||||
|
|
||||||
_mask = new TMask("ba1100a");
|
_mask = new TMask("ba1100a");
|
||||||
@ -330,24 +385,6 @@ bool TManutenzione_app::destroy()
|
|||||||
return TApplication::destroy();
|
return TApplication::destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TManutenzione_app::show_log()
|
|
||||||
{
|
|
||||||
if (db_log())
|
|
||||||
{
|
|
||||||
if (admin())
|
|
||||||
{
|
|
||||||
TLog_mask m;
|
|
||||||
|
|
||||||
m.run();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
message_box(TR("Il log delle transazioni è visualizzabile dall'amministratore"));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
message_box(TR("Il log delle transazioni è disattivato"));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void TManutenzione_app::open_log()
|
void TManutenzione_app::open_log()
|
||||||
{
|
{
|
||||||
_print_log = false;
|
_print_log = false;
|
||||||
@ -1497,3 +1534,4 @@ int ba1100(int argc, char** argv)
|
|||||||
a.run(argc, argv, TR("Gestione files"));
|
a.run(argc, argv, TR("Gestione files"));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
#ifndef __BA1100_H
|
#ifndef __BA1100_H
|
||||||
#define __BA1100_H
|
#define __BA1100_H
|
||||||
|
|
||||||
#ifndef __APPLICAT_H
|
|
||||||
#include <applicat.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __CONFIG_H
|
#ifndef __CONFIG_H
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
@ -21,14 +17,6 @@
|
|||||||
class TMask_field;
|
class TMask_field;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __PRINTER_H
|
|
||||||
#include <printer.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __REPUTILS_H
|
|
||||||
#include <reputils.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "ba1100a.h"
|
#include "ba1100a.h"
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
@ -104,62 +92,4 @@ public:
|
|||||||
virtual ~TEdit_file() {}
|
virtual ~TEdit_file() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class TManutenzione_app : public TSkeleton_application
|
|
||||||
{
|
|
||||||
TDir_sheet* _browse;
|
|
||||||
TArray _dirs;
|
|
||||||
TArray _recs;
|
|
||||||
TMask* _mask;
|
|
||||||
long _firm;
|
|
||||||
long _level;
|
|
||||||
long _history_firm;
|
|
||||||
TRec_sheet* _rec;
|
|
||||||
TLog_report* _log;
|
|
||||||
bool _print_log;
|
|
||||||
|
|
||||||
bool _superprassi;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual void main_loop();
|
|
||||||
virtual bool create();
|
|
||||||
virtual bool destroy();
|
|
||||||
void insert_riga(long, TToken_string&);
|
|
||||||
void edit_riga(long, TToken_string&);
|
|
||||||
void edit_riga(const TString&);
|
|
||||||
void delete_riga(long);
|
|
||||||
virtual bool extended_firm() const { return true; }
|
|
||||||
|
|
||||||
bool set_converting();
|
|
||||||
bool reset_converting();
|
|
||||||
|
|
||||||
bool try_to_recover(TSystemisamfile& f, int err);
|
|
||||||
void update();
|
|
||||||
void update_dir();
|
|
||||||
void convert_dir();
|
|
||||||
virtual void print();
|
|
||||||
virtual void do_print(TPrinter & p, TRec_sheet & r);
|
|
||||||
const char* dumpfilename(const FileDes& dep) const;
|
|
||||||
void load_des();
|
|
||||||
void open_history();
|
|
||||||
void put_history(const char* firm);
|
|
||||||
void close_history();
|
|
||||||
void dump_trc(const char * dir, const bool des_too, const long modules);
|
|
||||||
void repair_file(int i);
|
|
||||||
void save_file(const char * file);
|
|
||||||
|
|
||||||
virtual void show_log();
|
|
||||||
|
|
||||||
void open_log();
|
|
||||||
void write_log(const char* line, const int severity = 0);
|
|
||||||
void close_log();
|
|
||||||
|
|
||||||
bool moveable_file(int file) const;
|
|
||||||
public:
|
|
||||||
long get_firm() const { return _firm; }
|
|
||||||
|
|
||||||
TManutenzione_app();
|
|
||||||
};
|
|
||||||
|
|
||||||
inline TManutenzione_app & app() { return (TManutenzione_app &)main_app(); }
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -275,17 +275,9 @@ void TRec_sheet::edit()
|
|||||||
}
|
}
|
||||||
f2.set_notify(key_notify);
|
f2.set_notify(key_notify);
|
||||||
f2.set_append(FALSE);
|
f2.set_append(FALSE);
|
||||||
|
|
||||||
int nkeys = _rec.keys();
|
int nkeys = _rec.keys();
|
||||||
|
for (i = 0; i < nkeys; i++) f2.row(i) = _rec.keydef(i);
|
||||||
for (i = 0; i < nkeys; i++)
|
|
||||||
f2.row(i) = _rec.keydef(i);
|
|
||||||
f2.disable_cell(0, 1);
|
f2.disable_cell(0, 1);
|
||||||
|
|
||||||
const bool enable_save = (_dir.is_com() && app().get_firm() == 0) ||
|
|
||||||
(_dir.is_firm() && app().get_firm() > 0);
|
|
||||||
|
|
||||||
_mask->enable(DLG_SAVEREC, enable_save);
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
f1.force_update(0); // Non togliere, serve per fare l'update della descrizione quando si fa l'import!!
|
f1.force_update(0); // Non togliere, serve per fare l'update della descrizione quando si fa l'import!!
|
||||||
|
@ -136,7 +136,7 @@ protected:
|
|||||||
bool dir_gen() const;
|
bool dir_gen() const;
|
||||||
bool trc_gen() const;
|
bool trc_gen() const;
|
||||||
bool export_manager(const TString generalErrors) const;
|
bool export_manager(const TString generalErrors) const;
|
||||||
bool show_export_log();
|
bool show_log();
|
||||||
void log(int severity, const char* msg);
|
void log(int severity, const char* msg);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -980,7 +980,7 @@ bool TMSSQLExport_app::export_manager(TString generalErrors) const
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TMSSQLExport_app::show_export_log()
|
bool TMSSQLExport_app::show_log()
|
||||||
{
|
{
|
||||||
if (_log)
|
if (_log)
|
||||||
{
|
{
|
||||||
@ -1089,7 +1089,7 @@ void TMSSQLExport_app::main_loop()
|
|||||||
}
|
}
|
||||||
message_box("Migrazione effettuata correttamente!");
|
message_box("Migrazione effettuata correttamente!");
|
||||||
} while (loop);
|
} while (loop);
|
||||||
show_export_log();
|
show_log();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
message_box("Fallita connessione");
|
message_box("Fallita connessione");
|
||||||
|
@ -52,24 +52,26 @@ bool TTestrel_application::user_destroy()
|
|||||||
// Testmask
|
// Testmask
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
|
||||||
class TTest_application : public TSkeleton_application
|
class TTest_application : public TApplication
|
||||||
{
|
{
|
||||||
const char* _maskname;
|
const char* _maskname;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void main_loop();
|
bool create() { return menu(0); }
|
||||||
|
bool destroy() { return TRUE; }
|
||||||
|
bool menu(MENU_TAG);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TTest_application(const char* name) : _maskname(name) {}
|
TTest_application(const char* name) : _maskname(name) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
void TTest_application::main_loop()
|
bool TTest_application::menu(MENU_TAG)
|
||||||
{
|
{
|
||||||
if (*_maskname)
|
if (*_maskname)
|
||||||
{
|
{
|
||||||
TMask m(_maskname);
|
TMask m(_maskname);
|
||||||
|
KEY k = m.run();
|
||||||
while (m.run() == K_ENTER);
|
if (k == K_QUIT) stop_run();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -81,6 +83,8 @@ void TTest_application::main_loop()
|
|||||||
m.run();
|
m.run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
|
@ -4,7 +4,7 @@ PAGE "Richiesta" -1 -1 76 12
|
|||||||
|
|
||||||
STRING F_NOME 50
|
STRING F_NOME 50
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 3 3 "Maschera "
|
PROMPT 3 3 "Nome maschera"
|
||||||
END
|
END
|
||||||
|
|
||||||
BUTTON DLG_OK 10 2
|
BUTTON DLG_OK 10 2
|
||||||
|
@ -1742,7 +1742,6 @@ class TMailer : public TSkeleton_application
|
|||||||
bool _start_full_screen;
|
bool _start_full_screen;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool task_win_iconized() const { return !_start_full_screen && xvt_win_is_taskbar_visible(); }
|
|
||||||
virtual bool create();
|
virtual bool create();
|
||||||
virtual void main_loop();
|
virtual void main_loop();
|
||||||
};
|
};
|
||||||
@ -1768,7 +1767,7 @@ void TMailer::main_loop()
|
|||||||
WINDOW tray = xvt_trayicon_create(TASK_WIN, 9013, appname); // CampoServer.ico
|
WINDOW tray = xvt_trayicon_create(TASK_WIN, 9013, appname); // CampoServer.ico
|
||||||
|
|
||||||
open_files(LF_USER, 0);
|
open_files(LF_USER, 0);
|
||||||
/* if (!_start_full_screen && xvt_win_is_taskbar_visible())
|
if (!_start_full_screen && xvt_win_is_taskbar_visible())
|
||||||
{
|
{
|
||||||
if (tray != NULL_WIN)
|
if (tray != NULL_WIN)
|
||||||
{
|
{
|
||||||
@ -1779,7 +1778,7 @@ void TMailer::main_loop()
|
|||||||
if (xvt_rect_get_width(&rct_postman) >= xvt_rect_get_width(&rct_screen) - 64)
|
if (xvt_rect_get_width(&rct_postman) >= xvt_rect_get_width(&rct_screen) - 64)
|
||||||
xvt_vobj_set_visible(TASK_WIN, FALSE);
|
xvt_vobj_set_visible(TASK_WIN, FALSE);
|
||||||
}
|
}
|
||||||
} */
|
}
|
||||||
|
|
||||||
TMailer_mask mm;
|
TMailer_mask mm;
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ BEGIN
|
|||||||
WARNING "Manca la descrizione"
|
WARNING "Manca la descrizione"
|
||||||
END
|
END
|
||||||
|
|
||||||
LIST LST_TABIVA_S1 2 28
|
LIST LST_TABIVA_S1 2 20
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 2 2 "Tipo "
|
PROMPT 2 2 "Tipo "
|
||||||
FIELD S1
|
FIELD S1
|
||||||
@ -70,15 +70,11 @@ BEGIN
|
|||||||
MESSAGE CLEAR,FLD_TABIVA_R0|CLEAR,FLD_TABIVA_I0
|
MESSAGE CLEAR,FLD_TABIVA_R0|CLEAR,FLD_TABIVA_I0
|
||||||
MESSAGE ENABLE,FLD_TABIVA_I3|ENABLE,FLD_TABIVA_I4|SHOW,CHK_TABIVA_B5
|
MESSAGE ENABLE,FLD_TABIVA_I3|ENABLE,FLD_TABIVA_I4|SHOW,CHK_TABIVA_B5
|
||||||
MESSAGE ENABLE,FLD_TABIVA_S6
|
MESSAGE ENABLE,FLD_TABIVA_S6
|
||||||
ITEM "RC|Reverse Charge (vendite)"
|
|
||||||
MESSAGE CLEAR,FLD_TABIVA_R0|CLEAR,FLD_TABIVA_I0
|
|
||||||
MESSAGE CLEAR,FLD_TABIVA_I3|CLEAR,FLD_TABIVA_I4|HIDE,CHK_TABIVA_B5
|
|
||||||
MESSAGE ENABLE,FLD_TABIVA_S6
|
|
||||||
END
|
END
|
||||||
|
|
||||||
STRING FLD_TABIVA_S6 4
|
STRING FLD_TABIVA_S6 4
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 44 2 "C.IVA a cui ventilare "
|
PROMPT 39 2 "C.IVA a cui ventilare "
|
||||||
FLAGS "U"
|
FLAGS "U"
|
||||||
FIELD S6
|
FIELD S6
|
||||||
COPY USE FLD_TABIVA_CODTAB
|
COPY USE FLD_TABIVA_CODTAB
|
||||||
@ -192,8 +188,6 @@ BEGIN
|
|||||||
INPUT FLD_TABIVA_I3
|
INPUT FLD_TABIVA_I3
|
||||||
OUTPUT FLD_TABIVA_I3
|
OUTPUT FLD_TABIVA_I3
|
||||||
ITEM " |Nessuno"
|
ITEM " |Nessuno"
|
||||||
ITEM "14|Passaggi interni"
|
|
||||||
ITEM "16|Cessioni beni ammortizzabili"
|
|
||||||
ITEM "20|Operazioni non imponibili (comma 1, artt.8, 8bis e 9)"
|
ITEM "20|Operazioni non imponibili (comma 1, artt.8, 8bis e 9)"
|
||||||
ITEM "21|Operazioni non imponibili a seguito di dich. d'intento"
|
ITEM "21|Operazioni non imponibili a seguito di dich. d'intento"
|
||||||
ITEM "22|Altre operazioni non imponibili"
|
ITEM "22|Altre operazioni non imponibili"
|
||||||
@ -207,7 +201,6 @@ BEGIN
|
|||||||
ITEM "36|Cessione di microprocessori"
|
ITEM "36|Cessione di microprocessori"
|
||||||
ITEM "37|Prestazioni comparto edile e settori connessi"
|
ITEM "37|Prestazioni comparto edile e settori connessi"
|
||||||
ITEM "38|Operazioni settore energetico"
|
ITEM "38|Operazioni settore energetico"
|
||||||
ITEM "39|Reverse charge altri casi"
|
|
||||||
ITEM "B1|Ammontare op. es. escluse da nr. 1 a 9 e 11 art. 10"
|
ITEM "B1|Ammontare op. es. escluse da nr. 1 a 9 e 11 art. 10"
|
||||||
ITEM "B2|Ammontare op. es. di cui al nr. 11 art. 10"
|
ITEM "B2|Ammontare op. es. di cui al nr. 11 art. 10"
|
||||||
ITEM "B3|Ammontare op. es. di cui ai nr. 1 a 9 art. 10"
|
ITEM "B3|Ammontare op. es. di cui ai nr. 1 a 9 art. 10"
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
9
|
9
|
||||||
1
|
1
|
||||||
|
<<<<<<< HEAD
|
||||||
|
%nditte|0|0|652|0|Ditte|||
|
||||||
|
=======
|
||||||
%nditte|0|0|754|0|Ditte|||
|
%nditte|0|0|754|0|Ditte|||
|
||||||
|
>>>>>>> 0cadcd6dee4a4a67021c26174d7dea2a761fe182
|
||||||
|
Loading…
x
Reference in New Issue
Block a user