Patch level :10.0 770

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
ricompilato ca3 x avere le stampe con i campi a colori!
Sistemati i report di cdc/cms/fase che nun se potevano guardà!


git-svn-id: svn://10.65.10.50/trunk@20569 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2010-06-16 11:08:02 +00:00
parent d1f493fd80
commit 5cb2709c00
4 changed files with 120 additions and 99 deletions

View File

@ -1,60 +1,63 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ca1100,ca1500a" name="ca1500a" lpi="6">
<description>Stampa centri di costo di analitica</description>
<font face="Courier New" size="10" />
<section type="Head" height="8">
<field type="Stringa" width="50" pattern="1">
<prescript description="H0.0 PRESCRIPT">"!RAGSOC"
#REPORT.FIRM</prescript>
<font face="Arial" size="8" />
<section type="Head" pattern="1">
<field x="1" y="0.5" type="Testo" width="10" pattern="1" text="Codice">
<font face="Arial" bold="1" size="8" />
</field>
<field x="59" type="Data" width="10" pattern="1">
<field x="26" y="0.5" type="Testo" width="20" pattern="1" text="Descrizione">
<font face="Arial" bold="1" size="8" />
</field>
<field x="61" y="0.5" type="Testo" width="7" pattern="1" text="Addetti">
<font face="Arial" bold="1" size="8" />
</field>
<field x="69" y="0.5" type="Testo" width="7" pattern="1" text="Ges.Fasi">
<font face="Arial" bold="1" size="8" />
</field>
<field x="77.5" y="0.5" type="Testo" width="8" pattern="1" text="Appoggio">
<font face="Arial" bold="1" size="8" />
</field>
<field border="1" x="1" y="1.5" type="Linea" width="96" height="0" pattern="1" />
</section>
<section type="Head" level="1" pattern="1">
<field border="1" radius="50" x="8" y="0.5" type="Testo" valign="center" align="center" shade_offset="50" width="80" height="2" pattern="2" text="Centri di Costo per Contabilit&#E0; Analitica">
<font face="Arial" bold="1" size="16" />
</field>
<field x="3.5" y="3.5" type="Stringa" width="50" pattern="1">
<font face="Arial" bold="1" size="8" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="80" y="3.5" type="Data" width="10" pattern="1">
<font face="Arial" bold="1" size="8" />
<source>#SYSTEM.DATE</source>
</field>
<field x="70" type="Stringa" width="10" pattern="1" text="Pag. #.###">
<source>#REPORT.PAGE</source>
</field>
<field y="2" type="Testo" align="center" width="80" height="2" pattern="1" text="Stampa Centri di Costo Analitica">
<font face="Courier New" bold="1" size="16" />
</field>
<field y="5" type="Testo" width="10" pattern="1" text="Codice">
<font face="Courier New" bold="1" size="10" />
</field>
<field x="25" y="5" type="Testo" width="20" pattern="1" text="Descrizione">
<font face="Courier New" bold="1" size="10" />
</field>
<field x="60" y="5" type="Testo" width="7" pattern="1" text="Addetti">
<font face="Courier New" bold="1" size="10" />
</field>
<field x="67.5" y="5" type="Testo" width="4" pattern="1" text="Fasi">
<font face="Courier New" bold="1" size="10" />
</field>
<field x="72" y="5" type="Testo" width="8" pattern="1" text="Appoggio">
<font face="Courier New" bold="1" size="10" />
</field>
<field border="1" y="6.25" type="Linea" width="80" height="0" pattern="1" />
</section>
<section type="Head" level="1" />
<section type="Body" />
<section type="Body" level="1">
<field type="Stringa" width="25" pattern="1">
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<field x="1" type="Stringa" width="25" pattern="1">
<source>CODCOSTO</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE_FORMAT_COSTO</prescript>
</field>
<field x="25" type="Stringa" dynamic_height="1" width="35" height="20" pattern="1">
<field x="26" type="Stringa" dynamic_height="1" width="35" height="20" pattern="1">
<source>DESCRIZ + DESCRAGG</source>
</field>
<field x="60" type="Numero" align="right" width="5" pattern="1">
<field x="61" type="Numero" align="right" width="5" pattern="1">
<source>ADDETTI</source>
</field>
<field x="69" type="Stringa" width="2" pattern="1">
<field x="71" type="Stringa" width="2" pattern="1">
<source>GESTFASI</source>
</field>
<field x="78" type="Stringa" width="2" pattern="1">
<field x="80" type="Stringa" width="2" pattern="1">
<source>APPOGGIO</source>
</field>
</section>
<section type="Foot" />
<section type="Foot" level="1" />
<section type="Foot" pattern="1">
<field x="70" y="0.5" type="Stringa" width="10" pattern="1" text="Pag. #.###">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1" pattern="1" />
<sql>USE CDC
FROM CODCOSTO=#DACDC
TO CODCOSTO=#ACDC</sql>

