<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" DoublePass="true" ReportInfo.Created="03/29/2014 14:17:19" ReportInfo.Modified="06/10/2019 11:52:18" ReportInfo.CreatorVersion="2017.1.12.0">
  <ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Data;
using FastReport;
using FastReport.Data;
using FastReport.Dialog;
using FastReport.Barcode;
using FastReport.Table;
using FastReport.Utils;

namespace FastReport
{
  public class ReportScript
  {

    private void DataHeader1_BeforePrint(object sender, EventArgs e)
    { 
    }

    private void Data1_AfterPrint(object sender, EventArgs e)
    {

    }

    private void Data1_BeforePrint(object sender, EventArgs e)
    {
      //DataHeader1.Visible = true;
      //Data2.Filter = &quot;&quot;;
      //Data2.Visible = false;
      //string Root = Report.GetColumnValue(&quot;QBaslik.ROOT&quot;).ToString();
      //edtDebit.Text = Root;
      //if (edtDebit.Text == &quot;101&quot;)
      {
        //edtDebit.Text = &quot;-&quot;;
//        string str = &quot;[QDetay.ROOTID] == [QBaslik.ROOTID] &quot;;// + Report.GetColumnValue(&quot;QBaslik.ROOTID&quot;).ToString();
  //      Data2.Filter = str;
        Data2.Visible = true;
        if (((Int32)Report.GetColumnValue(&quot;QBaslik.TRANSTYPE&quot;)==3518) || ((Int32)Report.GetColumnValue(&quot;QBaslik.TRANSTYPE&quot;)==3551) || ((Int32)Report.GetColumnValue(&quot;QBaslik.TRANSTYPE&quot;)==3514))
        {
          //Text32.Text = Data2.get.rows RowCount.ToString();
          //DataHeader1.Visible = false;//Report.GetDataSource(&quot;QDetay&quot;).RowCount &gt; 0;
          Data2.Visible = false;
        }     
      }

    }
  }
}
</ScriptText>
  <Dictionary>
    <TableDataSource Name="QBaslik" ReferenceName="QBaslik" DataType="System.Int32" Enabled="true">
      <Column Name="ROOTRECEITNO" DataType="System.String"/>
      <Column Name="TRANSDATE" DataType="System.DateTime"/>
      <Column Name="DEBIT" DataType="System.Double"/>
      <Column Name="CREDIT" DataType="System.Double"/>
      <Column Name="TRANSTYPENAME" DataType="System.String"/>
      <Column Name="REMTOTAL" DataType="System.Double"/>
      <Column Name="BA" DataType="System.String"/>
      <Column Name="ROOTID" DataType="System.Int32"/>
      <Column Name="TRANSTYPE" DataType="System.Int32"/>
      <Column Name="ROWNUMBER_" DataType="System.Int32"/>
      <Column Name="ROOT" DataType="System.Int32"/>
    </TableDataSource>
    <TableDataSource Name="QCari" ReferenceName="QCari" DataType="System.Int32" Enabled="true">
      <Column Name="COMPANYID" DataType="System.Int32"/>
      <Column Name="ACTID" DataType="System.Int32"/>
      <Column Name="ACTTYPE" DataType="System.Int16"/>
      <Column Name="ACTNO" DataType="System.String"/>
      <Column Name="ACTNAME" DataType="System.String"/>
      <Column Name="GROUPCODE" DataType="System.String"/>
      <Column Name="SPECCODE1" DataType="System.String"/>
      <Column Name="SPECCODE2" DataType="System.String"/>
      <Column Name="EMPLOYEEID" DataType="System.Int32"/>
      <Column Name="STATUS" DataType="System.Int16"/>
      <Column Name="NOTEID" DataType="System.Int32"/>
      <Column Name="CANCELDATE" DataType="System.DateTime"/>
      <Column Name="DESCRIPTION" DataType="System.String"/>
      <Column Name="DEBIT" DataType="System.Decimal"/>
      <Column Name="CREDIT" DataType="System.Decimal"/>
      <Column Name="REMTOTAL" DataType="System.Decimal"/>
      <Column Name="REMTYPE" DataType="System.Int16"/>
      <Column Name="CURRCODE" DataType="System.String"/>
      <Column Name="CURRDEBIT" DataType="System.Decimal"/>
      <Column Name="CURRCREDIT" DataType="System.Decimal"/>
      <Column Name="CURRREMTOTAL" DataType="System.Decimal"/>
      <Column Name="CURRREMTYPE" DataType="System.Int16"/>
      <Column Name="CONTACTNAME" DataType="System.String"/>
      <Column Name="PHONE1" DataType="System.String"/>
      <Column Name="PHONE2" DataType="System.String"/>
      <Column Name="FAX" DataType="System.String"/>
      <Column Name="GSM" DataType="System.String"/>
      <Column Name="EMAIL" DataType="System.String"/>
      <Column Name="WEB" DataType="System.String"/>
      <Column Name="ADDRESS1" DataType="System.String"/>
      <Column Name="ADDRESS2" DataType="System.String"/>
      <Column Name="ADDRESS3" DataType="System.String"/>
      <Column Name="POSTALCODE" DataType="System.String"/>
      <Column Name="CITY" DataType="System.String"/>
      <Column Name="TOWN" DataType="System.String"/>
      <Column Name="COUNTRY" DataType="System.String"/>
      <Column Name="REGION" DataType="System.String"/>
      <Column Name="TAXOFFICE" DataType="System.String"/>
      <Column Name="TAXNO" DataType="System.String"/>
      <Column Name="TAXCITY" DataType="System.String"/>
      <Column Name="ACTNAME2" DataType="System.String"/>
      <Column Name="SPECCODE3" DataType="System.String"/>
      <Column Name="SPECCODE4" DataType="System.String"/>
      <Column Name="PURCHASEDISCRATE" DataType="System.Decimal"/>
      <Column Name="SALESDISCRATE" DataType="System.Decimal"/>
      <Column Name="INVOICEITEMDISCRATE1" DataType="System.Decimal"/>
      <Column Name="INVOICEITEMDISCRATE2" DataType="System.Decimal"/>
      <Column Name="INVOICEITEMDISCRATE3" DataType="System.Decimal"/>
      <Column Name="INVOICEDISCRATE2" DataType="System.Decimal"/>
      <Column Name="PAYMENTDAY" DataType="System.Int16"/>
      <Column Name="PAYMENTOPSDAY" DataType="System.Int16"/>
      <Column Name="PAYMENTPERIOD" DataType="System.Int16"/>
      <Column Name="PAYMENTPERIODTYPE" DataType="System.Int16"/>
      <Column Name="PAYMENTPERIODITEM" DataType="System.Int16"/>
      <Column Name="PAYMENTPERIODDAY" DataType="System.Int16"/>
      <Column Name="CREDITLIMIT" DataType="System.Decimal"/>
      <Column Name="DEBITRISK" DataType="System.Decimal"/>
      <Column Name="CREDITRISK" DataType="System.Decimal"/>
      <Column Name="ACCID" DataType="System.Int32"/>
      <Column Name="ACCIDPURCHASE" DataType="System.Int32"/>
      <Column Name="DUERATE" DataType="System.Decimal"/>
      <Column Name="ADDRESSID" DataType="System.Int32"/>
      <Column Name="STOCKPRICETYPEID" DataType="System.Int16"/>
      <Column Name="PSTOCKPRICETYPEID" DataType="System.Int16"/>
      <Column Name="MYACT" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="BLACKLIST" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="ACCGROUPCODE" DataType="System.String"/>
      <Column Name="TCNO" DataType="System.String"/>
      <Column Name="ACTIDOPP" DataType="System.Int32"/>
      <Column Name="ACTPOINT" DataType="System.Int32"/>
      <Column Name="STOCKPACKAGEID" DataType="System.Int32"/>
      <Column Name="EDELIVERYPATH" DataType="System.String"/>
      <Column Name="EDELIVERY" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="TRANSPORTTIME" DataType="System.Int32"/>
      <Column Name="TRANSPORTTIMETYPE" DataType="System.Int32"/>
      <Column Name="SCURREXCTYPE" DataType="System.String"/>
      <Column Name="PCURREXCTYPE" DataType="System.String"/>
      <Column Name="RISKACTCURR" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="EINVOICEPATH" DataType="System.String"/>
      <Column Name="EINVOICE" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="APPSUPPLIER" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="AGREEDATE" DataType="System.DateTime"/>
      <Column Name="EDICODE" DataType="System.String"/>
      <Column Name="CUSTOMERCODE" DataType="System.String"/>
      <Column Name="SUPPLIERCODE" DataType="System.String"/>
      <Column Name="FACTORYCODE" DataType="System.String"/>
      <Column Name="QUALITYCERTIFICATE" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="QUALITYCERTIFICATEDATE" DataType="System.DateTime"/>
      <Column Name="MSG" DataType="System.String"/>
      <Column Name="CASHDISCOUNT" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="NOBONUS" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="BONUS" DataType="System.Decimal"/>
      <Column Name="WEBACT" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="WEBPASS" DataType="System.String"/>
      <Column Name="WEBCONTSTOCK" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="WEBTHEME" DataType="System.String"/>
      <Column Name="ESPECCODE1" DataType="System.String"/>
      <Column Name="ESPECCODE2" DataType="System.String"/>
      <Column Name="ESPECCODE3" DataType="System.String"/>
      <Column Name="ESPECCODE4" DataType="System.String"/>
      <Column Name="INSERTUSERID" DataType="System.Int32"/>
      <Column Name="INSERTDATE" DataType="System.DateTime"/>
      <Column Name="EDITUSERID" DataType="System.Int32"/>
      <Column Name="EDITDATE" DataType="System.DateTime"/>
      <Column Name="GLBALERTID" DataType="System.Int32"/>
      <Column Name="EFATURA" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="PQSAMPLELEVELID" DataType="System.Int32"/>
      <Column Name="ACTIDRELATION" DataType="System.Int32"/>
      <Column Name="DAILYLIMIT" DataType="System.Decimal"/>
      <Column Name="EIRSALIYE" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="EARSIV" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="EFATURAREGISTERDATE" DataType="System.DateTime"/>
      <Column Name="EFATURATYPE" DataType="System.Int32"/>
      <Column Name="EIRSALIYEREGISTERDATE" DataType="System.DateTime"/>
      <Column Name="EIRSALIYETYPE" DataType="System.Int32"/>
      <Column Name="GIBETIKET" DataType="System.String"/>
      <Column Name="TRANSCODE" DataType="System.String"/>
      <Column Name="EDISRVLINK" DataType="System.String"/>
    </TableDataSource>
    <TableDataSource Name="QDetay" ReferenceName="QDetay" DataType="System.Int32" Enabled="true">
      <Column Name="ROOT" DataType="System.Int16"/>
      <Column Name="ROOTID" DataType="System.Int32"/>
      <Column Name="ACTID" DataType="System.Int32"/>
      <Column Name="STOCKNO" DataType="System.String"/>
      <Column Name="STOCKNAME" DataType="System.String"/>
      <Column Name="QENTRY" DataType="System.Double"/>
      <Column Name="QEXIT" DataType="System.Double"/>
      <Column Name="PRICE" DataType="System.Double"/>
      <Column Name="VAT" DataType="System.Decimal"/>
      <Column Name="VATTOTAL" DataType="System.Decimal"/>
      <Column Name="DISCOUNTTOTAL" DataType="System.Decimal"/>
      <Column Name="TRANSTYPE" DataType="System.Int32"/>
      <Column Name="COMPANYID" DataType="System.Int32"/>
    </TableDataSource>
    <Total Name="Total" Expression="[QBaslik.DEBIT]" Evaluator="Data1"/>
    <Total Name="Total1" Expression="[QBaslik.CREDIT]" Evaluator="Data1"/>
  </Dictionary>
  <ReportPage Name="Page1">
    <ReportTitleBand Name="ReportTitle1" Width="718.2" Height="56.7">
      <TextObject Name="Text17" Left="207.9" Width="236.25" Height="18.9" Text="Cari Hesap Hareket Dökümü" HorzAlign="Center" Font="Arial, 12pt, style=Bold, Italic"/>
      <TextObject Name="Text18" Left="548.1" Width="141.75" Height="18.9" Border.Lines="Bottom" Text="Tarih :[Date]" HorzAlign="Center" Font="Arial, 12pt, style=Bold, Italic"/>
      <TextObject Name="Text19" Left="37.8" Top="37.8" Width="557.55" Height="18.9" Text="[QCari.ACTNAME]" HorzAlign="Center" Font="Tahoma, 10pt, style=Bold" TextFill.Color="Brown"/>
      <TextObject Name="Text20" Left="37.8" Top="18.9" Width="557.55" Height="18.9" Text="[QCari.ACTNO]" HorzAlign="Center" Font="Tahoma, 10pt, style=Bold" TextFill.Color="Brown"/>
    </ReportTitleBand>
    <PageHeaderBand Name="PageHeader1" Top="60.7" Width="718.2" Height="18.9">
      <TextObject Name="Text2" Left="28.35" Width="94.5" Height="18.9" Border.Lines="Bottom" Text="Tarih" HorzAlign="Center" Font="Tahoma, 10pt, style=Bold"/>
      <TextObject Name="Text4" Left="122.85" Width="160.65" Height="18.9" Border.Lines="Bottom" Text="Açıklama" HorzAlign="Center" Font="Tahoma, 10pt, style=Bold"/>
      <TextObject Name="Text7" Left="283.5" Width="94.5" Height="18.9" Border.Lines="Bottom" Text="Evrak No" HorzAlign="Center" Font="Tahoma, 10pt, style=Bold"/>
      <TextObject Name="Text9" Left="378" Width="94.5" Height="18.9" Border.Lines="Bottom" Text="Borç" HorzAlign="Right" Font="Tahoma, 10pt, style=Bold"/>
      <TextObject Name="Text11" Left="472.5" Width="94.5" Height="18.9" Border.Lines="Bottom" Text="Alacak" HorzAlign="Right" Font="Tahoma, 10pt, style=Bold"/>
      <TextObject Name="Text13" Left="567" Width="94.5" Height="18.9" Border.Lines="Bottom" Text="Bakiye" HorzAlign="Right" Font="Tahoma, 10pt, style=Bold"/>
      <TextObject Name="Text15" Left="661.5" Width="28.35" Height="18.9" Border.Lines="Bottom" Text="#" HorzAlign="Center" Font="Tahoma, 10pt, style=Bold"/>
      <TextObject Name="Text16" Width="28.35" Height="18.9" Border.Lines="Bottom" Text="#" Font="Tahoma, 10pt, style=Bold"/>
    </PageHeaderBand>
    <DataBand Name="Data1" Top="83.6" Width="718.2" Height="18.9" BeforePrintEvent="Data1_BeforePrint" KeepChild="true" DataSource="QBaslik">
      <TextObject Name="Text1" Left="28.35" Width="94.5" Height="18.9" Border.Lines="Bottom" Text="[QBaslik.TRANSDATE]" Format="Date" Format.Format="d" Font="Tahoma, 10pt"/>
      <TextObject Name="Text3" Left="122.85" Width="160.65" Height="18.9" Border.Lines="Bottom" Text="[QBaslik.TRANSTYPENAME]" Font="Tahoma, 10pt"/>
      <TextObject Name="Text5" Width="28.35" Height="18.9" Border.Lines="Bottom" Text="[QBaslik.ROWNUMBER_]" Font="Tahoma, 10pt"/>
      <TextObject Name="Text6" Left="283.5" Width="94.5" Height="18.9" Border.Lines="Bottom" Text="[QBaslik.ROOTID]" Font="Tahoma, 10pt"/>
      <TextObject Name="edtDebit" Left="378" Width="94.5" Height="18.9" Border.Lines="Bottom" Text="[QBaslik.DEBIT]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Font="Tahoma, 10pt" Trimming="EllipsisCharacter"/>
      <TextObject Name="Text10" Left="472.5" Width="94.5" Height="18.9" Border.Lines="Bottom" Text="[QBaslik.CREDIT]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Font="Tahoma, 10pt" Trimming="EllipsisCharacter"/>
      <TextObject Name="Text12" Left="567" Width="94.5" Height="18.9" Border.Lines="Bottom" Text="[QBaslik.REMTOTAL]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Font="Tahoma, 10pt" Trimming="EllipsisCharacter"/>
      <TextObject Name="Text14" Left="661.5" Width="28.35" Height="18.9" Border.Lines="Bottom" Text="[QBaslik.BA]" HorzAlign="Center" Font="Tahoma, 10pt"/>
      <DataBand Name="Data2" Top="106.5" Width="718.2" Height="28.35" DataSource="QDetay" Filter="[QBaslik.ROOTID]==[QDetay.ROOTID]" PrintIfDatasourceEmpty="true">
        <TextObject Name="Text8" Left="207.9" Top="9.45" Width="94.5" Height="18.9" Text="[QDetay.STOCKNAME]"/>
        <TextObject Name="Text26" Left="113.4" Top="9.45" Width="94.5" Height="18.9" Text="[QDetay.ROOTID]"/>
      </DataBand>
      <Sort>
        <Sort Expression="[QBaslik.ROWNUMBER_]"/>
      </Sort>
    </DataBand>
    <ReportSummaryBand Name="ReportSummary1" Top="138.85" Width="718.2" Height="18.9">
      <TextObject Name="Text21" Left="378" Width="94.5" Height="18.9" Text="[Total]" HorzAlign="Right" Font="Arial, 10pt, style=Bold, Underline"/>
      <TextObject Name="Text22" Left="472.5" Width="94.5" Height="18.9" Text="[Total1]" HorzAlign="Right" Font="Arial, 10pt, style=Bold, Underline"/>
      <LineObject Name="Line1" Left="-9.45" Width="708.75"/>
      <TextObject Name="Text23" Left="255.15" Width="122.85" Height="18.9" Text="Toplam :" HorzAlign="Right" Font="Arial, 10pt, style=Bold, Underline"/>
      <TextObject Name="Text24" Left="567" Width="94.5" Height="18.9" Text="[QBaslik.REMTOTAL]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Font="Tahoma, 10pt, style=Bold, Underline" Trimming="EllipsisCharacter"/>
      <TextObject Name="Text25" Left="661.5" Width="28.35" Height="18.9" Text="[QBaslik.BA]" HorzAlign="Center" Font="Tahoma, 10pt, style=Bold, Underline"/>
    </ReportSummaryBand>
    <PageFooterBand Name="PageFooter1" Top="161.75" Width="718.2"/>
  </ReportPage>
</Report>
