From 7313a0f4e84eaca72e869f29a2c1061a4be813a9 Mon Sep 17 00:00:00 2001 From: luca Date: Wed, 30 Apr 2008 14:37:29 +0000 Subject: [PATCH] Patch level :10.0 Files correlati : Ricompilazione Demo : [ ] Commento :riportate modifiche dalla 5.0 git-svn-id: svn://10.65.10.50/trunk@16560 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ca/ca3800.cpp | 12 ++-- ca/ca3800a.rep | 51 ++++++++-------- ca/ca3800b.rep | 55 +++++++----------- ca/ca3800c.rep | 61 +++++++++----------- ca/ca3883.cpp | 154 ++++++++++++++++++++++++++++++++++++++++++------- ca/ca3883.h | 9 ++- ca/calib01.cpp | 6 +- 7 files changed, 224 insertions(+), 124 deletions(-) diff --git a/ca/ca3800.cpp b/ca/ca3800.cpp index 7aeb9f48e..ff67c4b99 100755 --- a/ca/ca3800.cpp +++ b/ca/ca3800.cpp @@ -172,7 +172,8 @@ protected: public: void set_filter(const TPrint_bilancio_cms_mask& msk, const TString& curr_fase); - TPrint_bilancio_cms_rep(const char* rep_name, const TString& prefix, const int depth); + TPrint_bilancio_cms_rep(const char* rep_name, const TString& prefix, const int depth, + const bool show_fasi, const bool show_cdc); }; bool TPrint_bilancio_cms_rep::get_usr_val(const TString& name, TVariant& var) const @@ -196,8 +197,9 @@ void TPrint_bilancio_cms_rep::set_filter(const TPrint_bilancio_cms_mask& msk, co TReport::set_recordset(recset); } -TPrint_bilancio_cms_rep::TPrint_bilancio_cms_rep(const char* rep_name, const TString& prefix, const int depth) - :TCRPA_report(rep_name, prefix, depth) +TPrint_bilancio_cms_rep::TPrint_bilancio_cms_rep(const char* rep_name, const TString& prefix, + const int depth, const bool show_fasi, const bool show_cdc) + :TCRPA_report(rep_name, prefix, depth, show_fasi, show_cdc) { } @@ -226,11 +228,13 @@ void TPrint_bilancio_cms::main_loop() const bool use_fasi = (tipostampa == 1) || (tipostampa == 3); const TString& fase = mask.get(F_FASE); const bool group_fasi = tipostampa == 4; + const bool show_fasi = use_fasi && fase.empty(); //cdc const bool use_cdc = (tipostampa == 2) || (tipostampa == 3); const TString& cdc = mask.get(F_CDC); const bool group_cdc = tipostampa == 8; + const bool show_cdc = use_cdc && cdc.empty(); if (path.empty()) { @@ -238,7 +242,7 @@ void TPrint_bilancio_cms::main_loop() } //crea il report in base ai parametri (tipo report,struttura,profondita' di stampa) - TPrint_bilancio_cms_rep rep(path, prefix, depth); + TPrint_bilancio_cms_rep rep(path, prefix, depth, show_fasi, show_cdc); //se e' una stampa di tipo fasi riassunte (crpa special edition) deve fare lo scanning di tutte le fasi.. //..singolarmente e stampare un report per ogni fase.Senno' stampa un solo report diff --git a/ca/ca3800a.rep b/ca/ca3800a.rep index 3203acabb..3d10b13c8 100755 --- a/ca/ca3800a.rep +++ b/ca/ca3800a.rep @@ -7,26 +7,27 @@ #SYSTEM.RAGSOC - + - + #SYSTEM.DATE - + - + #REPORT.PAGE - - - - - + + + + + "MARGINE CONTRIBUZIONE" +
@@ -146,16 +147,16 @@
1 #H4.3 \ incrementa il contatore per il numero di righe di fase +! - + CODCMS - + IF(#H4.3=0;DESCRIZ;"") - + FASE - #STAMPAFASI @ + #STAMPAFASI @ EMPTY= IF #THIS HIDE ELSE @@ -163,9 +164,9 @@ ELSE THEN - + CDC - #STAMPACDC @ + #STAMPACDC @ EMPTY= IF #THIS HIDE ELSE @@ -173,21 +174,20 @@ ELSE THEN - + ROUND(AVANZAMENTO;0) - - + MESSAGE ADD,F4.69 MESSAGE ADD,F3.69 - + #RICAVI-#COSTI MESSAGE ADD,F4.169 MESSAGE ADD,F3.169 - + #RICAVI @ EMPTY= IF @@ -205,6 +205,7 @@ ROUND THEN #THIS ! +
@@ -226,7 +227,7 @@ THEN
- + H2.101 @@ -236,7 +237,7 @@ THEN
  • - + H2.102 @@ -245,7 +246,7 @@ THEN MESSAGE ADD,F1.69