View File

@ -2,7 +2,7 @@
<report libraries="ca1100,ca1600a" name="ca1600a" orientation="2" lpi="6">
<description>Stampa commesse di analitica</description>
<font face="Arial" size="8" />
<section type="Head">
<section type="Head" pattern="1">
<font face="Arial" bold="1" size="8" />
<field x="116.5" type="Testo" width="3" pattern="1" text="Reg. " />
<field x="121" type="Testo" width="6" pattern="1" text="Codice" />
@ -16,19 +16,21 @@
<field x="121" y="0.75" type="Testo" width="9" pattern="1" text="Attivita'" />
<field border="1" x="1" y="1.5" type="Linea" width="126" height="0" pattern="1" />
</section>
<section type="Head" level="1">
<field x="1" type="Stringa" width="50" pattern="1">
<section type="Head" level="1" pattern="1">
<field border="1" radius="50" x="30" y="0.5" type="Testo" valign="center" align="center" shade_offset="50" width="65" height="2" pattern="2" text="Commesse per Contabilit&#E0; Analitica">
<font face="Arial" bold="1" size="16" />
</field>
<field x="1" y="3.5" type="Stringa" width="50" pattern="1">
<font face="Arial" bold="1" size="8" />
<source>#SYSTEM.RAGSOC</source>
</field>
<field x="70" type="Data" width="10" pattern="1">
<field x="70" y="3.5" type="Data" width="10" pattern="1">
<font face="Arial" bold="1" size="8" />
<source>#SYSTEM.DATE</source>
</field>
<field x="34.5" y="1.5" type="Testo" align="center" width="35" pattern="1" text="Stampa Commesse Analitica">
<font face="Arial" bold="1" size="12" />
</field>
</section>
<section type="Body" />
<section type="Body" level="1">
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<field x="1" type="Stringa" width="20" pattern="1">
<source>CODCMS</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE_FORMAT_COMMESSA</prescript>
@ -55,12 +57,12 @@
<source>CODATT</source>
</field>
</section>
<section type="Foot">
<section type="Foot" pattern="1">
<field x="100" type="Stringa" width="10" pattern="1" text="Pag. #.###">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1" />
<section type="Foot" level="1" pattern="1" />
<sql>USE COMMESSE
FROM CODCMS=#DACMS
TO CODCMS=#ACMS</sql>

View File

