<?xml version="1.0" encoding="UTF-8" ?>
<report name="r_giri" orientation="2" lpi="6">
 <description>Report Giri</description>
 <font face="Arial" size="8" />
 <section type="Head" pattern="1">
  <field x="1" type="Stringa" width="50" pattern="1">
   <font face="Arial" bold="1" size="10" />
   <source>#SYSTEM.RAGSOC</source>
  </field>
  <field x="133" type="Data" width="25" pattern="1" text="Data di Stampa:">
   <source>#SYSTEM.DATE</source>
  </field>
  <field x="160" type="Stringa" width="10" pattern="1" text="Pag.">
   <source>#PAGE</source>
  </field>
 </section>
 <section type="Head" level="1" pattern="1" />
 <section repeat="1" type="Head" level="2" page_break="1" pattern="1">
  <groupby>CODTAB[1,5]</groupby>
  <field border="2" x="1" y="1.5" type="Linea" width="168" height="0" pattern="1" />
  <field x="2" type="Stringa" hidden="1" width="5" id="10" pattern="1">
   <source>CODTAB[1,5]</source>
  </field>
  <field x="15" y="0.5" type="Stringa" hidden="1" width="10" id="20" pattern="1">
   <source>"REPORT GIRI  AGENTE  -  "</source>
   <prescript description="H2.20 PRESCRIPT">MESSAGE COPY,50</prescript>
  </field>
  <field x="25" y="0.5" type="Stringa" hidden="1" align="center" width="20" id="30" pattern="1">
   <font face="Arial" bold="1" size="10" />
   <prescript description="H2.30 PRESCRIPT">MESSAGE ISAMREAD,122,CODAGE=#10,RAGSOC
MESSAGE APPEND,50</prescript>
  </field>
  <field x="8" type="Stringa" align="center" width="160" id="50" pattern="1">
   <font face="Arial" bold="1" size="10" />
  </field>
 </section>
 <section type="Head" level="3" pattern="1">
  <groupby>CODTAB[6,6]</groupby>
  <field x="1" type="Array" width="13.5" pattern="1">
   <font face="Arial" bold="1" size="8" />
   <source>CODTAB[6,6]</source>
   <list>
    <li Value="Luned&#EC;" Code="1" />
    <li Value="Marted&#EC;" Code="2" />
    <li Value="Mercoled&#EC;" Code="3" />
    <li Value="Gioved&#EC;" Code="4" />
    <li Value="Venerd&#EC;" Code="5" />
    <li Value="Sabato" Code="6" />
    <li Value="Domenica" Code="7" />
   </list>
  </field>
  <field x="17" type="Stringa" hidden="1" width="10" pattern="1">
   <source>#DAY</source>
  </field>
 </section>
 <section type="Body" pattern="1" />
 <section type="Body" level="1" pattern="1">
  <field x="3" type="Stringa" hidden="1" width="3" pattern="1">
   <source>CODTAB[6,6]</source>
  </field>
  <field x="7" type="Numero" align="right" width="4" pattern="1">
   <source>I0</source>
  </field>
  <field x="12" type="Stringa" width="6" pattern="1">
   <source>CODTAB[7,12]</source>
  </field>
  <field x="19" type="Stringa" width="50" pattern="1">
   <source>20.RAGSOC</source>
  </field>
  <field x="70" type="Stringa" width="35" pattern="1">
   <source>20.INDCF</source>
  </field>
  <field x="107" type="Stringa" width="5" pattern="1">
   <source>20.CAPCF</source>
  </field>
  <field x="151" type="Stringa" width="31" pattern="1">
   <source>20.TEL</source>
  </field>
  <field x="98" y="1" type="Stringa" hidden="1" width="4" pattern="1">
   <source>20.COMCF</source>
  </field>
  <field x="114" y="3" type="Stringa" hidden="1" width="10" id="90" pattern="1">
   <source>20.LOCALITACF</source>
   <prescript description="B1.90 PRESCRIPT">MESSAGE COPY,110</prescript>
  </field>
  <field x="114" y="2" type="Stringa" hidden="1" width="10" id="100" pattern="1">
   <prescript description="B1.100 PRESCRIPT">MESSAGE ISAMREAD,13,STATO=''!COM=20.COMCF,DENCOM
MESSAGE APPEND,110</prescript>
  </field>
  <field x="113" type="Stringa" width="37" id="110" pattern="1" />
 </section>
 <section type="Foot" pattern="1" />
 <section type="Foot" level="1" pattern="1" />
 <section type="Foot" level="2" pattern="1" />
 <section type="Foot" level="3" pattern="1" />
 <sql>USE &#26;HAHGI SELECT ((CODTAB[1,5]=#CODAG)||(#CODAG=''))&#26;&#26;((CODTAB[6,6]=#DAY)||(#DAY=0))
BY CODTAB[1,6] I0
JOIN 20 INTO TIPOCF="C" CODCF==CODTAB[7,12]</sql>
</report>