Patch level : 2.1 74
Files correlati : ve0.exe Ricompilazione Demo : [ ] Commento : 0000199 Dopo aver inserito una descrizione libera nel campo di testa delle note documento. Queste scompaiono dopo aver premuto registra. git-svn-id: svn://10.65.10.50/trunk@12210 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
b7216a148a
commit
e63626da48
@ -1,6 +1,4 @@
|
|||||||
\ Utility
|
\ Messaggi specifici per stampa documenti (ve1 -2)
|
||||||
|
|
||||||
\ Messaggi specifici per stampa documenti
|
|
||||||
|
|
||||||
: MESSAGE_DESCRIGA ( ... -- )
|
: MESSAGE_DESCRIGA ( ... -- )
|
||||||
"34.DESCR" @ \ Legge campo descrizione riga
|
"34.DESCR" @ \ Legge campo descrizione riga
|
||||||
@ -20,29 +18,29 @@
|
|||||||
;
|
;
|
||||||
|
|
||||||
: MESSAGE_CLIENTE ( s1 -- )
|
: MESSAGE_CLIENTE ( s1 -- )
|
||||||
DOC_CLIENTE \ user defined word
|
DOC_CLIENTE \ user defined word in ve1.exe
|
||||||
;
|
;
|
||||||
|
|
||||||
: MESSAGE_DITTA ( s1 -- )
|
: MESSAGE_DITTA ( s1 -- )
|
||||||
DOC_DITTA \ user defined word
|
DOC_DITTA \ user defined word in ve1.exe
|
||||||
;
|
;
|
||||||
|
|
||||||
: MESSAGE_PARENTDOC ( [b1] s1 n1 -- )
|
: MESSAGE_PARENTDOC ( [b1] s1 n1 -- )
|
||||||
DOC_PARENT_DOC \ user defined word
|
DOC_PARENT_DOC \ user defined word in ve1.exe
|
||||||
;
|
;
|
||||||
|
|
||||||
: MESSAGE_PARENTROW ( [b1] s1 n1 -- )
|
: MESSAGE_PARENTROW ( [b1] s1 n1 -- )
|
||||||
DOC_PARENT_ROW \ user defined word
|
DOC_PARENT_ROW \ user defined word in ve1.exe
|
||||||
;
|
;
|
||||||
|
|
||||||
: MESSAGE_RIEPILOGOIVA ( b1 s1 n1 -- )
|
: MESSAGE_RIEPILOGOIVA ( b1 s1 n1 -- )
|
||||||
DOC_RIEPILOGO_IVA
|
DOC_RIEPILOGO_IVA \ user defined word in ve1.exe
|
||||||
;
|
;
|
||||||
|
|
||||||
: MESSAGE_SCADENZE ( b1 s1 -- )
|
: MESSAGE_SCADENZE ( b1 s1 -- )
|
||||||
DOC_SCADENZE
|
DOC_SCADENZE \ user defined word in ve1.exe
|
||||||
;
|
;
|
||||||
|
|
||||||
: MESSAGE_TOTIMPONIBILI ( [n1] -- )
|
: MESSAGE_TOTIMPONIBILI ( [n1] -- )
|
||||||
DOC_TOT_IMPONIBILI
|
DOC_TOT_IMPONIBILI \ user defined word in ve1.exe
|
||||||
;
|
;
|
||||||
|
@ -808,7 +808,7 @@ bool TReport_doc_app::print_loop(const TString& query)
|
|||||||
if (docs <= 0)
|
if (docs <= 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const bool is_definitive = yesno_box(TR("Stampa in definitiva?"));
|
const bool is_definitive = yesno_box(TR("Stampare in definitiva %d documenti?"), docs);
|
||||||
|
|
||||||
TReport_doc* report = NULL;
|
TReport_doc* report = NULL;
|
||||||
TReport_book book;
|
TReport_book book;
|
||||||
|
@ -177,43 +177,39 @@ bool condpag_hndl( TMask_field& field, KEY key )
|
|||||||
|
|
||||||
bool note_hndl( TMask_field& f, KEY key )
|
bool note_hndl( TMask_field& f, KEY key )
|
||||||
{
|
{
|
||||||
TDocumento_mask & m = (TDocumento_mask &) f.mask();
|
TDocumento_mask& m = (TDocumento_mask &) f.mask();
|
||||||
|
|
||||||
if (key == K_TAB && (f.focusdirty() || !m.is_running()))
|
if (key == K_TAB && (f.focusdirty() || !m.is_running()))
|
||||||
{
|
{
|
||||||
TTable & note = (TTable &) ((TEdit_field &) f).browse()->cursor()->file();
|
const TRectype& note = cache().get("%NOT", f.get());
|
||||||
// gestione del campo con descrizione estesa
|
if (!note.empty())
|
||||||
TString stringone;
|
|
||||||
TRectype& rec = note.curr();
|
|
||||||
TString4 fieldname;
|
|
||||||
for (int i = 0; i < 6; i++)
|
|
||||||
{
|
{
|
||||||
fieldname.format("S%d", i);
|
if (m.is_running() || m.field(F_NOTECLI).empty()) // Preserva descrizione presente in caricamento
|
||||||
stringone << rec.get(fieldname);
|
{
|
||||||
}
|
// gestione del campo con descrizione estesa
|
||||||
stringone.replace((char)0xB6, '\n');
|
TString stringone;
|
||||||
m.set(F_NOTECLI, stringone);
|
for (int i = 0; i < 6; i++)
|
||||||
|
{
|
||||||
|
const char fieldname[3] = { 'S', i, '\0' };
|
||||||
|
stringone << note.get(fieldname);
|
||||||
|
}
|
||||||
|
stringone.replace(char(0xB6), '\n');
|
||||||
|
m.set(F_NOTECLI, stringone);
|
||||||
|
}
|
||||||
|
|
||||||
note.setkey(1);
|
if (m.doc().modificabile() && m.field(DLG_SAVEREC).enabled())
|
||||||
const TString16 cod(f.get());
|
{
|
||||||
|
const bool reg_disabled = note.get_bool("B0");
|
||||||
if (cod != note.get("CODTAB"))
|
if (reg_disabled)
|
||||||
{
|
{
|
||||||
note.zero();
|
message_box(FR("Registrazione disabilitata : %s"), (const char*)note.get("S0"));
|
||||||
note.put("CODTAB", cod);
|
m.disable(DLG_SAVEREC);
|
||||||
if (note.read() != NOERR)
|
}
|
||||||
note.zero();
|
}
|
||||||
}
|
|
||||||
if (m.doc().modificabile() && m.field(DLG_SAVEREC).enabled())
|
|
||||||
{
|
|
||||||
const bool reg_disabled = note.get_bool("B0");
|
|
||||||
|
|
||||||
if (reg_disabled)
|
|
||||||
message_box("Registrazione disabilitata : %s", (const char *) note.get("S0"));
|
|
||||||
m.enable(DLG_SAVEREC, !reg_disabled);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return TRUE;
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handler per il calcolo delle date di pagamento
|
// Handler per il calcolo delle date di pagamento
|
||||||
|
Loading…
x
Reference in New Issue
Block a user