From 5a515a1f60f901db08fc6546c4a09f44e4a1e520 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 19 Jan 2007 17:53:32 +0000 Subject: [PATCH] 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 --- ve/ve0100.cpp | 7 +++++++ ve/velib.h | 3 ++- ve/vetbtip.h | 3 +++ ve/vetbtip.uml | 17 +++++++++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/ve/ve0100.cpp b/ve/ve0100.cpp index 9f94f157a..245d8cce8 100755 --- a/ve/ve0100.cpp +++ b/ve/ve0100.cpp @@ -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 ) diff --git a/ve/velib.h b/ve/velib.h index e0367c3d2..0d5f4b14d 100755 --- a/ve/velib.h +++ b/ve/velib.h @@ -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 \ No newline at end of file +#endif diff --git a/ve/vetbtip.h b/ve/vetbtip.h index aed050f16..1565956f9 100755 --- a/ve/vetbtip.h +++ b/ve/vetbtip.h @@ -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 \ No newline at end of file diff --git a/ve/vetbtip.uml b/ve/vetbtip.uml index 55fb3b900..e6e7667fe 100755 --- a/ve/vetbtip.uml +++ b/ve/vetbtip.uml @@ -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