<?xml version="1.0" encoding="UTF-8" ?>
<report name="lv2200z" orientation="1" lpi="6" command="lv0 -1 lv2200z">
 <description>Stampa Giri Giornaliero</description>
 <font face="Courier New" size="10" />
 <section type="Head" pattern="1">
  <field y="1" type="Testo" width="12" height="1.5" pattern="1" text="Data elab. :" />
  <field x="12.5" y="1" type="Stringa" width="12" height="1.5" pattern="1">
   <prescript description="H0.0 PRESCRIPT">MESSAGE _TODAY</prescript>
  </field>
  <field x="27.5" y="1" type="Testo" align="center" width="45" height="1.5" pattern="1" text="Stampa Giro Giornaliero">
   <font face="Courier New" bold="1" size="12" />
  </field>
  <field x="79.87" y="1.12" type="Testo" width="5" height="1.5" pattern="1" text="Pag." />
  <field x="85" y="1.12" type="Stringa" width="10" height="1.5" pattern="1">
   <prescript description="H0.0 PRESCRIPT">MESSAGE _PAGENO</prescript>
  </field>
 </section>
 <section type="Head" level="1" pattern="1" />
 <section type="Head" level="2" height="10" page_break="1" pattern="1">
  <groupby>DTCONS+CODITI</groupby>
  <field x="68" y="0.31" type="Array" width="25" height="1.5" pattern="1">
   <font face="Courier New" bold="1" size="14" />
   <source>167.GGCONS</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="0.5" y="0.37" type="Numero" align="right" width="10" height="1.5" pattern="1">
   <font face="Courier New" bold="1" size="14" />
   <source>167.CODITI</source>
  </field>
  <field x="11.5" y="0.37" type="Stringa" width="50" height="1.5" pattern="1">
   <font face="Courier New" bold="1" size="14" />
   <source>300@.S0</source>
  </field>
  <field x="0.5" y="2.24" type="Stringa" width="10" height="1.5" pattern="1">
   <font face="Courier New" bold="1" size="14" />
   <source>167.CODAUT</source>
  </field>
  <field x="11.5" y="2.24" type="Stringa" width="50" height="1.5" pattern="1">
   <font face="Courier New" bold="1" size="14" />
   <source>301@.S0</source>
  </field>
  <field x="68" y="2.31" type="Data" width="16" height="1.5" pattern="1">
   <font face="Courier New" bold="1" size="14" />
   <source>DTCONS</source>
  </field>
  <field border="1" x="0.5" y="4" type="Rettangolo" width="92.5" height="3" pattern="1" />
  <field border="1" x="51.5" y="4" type="Linea" height="2.95" pattern="1" />
  <field border="1" x="72" y="4" type="Linea" height="2.95" pattern="1" />
  <field x="72" y="4" type="Linea" height="2.95" pattern="1" />
  <field x="51.5" y="4.06" type="Linea" height="2.95" pattern="1" />
  <field x="52" y="4.56" type="Testo" width="13" pattern="1" text="KM. PARTENZA:" />
  <field x="72.5" y="4.56" type="Testo" width="13" pattern="1" text="ORA PARTENZA:" />
  <field x="1.5" y="4.81" type="Stringa" width="50" pattern="1">
   <source>302@.S0</source>
  </field>
  <field border="1" x="65" y="5.25" type="Linea" width="6" height="0" pattern="1" />
  <field border="1" x="86" y="5.25" type="Linea" width="6" height="0" pattern="1" />
  <field x="1.5" y="5.81" type="Testo" width="7" pattern="1" text="TARGA" />
  <field x="8.5" y="5.81" type="Stringa" width="40" pattern="1">
   <source>167.CODMEZ</source>
  </field>
  <field x="52" y="5.81" type="Testo" width="13" pattern="1" text="KM. ARRIVO  :" />
  <field x="72.5" y="5.81" type="Testo" width="13" pattern="1" text="ORA ARRIVO  :" />
  <field border="1" x="65" y="6.5" type="Linea" width="6" height="0" pattern="1" />
  <field border="1" x="86" y="6.5" type="Linea" width="6" height="0" pattern="1" />
  <field border="1" x="0.5" y="8" type="Rettangolo" width="92.5" height="2" pattern="1" />
  <field border="1" x="6.5" y="8" type="Linea" height="1.95" pattern="1" />
  <field x="57" y="8" type="Testo" align="center" width="9" pattern="1" text="MODALITA'" />
  <field border="1" x="66.25" y="8" type="Linea" height="2" pattern="1" />
  <field x="66.5" y="8" type="Testo" width="15" height="1.5" pattern="1" text="BOLLE CONS." />
  <field border="1" x="13.5" y="8.06" type="Linea" height="1.95" pattern="1" />
  <field border="1" x="31.37" y="8.06" type="Linea" height="1.95" pattern="1" />
  <field border="1" x="56.75" y="8.06" type="Linea" height="1.95" pattern="1" />
  <field border="1" x="81.5" y="8.06" type="Linea" height="1.95" pattern="1" />
  <field x="81.75" y="8.06" type="Testo" width="10" pattern="1" text="PROSSIMA" />
  <field x="1.12" y="8.31" type="Testo" align="right" width="5" pattern="1" text="FERM." />
  <field x="7" y="8.31" type="Testo" align="right" width="6" pattern="1" text="CODICE" />
  <field x="14.12" y="8.31" type="Testo" width="17" pattern="1" text="RAGIONE SOCIALE " />
  <field x="31.5" y="8.31" type="Testo" width="25" pattern="1" text="LOCALITA'" />
  <field x="14.12" y="9" type="Testo" width="17" pattern="1" text="CLIENTE" />
  <field x="57" y="9" type="Testo" align="center" width="9" pattern="1" text="PASSAGGIO" />
  <field x="81.75" y="9.06" type="Testo" width="10.5" pattern="1" text="CONSEGNA" />
 </section>
 <section type="Body" pattern="1">
  <field y="197" type="Numero" align="right" width="3" pattern="1">
   <source>CODITI</source>
  </field>
 </section>
 <section type="Body" level="1" pattern="1">
  <field border="1" x="92.9" y="-0.07" type="Linea" height="4" pattern="1" />
  <field border="1" x="0.5" type="Linea" height="4" pattern="1" />
  <field x="1" type="Numero" align="right" width="5" pattern="1" hide_zero="1">
   <source>167.ORDFER</source>
  </field>
  <field border="1" x="6.5" type="Linea" height="4" pattern="1" />
  <field x="7" type="Numero" align="right" width="6" pattern="1">
   <source>167.CODCF</source>
  </field>
  <field border="1" x="13.5" type="Linea" height="4" pattern="1" />
  <field x="14" type="Stringa" width="17" height="3" pattern="1">
   <source>IF(#F_CHECK_MNEM=="X";303@.RICALT;303@.RAGSOC)</source>
  </field>
  <field border="1" x="31.37" type="Linea" height="4" pattern="1" />
  <field x="31.5" type="Stringa" width="25" height="2" pattern="1">
   <source>IF(304@.CODINDSP= "0" ;303@.LOCALITACF;305@.LOCALITA)</source>
  </field>
  <field border="1" x="56.75" type="Linea" height="4" pattern="1" />
  <field x="57" type="Array" align="center" width="9" pattern="1">
   <source>167.MODPASS</source>
   <list>
    <li Value="ENTRAMBI" Code=" " />
    <li Value="ENTRAMBI" Code="E" />
    <li Value="CONSEGNA" Code="C" />
    <li Value="RITIRO" Code="R" />
   </list>
  </field>
  <field border="1" x="66.25" type="Linea" height="4" pattern="1" />
  <field x="66.5" type="Stringa" width="15" pattern="1">
   <source>167.CODNUM</source>
  </field>
  <field border="1" x="81.5" type="Linea" height="4" pattern="1" />
  <field x="81.75" type="Stringa" width="10" pattern="1">
   <source>#NEXTCONS</source>
  </field>
  <field x="31.5" y="2" type="Stringa" width="25" height="2" pattern="1">
   <source>IF(304@.CODINDSP="0";303@.CIVCF+','+303@.INDCF;305@.CIV+','+305@.INDIR)</source>
  </field>
  <field x="66.5" y="2" type="Numero" align="right" width="13" pattern="1" hide_zero="1">
   <source>167.NDOC</source>
  </field>
  <field border="1" x="0.5" y="4" type="Linea" width="92.4" height="0" pattern="1" />
 </section>
 <section type="Foot" pattern="1" />
 <section type="Foot" level="1" pattern="1" />
 <section type="Foot" level="2" pattern="1" />
 <sql>USE 167 KEY 2
    SELECT (BETWEEN(CODITI,#FROM_CODITI,#TO_CODITI))&#26;&#26;(BETWEEN(CODAUT,#FROM_CODAUT,#TO_CODAUT))&#26;&#26;(BETWEEN(CODCF,#FROM_CODCF,#TO_CODCF))
    JOIN &#26;ITI ALIAS 300 INTO CODTAB==CODITI
    JOIN &#26;AUT TO 167 ALIAS 301 INTO CODTAB==CODAUT
    JOIN &#26;MEZ TO 167 ALIAS 302 INTO CODTAB==CODMEZ
   JOIN 20 TO 167 ALIAS 303 INTO TIPOCF=="C" CODCF==CODCF
    JOIN 168 TO 167 ALIAS 304 INTO CODCONT==CODCONT CODCF==CODCF
    JOIN 16 TO 168 ALIAS 305 INTO TIPOCF=="C" CODCF==CODCF CODIND==CODINDSP
   FROM DTCONS=#FROM_DATA
   TO DTCONS=#TO_DATA
 </sql>
</report>