insert into formulare (id,typ,system,erstellt,geaendert,user_1,user_2,name,formular) values (16,9,1,
'2004-05-01 00:00:00','2004-05-01','system','system',
'Statistik in Farbe','

<!--
Der Report unterstützt folgende Datenfelder
               "user","datum",
               "auswahl_zugang","auswahl_abgang","auswahl_benutzer","auswahl_losnummer",
               "auswahl_von","auswahl_bis",
               "buchungsdatum","typ","code",
               "benutzer","bezeichnung","staerke","litergewicht","losnummer",
               "liter","kg","la","rest_liter","rest_kg","rest_la",
               "bemerkungen",
               "saldo_liter","saldo_kg","saldo_la"
 -->

<report name="Berechnung normal" orientation="$options.report.statistik.orientation$"
  pageformat="$options.report.general.pageformat$" topmargin="$options.report.landscape.margin.top$" leftmargin="$options.report.landscape.margin.left$" 
  bottommargin="$options.report.landscape.margin.bottom$" rightmargin="$options.report.landscape.margin.right$">

 <reportheader height="40" >
    <rectangle  x="0" y="0" width="100%" height="30" color="$options.report.general.reportheader.background$" weight="0" draw="false" fill="true"/>
    <rectangle  x="0" y="0" width="100%" height="30" color="#000000" weight="1" draw="true" fill="false"/>
    <date-field fontstyle="plain" fontsize="7" fieldname="datum" x="5" y="3" width="20%" height="10" alignment="left" format="d.MMM yyyy H.mm"></date-field>
    <label fontstyle="plain" fontsize="7" x="75%" y="3" width="14%" height="10" alignment="right" >$locale.report.user$</label>   
     <string-field fontstyle="plain" fontsize="7" x="90%" y="3" height="10" width="10%" alignment="left" fieldname="user"></string-field>
     <label fontstyle="bold" fontsize="16" x="0%" y="3" width="100%" height="20" alignment="center" >$locale.report.statistik.titel$</label>    
   
     <label fontstyle="bold" fontsize="8" x="0" y="20" width="5%" height="10" alignment="right" >$locale.report.statistik.label_zugang$</label>  
     <string-field fontstyle="plain" fontsize="8" x="6%" y="20" height="10" width="5%" alignment="left" fieldname="auswahl_zugang"></string-field>
  
     <label fontstyle="bold" fontsize="8" x="20%" y="20" width="5%" height="10" alignment="right" >$locale.report.statistik.label_abgang$</label>  
     <string-field fontstyle="plain" fontsize="8" x="26%" y="20" height="10" width="5%" alignment="left" fieldname="auswahl_abgang"></string-field>
   
     <label fontstyle="bold" fontsize="8" x="30%" y="20" width="9%" height="10" alignment="right" >$locale.report.statistik.label_von$</label>  
    <date-field nullstring="" fontstyle="plain" fontsize="8" fieldname="auswahl_von" x="40%" y="20" width="9%" height="10" alignment="left" format="d.MMM yyyy"></date-field>

    <label fontstyle="bold" fontsize="8" x="50%" y="20" width="9%" height="10" alignment="right" >$locale.report.statistik.label_bis$</label>  
    <date-field nullstring="" fontstyle="plain" fontsize="8" fieldname="auswahl_bis" x="60%" y="20" width="9%" height="10" alignment="left" format="d.MMM yyyy"></date-field>

     <label fontstyle="bold" fontsize="8" x="70%" y="20" width="7%" height="10" alignment="right" >$locale.report.statistik.label_benutzer$</label>  
     <string-field fontstyle="plain" fontsize="8" x="78%" y="20" height="10" width="7%" alignment="left" fieldname="auswahl_benutzer"></string-field>
   
     <label fontstyle="bold" fontsize="8" x="86%" y="20" width="6%" height="10" alignment="right" >$locale.report.statistik.label_losnummer$</label>  
     <string-field fontstyle="plain" fontsize="8" x="93%" y="20" height="10" width="7%" alignment="left" fieldname="auswahl_losnummer"></string-field>
  
  	 	<line x1="0" x2="0" y1="40" y2="40" weight="0.1"/>
  
     <label fontstyle="bold" fontsize="8" x="0%" y="32" width="8%" height="10" alignment="center" >$locale.statistik.tableheader_typ$/$locale.statistik.tableheader_benutzer$</label>  
     <label fontstyle="bold" fontsize="8" x="9%" y="32" width="8%" height="10" alignment="center" >$locale.statistik.tableheader_datum$</label>  
     <label fontstyle="bold" fontsize="8" x="18%" y="32" width="8%" height="10" alignment="center" >$locale.statistik.tableheader_bezeichnung$</label>  
     <label fontstyle="bold" fontsize="8" x="27%" y="32" width="8%" height="10" alignment="center" >$locale.statistik.tableheader_losnummer$</label>  
    <label fontstyle="bold" fontsize="8" x="36%" y="32" width="8%" height="10" alignment="center" >$locale.statistik.tableheader_staerke$</label>  
    <label fontstyle="bold" fontsize="8" x="45%" y="32" width="8%" height="10" alignment="center" >$locale.statistik.tableheader_liter$</label>  
    <label fontstyle="bold" fontsize="8" x="54%" y="32" width="8%" height="10" alignment="center" >$locale.statistik.tableheader_kg$</label>  
    <label fontstyle="bold" fontsize="8" x="63%" y="32" width="8%" height="10" alignment="center" >$locale.statistik.tableheader_la$</label>  
    <label fontstyle="bold" fontsize="8" x="72%" y="32" width="8%" height="10" alignment="center" >$locale.statistik.tableheader_rest_liter$</label>  
    <label fontstyle="bold" fontsize="8" x="81%" y="32" width="8%" height="10" alignment="center" >$locale.statistik.tableheader_rest_kg$</label>  
    <label fontstyle="bold" fontsize="8" x="90%" y="32" width="8%" height="10" alignment="center" >$locale.statistik.tableheader_rest_la$</label>  
  </reportheader>

  <pageheader height="40" onfirstpage="false">
        <rectangle  x="0" y="0" width="100%" height="30" color="$options.report.general.reportheader.background$" weight="0" draw="false" fill="true"/>
    <rectangle  x="0" y="0" width="100%" height="30" color="#000000" weight="1" draw="true" fill="false"/>
   
    <date-field fontstyle="plain" fontsize="7" fieldname="datum" x="5" y="3" width="20%" height="10" alignment="left" format="d.MMM yyyy H.mm"></date-field>
    <label fontstyle="plain" fontsize="7" x="75%" y="3" width="14%" height="10" alignment="right" >$locale.report.user$</label>   
     <string-field fontstyle="plain" fontsize="7" x="90%" y="3" height="10" width="10%" alignment="left" fieldname="user"></string-field>
     <label fontstyle="bold" fontsize="16" x="0%" y="3" width="100%" height="20" alignment="center" >$locale.report.statistik.titel$</label>    
   
     <label fontstyle="bold" fontsize="8" x="0" y="20" width="5%" height="10" alignment="right" >$locale.report.statistik.label_zugang$</label>  
     <string-field fontstyle="plain" fontsize="8" x="6%" y="20" height="10" width="5%" alignment="left" fieldname="auswahl_zugang"></string-field>
  
     <label fontstyle="bold" fontsize="8" x="20%" y="20" width="5%" height="10" alignment="right" >$locale.report.statistik.label_abgang$</label>  
     <string-field fontstyle="plain" fontsize="8" x="26%" y="20" height="10" width="5%" alignment="left" fieldname="auswahl_abgang"></string-field>
   
     <label fontstyle="bold" fontsize="8" x="30%" y="20" width="9%" height="10" alignment="right" >$locale.report.statistik.label_von$</label>  
    <date-field nullstring="" fontstyle="plain" fontsize="8" fieldname="auswahl_von" x="40%" y="20" width="9%" height="10" alignment="left" format="d.MMM yyyy"></date-field>

    <label fontstyle="bold" fontsize="8" x="50%" y="20" width="9%" height="10" alignment="right" >$locale.report.statistik.label_bis$</label>  
    <date-field nullstring="" fontstyle="plain" fontsize="8" fieldname="auswahl_bis" x="60%" y="20" width="9%" height="10" alignment="left" format="d.MMM yyyy"></date-field>

     <label fontstyle="bold" fontsize="8" x="70%" y="20" width="7%" height="10" alignment="right" >$locale.report.statistik.label_benutzer$</label>  
     <string-field fontstyle="plain" fontsize="8" x="78%" y="20" height="10" width="7%" alignment="left" fieldname="auswahl_benutzer"></string-field>
   
     <label fontstyle="bold" fontsize="8" x="86%" y="20" width="6%" height="10" alignment="right" >$locale.report.statistik.label_losnummer$</label>  
     <string-field fontstyle="plain" fontsize="8" x="93%" y="20" height="10" width="7%" alignment="left" fieldname="auswahl_losnummer"></string-field>
  
  	 	<line x1="0" x2="0" y1="40" y2="40" weight="0.1"/>
  
     <label fontstyle="bold" fontsize="8" x="0%" y="32" width="8%" height="10" alignment="right" >$locale.statistik.tableheader_typ$</label>  
     <label fontstyle="bold" fontsize="8" x="9%" y="32" width="8%" height="10" alignment="right" >$locale.statistik.tableheader_datum$</label>  
     <label fontstyle="bold" fontsize="8" x="18%" y="32" width="8%" height="10" alignment="right" >$locale.statistik.tableheader_bezeichnung$</label>  
     <label fontstyle="bold" fontsize="8" x="27%" y="32" width="8%" height="10" alignment="right" >$locale.statistik.tableheader_losnummer$</label>  
    <label fontstyle="bold" fontsize="8" x="36%" y="32" width="8%" height="10" alignment="right" >$locale.statistik.tableheader_staerke$</label>  
    <label fontstyle="bold" fontsize="8" x="45%" y="32" width="8%" height="10" alignment="right" >$locale.statistik.tableheader_liter$</label>  
    <label fontstyle="bold" fontsize="8" x="54%" y="32" width="8%" height="10" alignment="right" >$locale.statistik.tableheader_kg$</label>  
    <label fontstyle="bold" fontsize="8" x="63%" y="32" width="8%" height="10" alignment="right" >$locale.statistik.tableheader_la$</label>  
    <label fontstyle="bold" fontsize="8" x="72%" y="32" width="8%" height="10" alignment="right" >$locale.statistik.tableheader_rest_liter$</label>  
    <label fontstyle="bold" fontsize="8" x="81%" y="32" width="8%" height="10" alignment="right" >$locale.statistik.tableheader_rest_kg$</label>  
    <label fontstyle="bold" fontsize="8" x="90%" y="32" width="8%" height="10" alignment="right" >$locale.statistik.tableheader_rest_la$</label>  
 
  </pageheader>
  
  <pagefooter height="20">
    <rectangle  x="0" y="1" width="100%" height="100%" color="$options.report.general.pagefooter.background$" weight="0" draw="false" fill="true"/>
    <rectangle  x="0" y="1" width="100%" height="100%" color="#000000" weight="1" draw="true" fill="false"/>
    <number-field fieldname="PageNumber" x="40%" y="10"  width="90" height="20" alignment="left" format="$locale.seite$ #0"></number-field>    
    <number-field fieldname="PageTotal" x="50%" y="10"  width="90" height="20" alignment="left" format="$locale.von$ #0"></number-field>

  </pagefooter>

  <items height="22">
  
  	<band layout-cachable="false"  name="abgang" x="0" y="0" width="100%" height="22" >
	   
		  <string-field fontstyle="plain" fontsize="7" color="$options.report.statistik.color.abgang$" x="0%" y="1" width="1%" height="9" alignment="right" fieldname="typ"/>  
		  <string-field fontstyle="plain" fontsize="7" color="$options.report.statistik.color.abgang$" x="1%" y="1" width="7%" height="9" alignment="right" fieldname="benutzer"/>  
	     <date-field fontstyle="plain" fontsize="7" color="$options.report.statistik.color.abgang$"  x="9%" y="1" width="8%" height="10" alignment="right" fieldname="buchungsdatum" format="dd.MM.yyyy" />  
	     <string-field fontstyle="plain" fontsize="7" color="$options.report.statistik.color.abgang$"  x="18%" y="1" width="8%" height="10" alignment="right" fieldname="bezeichnung" />  
	     <string-field fontstyle="plain" fontsize="7" color="$options.report.statistik.color.abgang$"  x="27%" y="1" width="8%" height="10" alignment="right" fieldname="losnummer" />  
	  	 <number-field format="$options.report.zahlen_staerke$" color="$options.report.statistik.color.abgang$"  fontstyle="plain" fontsize="7" x="36%" y="1" width="8%" height="10" alignment="right" fieldname="staerke" />  
	  	 <number-field format="$options.report.zahlen_normal$" color="$options.report.statistik.color.abgang$"   fontstyle="plain" fontsize="7" x="45%" y="1" width="8%" height="10" alignment="right" fieldname="liter" />  
	  	 <number-field format="$options.report.zahlen_normal$" color="$options.report.statistik.color.abgang$"   fontstyle="plain" fontsize="7" x="54%" y="1" width="8%" height="10" alignment="right" fieldname="kg"  />  
	  	 <number-field format="$options.report.zahlen_normal$" color="$options.report.statistik.color.abgang$"   fontstyle="plain" fontsize="7" x="63%" y="1" width="8%" height="10" alignment="right" fieldname="la" />  
	  	 <number-field format="$options.report.zahlen_normal$" color="$options.report.statistik.color.abgang$"   fontstyle="plain" fontsize="7" x="72%" y="1" width="8%" height="10" alignment="right" fieldname="rest_liter" />  
	  	 <number-field format="$options.report.zahlen_normal$" color="$options.report.statistik.color.abgang$"   fontstyle="plain" fontsize="7" x="81%" y="1" width="8%" height="10" alignment="right" fieldname="rest_kg" />  
	  	 <number-field format="$options.report.zahlen_normal$" color="$options.report.statistik.color.abgang$"   fontstyle="plain" fontsize="7" x="90%" y="1" width="8%" height="10" alignment="right" fieldname="rest_la" />  
	     <label fontsize="7" x="10%" y="12" width="10%" height="10" alignment="right" >Herstellung :</label>  
	     <string-field fontstyle="plain" fontsize="7" x="21%" y="12" width="28%" height="10" alignment="left" fieldname="herstellung_losnummer" />  
	  
	     <label fontsize="7" x="51%" y="12" width="10%" height="10" alignment="right" >Bemerkungen :</label>  
	     <string-field fontstyle="plain" fontsize="7" x="62%" y="12" width="37%" height="10" alignment="left" fieldname="bemerkungen" />  
	      
	   	<line x1="0" x2="0" y1="20" y2="20" weight="0.1"/>
  	</band>
   	<band layout-cachable="false"  name="zugang" x="0" y="0" width="100%" height="22" >
		  <string-field fontstyle="plain" fontsize="7" color="$options.report.statistik.color.zugang$" x="0%" y="1" width="1%" height="9" alignment="right" fieldname="typ"/>  
		  <string-field fontstyle="plain" fontsize="7" color="$options.report.statistik.color.zugang$"  x="1%" y="1" width="7%" height="9" alignment="right" fieldname="benutzer"/>  
	     <date-field fontstyle="plain" fontsize="7" color="$options.report.statistik.color.zugang$"  x="9%" y="1" width="8%" height="10" alignment="right" fieldname="buchungsdatum" format="dd.MM.yyyy" />  
	     <string-field fontstyle="plain" fontsize="7" color="$options.report.statistik.color.zugang$"  x="18%" y="1" width="8%" height="10" alignment="right" fieldname="bezeichnung" />  
	     <string-field fontstyle="plain" fontsize="7" color="$options.report.statistik.color.zugang$"  x="27%" y="1" width="8%" height="10" alignment="right" fieldname="losnummer" />  
	  	 <number-field format="$options.report.zahlen_staerke$" color="$options.report.statistik.color.zugang$"  fontstyle="plain" fontsize="7" x="36%" y="1" width="8%" height="10" alignment="right" fieldname="staerke" />  
	  	 <number-field format="$options.report.zahlen_normal$"  color="$options.report.statistik.color.zugang$"  fontstyle="plain" fontsize="7" x="45%" y="1" width="8%" height="10" alignment="right" fieldname="liter" />  
	  	 <number-field format="$options.report.zahlen_normal$" color="$options.report.statistik.color.zugang$" ntstyle="plain" fontsize="7" x="63%" y="1" width="8%" height="10" alignment="right" fieldname="la" />  
	  	 <number-field format="$options.report.zahlen_normal$"  color="$options.report.statistik.color.zugang$"  fontstyle="plain" fontsize="7" x="72%" y="1" width="8%" height="10" alignment="right" fieldname="rest_liter" />  
	  	 <number-field format="$options.report.zahlen_normal$"  color="$options.report.statistik.color.zugang$" fontstyle="plain" fontsize="7" x="90%" y="1" width="8%" height="10" alignment="right" fieldname="rest_la" />  
	     <label fontsize="7" x="10%" y="12" width="10%" height="10" alignment="right" >Herstellung :</label>  
	     <string-field fontstyle="plain" fontsize="7" x="21%" y="12" width="28%" height="10" alignment="left" fieldname="herstellung_losnummer" />  
	  
	     <label fontsize="7" x="51%" y="12" width="10%" height="10" alignment="right" >Bemerkungen :</label>  
	     <string-field fontstyle="plain" fontsize="7" x="62%" y="12" width="37%" height="10" alignment="left" fieldname="bemerkungen" />  
	      
	   	<line x1="0" x2="0" y1="20" y2="20" weight="0.1"/>
  	</band>
  
  </items>

  <reportfooter height="40" fontname="SansSerif">
    <rectangle  x="0" y="0" width="100%" height="100%" color="$options.report.general.reportheader.background$" weight="0" draw="false" fill="true"/>
    <rectangle  x="0" y="0" width="100%" height="100%" color="#000000" weight="1" draw="true" fill="false"/>
    <label fontstyle="bold" fontsize="16" x="0%" y="1" width="100%" height="18" alignment="center" >$locale.report.statistik.saldo$</label>  
    
 	 <number-field format="$options.report.zahlen_normal$"  fontstyle="bold" fontsize="10" x="0%" y="20" width="10%" height="14" alignment="right" fieldname="saldo_liter" />    
    <label fontstyle="bold" fontsize="10" x="11%" y="20" width="9%" height="14" alignment="left" >$locale.string_liter$</label>  
  
   	 <number-field format="$options.report.zahlen_normal$"  fontstyle="bold" fontsize="10" x="40%" y="20" width="10%" height="14" alignment="right" fieldname="saldo_kg" />    
    <label fontstyle="bold" fontsize="10" x="51%" y="20" width="9%" height="14" alignment="left" >$locale.string_kg$</label>  

   	 <number-field format="$options.report.zahlen_normal$"  fontstyle="bold" fontsize="10" x="80%" y="20" width="10%" height="14" alignment="right" fieldname="saldo_la" />    
    <label fontstyle="bold" fontsize="10" x="91%" y="20" width="9%" height="14" alignment="left" >$locale.string_la$</label>  
  </reportfooter>

  <functions>
    <function name="PageNumber" class="org.jfree.report.function.PageFunction"/>  
    <function name="PageTotal" class="org.jfree.report.function.PageTotalFunction" deplevel="1"/> 
    <function name="SetVisible" class="de.lunqual.rzpro.ausgabe.VisibleStatistikBandFunction"/>
  </functions>
  
  
</report>

');