<report name="ci1200e" lpi="6" class="ci1200"> <description>Stampa Riepilogativa Risorse</description> <font face="Courier New" size="10" /> <section type="Head"> <field type="Testo" align="center" width="90" pattern="1" text="Stampa Riepilogativa Risorse"> <font face="Courier New" bold="1" size="10" /> </field> <field x="67" type="Data" width="14" pattern="1"> <source>#SYSTEM.DATE</source> </field> <field x="82" type="Numero" align="right" width="8" pattern="1" text="Pag.##"> <source>#REPORT.PAGE</source> </field> <field y="2" type="Testo" width="10" pattern="1" text="Cantiere:" /> <field x="9.5" y="2" type="Stringa" width="20" pattern="1"> <source>CODCMS</source> </field> <field x="31" y="2" type="Stringa" width="50" pattern="1"> <source>COMMESSE.DESCRIZ</source> </field> <field y="3" type="Stringa" width="30" pattern="1" text="Da Data: "> <source>#S_DATEFROM</source> </field> <field x="31" y="3" type="Stringa" width="30" pattern="1" text="a Data: "> <source>#S_DATETO</source> </field> <field border="1" y="4.5" type="Linea" width="90" height="0" pattern="1" /> </section> <section type="Head" level="1"> <prescript description="H1 PRESCRIPT">MESSAGE RESET,F1.330</prescript> </section> <section keep_with_next="1" type="Head" level="2"> <groupby>CODCMS</groupby> <prescript description="H2 PRESCRIPT">MESSAGE RESET,F2.230</prescript> <field border="1" x="20.8" y="1" type="Linea" width="69.2" height="0" pattern="1" /> <field y="2" type="Stringa" hidden="1" width="20" id="901" pattern="1"> <font face="Courier New" size="8" /> <source>DOC.CODCMS</source> <prescript description="H2.901 PRESCRIPT">MESSAGE COPY,F2.521</prescript> </field> <field x="21" y="2" type="Stringa" hidden="1" width="20" id="902" pattern="1"> <font face="Courier New" size="8" /> <source>COMMESSE.DESCRIZ</source> <prescript description="H2.902 PRESCRIPT">MESSAGE COPY,F2.521</prescript> </field> <field type="Stringa" width="80" id="903" pattern="1" text="Cantiere: "> <font face="Courier New" size="8" /> <source>iF(#901!="",#901+" - "+#902,"Non Specificato")</source> <prescript description="H2.903 PRESCRIPT">MESSAGE COPY,F2.521</prescript> </field> </section> <section keep_with_next="1" type="Head" level="3"> <groupby>DOC.TIPODOC</groupby> <prescript description="H3 PRESCRIPT">MESSAGE RESET,F3.110|RESET,F3.130</prescript> <field y="0.06" type="Stringa" hidden="1" width="20" pattern="1"> <font face="Courier New" size="8" /> <source>DOC.TIPODOC</source> <prescript description="H3.0 PRESCRIPT">MESSAGE COPY,F3.511</prescript> </field> </section> <section type="Body" /> <section type="Body" level="1"> <condition>RDOC.CODART!=''  RDOC.CODART!=' '</condition> <field x="66.12" type="Numero" hidden="1" align="right" width="4" id="1" pattern="1"> <font face="Courier New" size="8" /> <source>RDOC.QTA</source> <prescript description="B1.1 PRESCRIPT">MESSAGE ADD,F4.10|ADD,F3.110</prescript> </field> <field x="70.12" type="Valuta" hidden="1" align="right" width="10" id="2" pattern="1" text="#########,@@"> <font face="Courier New" size="8" /> <source>RDOC.PREZZO</source> </field> <field x="80.12" type="Valuta" hidden="1" align="right" width="10" id="3" pattern="1" text="#########,@@"> <font face="Courier New" size="8" /> <source>IMPNS*SEGNO</source> <prescript description="B1.3 PRESCRIPT">MESSAGE ADD,F3.130|ADD,F2.230</prescript> <postscript description="B1.3 POSTSCRIPT">#THIS @ \ Leggo importo "DOC.IS_COSTO" @ \ &#E8; un costo IF \ "F1.330" \ lo sommo al totale dei costi ELSE "F1.340" \ lo sommo al totale dei ricavi THEN +! \ incremento il totale selezionato</postscript> </field> </section> <section type="Foot"> <field border="1" y="0.5" type="Linea" width="90" height="0" pattern="1" /> </section> <section type="Foot" level="1"> <field x="49.5" y="1" type="Testo" width="13" pattern="1" text="Totale Costi"> <font face="Courier New" bold="1" size="8" /> </field> <field x="49.5" y="2" type="Testo" width="13" pattern="1" text="Totale Ricavi"> <font face="Courier New" bold="1" size="8" /> </field> <field x="49.5" y="3" type="Testo" width="13" pattern="1" text="Margine"> <font face="Courier New" bold="1" size="8" /> </field> <field x="64" y="1" type="Valuta" align="right" width="25.6" id="330" pattern="1" hide_zero="1" text="###.###.###,@@"> <font face="Courier New" bold="1" size="8" /> </field> <field x="64" y="2" type="Valuta" align="right" width="25.6" id="340" pattern="1" hide_zero="1" text="###.###.###,@@"> <font face="Courier New" bold="1" size="8" /> </field> <field x="64" y="3" type="Valuta" align="right" width="25.6" id="350" pattern="1" hide_zero="1" text="###.###.###,@@"> <font face="Courier New" bold="1" size="8" /> <source>#340-#330</source> </field> </section> <section type="Foot" level="2" hidden="1"> <field border="1" x="20.8" type="Linea" pattern="1" /> <field border="1" x="20.8" type="Linea" width="69.2" height="0" pattern="1" /> <field border="3" x="20.8" y="1" type="Linea" width="69.2" height="0" pattern="1" /> <field x="74" type="Valuta" align="right" width="15.6" id="230" pattern="1" text="#########,@@"> <font face="Courier New" size="7" /> </field> <field x="21" type="Stringa" width="50" id="521" pattern="1" text="Totale Cantiere: "> <font face="Courier New" size="7" /> </field> </section> <section type="Foot" level="3"> <field border="1" x="20.8" type="Linea" width="69.2" height="0" pattern="1" /> <field border="1" x="20.8" type="Linea" pattern="1" /> <field x="21" type="Stringa" width="40" pattern="1" text="Totale Tipologia: "> <font face="Courier New" size="7" /> <prescript description="F3.0 PRESCRIPT">MESSAGE _TABLEREAD,%TIP,#511,S0</prescript> </field> <field border="1" x="61.8" type="Linea" pattern="1" /> <field border="1" x="20.8" y="1" type="Linea" width="69.2" height="0" pattern="1" /> <field x="74" type="Valuta" align="right" width="15.6" id="130" pattern="1" text="#########,@@"> <font face="Courier New" size="7" /> </field> <field x="16" type="Stringa" width="5" id="511" pattern="1"> <font face="Courier New" size="7" /> </field> </section> <sql>USE RDOC KEY 2 BY CODCMS 33.TIPODOC[2,4] JOIN DOC INTO CODNUM=CODNUM ANNO=ANNO PROVV=PROVV NDOC=NDOC JOIN COMMESSE INTO CODCMS=CODCMS </sql> </report>