<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="2023.1" DotMatrixReport="False" EngineOptions.DoublePass="True" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Maximized="False" PreviewOptions.Zoom="1" PrintOptions.Printer="Color DIN A3" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="39414,5702933218" ReportOptions.Description.Text="" ReportOptions.LastChange="45840,4815139699" ScriptLanguage="PascalScript" ScriptText.Text="var&#13;&#10;  BrStufe,Vergleich,Ueberschrift: string;&#13;&#10;&#13;&#10;procedure weiterOnClick(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;  order,ohne,mit: string;&#13;&#10;&#13;&#10;const&#13;&#10;  SQLSTMT = 'SELECT l.*,p.*'+&#13;&#10;  ',if(DienstbezeichnungId in (710,806,807),&#34;Le&#34;,if(DienstbezeichnungId=718,&#34;StR&#34;,if(DienstbezeichnungId=735,&#34;OStR&#34;'+&#13;&#10;  ',if(DienstbezeichnungId=772,&#34;Ref&#34;,if(DienstbezeichnungId in (753,754),&#34;StD&#34;'+&#13;&#10;  ',if(DienstbezeichnungId=716,&#34;RL&#34;,if(DienstbezeichnungId=766,&#34;OStD&#34;,if(DienstbezeichnungId in (728,748),&#34;Rek&#34;'+&#13;&#10;  ',if(DienstbezeichnungId in (721,722,727,741),&#34;KRek&#34;,if(DienstbezeichnungId in (733,745),&#34;RKRek&#34;'+&#13;&#10;  ',if(DienstbezeichnungId in (769),&#34;LAnw&#34;,if(DienstbezeichnungId in (815),&#34;Mit&#34;,if(DienstbezeichnungId in (700),&#34;LeFP&#34;'+&#13;&#10;  ',if(DienstbezeichnungId in (737),&#34;FaBL&#34;,if(DienstbezeichnungId in (765),&#34;DirGes&#34;,if(DienstbezeichnungId in (759,764),&#34;DirSt&#34;'+&#13;&#10;  ',if(DienstbezeichnungId in (784,785),&#34;LeA&#34;,&#34;&#34;))))))))))))))))) Dienstbez'+&#13;&#10;  ',(select Kennzahl from fach where Id=l.FachId1) F1'+&#13;&#10;  ',(select Kennzahl from fach where Id=l.FachId2) F2'+&#13;&#10;  ',(select Kennzahl from fach where Id=l.FachId3) F3'+&#13;&#10;  ' FROM lehrer l inner join person p on l.Id=p.Id'+&#13;&#10;  ' where p.Deleted=0 ';&#13;&#10;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;  if CheckBox1.checked=false then ohne:=' and AbgeordnetAn=&#34;&#34;';&#13;&#10;  if CheckBox2.checked=false then ohne:=ohne+' and (Abgang is null or Abgang&#62;current_date())';&#13;&#10;  if CheckBox3.checked=false then ohne:=ohne+' and ZZBeurlaubt=0';&#13;&#10;  if CheckBox4.checked=true then&#13;&#10;  begin&#13;&#10;       mit:=' and Lehrkraft=1';&#13;&#10;       Ueberschrift:='Lehrerinnen und Lehrer';&#13;&#10;       if Checkbox5.checked=true then&#13;&#10;       begin&#13;&#10;         mit:='';&#13;&#10;         Ueberschrift:='Lehrerinnen und Lehrer sowie Mitarbeiterinnen und Mitarbeiter';&#13;&#10;       end;&#13;&#10;  end;&#13;&#10;  if (CheckBox4.checked=false) and (Checkbox5.checked=true) then&#13;&#10;  begin&#13;&#10;    mit:=' and Lehrkraft=0';&#13;&#10;    Ueberschrift:='Mitarbeiterinnen und Mitarbeiter';&#13;&#10;  end;&#13;&#10;  if CheckBox6.checked=false then ohne:=ohne+' and Beamter=0';&#13;&#10;  if CheckBox7.checked=false then ohne:=ohne+' and Probezeit=0';&#13;&#10;  if CheckBox8.checked=false then ohne:=ohne+' and Neuaufnahme=0';&#13;&#10;&#13;&#10;&#13;&#10;  if namvor.checked then&#13;&#10;       order := 'Nachname,Rufname';&#13;&#10;  if geschlecht.checked then&#13;&#10;       order := 'Geschlecht desc,Nachname,Rufname';&#13;&#10;  if kuerzel.checked then&#13;&#10;       order := 'Kuerzel';&#13;&#10;  if gebdat.checked then&#13;&#10;       order := 'substr(Geburtsdatum,6,5)';&#13;&#10;  if alter.checked then&#13;&#10;       order := 'Geburtsdatum';&#13;&#10;&#13;&#10;  q1.SQL.Text := SQLSTMT + ohne + mit +' order by '+order;&#13;&#10;  //showmessage (lq.SQL.Text);&#13;&#10;&#13;&#10;&#13;&#10;  //Lehrerkontaktdaten&#13;&#10;  kontakt.SQL.Text:='select * from kontakt where BerichtsStufe'+Vergleich+BrStufe+' and NurIntern=0 order by Berichtsstufe,Art,Adresse';&#13;&#10;  //showmessage(qk.SQL.Text);&#13;&#10;&#13;&#10;  sort.ModalResult := mrOk;&#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." StoreInDFM="False">
  <Datasets>
    <item DataSet="q1" DataSetName="q1"/>
    <item DataSet="s1" DataSetName="s1"/>
    <item DataSet="adresse" DataSetName="adresse"/>
    <item DataSet="ort" DataSetName="ort"/>
    <item DataSet="kontakt" DataSetName="kontakt"/>
    <item DataSet="d" DataSetName="d"/>
  </Datasets>
  <TfrxDataPage Name="Data" HGuides.Text="" VGuides.Text="" Height="1000" Left="0" Top="0" Width="1000">
    <TfrxMYDACQuery Name="q1" UserName="q1" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" DataSetOptions="0" IgnoreDupParams="False" SQL.Text="####&#13;&#10;#### wird zur Laufzeit veraendert&#13;&#10;####  &#13;&#10;SELECT l.*,p.*&#13;&#10;,if (DienstbezeichnungId=710,&#34;Le&#34;,&#34;&#34;) Dienstbez&#13;&#10;,(select Kennzahl from fach where Id=l.FachId1) F1&#13;&#10;,(select Kennzahl from fach where Id=l.FachId2) F2  &#13;&#10;,(select Kennzahl from fach where Id=l.FachId3) F3&#13;&#10;FROM lehrer l&#13;&#10;left join person p on l.Id=p.Id &#13;&#10;where p.Deleted=0" SQLSchema="eAGLdkksSXRKLE6N5eUKDvSxtbAwMzEzMDE35OWKDklMykktBkqk2KYk5mUW6xiagpCRgQGQMgAqcC/KTAFKG9hq6UAUpOgY6hiAIVDWJzMvG6QbADC4GbU=" LocalMasterDetail="False" PropData="05704C65667402640470546F7002280A506172616D65746572730100"/>
    <TfrxMYDACQuery Name="s1" UserName="s1" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" DataSetOptions="0" IgnoreDupParams="False" SQL.Text="select * from schule s                                                      " LocalMasterDetail="False" PropData="05704C65667402640470546F70032C010A506172616D65746572730100"/>
    <TfrxMYDACTable Name="adresse" UserName="adresse" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" DataSetOptions="0" Master="q1" MasterFields="PersonId=Id" TableName="adresse" IndexFieldNames="PersonId" LocalMasterDetail="False" PropData="05704C656674033C010470546F70038C00"/>
    <TfrxMYDACTable Name="ort" UserName="ort" CloseDataSource="True" FieldAliases.Text="Id=Id&#13;&#10;-UpdateCount=UpdateCount&#13;&#10;-Deleted=Deleted&#13;&#10;Name=Name&#13;&#10;Ortsteil=Ortsteil&#13;&#10;PLZ=PLZ&#13;&#10;Landkreis=Landkreis" BCDToCurrency="False" DataSetOptions="0" Master="adresse" MasterFields="Id=OrtId" TableName="ort" IndexFieldNames="Id" LocalMasterDetail="False" PropData="05704C6566740394010470546F70038C00"/>
    <TfrxMYDACQuery Name="kontakt" UserName="kontakt" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" DataSetOptions="0" Master="q1" IgnoreDupParams="False" SQL.Text="####&#13;&#10;#### wird zur Laufzeit veraendert&#13;&#10;####          &#13;&#10;&#13;&#10;select * from kontakt" MasterFields="PersonId=Id" LocalMasterDetail="False" PropData="05704C65667403B8000470546F700390000A506172616D65746572730100"/>
    <TfrxMYDACQuery Name="d" UserName="d" CloseDataSource="True" FieldAliases.Text="" BCDToCurrency="False" DataSetOptions="0" IgnoreDupParams="False" SQL.Text="select Schuljahrbezeichnung from danis                                                                               " LocalMasterDetail="False" PropData="05704C65667402600470546F700390000A506172616D65746572730100"/>
  </TfrxDataPage>
  <TfrxReportPage Name="Page1" HGuides.Text="" VGuides.Text="" Orientation="poLandscape" PaperWidth="297" PaperHeight="210" PaperSize="9" LeftMargin="5,29166666666667" RightMargin="5,29166666666667" TopMargin="11,90625" BottomMargin="5,29166666666667" Columns="1" ColumnWidth="286,416666666667" ColumnPositions.Text="0" Frame.Typ="0" MirrorMode="0">
    <TfrxMasterData Name="MasterData1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" Height="16" Left="0" ParentFont="False" Top="196,53556" Width="1082,52038416667" Columns="4" ColumnWidth="268" ColumnGap="2" DataSet="q1" DataSetName="q1" RowCount="0">
      <TfrxMemoView Name="Memo7" AllowVectorExport="True" Left="37,55906" Top="1" Width="156" Height="14" Editable="3" AutoWidth="True" DisplayFormat.DecimalSeparator="," Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[IIF(&#60;q1.&#34;Titel&#34;&#62;&#60;&#62;'',&#60;q1.&#34;Titel&#34;&#62;+' ','')][IIF(&#60;q1.&#34;AkadTitel&#34;&#62;&#60;&#62;'',&#60;q1.&#34;AkadTitel&#34;&#62;+' ','')][IIF(&#60;q1.&#34;Namenszusatz&#34;&#62;&#60;&#62;'',&#60;q1.&#34;Namenszusatz&#34;&#62;+' ','')][q1.&#34;Nachname&#34;], [q1.&#34;Rufname&#34;]"/>
      <TfrxMemoView Name="Memo1" AllowVectorExport="True" Left="0" Top="1" Width="37,55906" Height="14" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="[q1.&#34;Kuerzel&#34;]"/>
      <TfrxMemoView Name="Memo9" AllowVectorExport="True" Left="192,77953" Top="1" Width="80" Height="14" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-12" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[IIF(&#60;q1.&#34;F1&#34;&#62;&#60;&#62;'',&#60;q1.&#34;F1&#34;&#62;,&#60;q1.&#34;Funktion&#34;&#62;)][IIF(&#60;q1.&#34;F2&#34;&#62;&#60;&#62;'',', '+&#60;q1.&#34;F2&#34;&#62;,'')][IIF(&#60;q1.&#34;F3&#34;&#62;&#60;&#62;'',', '+&#60;q1.&#34;F3&#34;&#62;,'')]"/>
    </TfrxMasterData>
    <TfrxPageHeader Name="PageHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Height="41,89765" Left="0" ParentFont="False" Top="94,48825" Width="1082,52038416667">
      <TfrxMemoView Name="Memo20" Align="baCenter" AllowVectorExport="True" Left="441,102647083333" Top="4" Width="200,31509" Height="18,89765" Editable="3" AutoWidth="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" Text="[Ueberschrift] im Schuljahr [d.&#34;Schuljahrbezeichnung&#34;]"/>
      <TfrxMemoView Name="Memo14" Align="baRight" AllowVectorExport="True" Left="988,032134166667" Top="4" Width="94,48825" Height="18,89765" Editable="3" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="dd.mm.yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[&#60;Date&#62;]"/>
    </TfrxPageHeader>
    <TfrxReportTitle Name="ReportTitle1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="51,37013" Left="0" Top="18,89765" Width="1082,52038416667" Stretched="True">
      <TfrxMemoView Name="Memo4" AllowVectorExport="True" Left="1" Top="7,23624" Width="336,37817" Height="42,89765" Editable="3" DisplayFormat.DecimalSeparator="," Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[s1.&#34;Name&#34;]&#13;&#10;[s1.&#34;Adresse&#34;], [s1.&#34;PLZ&#34;] [s1.&#34;Ort&#34;]&#13;&#10;Fon: [s1.&#34;Telefon&#34;], Fax: [s1.&#34;Fax&#34;]"/>
      <TfrxPictureView Name="Picture1" Align="baRight" AllowVectorExport="True" Left="1030,04794810667" Top="0" Width="52,47243606" Height="44,6929378" AutoSize="True" DataField="Logo" DataSet="s1" DataSetName="s1" Frame.Typ="0" HightQuality="False" Transparent="False" TransparentColor="16777215"/>
    </TfrxReportTitle>
    <TfrxFooter Name="Footer1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="38,67718" Left="0" Top="234,33086" Width="1082,52038416667">
      <TfrxMemoView Name="Memo21" AllowVectorExport="True" Left="0" Top="16,77953" Width="270,3624" Height="18,89765" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" Text="Frauen: [SUM(IIF(&#60;q1.&#34;Geschlecht&#34;&#62;='w',1,0),)] / Männer: [SUM(IIF(&#60;q1.&#34;Geschlecht&#34;&#62;='m',1,0),)]"/>
    </TfrxFooter>
    <TfrxPageFooter Name="PageFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="22,67718" Left="0" Top="332,59864" Width="1082,52038416667">
      <TfrxMemoView Name="Memo17" Align="baRight" AllowVectorExport="True" Left="931,339184166667" Top="3,77953" Width="151,1812" Height="18,89765" Editable="3" AutoWidth="True" DisplayFormat.DecimalSeparator="," Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="Kollegium-Uebersicht-4Sp; [&#60;Page&#62;]/[TotalPages]"/>
      <TfrxMemoView Name="Memo33" AllowVectorExport="True" Left="0" Top="3,77952999999997" Width="529,1342" Height="18,89765" Editable="3" StretchMode="smActualHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[IIF(AktuellerFilter&#60;&#62;'','Filter: '+AktuellerFilter,'')"/>
    </TfrxPageFooter>
  </TfrxReportPage>
  <TfrxDialogPage Name="sort" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" HGuides.Text="" VGuides.Text="" BorderStyle="bsToolWindow" Caption="Optionen" DoubleBuffered="False" Height="391" ClientHeight="352" Left="602" Top="168" Width="574" Scaled="True" ClientWidth="558" OnActivate="sortOnActivate">
    <TfrxGroupBoxControl Name="GroupBox2" Left="20" Top="24" Width="269" Height="157" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="1" ParentFont="False" ShowHint="True" Caption="Sortieroptionen" Color="-16777201">
      <TfrxRadioButtonControl Name="namvor" Left="8" Top="20" Width="205" Height="17" ShowHint="True" Caption="Nachname, Rufname" Checked="True" Color="-16777201"/>
      <TfrxRadioButtonControl Name="geschlecht" Left="8" Top="45" Width="205" Height="17" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" ShowHint="True" Caption="Geschlecht, Nachname, Rufname" TabStop="False" Color="-16777201"/>
      <TfrxRadioButtonControl Name="kuerzel" Left="8" Top="70" Width="205" Height="17" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" ShowHint="True" Caption="Kürzel" TabStop="False" Color="-16777201"/>
      <TfrxRadioButtonControl Name="gebdat" Left="8" Top="95" Width="205" Height="17" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" ShowHint="True" Caption="Geburtstag" TabStop="False" Color="-16777201"/>
      <TfrxRadioButtonControl Name="alter" Left="8" Top="120" Width="205" Height="17" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" ShowHint="True" Caption="Geburtsdatum" TabStop="False" Color="-16777201"/>
    </TfrxGroupBoxControl>
    <TfrxGroupBoxControl Name="GroupBox1" Left="312" Top="24" Width="229" Height="245" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="1" ParentFont="False" ShowHint="True" Caption="Ausdrucke mit den" Color="-16777201">
      <TfrxCheckBoxControl Name="CheckBox1" Left="8" Top="165" Width="97" Height="17" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" ShowHint="True" Caption="Abgeordneten" Color="-16777201"/>
      <TfrxCheckBoxControl Name="CheckBox2" Left="8" Top="190" Width="113" Height="17" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" ShowHint="True" Caption="Ausgeschiedenen" Color="-16777201"/>
      <TfrxCheckBoxControl Name="CheckBox3" Left="8" Top="215" Width="97" Height="17" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" ShowHint="True" Caption="Beurlaubten" Color="-16777201"/>
      <TfrxCheckBoxControl Name="CheckBox4" Left="8" Top="20" Width="97" Height="17" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" ShowHint="True" Caption="Lehrerkräften" Checked="True" State="cbChecked" Color="-16777201"/>
      <TfrxCheckBoxControl Name="CheckBox5" Left="8" Top="45" Width="97" Height="17" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" ShowHint="True" Caption="MitarbeiterInnen" Color="-16777201"/>
      <TfrxCheckBoxControl Name="CheckBox6" Left="8" Top="80" Width="97" Height="17" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" ShowHint="True" Caption="Verbeamteten" Checked="True" State="cbChecked" Color="-16777201"/>
      <TfrxCheckBoxControl Name="CheckBox7" Left="8" Top="105" Width="97" Height="17" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" ShowHint="True" Caption="in Probezeit" Checked="True" State="cbChecked" Color="-16777201"/>
      <TfrxCheckBoxControl Name="CheckBox8" Left="8" Top="130" Width="137" Height="17" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" ParentFont="False" ShowHint="True" Caption="Neu Aufgenommenen" Checked="True" State="cbChecked" Color="-16777201"/>
    </TfrxGroupBoxControl>
    <TfrxButtonControl Name="weiter" Left="468" Top="300" Width="75" Height="25" ShowHint="True" Caption="weiter" OnClick="weiterOnClick"/>
  </TfrxDialogPage>
</TfrxReport>
