<?xml version="1.0" encoding="utf-8"?>
<Report ReportInfo.Created="12/03/2011 19:50:23" ReportInfo.Modified="08/02/2016 12:53:54" ReportInfo.CreatorVersion="1.2.47.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 Data1_AfterPrint(object sender, EventArgs e)
    {
      float FSize = Engine.FreeSpace - 3;
      if (FSize == 0)
        Data2.Visible = false;
      else
        Data2.Height = FSize;
    }
  }
}
</ScriptText>
  <Dictionary>
    <TableDataSource Name="Table" ReferenceName="MasterData.Table" DataType="System.Int32" Enabled="true">
      <Column Name="KolAccCode" DataType="System.String"/>
      <Column Name="AccCode" DataType="System.String"/>
      <Column Name="SubDetailCode" DataType="System.String"/>
      <Column Name="SubDetailCode5" DataType="System.String"/>
      <Column Name="SubDetailCode6" DataType="System.String"/>
      <Column Name="Debit" DataType="System.Decimal"/>
      <Column Name="Credit" DataType="System.Decimal"/>
      <Column Name="JozPrice" DataType="System.Decimal"/>
      <Column Name="PriceKind" DataType="System.Int32"/>
      <Column Name="Description" DataType="System.String"/>
      <Column Name="SanadDate" DataType="System.String"/>
      <Column Name="RowNo" DataType="System.Int64"/>
      <Column Name="SanadradId" DataType="System.Int32"/>
      <Column Name="SanadId" DataType="System.Int32"/>
      <Column Name="GSanadId" DataType="System.Guid"/>
      <Column Name="GSanadradId" DataType="System.Guid"/>
      <Column Name="TmpK" DataType="System.Int32"/>
    </TableDataSource>
    <TableDataSource Name="Logo" ReferenceName="Logo.Logo" DataType="System.Int32" Enabled="true">
      <Column Name="ImageLogo" DataType="System.Drawing.Image, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" BindableControl="Picture"/>
    </TableDataSource>
    <Parameter Name="CompanyName" DataType="System.String"/>
    <Parameter Name="Zamime" DataType="System.String"/>
    <Parameter Name="SanadNo" DataType="System.String"/>
    <Parameter Name="نام شرکت" DataType="System.String"/>
    <Parameter Name="تلفن" DataType="System.String"/>
    <Parameter Name="فکس" DataType="System.String"/>
    <Parameter Name="آدرس" DataType="System.String"/>
    <Parameter Name="تاریخ گزارش" DataType="System.String"/>
    <Parameter Name="نام مدیر" DataType="System.String"/>
    <Parameter Name="DailySanadNo" DataType="System.String"/>
    <Parameter Name="DailySanadDate" DataType="System.String"/>
    <Parameter Name="Mosalsal" DataType="System.String"/>
    <Total Name="TotalDebit" Expression="[Table.Debit]" Evaluator="Data1" ResetOnReprint="true"/>
    <Total Name="TotalCredit" Expression="[Table.Credit]" Evaluator="Data1" ResetOnReprint="true"/>
  </Dictionary>
  <ReportPage Name="Page1" LeftMargin="5" RightMargin="5">
    <PageHeaderBand Name="PageHeader1" Width="756" Height="170.1">
      <ShapeObject Name="Shape1" Width="756" Height="132.3" Border.Width="2"/>
      <TextObject Name="Text3" Left="576.45" Top="37.8" Width="103.95" Height="28.35" Text="[DailySanadNo]" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text4" Left="680.4" Top="37.8" Width="56.7" Height="28.35" Text=": شماره" VertAlign="Center" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text10" Left="463.05" Top="94.5" Width="217.35" Height="28.35" Text="[Zamime]" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text5" Left="680.4" Top="66.15" Width="56.7" Height="28.35" Text=": تاریخ" VertAlign="Center" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text6" Left="576.45" Top="66.15" Width="103.95" Height="28.35" Text="[DailySanadDate]" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text9" Left="680.4" Top="94.5" Width="56.7" Height="28.35" Text=": ضمائم" VertAlign="Center" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text11" Left="18.9" Top="103.95" Width="94.5" Height="18.9" Text="صفحه: [Page]" RightToLeft="true" Font="B Nazanin, 10pt"/>
      <TextObject Name="Text26" Top="141.75" Width="122.85" Height="28.35" Border.Lines="All" Text="بستانکار" HorzAlign="Center" VertAlign="Center" Font="B Titr, 11pt, style=Bold"/>
      <TextObject Name="Text14" Left="623.7" Top="141.75" Width="132.3" Height="28.35" Border.Lines="All" Text="کد حساب" HorzAlign="Center" VertAlign="Center" Font="B Titr, 11pt, style=Bold"/>
      <TextObject Name="Text20" Left="368.55" Top="141.75" Width="255.15" Height="28.35" Border.Lines="All" Text="شرح" HorzAlign="Center" VertAlign="Center" Font="B Titr, 11pt, style=Bold"/>
      <TextObject Name="Text22" Left="245.7" Top="141.75" Width="122.85" Height="28.35" Border.Lines="All" Text="مبلغ جزء" HorzAlign="Center" VertAlign="Center" Font="B Titr, 11pt, style=Bold"/>
      <TextObject Name="Text24" Left="122.85" Top="141.75" Width="122.85" Height="28.35" Border.Lines="All" Text="بدهکار" HorzAlign="Center" VertAlign="Center" Font="B Titr, 11pt, style=Bold"/>
      <TextObject Name="Text2" Left="236.25" Top="47.25" Width="302.4" Height="28.35" Text="سند حسابداری" HorzAlign="Center" Font="B Nazanin, 14pt, style=Bold"/>
      <TextObject Name="Text1" Left="113.4" Top="9.45" Width="557.55" Height="28.35" Text="[CompanyName]" HorzAlign="Center" Font="B Nazanin, 14pt, style=Bold"/>
    </PageHeaderBand>
    <DataBand Name="Data1" Top="174.1" Width="756" Height="28.35" CanGrow="true" AfterPrintEvent="Data1_AfterPrint" DataSource="Table">
      <TextObject Name="Text162" Left="368.55" Width="255.15" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Text="    [IIf([Table.TmpK]==2,[Table.Description],&quot;&quot;)]" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
      <TextObject Name="Text17" Left="623.7" Width="132.3" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Text=" [IIf([Table.TmpK]==3,[Table.SubDetailCode],&quot;&quot;)] [IIf([Table.TmpK]==3,[Table.SubDetailCode5],&quot;&quot;)] [IIf([Table.TmpK]==3,[Table.SubDetailCode6],&quot;&quot;)]" VertAlign="Center" Font="B Nazanin, 11pt"/>
      <TextObject Name="Text13" Left="623.7" Width="132.3" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Text="[IIf([Table.TmpK]==1,[Table.KolAccCode],&quot;&quot;)]" VertAlign="Center" Font="B Titr, 11pt, style=Bold"/>
      <TextObject Name="Text19" Left="368.55" Width="255.15" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Text="[IIf([Table.TmpK]==1,[Table.Description],&quot;&quot;)]" HorzAlign="Right" VertAlign="Center" Font="B Titr, 11pt, style=Bold"/>
      <TextObject Name="Text158" Width="122.85" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Text="[IIf([Table.Credit]==0,&quot;&quot;,[Table.Credit])]" Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="3" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 12pt"/>
      <TextObject Name="Text159" Left="122.85" Width="122.85" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Text="[IIf([Table.Debit]==0,&quot;&quot;,[Table.Debit])]" Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="3" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 12pt"/>
      <TextObject Name="Text160" Left="245.7" Width="122.85" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Text="[IIf([Table.JozPrice]==0,&quot;&quot;,[Table.JozPrice])]" Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="3" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 11pt"/>
      <TextObject Name="Text163" Left="368.55" Width="255.15" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Text="    [IIf([Table.TmpK]&gt;2,[Table.Description],&quot;&quot;)]" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 10pt"/>
      <TextObject Name="Text15" Left="623.7" Width="132.3" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Text="    [IIf([Table.TmpK]==2,[Table.AccCode],&quot;&quot;)]" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
      <Sort>
        <Sort Expression="[Table.RowNo]"/>
      </Sort>
    </DataBand>
    <DataBand Name="Data2" Top="206.45" Width="756" Height="28.35" CanGrow="true">
      <TextObject Name="Text155" Width="122.85" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" CanBreak="false" Text=" " Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="3" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 10pt, style=Bold"/>
      <TextObject Name="Text32" Left="623.7" Width="132.3" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" CanBreak="false" HorzAlign="Center" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
      <TextObject Name="Text36" Left="368.55" Width="255.15" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" CanBreak="false" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
      <TextObject Name="Text156" Left="122.85" Width="122.85" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" CanBreak="false" Text=" " Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="3" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 10pt, style=Bold"/>
      <TextObject Name="Text157" Left="245.7" Width="122.85" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" CanBreak="false" Text=" " Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="3" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 10pt, style=Bold"/>
    </DataBand>
    <PageFooterBand Name="PageFooter1" Top="238.8" Width="756" Height="132.3">
      <TextObject Name="Text28" Width="122.85" Height="37.8" Border.Lines="All" Text="[TotalCredit]" Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="3" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text27" Left="122.85" Width="122.85" Height="37.8" Border.Lines="All" Text="[TotalDebit]" Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="3" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text29" Left="245.7" Width="510.3" Height="37.8" Border.Lines="All" Text="جمع تا پایان صفحه" HorzAlign="Center" VertAlign="Center" Font="B Titr, 11pt, style=Bold"/>
      <TextObject Name="Text161" Left="567" Top="37.8" Width="189" Height="56.7" Border.Lines="All" Text="ثبــــت کننــده:&#13;&#10;" RightToLeft="true" Font="B Nazanin, 11pt, style=Bold"/>
      <TextObject Name="Text54" Left="378" Top="37.8" Width="189" Height="56.7" Border.Lines="All" Text="رسیـــدگی:&#13;&#10;" RightToLeft="true" Font="B Nazanin, 11pt, style=Bold"/>
      <TextObject Name="Text55" Left="189" Top="37.8" Width="189" Height="56.7" Border.Lines="All" Text="تائیـــد کننــده:&#13;&#10;" RightToLeft="true" Font="B Nazanin, 11pt, style=Bold"/>
      <TextObject Name="Text56" Top="37.8" Width="189" Height="56.7" Border.Lines="All" Text="تصــویب کننــده:&#13;&#10;" RightToLeft="true" Font="B Nazanin, 11pt, style=Bold"/>
    </PageFooterBand>
  </ReportPage>
</Report>
