<report libraries="ve1300" name="ca3800a" orientation="2" lpi="6" class="ca3800a">
 <description>Bilancio commessa CA</description>
 <font face="Arial Narrow" size="8" />
 <section type="Head">
  <font italic="1" face="Arial Narrow" bold="1" size="8" />
  <field x="1" type="Stringa" width="50" pattern="1">
   <source>#SYSTEM.RAGSOC</source>
  </field>
  <field x="80" type="Data" width="12" pattern="1">
   <source>#SYSTEM.DATE</source>
  </field>
  <field x="165" type="Numero" align="right" width="3" pattern="1">
   <source>#REPORT.PAGE</source>
  </field>
  <field x="80" y="1.25" type="Testo" align="center" width="13" pattern="1" text="Margine" />
  <field x="54" y="2" type="Testo" align="center" width="6" pattern="1" text="% Av." />
  <field x="80" y="2" type="Testo" align="center" width="13" pattern="1" text=" Contribuz. " />
  <field border="1" x="1" y="3" type="Linea" width="169" height="0" pattern="1" />
  <field x="59" y="1" type="Testo" valign="bottom" align="right" width="13" height="2" id="69" pattern="1" text="Testata" />
  <field x="1" y="2" type="Testo" width="15" id="121" pattern="1" text="Commessa" />
 </section>
 <section type="Head" level="1">
  <field border="1" radius="100" x="1" type="Testo" valign="center" align="center" shade_offset="25" width="167" height="2.5" text="BILANCIO DI COMMESSA PER ESERCIZIO">
   <font face="Courier New" bold="1" size="16" />
  </field>
  <field x="10" y="3" type="Testo" width="35" pattern="1" text="Costi e ricavi di Commessa maturati nell'esercizio">
   <font italic="1" face="Arial Narrow" size="9" />
  </field>
  <field x="45" y="3" type="Stringa" width="4" pattern="1">
   <font face="Arial Narrow" bold="1" size="9" />
   <source>ANNO</source>
  </field>
  <field x="60" y="3" type="Testo" width="15" pattern="1" text="Stima avanzamento ">
   <font italic="1" face="Arial Narrow" size="9" />
  </field>
  <field x="75" y="3" type="Array" width="30" pattern="1">
   <font face="Arial Narrow" bold="1" size="9" />
   <source>TIPOSTIMA</source>
   <list>
    <li Value="TEMPO" Code="T" />
    <li Value="COSTI Consuntivi \ RICAVI Preventivi" Code="C" />
    <li Value="COSTI Consuntivi \ RICAVI Consuntivi" Code="R" />
   </list>
  </field>
  <field x="120" y="3" type="Testo" width="25" pattern="1" text="Profondita' della struttura in esame">
   <font italic="1" face="Arial Narrow" size="9" />
  </field>
  <field x="145" y="3" type="Array" width="7" pattern="1">
   <font face="Arial Narrow" bold="1" size="9" />
   <source>DEPTH</source>
   <list>
    <li Value="Gruppo" Code="1" />
    <li Value="Conto" Code="2" />
   </list>
  </field>
  <field x="10" y="4.25" type="Testo" width="20" pattern="1" text="Include esercizi successivi">
   <font italic="1" face="Arial Narrow" size="9" />
  </field>
  <field x="30" y="4.25" type="Stringa" width="3" pattern="1">
   <font face="Arial Narrow" bold="1" size="9" />
   <source>VITAINTERA</source>
  </field>
  <field x="60" y="4.25" type="Testo" width="15" pattern="1" text="Fase specificata">
   <font italic="1" face="Arial Narrow" size="9" />
  </field>
  <field x="75" y="4.25" type="Stringa" width="10" pattern="1">
   <font face="Arial Narrow" bold="1" size="9" />
   <source>FASESPEC</source>
  </field>
  <field border="2" x="1" y="5.5" type="Linea" width="169" height="0" pattern="1" />
 </section>
 <section type="Head" level="2" height="1.5" page_break="1">
  <groupby>LEVEL &#3C; 2</groupby>
  <font italic="1" face="Arial Narrow" bold="1" size="8" />
  <field x="1" type="Array" bg_color="#C0C0C0" width="22">
   <source>LEVEL</source>
   <list>
    <li Value="Commesse terminate nel" Code="0" />
    <li Value="Commesse terminate nel" Code="1" />
    <li Value="Commesse in corso entro fine" Code="2" />
    <li Value="Commesse in corso entro fine" Code="3" />
   </list>
  </field>
  <field x="23" type="Numero" align="right" bg_color="#C0C0C0" width="6">
   <source>ANNO</source>
  </field>
  <field border="1" x="1" y="1.25" type="Linea" width="169" height="0" pattern="1" />
  <field type="Numero" hidden="1" align="right" width="1" id="101" pattern="1">
   <source>LEVEL</source>
   <postscript description="H2.101 POSTSCRIPT">MESSAGE COPY,F2.101</postscript>
  </field>
  <field x="29" type="Numero" hidden="1" align="right" width="4" id="102" pattern="1">
   <source>ANNO</source>
   <postscript description="H2.102 POSTSCRIPT">MESSAGE COPY,F2.102</postscript>
  </field>
 </section>
 <section type="Head" level="3" height="1.5">
  <groupby>LEVEL</groupby>
  <font italic="1" face="Arial Narrow" bold="1" size="8" />
  <field x="3" type="Array" bg_color="#C0C0C0" width="40" pattern="1">
   <source>LEVEL</source>
   <list>
    <li Value="Commesse avviate in esercizi precedenti" Code="0" />
    <li Value="Commesse avviate nell'esercizio selezionato" Code="1" />
    <li Value="Commesse avviate in esercizi precedenti" Code="2" />
    <li Value="Commesse avviate nell'esercizio selezionato" Code="3" />
   </list>
  </field>
  <field border="1" x="2" y="1.25" type="Linea" width="169" height="0" pattern="1" />
  <field type="Numero" hidden="1" align="right" width="1" id="101" pattern="1">
   <source>LEVEL</source>
   <postscript description="H3.101 POSTSCRIPT">MESSAGE COPY,F3.101</postscript>
  </field>
 </section>
 <section type="Head" level="4" hidden="1">
  <condition>STAMPAFASI != ""</condition>
  <groupby>CODCMS</groupby>
  <font italic="1" face="Arial Narrow" bold="1" size="8" />
  <field type="Stringa" width="1" id="1" pattern="1">
   <source>STAMPAFASI</source>
  </field>
  <field x="2" type="Stringa" bg_color="#C0C0C0" width="20" id="2" pattern="1">
   <source>CODCMS</source>
  </field>
  <field x="23" type="Numero" align="right" width="2" id="3" pattern="1">
   <source>0</source>
  </field>
 </section>
 <section type="Body" />
 <section type="Body" level="1">
  <prescript description="B1 PRESCRIPT">1 #H4.3  \ incrementa il contatore per il numero di righe di fase
