From 0ae593f9315a2f1035303cef532184a0811dd485 Mon Sep 17 00:00:00 2001 From: luca Date: Mon, 11 Feb 2008 09:27:56 +0000 Subject: [PATCH] =?UTF-8?q?Patch=20level=20=20=20=20=20=20=20=20=20:=20Fil?= =?UTF-8?q?es=20correlati=20=20=20=20=20:=20Ricompilazione=20Demo=20:=20[?= =?UTF-8?q?=20]=20Commento=20=20=20=20=20=20=20=20=20=20=20=20:=200000790?= =?UTF-8?q?=20stampa=20della=20tabella=20delle=20categorie=20A=20mio=20par?= =?UTF-8?q?ere=20sarebbe=20utile=20una=20stampa=20delle=20categorie=20cesp?= =?UTF-8?q?iti=20con=20i=20relativi=20conti=20di=20contabilit=C3=A0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sistemato problema legato alle specie con il carattere spazio! git-svn-id: svn://10.65.10.50/trunk@16132 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ce/ce4400.cpp | 23 +++++++++- ce/ce4400a.uml | 2 + ce/cemenu.men | 1 + ce/cestccc.h | 12 ++++++ ce/cestccc.rep | 114 +++++++++++++++++++++++++++++++++++++++++++++++++ ce/cestccc.uml | 59 +++++++++++++++++++++++++ 6 files changed, 210 insertions(+), 1 deletion(-) create mode 100755 ce/cestccc.h create mode 100755 ce/cestccc.rep create mode 100755 ce/cestccc.uml diff --git a/ce/ce4400.cpp b/ce/ce4400.cpp index ee368387e..165f8863d 100755 --- a/ce/ce4400.cpp +++ b/ce/ce4400.cpp @@ -49,9 +49,30 @@ bool TTrasf_mov_ce_cg_mask::on_field_event(TOperable_field& o, TField_event e, l } if (datacalc < data_ini_es || datacalc > data_fine_es) - return error_box("La data di calcolo deve appartenere all'esercizio selezionato!"); + return error_box(TR("La data di calcolo deve appartenere all'esercizio selezionato!")); } break; + case F_DATAREG: + if (e == fe_modify || e == fe_close) + { + const int ese = get_int(F_ESERCIZIO); + TDate datalim; + TEsercizi_contabili esc; + const int nesen = esc.next(ese); + if (nesen > 0) + { + datalim = esc[nesen].fine(); + } + else + { + datalim = esc[ese].fine(); + datalim.addyear(1); + } + TDate datareg = o.get(); + if (datareg > datalim) + return error_box(FR("La data registrazione deve essere inferiore al %s"), datalim.string()); + + } default: break; } return true; diff --git a/ce/ce4400a.uml b/ce/ce4400a.uml index 3ec1a6dbf..ae9f87026 100755 --- a/ce/ce4400a.uml +++ b/ce/ce4400a.uml @@ -135,6 +135,8 @@ BEGIN PROMPT 2 11 "Data registrazione " FLAGS "A" CHECKTYPE REQUIRED + VALIDATE DATE_CMP_FUNC >= DATACALC + WARNING "La data di registrazione non puo' essere inferiore alla data di calcolo" END BOOLEAN F_KILLOLD diff --git a/ce/cemenu.men b/ce/cemenu.men index 2a358b0b6..3c26bce43 100755 --- a/ce/cemenu.men +++ b/ce/cemenu.men @@ -80,6 +80,7 @@ Picture = Module = 11 Flags = "" Item_01 = "Categorie Collegamento Contabilita'", "ce0 -0 ccc", "F" +Item_03 = "Stampa Categorie Coll. Cont.", "ba3 -1 ccc" , "" Item_02 = "Trasferimento movimenti", "ce4 -3", "F" [CEMENU_009] diff --git a/ce/cestccc.h b/ce/cestccc.h new file mode 100755 index 000000000..277ed6d09 --- /dev/null +++ b/ce/cestccc.h @@ -0,0 +1,12 @@ +#define F_INIZIO 101 // GRUPPO I +#define F_INIZIO2 102 // SPECIE I +#define F_INIZIO3 103 // CATEGORIA I +#define F_FINE 104 // GRUPPO F +#define F_FINE2 105 // SPECIE F +#define F_FINE3 106 // CATEGORIA F +#define F_D_INIZIO 107 // DES GRUPPO I +#define F_D_INIZIO2 108 // DES SPECIE I +#define F_D_INIZIO3 109 // DES CATEGORIA I +#define F_D_FINE 110 // DES GRUPPO F +#define F_D_FINE2 111 // DES SPECIE F +#define F_D_FINE3 112 // DES CATEGORIA F diff --git a/ce/cestccc.rep b/ce/cestccc.rep new file mode 100755 index 000000000..60cfef50c --- /dev/null +++ b/ce/cestccc.rep @@ -0,0 +1,114 @@ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + CODTAB[1,2] + + + CODTAB[3,6] + + + CODTAB[7,8] + + + MESSAGE _TABLEREAD,%CAC,CODTAB,S0 + + + S1[1,3] + + + S1[4,6] + + + S1[7,12] + + + S1[13,15] + + + S1[16,18] + + + S1[19,24] + + + S1[25,27] + + + S1[28,30] + + + S1[31,36] + + + S1[37,39] + + + S1[40,42] + + + S1[43,48] + + + S1[49,51] + + + S1[52,54] + + + S1[54,60] + +
+
+ + + #SYSTEM.DATE + + + #PAGE + + +
+
+ USE CCC + \ No newline at end of file diff --git a/ce/cestccc.uml b/ce/cestccc.uml new file mode 100755 index 000000000..ca7f4cfd2 --- /dev/null +++ b/ce/cestccc.uml @@ -0,0 +1,59 @@ +//definizione maschera per stampa tabella CATEGORIE COLLEGAMENTO CESPITI CONTABILITA' +#include "cestccc.h" + +PAGE "Stampa Categorie Collegamento Cespiti Contabilita'" -1 -1 78 12 + +STRING F_INIZIO 8 +BEGIN + PROMPT 2 2 "Da Categoria " + FLAGS "UZ" + FIELD CODTAB + USE CCC KEY 1 + INPUT CODTAB F_INIZIO + DISPLAY "Categoria" CODTAB + DISPLAY "Descrizione@50" S0 + OUTPUT F_INIZIO CODTAB + OUTPUT F_D_INIZIO S0 + GROUP 1 + CHECKTYPE NORMAL +END + +STRING F_D_INIZIO 60 50 +BEGIN + PROMPT 26 2 "" + FLAGS "D" +END + +STRING F_FINE 8 +BEGIN + PROMPT 2 6 "A Categoria " + FLAGS "UZ" + FIELD CODTAB + USE CCC KEY 1 + INPUT CODTAB F_FINE + DISPLAY "Categoria" CODTAB + DISPLAY "Descrizione@50" S0 + OUTPUT F_FINE CODTAB + OUTPUT F_D_FINE S0 + GROUP 2 + CHECKTYPE NORMAL +END + +STRING F_D_FINE 60 50 +BEGIN + PROMPT 26 6 "" + FLAGS "D" +END + +BUTTON DLG_OK 10 2 +BEGIN + PROMPT -12 -1 "" +END + +BUTTON DLG_QUIT 10 2 +BEGIN + PROMPT -22 -1 "" +END + +ENDPAGE +ENDMASK