<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="2026.1.6" DotMatrixReport="False" EngineOptions.DoublePass="True" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Maximized="False" PreviewOptions.Zoom="1" PrintOptions.Printer="Vorgabe" PrintOptions.PrintOnSheet="0" ReportOptions.Author="geaendert JLO" ReportOptions.CreateDate="39414,5702933218" ReportOptions.Description.Text="Kursliste mit allen Telefonnummern" ReportOptions.Name="KursTeiln-Adr-alle-Fon" ReportOptions.LastChange="46283,514945463" ScriptLanguage="PascalScript" ScriptText.Text="var&#13;&#10;  spezialdr,kurs,agkurs,order,kursorder,korder,aa,hj,ags,SchuljahrIdakt,wtsel: string;&#13;&#10;  kids : array[0..999] of string;&#13;&#10;  monat,Halbj: integer;&#13;&#10;&#13;&#10;procedure kurswahlOnActivate(Sender: TfrxComponent);&#13;&#10;  var&#13;&#10;     j:integer;&#13;&#10;begin&#13;&#10;  // Halbjahr vorbelegen&#13;&#10;  DecodeDate(date,0,monat,0);&#13;&#10;  if (monat&#62;=2) and (monat &#60;8) then&#13;&#10;  begin&#13;&#10;     hj2.checked:=true;&#13;&#10;     halbj:=2;&#13;&#10;  end;&#13;&#10;&#13;&#10;  if (monat&#62;=8) or (monat &#60;2) then&#13;&#10;  begin&#13;&#10;       hj1.checked:=true;&#13;&#10;       halbj:=1;&#13;&#10;  end;&#13;&#10;&#13;&#10;  _FaecherListen(halbj);&#13;&#10;  _LehrerListen(halbj);&#13;&#10;  _KurseListen;&#13;&#10;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure weiterOnClick(Sender: TfrxComponent);&#13;&#10;   var&#13;&#10;   i,j:integer;&#13;&#10;   sel: string;&#13;&#10;begin&#13;&#10;//Sortieroptionen&#13;&#10;     if grname.checked then&#13;&#10;     begin&#13;&#10;       order := &#39; Kurs,gstufe,gBezeichnung,SchuelerNachname,SchuelerRufname&#39;;&#13;&#10;       GroupHeader1.Visible :=true;&#13;&#10;       GroupFooter1.Visible :=true;&#13;&#10;       MasterData1.Visible:=true;&#13;&#10;     end;&#13;&#10;     if name.checked then&#13;&#10;     begin&#13;&#10;       order := &#39; Kurs,SchuelerNachname,SchuelerRufname&#39;;&#13;&#10;       GroupHeader1.Visible :=true;&#13;&#10;       GroupFooter1.Visible :=true;&#13;&#10;       MasterData1.Visible:=true;&#13;&#10;     end;&#13;&#10;&#13;&#10;     if grmname.checked then&#13;&#10;     begin&#13;&#10;       order := &#39; Kurs,gstufe,gBezeichnung,SchuelerGeschlecht desc,SchuelerNachname,SchuelerRufname&#39;;&#13;&#10;       GroupHeader1.Visible :=true;&#13;&#10;       GroupFooter1.Visible :=true;&#13;&#10;       MasterData1.Visible:=true;&#13;&#10;     end;&#13;&#10;     if grjname.checked then&#13;&#10;     begin&#13;&#10;       order := &#39; Kurs,gstufe,gBezeichnung,SchuelerGeschlecht,SchuelerNachname,SchuelerRufname&#39;;&#13;&#10;       GroupHeader1.Visible :=true;&#13;&#10;       GroupFooter1.Visible :=true;&#13;&#10;       MasterData1.Visible:=true;&#13;&#10;     end;&#13;&#10;     if mname.checked then&#13;&#10;     begin&#13;&#10;       order := &#39; Kurs,SchuelerGeschlecht desc,SchuelerNachname,SchuelerRufname,gstufe,gBezeichnung&#39;;&#13;&#10;        GroupHeader1.Visible :=true;&#13;&#10;       GroupFooter1.Visible :=true;&#13;&#10;       MasterData1.Visible:=true;&#13;&#10;     end;&#13;&#10;     if jname.checked then&#13;&#10;     begin&#13;&#10;       order := &#39; Kurs,SchuelerGeschlecht,SchuelerNachname,SchuelerRufname,gstufe,gBezeichnung&#39;;&#13;&#10;       GroupHeader1.Visible :=true;&#13;&#10;       GroupFooter1.Visible :=true;&#13;&#10;       MasterData1.Visible:=true;&#13;&#10;     end;&#13;&#10;     if mRufname.checked then&#13;&#10;     begin&#13;&#10;       order := &#39; Kurs,SchuelerGeschlecht desc,SchuelerRufname,SchuelerNachname,gstufe,gBezeichnung&#39;;&#13;&#10;       GroupHeader2.Visible :=true;&#13;&#10;       GroupFooter2.Visible :=true;&#13;&#10;       MasterData2.Visible:=true;&#13;&#10;     end;&#13;&#10;     if jRufname.checked then&#13;&#10;     begin&#13;&#10;       order := &#39; Kurs,SchuelerGeschlecht,SchuelerRufname,SchuelerNachname,gstufe,gBezeichnung&#39;;&#13;&#10;       GroupHeader2.Visible :=true;&#13;&#10;       GroupFooter2.Visible :=true;&#13;&#10;       MasterData2.Visible:=true;&#13;&#10;     end;&#13;&#10;&#13;&#10;    sel:=&#39;select d.*,k.Id KursId,k.Bezeichnung Kurs,k.Spezial,GruppeBezeichnung gBezeichnung,GruppeJahrgangsstufe gstufe&#39;+&#13;&#10;         &#39;,pl.Geschlecht LehrGeschlecht,pl.Nachname LehrerIn,pl.Namenszusatz LehrZusatz,pl.AkadTitel LehrAkadTitel,Schuljahrbezeichnung&#39;+&#13;&#10;         &#39;,ELT(k.Wochentag,&#34;Mo&#34;,&#34;Di&#34;,&#34;Mi&#34;,&#34;Do&#34;,&#34;Fr&#34;,&#34;Sa&#34;) WT&#39;+&#13;&#10;         &#39; from danis d&#39;+&#13;&#10;         &#39; inner join belegung b on d.JahrgangsdatenId=b.JahrgangsdatenId&#39;+&#13;&#10;         &#39; inner join kurs k on b.KursId=k.Id&#39;+&#13;&#10;         &#39; left join person pl on k.LehrerId=pl.Id&#39;;&#13;&#10;&#13;&#10;    i:=1;&#13;&#10;    for j:=0 to CheckListBox1.Items.Count-1 do&#13;&#10;    begin&#13;&#10;      if CheckListBox1.checked[j] = true then&#13;&#10;      begin&#13;&#10;         if i=1 then&#13;&#10;           kurs:=kids[j+1]&#13;&#10;         else&#13;&#10;           kurs:=kurs+&#39;,&#39;+kids[j+1];&#13;&#10;         i:=i+1;&#13;&#10;      end;&#13;&#10;  end;&#13;&#10;&#13;&#10;    if spdr.checked then&#13;&#10;      spezialdr:=&#39;1&#39;&#13;&#10;    else&#13;&#10;      spezialdr:=&#39;&#39;;&#13;&#10;&#13;&#10;    d.SQL.Text:=sel+&#39; where k.Id in (&#39;+kurs+&#39;)&#39;+hj+&#39; order by Wochentag,&#39;+order;&#13;&#10;    //showmessage(d.SQL.Text);&#13;&#10;    if kurs&#60;&#62;&#39;&#39; then&#13;&#10;      kurswahl.ModalResult := mrOk&#13;&#10;    else&#13;&#10;      showmessage(&#39;Bitte wählen Sie mindestens einen Kurs.&#39;);&#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;procedure Hj1OnClick(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  if Hj1.checked=true then&#13;&#10;  begin&#13;&#10;    hj:= &#39; and b.Von=1&#39;;&#13;&#10;    Halbj:=1;&#13;&#10;    _FaecherListen(halbj);&#13;&#10;    _LehrerListen(halbj);&#13;&#10;    _KurseListen;&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;procedure Hj2OnClick(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  if Hj2.checked=true then&#13;&#10;  begin&#13;&#10;    hj:= &#39; and b.Bis=2&#39;;&#13;&#10;    Halbj:=2;&#13;&#10;   _FaecherListen(halbj);&#13;&#10;   _LehrerListen(halbj);&#13;&#10;   _KurseListen;&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;procedure Button1OnClick(Sender: TfrxComponent); // Auswahl umkehren&#13;&#10;  var&#13;&#10;  j:integer;&#13;&#10;  begin&#13;&#10;    for j:=0 to CheckListBox1.items.Count-1 do&#13;&#10;    begin&#13;&#10;      if CheckListBox1.checked[j]=true then&#13;&#10;      CheckListBox1.checked[j]:= false&#13;&#10;    else&#13;&#10;     CheckListBox1.checked[j]:= true&#13;&#10;    end;&#13;&#10;  end;&#13;&#10;&#13;&#10;&#13;&#10;procedure FaecherListeOnClick(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  _KurseListen;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure LehrerListeOnClick(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  _KurseListen;&#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;procedure _FaecherListen (halbj: integer);   // Liste der gewählten Fächer im gewählten Halbjahr&#13;&#10;var&#13;&#10;j: integer;&#13;&#10;begin&#13;&#10; qag.SQL.Text:=&#39;select KursId,f.Kennzahl&#39;+&#13;&#10;  &#39; from danis d&#39;+&#13;&#10;  &#39; left join belegung b on d.Jahrgangsdatenid=b.JahrgangsdatenId&#39;+&#13;&#10;  &#39; left join kurs k on b.KursId=k.Id&#39;+&#13;&#10;  &#39; inner join fach f on k.FachId=f.Id&#39;+&#13;&#10;  &#39; where k.Id&#62;0&#39;+hj+&#39; group by Kennzahl&#39;;&#13;&#10;&#13;&#10;  Faecherliste.items.clear();&#13;&#10;  //showmessage(qag.SQL.Text);&#13;&#10;  qag.Open;&#13;&#10;  j:=-1;&#13;&#10;  //kids[0]:=&#39;0&#39;;&#13;&#10;  try&#13;&#10;    while not qag.Eof do&#13;&#10;    begin&#13;&#10;      j:=j+1;&#13;&#10;      //kids[j]:=qag.FieldByName(&#39;KursId&#39;).AsString;&#13;&#10;      Faecherliste.items.add(qag.FieldByName(&#39;Kennzahl&#39;).AsString);&#13;&#10;      qag.Next;&#13;&#10;    end;&#13;&#10;  finally&#13;&#10;  qag.Close;&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;procedure _LehrerListen (halb: integer); // Liste der beteiligten Lehrer im gewählten Schuljahr&#13;&#10;var&#13;&#10;  j: integer;&#13;&#10;begin&#13;&#10;  ql.SQL.Text:=&#39;select k.LehrerId,l.Kuerzel from danis d&#39;+&#13;&#10;  &#39; inner join belegung b on d.JahrgangsdatenId=b.JahrgangsdatenId&#39;+&#13;&#10;  &#39; inner join kurs k on b.KursId=k.Id inner join person p on k.LehrerId=p.Id&#39;+&#13;&#10;  &#39; inner join lehrer l on k.LehrerId=l.Id where k.LehrerId&#62;0&#39;+hj+&#39; group by Kuerzel&#39;;&#13;&#10;&#13;&#10;  Lehrerliste.items.Clear();&#13;&#10;  ql.Open;&#13;&#10;  j:=-1;&#13;&#10;  //kids[0]:=&#39;0&#39;;&#13;&#10;  try&#13;&#10;    while not ql.Eof do&#13;&#10;    begin&#13;&#10;      j:=j+1;&#13;&#10;      //kids[j]:=ql.FieldByName(&#39;LehrerId&#39;).AsString;&#13;&#10;      LehrerListe.items.add(ql.FieldByName(&#39;Kuerzel&#39;).AsString);&#13;&#10;      ql.Next;&#13;&#10;    end;&#13;&#10;  finally&#13;&#10;  ql.Close;&#13;&#10;  end;&#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;procedure _KurseListen; //Kurse des selektierten Halbjahres, sowie der selektierten Fächer, Lehrer und Wochentage anzeigen&#13;&#10;var&#13;&#10;  i,j: integer;&#13;&#10;  fsel,lsel,where: string;&#13;&#10;begin&#13;&#10;  fsel:=&#39;&#39;;&#13;&#10;  lsel:=&#39;&#39;;&#13;&#10;&#13;&#10;  // Welche Fächer wurden selektiert?&#13;&#10;  if FaecherListe.Items.Count&#62;0 then&#13;&#10;  begin&#13;&#10;    i:=1;&#13;&#10;    for j:=0 to FaecherListe.Items.Count-1 do&#13;&#10;    begin&#13;&#10;      if FaecherListe.checked[j] = true then&#13;&#10;      begin&#13;&#10;         if i=1 then&#13;&#10;           fsel:=&#39;&#34;&#39;+FaecherListe.items[j]+&#39;&#34;&#39;&#13;&#10;         else&#13;&#10;           fsel:=fsel+&#39;,&#34;&#39;+FaecherListe.items[j]+&#39;&#34;&#39;;&#13;&#10;         i:=i+1;&#13;&#10;      end;&#13;&#10;    end;&#13;&#10;  end;&#13;&#10;  //showmessage(fsel);&#13;&#10;&#13;&#10;  // Welche Lehrer wurden selektiert&#13;&#10;  if LehrerListe.Items.Count&#62;0 then&#13;&#10;  begin&#13;&#10;    i:=1;&#13;&#10;    for j:=0 to LehrerListe.Items.Count-1 do&#13;&#10;    begin&#13;&#10;      if LehrerListe.checked[j] = true then&#13;&#10;      begin&#13;&#10;         if i=1 then&#13;&#10;           lsel:=&#39;&#34;&#39;+LehrerListe.items[j]+&#39;&#34;&#39;&#13;&#10;         else&#13;&#10;           lsel:=lsel+&#39;,&#34;&#39;+LehrerListe.items[j]+&#39;&#34;&#39;;&#13;&#10;         i:=i+1;&#13;&#10;      end;&#13;&#10;    end;&#13;&#10;  end;&#13;&#10;  //showmessage(lsel);&#13;&#10;  where:=&#39; where k.Id&#62;0&#39;+hj;&#13;&#10;&#13;&#10;  if fsel&#60;&#62;&#39;&#39; then&#13;&#10;    where:=where+ &#39; and f.Kennzahl in (&#39;+fsel+&#39;)&#39;;&#13;&#10;&#13;&#10;  if lsel&#60;&#62;&#39;&#39; then&#13;&#10;    where:=where+ &#39; and l.Kuerzel in (&#39;+lsel+&#39;)&#39;;&#13;&#10;&#13;&#10;  if nsel.Text&#60;&#62;&#39;&#39; then&#13;&#10;    where:=where+&#39; and k.Bezeichnung like &#34;%&#39;+nsel.Text+&#39;%&#34;&#39;;&#13;&#10;&#13;&#10;  if spezsel.Text&#60;&#62;&#39;&#39; then&#13;&#10;    where:=where+&#39; and k.Spezial like &#34;%&#39;+spezsel.Text+&#39;%&#34;&#39;;&#13;&#10;&#13;&#10;  if (wtMO.checked) or (wtDi.checked) or (wtMi.checked) or (wtDo.checked) or (wtFr.checked) or (wtSa.checked) then&#13;&#10;  begin&#13;&#10;    wtsel:=&#39;&#39;;&#13;&#10;     if wtMo.checked then wtsel:=&#39;1&#39;;&#13;&#10;     if wtDi.checked then&#13;&#10;       if wtsel=&#39;&#39; then wtsel:=&#39;2&#39;&#13;&#10;       else wtsel:=wtsel+&#39;,2&#39;;&#13;&#10;     if wtMi.checked then&#13;&#10;       if wtsel=&#39;&#39; then wtsel:=&#39;3&#39;&#13;&#10;       else wtsel:=wtsel+&#39;,3&#39;;&#13;&#10;     if wtDo.checked then&#13;&#10;       if wtsel=&#39;&#39; then wtsel:=&#39;4&#39;&#13;&#10;       else wtsel:=wtsel+&#39;,4&#39;;&#13;&#10;     if wtFr.checked then&#13;&#10;       if wtsel=&#39;&#39; then wtsel:=&#39;5&#39;&#13;&#10;       else wtsel:=wtsel+&#39;,5&#39;;&#13;&#10;     if wtSa.checked then&#13;&#10;       if wtsel=&#39;&#39; then wtsel:=&#39;6&#39;&#13;&#10;       else wtsel:=wtsel+&#39;,6&#39;;&#13;&#10;     where:=where+&#39; and k.Wochentag in (&#39;+wtsel+&#39;)&#39;;&#13;&#10;  end;&#13;&#10;&#13;&#10;  korder:=&#39; order by k.Bezeichnung&#39;;&#13;&#10;  qag.SQL.Text:=&#39;select concat(k.Bezeichnung,if(k.Spezial!=&#34;&#34;,concat(&#34;, &#34;,k.Spezial),&#34;&#34;),if(l.Kuerzel!=&#34;&#34;,concat(&#34;, &#34;,l.Kuerzel),&#34;&#34;)) Kursbezeichnung, k.Id KursId&#39;+&#13;&#10;        &#39; from danis d&#39;+&#13;&#10;        &#39; left join belegung b on d.Jahrgangsdatenid=b.JahrgangsdatenId&#39;+&#13;&#10;        &#39; inner join kurs k on b.KursId=k.Id&#39;+&#13;&#10;        &#39; inner join fach f on k.FachId=f.Id&#39;+&#13;&#10;        &#39; left join lehrer l on k.LehrerId=l.Id&#39;+where+&#13;&#10;        &#39; group by k.Id&#39;+korder;&#13;&#10;  //showmessage(qag.SQL.Text);&#13;&#10;&#13;&#10;  CheckListBox1.items.clear();&#13;&#10;  qag.Open;&#13;&#10;    j:=0;&#13;&#10;    kids[0]:=&#39;0&#39;;&#13;&#10;    try&#13;&#10;    while not qag.Eof do&#13;&#10;    begin&#13;&#10;      j:=j+1;&#13;&#10;      kids[j]:=qag.FieldByName(&#39;KursId&#39;).AsString;&#13;&#10;      CheckListBox1.items.add(qag.FieldByName(&#39;KursBezeichnung&#39;).AsString);&#13;&#10;      qag.Next;&#13;&#10;     end;&#13;&#10;    finally&#13;&#10;    qag.Close;&#13;&#10;    end;&#13;&#10;    AnzahlKurse.Caption:=inttostr(CheckListBox1.items.Count)+&#39; wählbare Kurse&#39;;&#13;&#10;end;&#13;&#10;&#13;&#10;&#13;&#10;procedure nselOnChange(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  _KurseListen;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure spezselOnChange(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  _KurseListen;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure wtMoOnClick(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  _KurseListen;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure wtDiOnClick(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  _KurseListen;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure wtMiOnClick(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  _KurseListen;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure wtDoOnClick(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  _KurseListen;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure wtFrOnClick(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  _KurseListen;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure wtSaOnClick(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  _KurseListen;&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." StoreInDFM="False">
  <Datasets>
    <item DataSet="d" DataSetName="d"/>
    <item DataSet="sh" DataSetName="sh"/>
    <item DataSet="qag" DataSetName="qag"/>
    <item DataSet="ql" DataSetName="ql"/>
    <item DataSet="qk" DataSetName="qk"/>
  </Datasets>
  <TfrxDataPage Name="Data" HGuides.Text="" VGuides.Text="" Height="1000" Left="0" Top="0" Width="1000">
    <TfrxMYDACQuery Name="d" UserName="d" CloseDataSource="True" BCDToCurrency="False" DataSetOptions="0" Left="320" Top="172" IgnoreDupParams="False" SQL.Text="select d.*&#13;&#10;,k.Id KursId,k.Bezeichnung Kurs,k.Spezial                                     &#13;&#10;,pl.Geschlecht LehrGeschlecht,pl.Nachname LehrerIn,pl.Namenszusatz LehrZusatz,pl.AkadTitel LehrAkadTitel&#13;&#10;,SchuljahrBezeichnung                                            &#13;&#10;,ELT(k.Wochentag,&#34;Mo&#34;,&#34;Di&#34;,&#34;Mi&#34;,&#34;Do&#34;,&#34;Fr&#34;,&#34;Sa&#34;) WT  &#13;&#10;from danis d&#13;&#10;inner join belegung b on d.JahrgangsdatenId=b.JahrgangsdatenId&#13;&#10;inner join kurs k on b.KursId=k.Id&#13;&#10;inner join fach f on k.FachId=f.Id&#13;&#10;inner join person pl on k.LehrerId=pl.Id                                                                                         " LocalMasterDetail="False">
      <FieldDefs>
        <item FieldName="Eigenschaftaaaaaa" FieldType="fftString" Size="64"/>
        <item FieldName="GruppeBezeichnung" FieldType="fftString" Size="56"/>
        <item FieldName="GruppeGanztagsunterricht" FieldType="fftBoolean"/>
        <item FieldName="GruppeId"/>
        <item FieldName="GruppeJahrgangsstufe"/>
        <item FieldName="GruppeRaum" FieldType="fftString"/>
        <item FieldName="GruppeZeugnisstatus"/>
        <item FieldName="GruppeStandort" FieldType="fftString" Size="256"/>
        <item FieldName="JahrgangsdatenEndDatum" FieldType="fftDateTime"/>
        <item FieldName="JahrgangsdatenId"/>
        <item FieldName="JahrgangsdatenKlassensprecher"/>
        <item FieldName="JahrgangsdatenKreisschuelerrat"/>
        <item FieldName="JahrgangsdatenSchuelersprecher"/>
        <item FieldName="JahrgangsdatenStadtschuelerrat"/>
        <item FieldName="JahrgangsdatenLandesschuelerrat" FieldType="fftBoolean"/>
        <item FieldName="JahrgangsdatenProfil" FieldType="fftString" Size="64"/>
        <item FieldName="JahrgangsdatenProfil2" FieldType="fftString" Size="64"/>
        <item FieldName="JahrgangsdatenStatus"/>
        <item FieldName="KombiJahrgangsstufe"/>
        <item FieldName="InfektionsschutzNachweis"/>
        <item FieldName="InfektionsschutzNachweisForm"/>
        <item FieldName="InfektionsschutzNachweisDatum" FieldType="fftDateTime"/>
        <item FieldName="InfektionsschutzKontraindikationBis" FieldType="fftDateTime"/>
        <item FieldName="InfektionsschutzMeldungGesundheitsamt" FieldType="fftDateTime"/>
        <item FieldName="InfektionsschutzRueckmeldungGesundheitsamt" FieldType="fftDateTime"/>
        <item FieldName="LehrerID1"/>
        <item FieldName="Lehrervorname1" FieldType="fftString" Size="256"/>
        <item FieldName="Lehrernachname1" FieldType="fftString" Size="256"/>
        <item FieldName="LehrerID2"/>
        <item FieldName="Lehrervorname2" FieldType="fftString" Size="256"/>
        <item FieldName="Lehrernachname2" FieldType="fftString" Size="256"/>
        <item FieldName="LernmittelausleiheBezeichnung" FieldType="fftString" Size="64"/>
        <item FieldName="LernmittelausleiheDatum" FieldType="fftDateTime"/>
        <item FieldName="LernmittelausleiheGezahlterBetrag"/>
        <item FieldName="LernmittelausleiheLernmittelBezahlt" FieldType="fftBoolean"/>
        <item FieldName="LernmittelausleiheLeihtAus" FieldType="fftBoolean"/>
        <item FieldName="LernmittelausleiheProzent"/>
        <item FieldName="NachSchulformBezeichnung" FieldType="fftString" Size="64"/>
        <item FieldName="NachSchulformKennzahl"/>
        <item FieldName="NachSchulformKuerzel" FieldType="fftString" Size="64"/>
        <item FieldName="PersonSanisSync"/>
        <item FieldName="SchuelerAbgangsdatum" FieldType="fftDateTime"/>
        <item FieldName="SchuelerAbschlussBezeichnung" FieldType="fftString" Size="67"/>
        <item FieldName="SchuelerAbschlussId"/>
        <item FieldName="SchuelerAbschlussKennzahl" FieldType="fftString" Size="16"/>
        <item FieldName="SchuelerAufnahmedatum" FieldType="fftDateTime"/>
        <item FieldName="SchuelerBankverbindung" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerBeginnDerSchulpflicht"/>
        <item FieldName="SchuelerBemerkungen" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerBerufswunsch" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerBild"/>
        <item FieldName="SchuelerBildVorhanden" FieldType="fftBoolean"/>
        <item FieldName="SchuelerElternEntscheidungId"/>
        <item FieldName="SchuelerElternWunschId"/>
        <item FieldName="SchuelerElternEntscheidung" FieldType="fftString" Size="50"/>
        <item FieldName="SchuelerElternWunsch" FieldType="fftString" Size="50"/>
        <item FieldName="SchuelerEMail" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerEmpfehlung"/>
        <item FieldName="SchuelerErstEinschulJahr"/>
        <item FieldName="SchuelerFahrschueler" FieldType="fftBoolean"/>
        <item FieldName="SchuelerFax" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerFlexiKind" FieldType="fftBoolean"/>
        <item FieldName="SchuelerFoerderDeutschaZAb" FieldType="fftDateTime"/>
        <item FieldName="SchuelerFoerderung" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerFoerderungAb" FieldType="fftDateTime"/>
        <item FieldName="SchuelerGeburtsdatum" FieldType="fftDateTime"/>
        <item FieldName="SchuelerGeburtslandbezeichnung" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerGeburtslandkennzahl" FieldType="fftString" Size="16"/>
        <item FieldName="SchuelerGeburtslandbezeichnungIso" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerGeburtslandCodeIso" FieldType="fftString"/>
        <item FieldName="SchuelerGeburtsort" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerGeschlecht" FieldType="fftString"/>
        <item FieldName="SchuelerHerkunftBezeichnung" FieldType="fftString" Size="128"/>
        <item FieldName="SchuelerHerkunftKennzahl" FieldType="fftString" Size="16"/>
        <item FieldName="SchuelerId"/>
        <item FieldName="SchuelerIdentNummer" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerKonfession" FieldType="fftString" Size="128"/>
        <item FieldName="SchuelerKonfessionKennzahl" FieldType="fftString" Size="16"/>
        <item FieldName="SchuelerKrankenkasse" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerLandkreis" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerNachname" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerNachSchule" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerNamenszusatz" FieldType="fftString" Size="32"/>
        <item FieldName="SchuelerNotfall" FieldType="fftString" Size="255"/>
        <item FieldName="SchuelerOPNV" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerOrtsname" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerOrtsname2" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerOrtsteil" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerPLZ" FieldType="fftString" Size="32"/>
        <item FieldName="SchuelerPLZ2" FieldType="fftString" Size="32"/>
        <item FieldName="SchuelerRufname" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerSchulbesuchsjahr"/>
        <item FieldName="SchuelerSonderpaedBedarf"/>
        <item FieldName="SchuelerStaatsangehoerigkeit" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerStaatsangehoerigkeitKennzahl" FieldType="fftString" Size="16"/>
        <item FieldName="SchuelerStaatsangehoerigkeit2" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerStaatsangehoerigkeitKennzahl2" FieldType="fftString" Size="16"/>
        <item FieldName="SchuelerStaatsangehoerigkeitIso" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerStaatsangehoerigkeitCodeIso" FieldType="fftString"/>
        <item FieldName="SchuelerStaatsangehoerigkeitIso2" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerStaatsangehoerigkeitCodeIso2" FieldType="fftString"/>
        <item FieldName="SchuelerStrasse" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerStrasse2" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerTelefon1" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerTelefon2" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerTitel" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerTrendEmpfehlung"/>
        <item FieldName="SchuelerUnterordner" FieldType="fftString" Size="50"/>
        <item FieldName="SchuelerVerkehrsspracheId"/>
        <item FieldName="SchuelerVerkehrsSprache" FieldType="fftString" Size="64"/>
        <item FieldName="SchuelerVonSchule" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerVornamen" FieldType="fftString" Size="256"/>
        <item FieldName="SchuelerWiederholt" FieldType="fftString"/>
        <item FieldName="SchuelerWohnsitz"/>
        <item FieldName="SchuelerZurueckgestellt" FieldType="fftBoolean"/>
        <item FieldName="SchuelerZuzugsjahr"/>
        <item FieldName="SchuleAdresse" FieldType="fftString" Size="64"/>
        <item FieldName="SchuleIdentNummer" FieldType="fftString" Size="64"/>
        <item FieldName="SchuleLand" FieldType="fftString" Size="64"/>
        <item FieldName="SchuleName" FieldType="fftString" Size="256"/>
        <item FieldName="SchuleOrt" FieldType="fftString" Size="64"/>
        <item FieldName="SchulePLZ"/>
        <item FieldName="SchulformBezeichnung" FieldType="fftString" Size="64"/>
        <item FieldName="SchulformKennzahl"/>
        <item FieldName="SchulformKuerzel" FieldType="fftString" Size="64"/>
        <item FieldName="SchulgliederungId"/>
        <item FieldName="SchuljahrBezeichnung" FieldType="fftString" Size="64"/>
        <item FieldName="SchuljahrId"/>
        <item FieldName="UnterordnerId"/>
        <item FieldName="Verantw1Id"/>
        <item FieldName="Verantw1Erziehungsberechtigt" FieldType="fftBoolean"/>
        <item FieldName="Verantw1Umgangsberechtigt" FieldType="fftBoolean"/>
        <item FieldName="Verantw1Art"/>
        <item FieldName="Verantw1Vorname" FieldType="fftString" Size="256"/>
        <item FieldName="Verantw1Nachname" FieldType="fftString" Size="256"/>
        <item FieldName="Verantw1Titel" FieldType="fftString" Size="64"/>
        <item FieldName="Verantw1AkadTitel" FieldType="fftString" Size="64"/>
        <item FieldName="Verantw1Geburtsdatum" FieldType="fftDateTime"/>
        <item FieldName="Verantw1Geschlecht" FieldType="fftString"/>
        <item FieldName="Verantw1Namenszusatz" FieldType="fftString" Size="32"/>
        <item FieldName="Verantw1Strasse" FieldType="fftString" Size="256"/>
        <item FieldName="Verantw1Ortsname" FieldType="fftString" Size="256"/>
        <item FieldName="Verantw1PLZ" FieldType="fftString" Size="32"/>
        <item FieldName="Verantw1EMail" FieldType="fftString" Size="64"/>
        <item FieldName="Verantw1Telefon1" FieldType="fftString" Size="64"/>
        <item FieldName="Verantw1Telefon2" FieldType="fftString" Size="64"/>
        <item FieldName="Verantw1Bankverbindung" FieldType="fftString" Size="64"/>
        <item FieldName="Verantw1Fax" FieldType="fftString" Size="64"/>
        <item FieldName="SerienBriefAnredeErz1" FieldType="fftString" Size="374"/>
        <item FieldName="SerienbriefFrauHerrn" FieldType="fftString" Size="15"/>
        <item FieldName="SerienbriefAnredeNamen"/>
        <item FieldName="Verantw2Id"/>
        <item FieldName="Verantw2Erziehungsberechtigt" FieldType="fftBoolean"/>
        <item FieldName="Verantw2Umgangsberechtigt" FieldType="fftBoolean"/>
        <item FieldName="Verantw2Art"/>
        <item FieldName="Verantw2Vorname" FieldType="fftString" Size="256"/>
        <item FieldName="Verantw2Nachname" FieldType="fftString" Size="256"/>
        <item FieldName="Verantw2Titel" FieldType="fftString" Size="64"/>
        <item FieldName="Verantw2AkadTitel" FieldType="fftString" Size="64"/>
        <item FieldName="Verantw2Geburtsdatum" FieldType="fftDateTime"/>
        <item FieldName="Verantw2Geschlecht" FieldType="fftString"/>
        <item FieldName="Verantw2Namenszusatz" FieldType="fftString" Size="32"/>
        <item FieldName="Verantw2Strasse" FieldType="fftString" Size="256"/>
        <item FieldName="Verantw2Ortsname" FieldType="fftString" Size="256"/>
        <item FieldName="Verantw2PLZ" FieldType="fftString" Size="32"/>
        <item FieldName="Verantw2EMail" FieldType="fftString" Size="64"/>
        <item FieldName="Verantw2Telefon1" FieldType="fftString" Size="64"/>
        <item FieldName="Verantw2Telefon2" FieldType="fftString" Size="64"/>
        <item FieldName="Verantw2Bankverbindung" FieldType="fftString" Size="64"/>
        <item FieldName="Verantw2Fax" FieldType="fftString" Size="64"/>
        <item FieldName="SerienBriefAnredeErz2"/>
        <item FieldName="KursId"/>
        <item FieldName="Kurs" FieldType="fftString" Size="128"/>
        <item FieldName="Spezial" FieldType="fftString" Size="128"/>
        <item FieldName="LehrGeschlecht" FieldType="fftString"/>
        <item FieldName="LehrerIn" FieldType="fftString" Size="256"/>
        <item FieldName="LehrZusatz" FieldType="fftString" Size="32"/>
        <item FieldName="LehrAkadTitel" FieldType="fftString" Size="64"/>
        <item FieldName="SchuljahrBezeichnung_1" FieldType="fftString" Size="64"/>
        <item FieldName="WT" FieldType="fftString"/>
      </FieldDefs>
    </TfrxMYDACQuery>
    <TfrxMYDACQuery Name="sh" UserName="sh" CloseDataSource="True" BCDToCurrency="False" DataSetOptions="0" Left="192" Top="172" IgnoreDupParams="False" SQL.Text="select * from schule                                           " LocalMasterDetail="False">
      <FieldDefs>
        <item FieldName="Id"/>
        <item FieldName="UpdateCount"/>
        <item FieldName="Name" FieldType="fftString" Size="256"/>
        <item FieldName="IdentNummer" FieldType="fftString" Size="64"/>
        <item FieldName="Land" FieldType="fftString" Size="64"/>
        <item FieldName="Adresse" FieldType="fftString" Size="64"/>
        <item FieldName="PLZ"/>
        <item FieldName="Ort" FieldType="fftString" Size="64"/>
        <item FieldName="Telefon" FieldType="fftString" Size="64"/>
        <item FieldName="Fax" FieldType="fftString" Size="64"/>
        <item FieldName="EMail" FieldType="fftString" Size="64"/>
        <item FieldName="Homepage" FieldType="fftString" Size="64"/>
        <item FieldName="Bank" FieldType="fftString" Size="64"/>
        <item FieldName="Logo"/>
        <item FieldName="AnzahlStandorte"/>
        <item FieldName="SchulleiterID"/>
        <item FieldName="Schultraeger" FieldType="fftString" Size="255"/>
        <item FieldName="StandardLehrmittelausleiheID"/>
        <item FieldName="Dienststelle" FieldType="fftString" Size="255"/>
        <item FieldName="DienststelleMail" FieldType="fftString" Size="255"/>
      </FieldDefs>
    </TfrxMYDACQuery>
    <TfrxMYDACQuery Name="qag" UserName="qag" CloseDataSource="True" BCDToCurrency="False" DataSetOptions="0" Left="192" Top="68" IgnoreDupParams="False" SQL.Text="SELECT sh.Aktuell,k.Bezeichnung,f.Bezeichnung,f.Kennzahl &#13;&#10;FROM kurs k left join fach f on FachId=f.Id left join schulgliederung sg on k.SchulgliederungId=sg.Id &#13;&#10;left join schuljahr sh on sg.SchuljahrId=sh.Id &#13;&#10;where sh.Aktuell=1" LocalMasterDetail="False">
      <FieldDefs>
        <item FieldName="Aktuell" FieldType="fftBoolean"/>
        <item FieldName="Bezeichnung" FieldType="fftString" Size="128"/>
        <item FieldName="Bezeichnung_1" FieldType="fftString" Size="128"/>
        <item FieldName="Kennzahl" FieldType="fftString" Size="16"/>
      </FieldDefs>
    </TfrxMYDACQuery>
    <TfrxMYDACQuery Name="ql" UserName="ql" CloseDataSource="True" BCDToCurrency="False" DataSetOptions="0" Left="320" Top="68" IgnoreDupParams="False" SQL.Text="###&#13;&#10;### wird zur Laufzeit geaendert&#13;&#10;###&#13;&#10;Select p.* from kurs k     &#13;&#10;inner join person p on k.LehrerId=p.Id                                                                               &#13;&#10;  " LocalMasterDetail="False">
      <FieldDefs>
        <item FieldName="Id"/>
        <item FieldName="Deleted" FieldType="fftBoolean"/>
        <item FieldName="UpdateCount"/>
        <item FieldName="Rufname" FieldType="fftString" Size="256"/>
        <item FieldName="Vornamen" FieldType="fftString" Size="256"/>
        <item FieldName="Nachname" FieldType="fftString" Size="256"/>
        <item FieldName="Titel" FieldType="fftString" Size="64"/>
        <item FieldName="AkadTitel" FieldType="fftString" Size="64"/>
        <item FieldName="Geburtsdatum" FieldType="fftDateTime"/>
        <item FieldName="Geschlecht" FieldType="fftString"/>
        <item FieldName="IdentNummer" FieldType="fftString" Size="64"/>
        <item FieldName="Namenszusatz" FieldType="fftString" Size="32"/>
        <item FieldName="KonfessionId"/>
        <item FieldName="Geburtsort" FieldType="fftString" Size="256"/>
        <item FieldName="StaatsangehoerigkeitId"/>
        <item FieldName="lastmodified" FieldType="fftDateTime"/>
        <item FieldName="guid" FieldType="fftString" Size="36"/>
        <item FieldName="SanisSync"/>
        <item FieldName="Staatsangehoerigkeit2Id"/>
      </FieldDefs>
    </TfrxMYDACQuery>
    <TfrxMYDACQuery Name="qk" UserName="qk" CloseDataSource="True" BCDToCurrency="False" DataSetOptions="0" Master="d" Left="428" Top="68" IgnoreDupParams="False" SQL.Text="select * from&#13;&#10;(select PersonId Person,k.*,-1 PArt from kontakt k&#13;&#10;union&#13;&#10;select sv.SchuelerId Person,k.*,sv.Art PArt from kontakt k &#13;&#10;inner join schuelerverantwortlicher sv on (k.PersonId=sv.VerantwortlicherId)&#13;&#10;inner join verantwortlicher v on sv.VerantwortlicherId=v.ID&#13;&#10;) aa&#13;&#10;where `Art`=0 and NurIntern=0&#13;&#10;order by Part,Adresse&#13;&#10;limit 10               " MasterFields="Person=SchuelerId" LocalMasterDetail="False">
      <FieldDefs>
        <item FieldName="Person"/>
        <item FieldName="Id"/>
        <item FieldName="UpdateCount"/>
        <item FieldName="Adresse" FieldType="fftString" Size="64"/>
        <item FieldName="PersonId"/>
        <item FieldName="Art"/>
        <item FieldName="BerichtsStufe"/>
        <item FieldName="NurIntern"/>
        <item FieldName="Hauptkontakt"/>
        <item FieldName="PArt"/>
      </FieldDefs>
    </TfrxMYDACQuery>
  </TfrxDataPage>
  <TfrxReportPage Name="Page1" HGuides.Text="" VGuides.Text="" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="19,84375" RightMargin="10,00125" TopMargin="10,00125" BottomMargin="10,00125" ColumnWidth="0" ColumnPositions.Text="" 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" Height="49,67718" Left="0" Top="120,94496" Visible="False" Width="680,90122715" ColumnWidth="0" ColumnGap="0" DataSet="d" DataSetName="d" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Memo7" AllowVectorExport="True" Left="45" Top="4" Width="200" 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" GapY="0" ParentFont="False" Text="[IIF(&#60;d.&#34;SchuelerNamenszusatz&#34;&#62;&#60;&#62;&#39;&#39;,&#60;d.&#34;SchuelerNamenszusatz&#34;&#62; + &#39; &#39;,&#39;&#39;)][d.&#34;SchuelerNachname&#34;], [d.&#34;SchuelerRufname&#34;] ([d.&#34;SchuelerGeschlecht&#34;])"/>
      <TfrxMemoView Name="Memo3" AllowVectorExport="True" Left="0" Top="4" Width="45" Height="18,89765" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[d.&#34;gBezeichnung&#34;] "/>
      <TfrxMemoView Name="Memo21" AllowVectorExport="True" Left="245" Top="4" Width="312,22047" Height="18,9" Editable="3" ContentScaleOptions.Constraints.MaxIterationValue="0" ContentScaleOptions.Constraints.MinIterationValue="0" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[d.&#34;SchuelerOrtsname&#34;][IIF(&#60;d.&#34;SchuelerOrtsteil&#34;&#62;&#60;&#62;&#39;&#39;,&#39;-&#39;+&#60;d.&#34;SchuelerOrtsteil&#34;&#62;,&#39;&#39;)], [d.&#34;SchuelerStrasse&#34;]"/>
      <TfrxSubreport Name="Subreport1" AllowVectorExport="True" Left="559" Top="1" Width="120" Height="21,22047" Page="Page2"/>
    </TfrxMasterData>
    <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="684,09493" Width="680,90122715">
      <TfrxMemoView Name="Memo1" Align="baRight" AllowVectorExport="True" Left="514,601925117188" Top="0" Width="166,29932" Height="18,89765" Editable="3" ContentScaleOptions.Constraints.MaxIterationValue="0" ContentScaleOptions.Constraints.MinIterationValue="0" Frame.Typ="0" HAlign="haRight" Text="KursTeiln-Adr-alle-Fon; [Page] / [TotalPages]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
      <TfrxMemoView Name="Memo33" AllowVectorExport="True" Left="0" Top="0" Width="517,79561" Height="18,89765" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" VAlign="vaBottom" Text="[IIF(AktuellerFilter&#60;&#62;&#39;&#39;,&#39;Filter: &#39;+AktuellerFilter,&#39;&#39;)"/>
    </TfrxPageFooter>
    <TfrxGroupHeader Name="GroupHeader1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="78" Left="0" Top="18,89765" Visible="False" Width="680,90122715" KeepWithData="False" Condition="d.&#34;KursId&#34;" ReprintOnNewPage="True" ResetPageNumbers="True" StartNewPage="True">
      <TfrxMemoView Name="Memo2" AllowVectorExport="True" Left="0" Top="0" Width="302,3624" Height="18,89765" Editable="3" DisplayFormat.DecimalSeparator="," Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" Text="[sh.&#34;Name&#34;]"/>
      <TfrxMemoView Name="Memo10" Align="baCenter" AllowVectorExport="True" Left="220,450622558594" Top="13" Width="240" Height="19" 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="AG / Kursliste für [IIF(&#60;d.&#34;WT&#34;&#62;&#62;&#39;&#39;,&#60;d.&#34;WT&#34;&#62;+&#39;, &#39;,&#39;&#39;)][d.&#34;Kurs&#34;] [IIF(&#60;d.&#34;LehrGeschlecht&#34;&#62;&#60;&#62;&#39;&#39;,IIF(&#60;d.&#34;LehrGeschlecht&#34;&#62;=&#39;w&#39;,&#39; ; Frau &#39;,&#39; ; Herr &#39;),&#39;&#39;)][IIF(&#60;d.&#34;LehrAkadTitel&#34;&#62;&#60;&#62;&#39;&#39;,&#60;d.&#34;LehrAkadTitel&#34;&#62;+&#39; &#39;,&#39;&#39;)][IIF(&#60;d.&#34;LehrZusatz&#34;&#62;&#60;&#62;&#39;&#39;,&#60;d.&#34;LehrZusatz&#34;&#62;+&#39; &#39;,&#39;&#39;)][d.&#34;LehrerIn&#34;][IIF((&#60;spezialdr&#62;=&#39;1&#39;) and (&#60;d.&#34;Spezial&#34;&#62;&#62;&#39;&#39;),&#39; (&#39;+&#60;d.&#34;Spezial&#34;&#62;+&#39;)&#39;,&#39;&#39;)]"/>
      <TfrxLineView Name="Line19" AllowVectorExport="True" Left="0" Top="47,47248244" Width="682,11023622" Height="0" Color="0" Frame.Typ="4"/>
      <TfrxLineView Name="Line22" AllowVectorExport="True" Left="245" Top="47,47248244" Width="0" Height="26,45669291" Color="0" Frame.Typ="1"/>
      <TfrxLineView Name="Line29" AllowVectorExport="True" Left="560" Top="47,47248244" Width="0" Height="26,45669291" Color="0" Frame.Typ="1"/>
      <TfrxLineView Name="Line35" AllowVectorExport="True" Left="718,89023" Top="47,47248244" Width="0" Height="30,23624" Color="0" Frame.Typ="1"/>
      <TfrxLineView Name="Line21" AllowVectorExport="True" Left="0" Top="75,70872244" Width="682,11023622" Height="0" Color="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo11" Align="baRight" AllowVectorExport="True" Left="531,987825117188" Top="0" Width="148,91342" Height="34,11812" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="Datum: [Date]&#13;&#10;Schulj.:[d.&#34;SchuljahrBezeichnung&#34;]   [IIF(&#60;Halbj&#62;=1,&#39;1.Hj.&#39;,&#39;2.Hj.&#39;)]"/>
      <TfrxMemoView Name="Memo15" AllowVectorExport="True" Left="8" Top="53" Width="34,01577" Height="18,89765" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="Gr."/>
      <TfrxMemoView Name="Memo16" AllowVectorExport="True" Left="45" Top="53" Width="200" 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="Name, Vorname"/>
      <TfrxMemoView Name="Memo19" AllowVectorExport="True" Left="245" Top="53" Width="316" 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="Ort, Strasse"/>
      <TfrxLineView Name="Line15" AllowVectorExport="True" Left="45" Top="48" Width="0" Height="26,45669291" Color="0" Frame.Typ="1"/>
      <TfrxMemoView Name="Memo4" AllowVectorExport="True" Left="559" Top="53" Width="80" Height="16" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" Text="Telefon"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="117,16535433" Left="0" Top="192,75603" Visible="False" Width="680,90122715" KeepWithData="False">
      <TfrxMemoView Name="Memo8" AllowVectorExport="True" Left="0" Top="95,7953" Width="393,07112" Height="18,89765" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="weiblich: [SUM(IIF(&#60;d.&#34;SchuelerGeschlecht&#34;&#62;=&#39;w&#39;,1,0),MasterData1,1)] / männlich: [SUM(IIF(&#60;d.&#34;SchuelerGeschlecht&#34;&#62;=&#39;m&#39;,1,0),MasterData1,1)] / divers: [SUM(IIF(&#60;d.&#34;SchuelerGeschlecht&#34;&#62;=&#39;d&#39;,1,0),MasterData1,1)]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
    </TfrxGroupFooter>
    <TfrxMasterData Name="MasterData2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="49,51181835" Left="0" Top="434,64595" Visible="False" Width="680,90122715" ColumnWidth="0" ColumnGap="0" DataSet="d" DataSetName="d" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Memo6" AllowVectorExport="True" Left="49" Top="4" Width="196" 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" GapY="0" ParentFont="False" Text="[d.&#34;SchuelerRufname&#34;] [IIF(&#60;d.&#34;SchuelerNamenszusatz&#34;&#62;&#60;&#62;&#39;&#39;,&#60;d.&#34;SchuelerNamenszusatz&#34;&#62; + &#39; &#39;,&#39;&#39;)][d.&#34;SchuelerNachname&#34;] ([d.&#34;SchuelerGeschlecht&#34;])"/>
      <TfrxMemoView Name="Memo9" AllowVectorExport="True" Left="0" Top="4" Width="45" Height="18,89765" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="[d.&#34;gBezeichnung&#34;] "/>
      <TfrxMemoView Name="Memo13" AllowVectorExport="True" Left="245" Top="4" Width="312,22047" Height="18,9" Editable="3" ContentScaleOptions.Constraints.MaxIterationValue="0" ContentScaleOptions.Constraints.MinIterationValue="0" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="[d.&#34;SchuelerOrtsname&#34;][IIF(&#60;d.&#34;SchuelerOrtsteil&#34;&#62;&#60;&#62;&#39;&#39;,&#39;-&#39;+&#60;d.&#34;SchuelerOrtsteil&#34;&#62;,&#39;&#39;)], [d.&#34;SchuelerStrasse&#34;]"/>
      <TfrxSubreport Name="Subreport2" AllowVectorExport="True" Left="559" Top="1" Width="120" Height="21,22047" Page="Page3"/>
    </TfrxMasterData>
    <TfrxGroupHeader Name="GroupHeader2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="78" Left="0" Top="332,59864" Visible="False" Width="680,90122715" KeepWithData="False" Condition="d.&#34;KursId&#34;" ReprintOnNewPage="True" ResetPageNumbers="True" StartNewPage="True">
      <TfrxMemoView Name="Memo17" AllowVectorExport="True" Left="0" Top="0" Width="302,3624" Height="18,89765" Editable="3" DisplayFormat.DecimalSeparator="," Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" Text="[sh.&#34;Name&#34;]"/>
      <TfrxMemoView Name="Memo18" Align="baCenter" AllowVectorExport="True" Left="220,450622558594" Top="17,22047244" Width="240" Height="16" 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="AG / Kursliste für [IIF(&#60;d.&#34;WT&#34;&#62;&#62;&#39;&#39;,&#60;d.&#34;WT&#34;&#62;+&#39;, &#39;,&#39;&#39;)][d.&#34;Kurs&#34;] [IIF(&#60;d.&#34;LehrGeschlecht&#34;&#62;&#60;&#62;&#39;&#39;,IIF(&#60;d.&#34;LehrGeschlecht&#34;&#62;=&#39;w&#39;,&#39; ; Frau &#39;,&#39; ; Herr &#39;),&#39;&#39;)][IIF(&#60;d.&#34;LehrAkadTitel&#34;&#62;&#60;&#62;&#39;&#39;,&#60;d.&#34;LehrAkadTitel&#34;&#62;+&#39; &#39;,&#39;&#39;)][IIF(&#60;d.&#34;LehrZusatz&#34;&#62;&#60;&#62;&#39;&#39;,&#60;d.&#34;LehrZusatz&#34;&#62;+&#39; &#39;,&#39;&#39;)][d.&#34;LehrerIn&#34;][IIF((&#60;spezialdr&#62;=&#39;1&#39;) and (&#60;d.&#34;Spezial&#34;&#62;&#62;&#39;&#39;),&#39; (&#39;+&#60;d.&#34;Spezial&#34;&#62;+&#39;)&#39;,&#39;&#39;)]"/>
      <TfrxLineView Name="Line10" AllowVectorExport="True" Left="0" Top="47,47248244" Width="670,11023622" Height="0" Color="0" Frame.Typ="4"/>
      <TfrxLineView Name="Line11" AllowVectorExport="True" Left="245" Top="47,47248244" Width="0" Height="26,45669291" Color="0" Frame.Typ="1"/>
      <TfrxLineView Name="Line12" AllowVectorExport="True" Left="560" Top="47,47248244" Width="0" Height="26,45669291" Color="0" Frame.Typ="1"/>
      <TfrxLineView Name="Line13" AllowVectorExport="True" Left="718,89023" Top="47,47248244" Width="0" Height="30,23624" Color="0" Frame.Typ="1"/>
      <TfrxLineView Name="Line16" AllowVectorExport="True" Left="0" Top="75,70872244" Width="670,11023622" Height="0" Color="0" Frame.Typ="4"/>
      <TfrxMemoView Name="Memo20" Align="baRight" AllowVectorExport="True" Left="531,987825117188" Top="0" Width="148,91342" Height="34,11812" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haRight" ParentFont="False" Text="Datum: [Date]&#13;&#10;Schulj.:[d.&#34;SchuljahrBezeichnung&#34;]   [IIF(&#60;Halbj&#62;=1,&#39;1.Hj.&#39;,&#39;2.Hj.&#39;)]"/>
      <TfrxMemoView Name="Memo22" AllowVectorExport="True" Left="8" Top="53" Width="34,01577" Height="18,89765" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" HAlign="haCenter" ParentFont="False" Text="Gr."/>
      <TfrxMemoView Name="Memo23" AllowVectorExport="True" Left="45" Top="53" Width="200" 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="Name, Vorname"/>
      <TfrxMemoView Name="Memo24" AllowVectorExport="True" Left="245" Top="53" Width="316" 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="Ort, Strasse"/>
      <TfrxLineView Name="Line20" AllowVectorExport="True" Left="45" Top="48" Width="0" Height="26,45669291" Color="0" Frame.Typ="1"/>
      <TfrxMemoView Name="Memo25" AllowVectorExport="True" Left="559" Top="53" Width="80" Height="16" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="0" ParentFont="False" Text="Telefon"/>
    </TfrxGroupHeader>
    <TfrxGroupFooter Name="GroupFooter2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="117,16535433" Left="0" Top="506,45702" Visible="False" Width="680,90122715" KeepWithData="False">
      <TfrxMemoView Name="Memo26" AllowVectorExport="True" Left="0" Top="95,7953" Width="389,29159" Height="18,89765" Editable="3" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" Text="weiblich: [SUM(IIF(&#60;d.&#34;SchuelerGeschlecht&#34;&#62;=&#39;w&#39;,1,0),MasterData1,1)] / männlich: [SUM(IIF(&#60;d.&#34;SchuelerGeschlecht&#34;&#62;=&#39;m&#39;,1,0),MasterData1,1)] / divers: [SUM(IIF(&#60;d.&#34;SchuelerGeschlecht&#34;&#62;=&#39;d&#39;,1,0),MasterData1,1)]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
    </TfrxGroupFooter>
  </TfrxReportPage>
  <TfrxDialogPage Name="kurswahl" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" HGuides.Text="" VGuides.Text="" Caption="Kurswahl" DoubleBuffered="False" Height="652" ClientHeight="613" Left="669" Top="180" Width="296" Scaled="True" ClientWidth="280" OnActivate="kurswahlOnActivate" OnClick="weiterOnClick">
    <TfrxBitBtnControl Name="weiter" Left="180" Top="576" Width="75" Height="29" ShowHint="True" Caption="weiter" OnClick="weiterOnClick"/>
    <TfrxGroupBoxControl Name="Sortierung" Left="16" Top="416" Width="241" Height="97" ShowHint="True" Caption="Sortierung" Color="-16777201" OnClick="SortierungOnClick">
      <TfrxRadioButtonControl Name="grname" Left="0" Top="15" Width="117" Height="17" ShowHint="True" Caption="Gr, Name" Checked="True" Color="-16777201"/>
      <TfrxRadioButtonControl Name="mname" Left="0" Top="55" Width="117" Height="17" ShowHint="True" Caption="Mädchen, Name" TabStop="False" Color="-16777201"/>
      <TfrxRadioButtonControl Name="mRufname" Left="0" Top="75" Width="117" Height="17" ShowHint="True" Caption="Mädchen, Rufname" TabStop="False" Color="-16777201"/>
      <TfrxRadioButtonControl Name="jname" Left="128" Top="55" Width="117" Height="17" ShowHint="True" Caption="Jungen, Name" TabStop="False" Color="-16777201"/>
      <TfrxRadioButtonControl Name="jRufname" Left="128" Top="75" Width="117" Height="17" ShowHint="True" Caption="Jungen, Rufname" TabStop="False" Color="-16777201"/>
      <TfrxRadioButtonControl Name="grmname" Left="0" Top="35" Width="117" Height="17" ShowHint="True" Caption="Gr, Mädchen, Name" TabStop="False" Color="-16777201"/>
      <TfrxRadioButtonControl Name="grjname" Left="128" Top="35" Width="117" Height="17" ShowHint="True" Caption="Gr, Jungen, Name" TabStop="False" Color="-16777201"/>
      <TfrxRadioButtonControl Name="name" Left="128" Top="15" Width="117" Height="17" ShowHint="True" Caption="Name" TabStop="False" Color="-16777201"/>
    </TfrxGroupBoxControl>
    <TfrxGroupBoxControl Name="GroupBox1" Left="12" Top="10" Width="241" Height="37" ShowHint="True" Caption="Zeitraum" Color="-16777201">
      <TfrxRadioButtonControl Name="Hj1" Left="4" Top="15" Width="61" Height="17" ShowHint="True" Caption="1. Hj." TabStop="False" Color="-16777201" OnClick="Hj1OnClick"/>
      <TfrxRadioButtonControl Name="Hj2" Left="180" Top="15" Width="61" Height="17" ShowHint="True" Caption="2. Hj." TabStop="False" Color="-16777201" OnClick="Hj2OnClick"/>
    </TfrxGroupBoxControl>
    <TfrxCheckListBoxControl Name="CheckListBox1" Left="16" Top="281" Width="238" Height="70" ShowHint="True" Color="-16777211" Items.Text=""/>
    <TfrxButtonControl Name="Button1" Left="16" Top="363" Width="238" Height="25" ShowHint="True" Caption="Auswahl umkehren" OnClick="Button1OnClick"/>
    <TfrxLabelControl Name="AnzahlKurse" Left="16" Top="260" Width="123" Height="13" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="1" ParentFont="False" ShowHint="True" AutoSize="False" Caption="AnzahlKurse" Color="-16777201"/>
    <TfrxCheckListBoxControl Name="FaecherListe" Left="16" Top="81" Width="90" Height="70" ShowHint="True" Color="-16777211" Items.Text="" OnClick="FaecherListeOnClick"/>
    <TfrxCheckListBoxControl Name="LehrerListe" Left="165" Top="81" Width="90" Height="70" ShowHint="True" Color="-16777211" Items.Text="" OnClick="LehrerListeOnClick"/>
    <TfrxLabelControl Name="Label2" Left="16" Top="60" Width="37" Height="13" ShowHint="True" Caption="Fächer:" Color="-16777201"/>
    <TfrxLabelControl Name="Label3" Left="165" Top="60" Width="35" Height="13" ShowHint="True" Caption="Lehrer:" Color="-16777201"/>
    <TfrxEditControl Name="nsel" Left="121" Top="162" Width="133" Height="21" ShowHint="True" Color="-16777211" MaxLength="0" PasswordChar="0" OnChange="nselOnChange"/>
    <TfrxLabelControl Name="Label1" Left="16" Top="166" Width="91" Height="13" ShowHint="True" Caption="Kursname enthält: " Color="-16777201"/>
    <TfrxLabelControl Name="Label4" Left="16" Top="196" Width="77" Height="13" ShowHint="True" Caption="Spezial enthält: " Color="-16777201"/>
    <TfrxEditControl Name="spezsel" Left="108" Top="192" Width="145" Height="21" ShowHint="True" Color="-16777211" MaxLength="0" PasswordChar="0" OnChange="spezselOnChange"/>
    <TfrxLabelControl Name="Label5" Left="16" Top="223" Width="23" Height="13" ShowHint="True" Caption="WT: " Color="-16777201"/>
    <TfrxCheckBoxControl Name="wtMo" Left="43" Top="222" Width="29" Height="17" ShowHint="True" Caption="Mo" Color="-16777201" OnClick="wtMoOnClick"/>
    <TfrxCheckBoxControl Name="wtDi" Left="80" Top="222" Width="29" Height="17" ShowHint="True" Caption="Di" Color="-16777201" OnClick="wtDiOnClick"/>
    <TfrxCheckBoxControl Name="wtMi" Left="117" Top="222" Width="29" Height="17" ShowHint="True" Caption="Mi" Color="-16777201" OnClick="wtMiOnClick"/>
    <TfrxCheckBoxControl Name="wtDo" Left="154" Top="222" Width="29" Height="17" ShowHint="True" Caption="Do" Color="-16777201" OnClick="wtDoOnClick"/>
    <TfrxCheckBoxControl Name="wtFr" Left="191" Top="222" Width="29" Height="17" ShowHint="True" Caption="Fr" Color="-16777201" OnClick="wtFrOnClick"/>
    <TfrxCheckBoxControl Name="wtSa" Left="228" Top="222" Width="29" Height="17" ShowHint="True" Caption="Sa" Color="-16777201" OnClick="wtSaOnClick"/>
    <TfrxCheckBoxControl Name="spdr" Left="16" Top="541" Width="245" Height="17" ShowHint="True" Caption="Spalte Spezial mitdrucken" Color="-16777201"/>
  </TfrxDialogPage>
  <TfrxReportPage Name="Page2" HGuides.Text="" VGuides.Text="" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" Frame.Typ="0" MirrorMode="0">
    <TfrxMasterData Name="MasterData3" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="27,11812" Left="0" Top="18,89765" Width="718,1107" ColumnWidth="0" ColumnGap="0" DataSet="qk" DataSetName="qk" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Memo5" AllowVectorExport="True" Left="4" Top="0" Width="120,18897638" Height="23,33859" Editable="3" ContentScaleOptions.Constraints.MaxIterationValue="0" ContentScaleOptions.Constraints.MinIterationValue="0" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="[iif (&#60;qk.&#34;PArt&#34;&#62;&#62;=0,d_Verantwortlichenart(&#60;qk.&#34;PArt&#34;&#62;),&#39;&#39;)] [qk.&#34;Adresse&#34;]">
        <Formats>
          <item/>
          <item/>
        </Formats>
      </TfrxMemoView>
    </TfrxMasterData>
  </TfrxReportPage>
  <TfrxReportPage Name="Page3" HGuides.Text="" VGuides.Text="" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" Frame.Typ="0" MirrorMode="0">
    <TfrxMasterData Name="MasterData4" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="27,11812" Left="0" Top="18,89765" Width="718,1107" ColumnWidth="0" ColumnGap="0" DataSet="qk" DataSetName="qk" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Memo12" AllowVectorExport="True" Left="0" Top="0" Width="120" Height="19,55906" Editable="3" ContentScaleOptions.Constraints.MaxIterationValue="0" ContentScaleOptions.Constraints.MinIterationValue="0" Font.Charset="1" Font.Color="-16777208" Font.Height="-11" Font.Name="Arial" Font.Style="0" Frame.Typ="0" ParentFont="False" VAlign="vaCenter" Text="[iif (&#60;qk.&#34;PArt&#34;&#62;&#62;=0,d_Verantwortlichenart(&#60;qk.&#34;PArt&#34;&#62;),&#39;&#39;)] [qk.&#34;Adresse&#34;]"/>
    </TfrxMasterData>
  </TfrxReportPage>
</TfrxReport>
