<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="3.24.6" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="1776" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" ReportOptions.CreateDate="39057,5831791898" ReportOptions.Description.Text="" ReportOptions.LastChange="39335,7593121644" ScriptLanguage="PascalScript" ScriptText.Text="procedure Memo3OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  Memo3.Visible := &#60;.&#34;DESCRIPTION&#34;&#62; &#60;&#62; '';&#13;&#10;  Footer1.Visible := Memo3.Visible;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure cbxAllOnClick(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  Label1.Enabled := not cbxAll.Checked;&#13;&#10;  DateEdit1.Enabled := not cbxAll.Checked;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure frxReportOnStartReport(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  if dlgMain.ShowModal = mrOK then&#13;&#10;    begin&#13;&#10;      if not cbxAll.Checked then&#13;&#10;        TableClient.SQL.Strings[3] := 'AND REGDATE &#62;= ''' + DateToStr(DateEdit1.Date) + ''''&#13;&#10;    end&#13;&#10;  else&#13;&#10;    begin&#13;&#10;      TableClient.SQL.Strings[3] := 'AND CODE = 0';&#13;&#10;      StopReport;&#13;&#10;    end;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure dlgMainOnShow(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  DateEdit1.Date := Date;&#13;&#10;end;&#13;&#10;&#13;&#10;procedure Memo11OnBeforePrint(Sender: TfrxComponent);&#13;&#10;var&#13;&#10;  str: string;&#13;&#10;begin&#13;&#10;  str := '';&#13;&#10;  if &#60;.&#34;ZIPCODE&#34;&#62; &#60;&#62; '' then&#13;&#10;    str := &#60;.&#34;ZIPCODE&#34;&#62; + ',';&#13;&#10;  if &#60;.&#34;CITY&#34;&#62; &#60;&#62; '' then&#13;&#10;    str := str + ' . ' + &#60;.&#34;CITY&#34;&#62; + ' ';&#13;&#10;  with TStringList.Create do&#13;&#10;    try&#13;&#10;      Text := &#60;.&#34;ADDRESS&#34;&#62;;&#13;&#10;      if (Count &#62; 0) and (Strings[0] &#60;&#62; '') then&#13;&#10;        str := str + '. ' + Strings[0];&#13;&#10;      if (Count &#62; 1) and (Strings[1] &#60;&#62; '') then&#13;&#10;        str := str + ' . ' + Strings[1];&#13;&#10;      if (Count &#62; 2) and (Strings[2] &#60;&#62; '') then&#13;&#10;        str := str + ' . ' + Strings[2];&#13;&#10;      Memo11.Text := str;&#13;&#10;    finally&#13;&#10;      Free;&#13;&#10;    end;&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end." OnStartReport="frxReportOnStartReport" PropData="044C656674023403546F70026C08446174617365747301010C3700000020446174615365743D22667278446174614865616465722220446174615365744E616D653D22C7E0E3EEEBEEE2EEEA20EEF2F7E5F2E02200010C2C00000020446174615365743D225461626C65436C69656E742220446174615365744E616D653D22CAEBE8E5EDF2FB2200010C3000000020446174615365743D225461626C6543436172642220446174615365744E616D653D22CAE0F0F2FBCAEBE8E5EDF2E0220000095661726961626C65730100055374796C650100">
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
    <TfrxReportTitle Name="ReportTitle1" Height="26,45671" Left="0" Top="18,89765" Width="718,1107">
      <TfrxMemoView Name="Memo2" Left="0" Top="0" Width="718,1107" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Arial" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="[Заголовок отчета.&#34;Наименование отчета&#34;]"/>
    </TfrxReportTitle>
    <TfrxPageFooter Name="PageFooter1" Height="18,89765" Left="0" Top="355,27582" Width="718,1107">
      <TfrxMemoView Name="Memo20" Left="336,37817" Top="0" Width="120,94496" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="15" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="[Date]"/>
      <TfrxMemoView Name="Memo21" Left="457,32313" Top="0" Width="102,04731" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="12" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="[Time]"/>
      <TfrxMemoView Name="Memo22" Left="559,37044" Top="0" Width="158,74026" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="15" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Страница [Page#] из [TotalPages#]"/>
    </TfrxPageFooter>
    <TfrxPageHeader Name="PageHeader1" Height="18,89765" Left="0" Top="68,03154" Width="718,1107">
      <TfrxLineView Name="Line1" Left="0" Top="0" Width="0" Height="18,89765" Frame.Typ="1" Frame.Width="2"/>
      <TfrxLineView Name="Line7" Left="718,1107" Top="0" Width="0" Height="18,89765" Frame.Typ="1" Frame.Width="2"/>
      <TfrxLineView Name="Line9" Left="0" Top="18,89765" Width="718,1107" Height="0" Frame.Typ="4" Frame.Width="2"/>
      <TfrxMemoView Name="Memo5" Left="0" Top="0" Width="362,83488" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-17" Font.Name="Arial" Font.Style="0" Frame.Typ="7" HAlign="haCenter" ParentFont="False" Text="Ф. И. О."/>
      <TfrxMemoView Name="Memo6" Left="362,83488" Top="0" Width="98,26778" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-17" Font.Name="Arial" Font.Style="0" Frame.Typ="6" HAlign="haCenter" ParentFont="False" Text="Тел."/>
      <TfrxMemoView Name="Memo8" Left="461,10266" Top="0" Width="94,48825" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-17" Font.Name="Arial" Font.Style="0" Frame.Typ="6" HAlign="haCenter" ParentFont="False" Text="Дата рожд."/>
      <TfrxMemoView Name="Memo14" Left="555,59091" Top="0" Width="162,51979" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-17" Font.Name="Arial" Font.Style="0" Frame.Typ="6" HAlign="haCenter" ParentFont="False" Text="Адрес"/>
      <TfrxLineView Name="Line8" Left="0" Top="0" Width="718,1107" Height="0" Frame.Typ="4" Frame.Width="2"/>
    </TfrxPageHeader>
    <TfrxReportSummary Name="ReportSummary1" Height="18,89765" Left="0" Top="313,70099" Width="718,1107">
      <TfrxLineView Name="Line4" Left="0" Top="18,8976499999999" Width="718,1107" Height="0" Frame.Typ="4" Frame.Width="2"/>
      <TfrxLineView Name="Line5" Left="718,1107" Top="0" Width="0" Height="18,89765" Frame.Typ="1" Frame.Width="2"/>
      <TfrxMemoView Name="Memo13" Left="0" Top="0" Width="555,59091" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-16" Font.Name="Arial" Font.Style="1" Frame.Typ="9" ParentFont="False" Text="Итого:"/>
      <TfrxLineView Name="Line3" Left="0" Top="0" Width="0" Height="18,89765" Frame.Typ="1" Frame.Width="2"/>
      <TfrxMemoView Name="Memo10" Left="555,59091" Top="0" Width="162,51979" Height="18,89765" Font.Charset="1" Font.Color="-16777208" Font.Height="-17" Font.Name="Arial" Font.Style="0" Frame.Typ="1" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="[COUNT(MasterData1)]"/>
      <TfrxLineView Name="Line15" Left="0" Top="0" Width="718,1107" Height="0" Frame.Typ="4" Frame.Width="2"/>
    </TfrxReportSummary>
    <TfrxIBXQuery Name="TableClient" UserName="" CloseDataSource="True" FieldAliases.Text="" SQL.Text="SELECT *&#13;&#10;FROM CLIENT&#13;&#10;WHERE ISFOLDER = 0&#13;&#10;&#13;&#10;ORDER BY NAME" PropData="0A506172616D65746572730100"/>
    <TfrxMasterData Name="MasterData1" Height="22,67718" Left="0" Top="147,40167" Width="718,1107" ColumnWidth="0" ColumnGap="0" DataSet="TableClient" DataSetName="" FooterAfterEach="True" KeepTogether="True" PrintIfDetailEmpty="True" RowCount="0" Stretched="True">
      <TfrxMemoView Name="Memo1" Left="0" Top="0" Width="362,83488" Height="22,67718" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-17" Font.Name="Arial" Font.Style="0" Frame.Typ="13" ParentFont="False" VAlign="vaCenter" Text="[Клиенты.&#34;NAME&#34;]"/>
      <TfrxMemoView Name="Memo7" Left="362,83488" Top="0" Width="98,26778" Height="22,67718" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-17" Font.Name="Arial" Font.Style="0" Frame.Typ="15" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="[Клиенты.&#34;TELEPHONE&#34;]"/>
      <TfrxMemoView Name="Memo9" Left="461,10266" Top="0" Width="94,48825" Height="22,67718" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-17" Font.Name="Arial" Font.Style="0" Frame.Typ="14" HAlign="haRight" HideZeros="True" ParentFont="False" VAlign="vaCenter" Text="[Клиенты.&#34;BIRTHDATE&#34;]"/>
      <TfrxMemoView Name="Memo11" Left="555,59091" Top="0" Width="162,51979" Height="22,67718" OnBeforePrint="Memo11OnBeforePrint" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-17" Font.Name="Arial" Font.Style="0" Frame.Typ="14" ParentFont="False" VAlign="vaCenter" Text=""/>
      <TfrxLineView Name="Line2" Left="0" Top="0" Width="0" Height="22,67718" StretchMode="smMaxHeight" Frame.Typ="1" Frame.Width="2"/>
      <TfrxLineView Name="Line6" Left="718,1107" Top="0" Width="0" Height="22,67718" StretchMode="smMaxHeight" Frame.Typ="1" Frame.Width="2"/>
      <TfrxLineView Name="Line12" Left="0" Top="0" Width="718,1107" Height="0" StretchMode="smMaxHeight" Frame.Typ="4" Frame.Width="2"/>
    </TfrxMasterData>
    <TfrxIBXQuery Name="TableCCard" UserName="" CloseDataSource="True" FieldAliases.Text="VAL=VAL" Master="TableClient" SQL.Text="SELECT CC.VAL&#13;&#10;FROM CCARD CC LEFT JOIN CLIENTCARD CLC ON&#13;&#10;              CC.ID = CLC.CCARDID&#13;&#10;WHERE CLC.CLIENTID = :ID" PropData="0A506172616D657465727301010C4B000000204E616D653D224944222044617461547970653D226674496E7465676572222045787072657373696F6E3D22262336303BCAEBE8E5EDF2FB2E262333343B4944262333343B262336323B220000"/>
    <TfrxDetailData Name="DetailData1" Height="18,89765" Left="0" Top="234,33086" Width="718,1107" ColumnWidth="0" ColumnGap="0" DataSet="TableCCard" DataSetName="" RowCount="0">
      <TfrxMemoView Name="Memo4" Left="0" Top="0" Width="718,1107" Height="18,89765" DataSet="TableCCard" DataSetName="" Font.Charset="1" Font.Color="-16777208" Font.Height="-17" Font.Name="Arial" Font.Style="0" Frame.Typ="15" ParentFont="False" Text="     Карта № [КартыКлиента.&#34;VAL&#34;]"/>
      <TfrxLineView Name="Line13" Left="0" Top="0" Width="0" Height="18,89765" Frame.Typ="1" Frame.Width="2"/>
      <TfrxLineView Name="Line14" Left="718,1107" Top="0" Width="0" Height="18,89765" Frame.Typ="1" Frame.Width="2"/>
    </TfrxDetailData>
    <TfrxFooter Name="Footer1" Height="18,89765" Left="0" Top="192,75603" Width="718,1107" OnBeforePrint="Memo3OnBeforePrint" Stretched="True">
      <TfrxMemoView Name="Memo3" Left="0" Top="0" Width="718,1107" Height="18,89765" OnBeforePrint="Memo3OnBeforePrint" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="-16777208" Font.Height="-17" Font.Name="Arial" Font.Style="0" Frame.Typ="15" ParentFont="False" Text="  Доп. данные: [Клиенты.&#34;DESCRIPTION&#34;]"/>
      <TfrxLineView Name="Line10" Left="718,1107" Top="0" Width="0" Height="18,89765" StretchMode="smMaxHeight" Frame.Typ="1" Frame.Width="2"/>
      <TfrxLineView Name="Line11" Left="0" Top="0" Width="0" Height="18,89765" StretchMode="smMaxHeight" Frame.Typ="1" Frame.Width="2"/>
    </TfrxFooter>
  </TfrxReportPage>
  <TfrxDialogPage Name="dlgMain" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Tahoma" Font.Style="0" Visible="False" Caption="" Height="133" Left="373" Top="275" Width="280" OnShow="dlgMainOnShow">
    <TfrxCheckBoxControl Name="cbxAll" Left="76" Top="8" Width="97" Height="17" Alignment="taLeftJustify" Caption=" " Color="-16777201" OnClick="cbxAllOnClick"/>
    <TfrxLabelControl Name="Label1" Left="12" Top="40" Width="120" Height="13" Caption=" :" Color="-16777201"/>
    <TfrxDateEditControl Name="DateEdit1" Left="148" Top="36" Width="101" Height="21" Color="-16777211" Date="39328,7177718287" Time="39328,7177718287"/>
    <TfrxButtonControl Name="btnOK" Left="40" Top="72" Width="75" Height="25" Caption="OK" Default="True" ModalResult="1"/>
    <TfrxButtonControl Name="btnCancel" Left="152" Top="72" Width="75" Height="25" Cancel="True" Caption="" ModalResult="2"/>
  </TfrxDialogPage>
</TfrxReport>
