Revert "Patch level : nopatch"
This reverts commit 830e58a74f1e8413551bae769241ec6cec3f7b49.
This commit is contained in:
parent
5300fe55dc
commit
a02d3f8d27
File diff suppressed because it is too large
Load Diff
160
src/ba/ba1100.h
160
src/ba/ba1100.h
@ -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"
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////
|
||||||
@ -37,129 +25,71 @@ class TMask_field;
|
|||||||
|
|
||||||
class TDir_sheet : public TSheet
|
class TDir_sheet : public TSheet
|
||||||
{
|
{
|
||||||
TTrec _rec;
|
TTrec _rec;
|
||||||
TDir _dir;
|
TDir _dir;
|
||||||
FileDes _s_dir;
|
FileDes _s_dir;
|
||||||
long _items;
|
long _items;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual long get_items() const { return _items; }
|
virtual long get_items() const { return _items; }
|
||||||
virtual void get_row(long n, TToken_string& r);
|
virtual void get_row(long n, TToken_string& r);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
const TDir& dir() const { return _dir; }
|
const TDir& dir() const { return _dir; }
|
||||||
TDir& dir() { return _dir; }
|
TDir& dir() { return _dir; }
|
||||||
const TTrec& rec() const { return _rec; }
|
const TTrec& rec() const { return _rec; }
|
||||||
TTrec& rec() { return _rec; }
|
TTrec& rec(){ return _rec; }
|
||||||
void set_items(long items) { _items = items; }
|
void set_items(long items) { _items = items; }
|
||||||
void add();
|
void add();
|
||||||
void rebuild() { _items = _dir.items(); }
|
void rebuild() { _items = _dir.items();}
|
||||||
|
|
||||||
TDir_sheet(const char* title, bool superprassi);
|
TDir_sheet(const char* title, bool superprassi);
|
||||||
};
|
};
|
||||||
|
|
||||||
class TRec_sheet : public TObject
|
class TRec_sheet : public TObject
|
||||||
{
|
{
|
||||||
TTrec _rec;
|
TTrec _rec;
|
||||||
TTrec _rec_old;
|
TTrec _rec_old;
|
||||||
TDir _dir;
|
TDir _dir;
|
||||||
bool _comfile;
|
bool _comfile;
|
||||||
TConfig *_descr;
|
TConfig *_descr;
|
||||||
static TMask *_mask;
|
static TMask *_mask;
|
||||||
TFilename _descfname;
|
TFilename _descfname;
|
||||||
TString16 _tab;
|
TString16 _tab;
|
||||||
bool _external;
|
bool _external;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool check_key_expr(int key, const char* key_expr);
|
bool check_key_expr(int key, const char* key_expr);
|
||||||
static bool key_notify(TSheet_field& s, int r, KEY k);
|
static bool key_notify(TSheet_field& s, int r, KEY k);
|
||||||
static bool fld_notify(TSheet_field& s, int r, KEY k);
|
static bool fld_notify(TSheet_field& s, int r, KEY k);
|
||||||
void save();
|
void save();
|
||||||
void save_desc();
|
void save_desc();
|
||||||
|
|
||||||
virtual long get_items() const { return _rec.fields(); }
|
virtual long get_items() const { return _rec.fields(); }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
const TDir& dir() const { return _dir; }
|
const TDir& dir() const { return _dir; }
|
||||||
const TTrec& rec() const { return _rec; }
|
const TTrec& rec() const { return _rec; }
|
||||||
const char* descfname() const { return _descfname; }
|
const char* descfname() const { return _descfname;}
|
||||||
const char* tab() const { return _tab; }
|
const char* tab() const { return _tab; }
|
||||||
void edit();
|
void edit();
|
||||||
|
|
||||||
TRec_sheet(int logicnum, const char* tab);
|
TRec_sheet(int logicnum, const char* tab);
|
||||||
TRec_sheet(TExternisamfile* file);
|
TRec_sheet(TExternisamfile* file);
|
||||||
virtual ~TRec_sheet();
|
virtual ~TRec_sheet();
|
||||||
};
|
};
|
||||||
|
|
||||||
class TEdit_file : public TObject
|
class TEdit_file : public TObject
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
void edit_record(TRectype& rec);
|
void edit_record(TRectype& rec);
|
||||||
bool browse_cursor(TCursor& cur, const TFilename& name);
|
bool browse_cursor(TCursor& cur, const TFilename& name);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
bool browse_file(int logicnum, const TFilename& name, const TString& tab, const int selKey = 1);
|
bool browse_file(int logicnum, const TFilename& name, const TString& tab, const int selKey = 1);
|
||||||
bool browse_file(TExternisamfile* file, const TFilename& name);
|
bool browse_file(TExternisamfile* file, const TFilename& name);
|
||||||
TEdit_file() {}
|
TEdit_file() {}
|
||||||
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);
|
||||||
|
f2.disable_cell(0, 1);
|
||||||
for (i = 0; i < nkeys; i++)
|
|
||||||
f2.row(i) = _rec.keydef(i);
|
|
||||||
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)"
|
END
|
||||||
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
|
|
||||||
|
|
||||||
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
|
||||||
@ -150,7 +146,7 @@ END
|
|||||||
|
|
||||||
BOOLEAN CHK_TABIVA_B5
|
BOOLEAN CHK_TABIVA_B5
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT 30 5 "Escluso dal calcolo dei bolli su fatture esenti"
|
PROMPT 30 5 "Escluso dal calcolo dei bolli sufatture esenti"
|
||||||
FIELD B5
|
FIELD B5
|
||||||
END
|
END
|
||||||
|
|
||||||
@ -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