Corrette diciture errate nel programma di archiviazione

Aggiunta gestione configurazioni di stampa ai registri


git-svn-id: svn://10.65.10.50/trunk@1359 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1995-05-12 09:21:49 +00:00
parent efc23f963c
commit ed528194e8
5 changed files with 43 additions and 11 deletions

View File

@ -189,7 +189,7 @@ bool TArchive::fbuild(const char* filename, char floppy) const
TFilename name; // Nome del file su dischetto
name << floppy << ":/" << work.name();
TString256 msg("Rispristino da "); msg << name;
TString256 msg("Ripristino da "); msg << name;
TProgind w(max, msg, TRUE, TRUE, 32);
int disk = 0;

View File

@ -60,7 +60,7 @@ END
BUTTON DLG_NULL 15 2
BEGIN
PROMPT -23 -1 "~Riprisitino"
PROMPT -23 -1 "~Ripristino"
MESSAGE EXIT,K_INS
END

View File

@ -1,9 +1,10 @@
#include <config.h>
#include <printer.h>
#include <tabapp.h>
#include <tabutil.h>
#include <config.h>
#include "batbreg.h"
#define F_TIPODEL 133 // attenzione estratto da batbdel.h . Tenerlo aggiornato !!!!
#define F_TIPODEL 133 // attenzione estratto da batbdel.h . Tenerlo aggiornato !!!!
#define F_IMPORTO 140 // attenzione estratto da batbdel.h . Tenerlo aggiornato !!!!
#define REG_JOURNAL 5
@ -89,6 +90,28 @@ HIDDEN bool tiporeg_handler(TMask_field& f, KEY k)
return TRUE;
}
HIDDEN bool printer_handler(TMask_field& f, KEY k)
{
if (k == K_SPACE)
{
TMask& m = f.mask();
TString16 config;
config.format("REG%05ld", m.get_long(F_CODDITTA));
config << m.get(F_CODICE);
if (config.len() == 11)
{
TPrinter& p = printer();
p.read_configuration(config);
p.set();
p.read_configuration();
}
else
return error_box("Nessun registro selezionato");
}
return TRUE;
}
HIDDEN bool impdel_handler(TMask_field& f, KEY k)
{
const TMask & m = f.mask();
@ -112,16 +135,20 @@ HIDDEN bool impdel_handler(TMask_field& f, KEY k)
bool TGeneric_table_app::user_create()
{
Tab_application::user_create();
if (get_tabname() == "REG")
const TString& name = get_tabname();
TMask& mask = *get_mask();
if (name == "REG")
{
get_mask()->set_handler(F_TIPO, tiporeg_handler);
mask.set_handler(F_TIPO, tiporeg_handler);
mask.set_handler(F_PRINTER, printer_handler);
TConfig st(CONFIG_STUDIO, "cg");
_stampa_intest = st.get_bool("StiReg");
}
if (get_tabname() == "DEL")
get_mask()->set_handler(F_IMPORTO, impdel_handler);
if (name == "DEL")
mask.set_handler(F_IMPORTO, impdel_handler);
return TRUE;
}

View File

@ -1,5 +1,3 @@
// campi maschera batbreg.msk
#define F_CODICE 131
@ -46,3 +44,5 @@
#define F_CODULC 163
#define F_CODLBU 164
#define F_RAGSOC 165
#define F_PRINTER 201

View File

@ -229,6 +229,11 @@ BEGIN
CHECKTYPE NORMAL
VALIDATE NOT_EMPTY_CHECK_FIELD
END
BUTTON F_PRINTER 32 2
BEGIN
PROMPT -11 17 "Configurazione stampante"
END
ENDPAGE