Patch level : 4.0 592

Files correlati     : ve0.exe
Ricompilazione Demo : [ ]
Commento            :


Aggiunte 10 righe automatiche in inserimento sulla base del tipo documento


git-svn-id: svn://10.65.10.50/trunk@14767 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2007-01-19 17:53:32 +00:00
parent 31ef24f89c
commit 5a515a1f60
4 changed files with 29 additions and 1 deletions

View File

@ -134,6 +134,13 @@ void TMotore_application::init_insert_mode( TMask& m )
tp.set_defaults(m);
m.disable(DLG_ELABORA);
dm.mask2doc();
if (curdo.tipo().auto_add())
{
for (int i = 1; i <= 10; i++)
curdo.new_row("01");
dm.doc2mask(false);
}
}
void TMotore_application::init_modify_mode( TMask& m )

View File

@ -308,6 +308,7 @@ public:
bool calcolo_lordo() const { return get_bool("B8"); }
bool fattura_commerciale() const { return get_bool("B9"); }
bool allega_documenti() const { return get_bool("B10"); }
bool auto_add() const { return get_bool("B11"); }
const TString& stringa_descrizione_documento() const { return _str_desc_doc; }
const TString& stringa_descrizione_riga() const { return _str_desc_rdoc; }
@ -877,4 +878,4 @@ public:
virtual ~TDocumento_mask();
};
#endif
#endif

View File

@ -100,3 +100,6 @@
#define F_IVA_ES 503
#define F_IVA_NI 504
#define F_IVA_NS 505
#define F_GOLEM 511
#define F_ADDROW 512

View File

@ -1194,6 +1194,23 @@ BEGIN
FIELD S11[5,5]
END
GROUPBOX DLG_NULL 62 3
BEGIN
PROMPT 1 8 "@bStampa documenti avanzata"
END
BOOLEAN F_GOLEM
BEGIN
PROMPT 2 9 "Allega documenti specificati in anagrafica articoli"
FIELD B10
END
BOOLEAN F_ADDROW
BEGIN
PROMPT 2 11 "Crea 10 righe vuote in inserimento"
FIELD B11
END
ENDPAGE
ENDMASK