<report name="or1400a" orientation="2" lpi="6"> <description>a</description> <font face="Courier New" size="8" /> <section type="Head"> <field type="Stringa" width="40" pattern="1"> <source>#SYSTEM.RAGSOC</source> </field> <field x="60" type="Stringa" align="center" width="30" height="1.5" pattern="1"> <font face="Times New Roman" bold="1" size="14" /> <source>"CONSUMI " +#OR14_ANNO</source> </field> <field x="131" type="Testo" width="8" pattern="1" text="Data:" /> <field x="139.5" type="Data" width="10.5" pattern="1"> <source>#SYSTEM.DATE</source> </field> <field x="156" type="Testo" width="8" pattern="1" text="Pagina:" /> <field x="164" type="Numero" align="right" width="3" pattern="1"> <source>#PAGE</source> </field> </section> <section type="Head" level="1" /> <section type="Head" level="2"> <groupby>47.GRMERC[1,2]</groupby> <field x="8" type="Stringa" width="80" pattern="1"> <font face="Courier New" bold="1" size="10" /> <prescript description="H2.0 PRESCRIPT">MESSAGE TABLEREAD,GMC,#10,S0</prescript> </field> <field x="1" type="Stringa" width="5" id="10" pattern="1"> <font face="Courier New" bold="1" size="10" /> <source>47.GRMERC[1,2]</source> </field> </section> <section type="Head" level="3"> <groupby>47.GRMERC[1,5]</groupby> <field x="8" type="Stringa" width="50" pattern="1"> <font face="Courier New" bold="1" size="8" /> <prescript description="H3.0 PRESCRIPT">MESSAGE TABLEREAD,GMC,#10,S0</prescript> </field> <field x="60.46" type="Testo" align="center" width="9" pattern="1" text="GEN" /> <field x="69.45" type="Testo" align="center" width="9" pattern="1" text="FEB" /> <field x="78.45" type="Testo" align="center" width="9" pattern="1" text="MAR" /> <field x="87.46" type="Testo" align="center" width="9" pattern="1" text="APR" /> <field x="96.46" type="Testo" align="center" width="9" pattern="1" text="MAG" /> <field x="105.46" type="Testo" align="center" width="9" pattern="1" text="GIU" /> <field x="114.46" type="Testo" align="center" width="9" pattern="1" text="LUG" /> <field x="123.46" type="Testo" align="center" width="9" pattern="1" text="AGO" /> <field x="132.46" type="Testo" align="center" width="9" pattern="1" text="SET" /> <field x="141.46" type="Testo" align="center" width="9" pattern="1" text="OTT" /> <field x="150.46" type="Testo" align="center" width="9" pattern="1" text="NOV" /> <field x="159.46" type="Testo" align="center" width="9" pattern="1" text="DIC" /> <field border="1" x="1" y="1" type="Linea" width="167" height="0" pattern="1" /> <field x="1" type="Stringa" width="5.5" id="10" pattern="1"> <font face="Courier New" bold="1" size="8" /> <source>47.GRMERC[1,5]</source> </field> </section> <section type="Head" level="4"> <groupby>CODART</groupby> <prescript description="H4 PRESCRIPT">113 1 DO 0 "F4." I + ! LOOP</prescript> </section> <section type="Body" /> <section type="Body" level="1" hidden="1"> <field x="1" type="Numero" hidden="1" align="right" width="4" pattern="1"> <source>OR14_ANNO</source> </field> <field x="5" type="Stringa" hidden="1" width="4" pattern="1"> <source>CODNUM</source> </field> <field x="10" type="Stringa" width="4.5" pattern="1"> <source>DOC.TIPODOC</source> </field> <field x="15" type="Numero" align="right" width="7" pattern="1"> <source>NDOC</source> </field> <field x="23" type="Data" width="8.5" pattern="1"> <source>DOC.DATADOC</source> </field> <field x="32.5" type="Stringa" width="5" pattern="1"> <source>CODMAG</source> </field> <field x="39" type="Stringa" align="right" width="25" pattern="1"> <source>34.CODCMS</source> </field> <field x="67" type="Array" width="3" id="48" pattern="1"> <source>33.DATADOC[4,5]</source> <list> <li Value="01" Code="01" /> <li Value="02" Code="02" /> <li Value="03" Code="03" /> <li Value="04" Code="04" /> <li Value="05" Code="05" /> <li Value="06" Code="06" /> <li Value="07" Code="07" /> </list> </field> <field x="57" type="Stringa" hidden="1" width="2" id="49" pattern="1"> <source>IF(DOC.TIPODOC='BACQ',1,-1)</source> </field> <field x="83" type="Numero" align="right" width="10" id="50" pattern="1" hide_zero="1"> <source>QTA</source> <prescript description="B1.50 PRESCRIPT">#THIS @ "F4.1" #48 @ + +! </prescript> </field> <field x="80" type="Stringa" width="2" id="52" pattern="1"> <source>UMQTA</source> </field> </section> <section type="Foot" /> <section type="Foot" level="1" /> <section type="Foot" level="2" /> <section type="Foot" level="3" height="1" /> <section type="Foot" level="4"> <field x="1" type="Stringa" width="9" pattern="1"> <source>CODART</source> </field> <field x="11" type="Stringa" bg_color="#FFFF80" width="45" pattern="1"> <source>47.DESCR+' '+47.DESCRAGG</source> </field> <field border="1" x="57.5" type="Stringa" align="center" bg_color="#C0C0C0" width="3" pattern="1"> <source>#B1.52</source> </field> <field border="1" x="60.5" type="Numero" align="right" width="9" id="101" pattern="1" text="###.###,@" /> <field border="1" x="69.5" type="Numero" align="right" width="9" id="102" pattern="1" text="###.###,@" /> <field border="1" x="78.5" type="Numero" align="right" width="9" id="103" pattern="1" text="###.###,@" /> <field border="1" x="87.5" type="Numero" align="right" width="9" id="104" pattern="1" text="###.###,@" /> <field border="1" x="96.5" type="Numero" align="right" width="9" id="105" pattern="1" text="###.###,@" /> <field border="1" x="105.5" type="Numero" align="right" width="9" id="106" pattern="1" text="###.###,@" /> <field border="1" x="114.5" type="Numero" align="right" width="9" id="107" pattern="1" text="###.###,@" /> <field border="1" x="123.5" type="Numero" align="right" width="9" id="108" pattern="1" text="###.###,@" /> <field border="1" x="132.5" type="Numero" align="right" width="9" id="109" pattern="1" text="###.###,@" /> <field border="1" x="141.5" type="Numero" align="right" width="9" id="110" pattern="1" text="###.###,@" /> <field border="1" x="150.5" type="Numero" align="right" width="9" id="111" pattern="1" text="###.###,@" /> <field border="1" x="159.5" type="Numero" align="right" width="9" id="112" pattern="1" text="###.###,@" /> </section> <sql>USE 34 SELECT (CODNUM="MAG")(CODCMS=#OR14_CDCT) BY 47.GRMERC JOIN DOC INTO CODNUM==CODNUM ANNO==ANNO PROVV==PROVV NDOC==NDOC JOIN 47 INTO CODART==CODART FROM CODNUM='MAG' ANNO=#OR14_ANNO TO CODNUM='MAG' ANNO=#OR14_ANNO </sql> </report>