@ -1,67 +1,77 @@
<?xml version="1.0" encoding="UTF-8" ?>
<report libraries="ca1100,ca1700a" name="ca1700a" lpi="6">
<description>Stampa fasi di analitica</description>
<font face="Courier New" size="10" />
<section type="Head" height="8">
<field type="Stringa" width="50" pattern="1">
<prescript description="H0.0 PRESCRIPT">"!RAGSOC"
<font face="Arial" size="8" />
<section type="Head" pattern="1">
<field x="0.5" type="Testo" width="22" pattern="1" text="Codice commessa&#2F;costo">
<font face="Arial" bold="1" size="8" />
</field>
<field x="5" y="1" type="Testo" width="12" pattern="1" text="Codice fase">
<font face="Arial" bold="1" size="8" />
</field>
<field x="20" y="1" type="Testo" width="20" pattern="1" text="Descrizione">
<font face="Arial" bold="1" size="8" />
</field>
<field x="55" y="1" type="Testo" width="10" pattern="1" text="Data inizio">
<font face="Arial" bold="1" size="8" />
</field>
<field x="66" y="1" type="Testo" width="10" pattern="1" text="Data fine">
<font face="Arial" bold="1" size="8" />
</field>
<field x="77" y="1" type="Testo" width="10" pattern="1" text="Proroga">
<font face="Arial" bold="1" size="8" />
</field>
<field border="1" x="0.5" y="2" type="Linea" width="96" height="0" pattern="1" />
</section>
<section type="Head" level="1" pattern="1">
<field border="1" radius="50" x="6.5" y="0.5" type="Testo" valign="center" align="center" shade_offset="50" width="80" height="2" pattern="2" text="Fasi di Contabilit&#E0; Analitica">
<font face="Arial" bold="1" size="16" />
</field>
<field x="2" y="3.5" type="Stringa" width="50" pattern="1">
<font face="Arial" bold="1" size="8" />
<source>#SYSTEM.RAGSOC</source>
<prescript description="H1.0 PRESCRIPT">"!RAGSOC"
#REPORT.FIRM</prescript>
</field>
<field x="59" type="Data" width="10" pattern="1">
<field x="84" y="3.5" type="Data" width="10" pattern="1">
<font face="Arial" bold="1" size="8" />
<source>#SYSTEM.DATE</source>
</field>
<field x="70" type="Stringa" width="10" pattern="1" text="Pag. #.###">
<source>#REPORT.PAGE</source>
</field>
<field y="2" type="Testo" align="center" width="80" height="2" pattern="1" text="Stampa Fasi Analitica">
<font face="Courier New" bold="1" size="16" />
</field>
<field y="4.25" type="Testo" width="12" pattern="1" text="Codice fase">
<font face="Courier New" bold="1" size="10" />
</field>
<field x="26" y="4.25" type="Testo" width="20" pattern="1" text="Descrizione">
<font face="Courier New" bold="1" size="10" />
</field>
<field x="59" y="4.25" type="Testo" width="11" pattern="1" text="Data inizio">
<font face="Courier New" bold="1" size="10" />
</field>
<field x="70" y="4.25" type="Testo" width="10" pattern="1" text="Data fine">
<font face="Courier New" bold="1" size="10" />
</field>
<field y="5.25" type="Testo" width="22" pattern="1" text="Codice commessa&#2F;costo">
<font face="Courier New" bold="1" size="10" />
</field>
<field x="59" y="5.25" type="Testo" width="11" pattern="1" text="Proroga">
<font face="Courier New" bold="1" size="10" />
</field>
<field border="1" y="6.25" type="Linea" width="80" height="0" pattern="1" />
</section>
<section type="Head" level="1" />
<section type="Body" />
<section type="Body" level="1">
<field type="Stringa" width="15" pattern="1">
<section type="Head" level="2" pattern="1">
<groupby>CODCMSFAS</groupby>
<font face="Arial" bold="1" size="8" />
<field x="1" type="Stringa" width="25" pattern="1">
<source>CODCMSFAS</source>
<prescript>MESSAGE_FORMAT_CMSCDC</prescript>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<field x="5" type="Stringa" width="15" pattern="1">
<source>CODFASE</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE_FORMAT_FASE</prescript>
</field>
<field x="25" type="Stringa" dynamic_height="1" width="34" height="2" pattern="1">
<field x="20" type="Stringa" dynamic_height="1" width="34" height="2" pattern="1">
<source>DESCRIZ</source>
</field>
<field x="59" type="Data" width="10" pattern="1">
<field x="55" type="Data" width="10" pattern="1">
<source>DATAINIZIO</source>
</field>
<field x="70" type="Data" width="10" pattern="1">
<field x="66" type="Data" width="10" pattern="1">
<source>DATAFINE</source>
</field>
<field y="1" type="Stringa" width="25" pattern="1">
<source>CODCMSFAS</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE_FORMAT_CMSCDC</prescript>
</field>
<field x="59" y="1" type="Data" width="10" pattern="1">
<field x="77" type="Data" width="10" pattern="1">
<source>DATAPROR</source>
</field>
</section>
<section type="Foot" />
<section type="Foot" level="1" />
<section type="Foot" pattern="1">
<field x="80" y="0.5" type="Stringa" width="10" pattern="1" text="Pag. #.###">
<source>#REPORT.PAGE</source>
</field>
</section>
<section type="Foot" level="1" pattern="1" />
<section type="Foot" level="2" height="1" pattern="1" />
<sql>USE FASI
FROM CODCMSFAS=#DACODCMSFAS CODFASE=#DACODFASE
TO CODCMSFAS=#ACODCMSFAS CODFASE=#ACODFASE</sql>

View File

@ -408,16 +408,22 @@ static void ca_append_select_clause(ostream& out, int level, int logic, bool upp
{
CHECKD(level>=0 && level <= last_level, "Bad analitic level ", level);
const TFieldref& key = mci.fieldref(level);
str << "STR(";
if (level > 0 && !upper_limit)
{
str << "STR(";
str << "(NUM(LEN(" << key.name() << "))>" << key.from() << ')'; // SE LEN(CODCONTO)>=4
}
if (level < last_level)
{
if (level > 0 && !upper_limit) str << "&&";
if (str.empty())
str = "STR(";
else
str << "&&";
str << "(NUM(LEN(" << key.name() << "))<=" << key.to() << ')'; // SE LEN(CODCONTO)<=7
}
str << ')';
if (str.not_empty())
str << ')';
}
}