+!</prescript>
  <field x="1" type="Stringa" width="20" pattern="1">
   <source>CODCMS</source>
  </field>
  <field x="21" type="Stringa" width="25" pattern="1">
   <font face="Arial Narrow" size="7" />
   <source>IF(#H4.3=0;DESCRIZ;"")</source>
  </field>
  <field x="47" type="Stringa" width="9" pattern="1">
   <source>FASE</source>
  </field>
  <field x="56" type="Numero" align="right" width="3" pattern="1">
   <font italic="1" face="Arial Narrow" size="8" />
   <source>ROUND(AVANZAMENTO;0)</source>
  </field>
  <field x="91" type="Testo" align="center" width="2" pattern="1" text="%" />
  <field x="59" type="Valuta" align="right" width="13" id="69" pattern="1" text="###.###.###,@@">
   <postscript description="B1.69 POSTSCRIPT">MESSAGE ADD,F4.69
MESSAGE ADD,F3.69</postscript>
  </field>
  <field x="73" type="Valuta" align="right" width="13" id="169" pattern="1" text="###.###.###,@@">
   <source>#RICAVI-#COSTI</source>
   <postscript description="B1.169 POSTSCRIPT">MESSAGE ADD,F4.169
MESSAGE ADD,F3.169</postscript>
  </field>
  <field x="87" type="Numero" align="right" width="4" id="170" pattern="1">
   <font italic="1" face="Arial Narrow" size="8" />
   <prescript description="B1.170 PRESCRIPT">#RICAVI @
EMPTY= IF
0
ELSE
1
#COSTI @
#RICAVI @
&#2F;
-
100
*
0
ROUND
THEN
#THIS !</prescript>
  </field>
 </section>
 <section type="Foot" />
 <section type="Foot" level="1" height="3">
  <font italic="1" face="Arial Narrow" bold="1" size="8" />
  <field border="2" x="1" y="0.75" type="Linea" width="169" height="0" pattern="1" />
  <field x="1" y="1.5" type="Testo" fg_color="#FFFFFF" bg_color="#000000" width="25" height="1.5" text="TOTALI GENERALI " />
  <field x="59" y="1.5" type="Valuta" align="right" width="13" id="69" pattern="1" text="###.###.###,@@" />
  <field x="73" y="1.5" type="Valuta" align="right" width="13" id="169" pattern="1" text="###.###.###,@@" />
 </section>
 <section type="Foot" level="2" height="2.5">
  <font italic="1" face="Courier New" bold="1" size="8" />
  <field border="1" x="1" y="0.5" type="Linea" width="169" height="0" pattern="1" />
  <field x="1" y="1" type="Array" bg_color="#C0C0C0" width="28">
   <font italic="1" face="Arial Narrow" bold="1" size="8" />
   <source>H2.101</source>
   <list>
    <li Value="TOTALI Commesse terminate nel" Code="0" />
    <li Value="TOTALI Commesse terminate nel" Code="1" />
    <li Value="TOTALI Commesse in corso entro fine" Code="2" />
    <li Value="TOTALI Commesse in corso entro fine" Code="3" />
   </list>
  </field>
  <field x="29" y="1" type="Numero" align="right" bg_color="#C0C0C0" width="6">
   <font italic="1" face="Arial Narrow" bold="1" size="8" />
   <source>H2.102</source>
  </field>
  <field x="59" y="1" type="Valuta" align="right" width="13" id="69" pattern="1" text="###.###.###,@@">
   <font italic="1" face="Arial Narrow" bold="1" size="8" />
   <postscript description="F2.69 POSTSCRIPT">MESSAGE ADD,F1.69</postscript>
  </field>
  <field y="1" type="Numero" hidden="1" align="right" width="1" id="101" pattern="1" />
  <field x="35" y="1" type="Numero" hidden="1" align="right" width="4" id="102" pattern="1">
   <postscript description="F2.102 POSTSCRIPT">MESSAGE COPY,F2.101</postscript>
  </field>
  <field x="73" y="1" type="Valuta" align="right" width="13" id="169" pattern="1" text="###.###.###,@@">
   <font italic="1" face="Arial Narrow" bold="1" size="8" />
   <postscript description="F2.169 POSTSCRIPT">MESSAGE ADD,F1.169
MESSAGE RESET,169</postscript>
  </field>
 </section>
 <section type="Foot" level="3" height="2">
  <font italic="1" face="Arial Narrow" bold="1" size="8" />
  <field border="1" x="2" y="0.25" type="Linea" width="169" height="0" pattern="1" />
  <field x="2" y="0.5" type="Array" bg_color="#C0C0C0" width="40" pattern="1">
   <source>H3.101</source>
   <list>
    <li Value="TOTALI Commesse avviate in esercizi precedenti" Code="0" />
    <li Value="TOTALI Commesse avviate nell'esercizio selezionato" Code="1" />
    <li Value="TOTALI Commesse avviate in esercizi precedenti" Code="2" />
    <li Value="TOTALI Commesse avviate nell'esercizio selezionato" Code="3" />
   </list>
  </field>
  <field x="59" y="0.5" type="Valuta" align="right" width="13" id="69" pattern="1" text="###.###.###,@@">
   <postscript description="F3.69 POSTSCRIPT">MESSAGE ADD,F2.69</postscript>
  </field>
  <field y="0.5" type="Numero" hidden="1" align="right" width="1" id="101" pattern="1" />
  <field x="73" y="0.5" type="Valuta" align="right" width="13" id="169" pattern="1" text="###.###.###,@@">
   <postscript description="F3.169 POSTSCRIPT">MESSAGE ADD,F2.169
MESSAGE RESET,169</postscript>
  </field>
 </section>
 <section type="Foot" level="4" height="1.25">
  <condition>(STAMPAFASI != "")&#26;&#26;(#H4.3 &#3E; 0)&#26;&#26;(TIPOSTIMA!='T')&#26;&#26;(FASESPEC=="")</condition>
  <font italic="1" face="Arial Narrow" bold="1" size="8" />
  <field border="1" x="2" type="Linea" width="169" height="0" pattern="1" />
  <field x="22" type="Testo" width="20" pattern="1" text="Totali commessa" />
  <field x="2" type="Stringa" bg_color="#C0C0C0" width="20" id="2" pattern="1">
   <source>H4.2</source>
  </field>
  <field x="59" type="Valuta" align="right" width="13" id="69" pattern="1" text="###.###.###,@@" />
  <field x="73" type="Valuta" align="right" width="13" id="169" pattern="1" text="###.###.###,@@">
   <postscript description="F4.169 POSTSCRIPT">MESSAGE RESET,169</postscript>
  </field>
 </section>
 <sql>USE SALDANA</sql>
</report>