<?xml version="1.0" encoding="utf-8"?>
<Report ReportInfo.Created="12/03/2011 19:50:23" ReportInfo.Modified="07/29/2016 12:29:18" 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 - 50;
      if (FSize == 0)
        GroupFooter1.Visible = false;
      else
        GroupFooter1.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="SanadID" DataType="System.Int32"/>
      <Column Name="SanadNo" DataType="System.String"/>
      <Column Name="SanadDate" DataType="System.String"/>
      <Column Name="RowNo" DataType="System.Int64"/>
      <Column Name="SanadradId" DataType="System.Int32"/>
      <Column Name="CreatorName" DataType="System.String"/>
      <Column Name="UpdaterName" DataType="System.String"/>
      <Column Name="ConfirmName" DataType="System.String"/>
      <Column Name="aKind" DataType="System.Int32"/>
      <Column Name="SanadMosalsal" DataType="System.Int32"/>
      <Column Name="SanadDesc" DataType="System.String"/>
      <Column Name="OperKindName" DataType="System.String"/>
      <Column Name="StatusName" DataType="System.String"/>
    </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="نام شرکت" 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"/>
    <Total Name="TotalDebit" Expression="[Table.Debit]" Evaluator="Data1" PrintOn="Child2" ResetOnReprint="true"/>
    <Total Name="TotalCredit" Expression="[Table.Credit]" Evaluator="Data1" PrintOn="Child2" ResetOnReprint="true"/>
  </Dictionary>
  <ReportPage Name="Page1" LeftMargin="5" RightMargin="5">
    <GroupHeaderBand Name="GroupHeader1" Width="756" Height="151.2" StartNewPage="true" RepeatOnEveryPage="true" Condition="[Table.SanadNo]" ResetPageNumber="true">
      <ShapeObject Name="Shape1" Width="756" Height="122.85" Border.Color="Gray" Border.Width="2"/>
      <TextObject Name="Text26" Top="122.85" Width="122.85" Height="28.35" Border.Lines="All" Text="بستانکار" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="B Titr, 10pt, style=Bold"/>
      <TextObject Name="Text18" Left="614.25" Top="122.85" Width="141.75" Height="28.35" Border.Lines="All" Text="کد حساب" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="B Titr, 10pt, style=Bold"/>
      <TextObject Name="Text20" Left="368.55" Top="122.85" Width="245.7" Height="28.35" Border.Lines="All" Text="شرح" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="B Titr, 10pt, style=Bold"/>
      <TextObject Name="Text22" Left="245.7" Top="122.85" Width="122.85" Height="28.35" Border.Lines="All" Text="مبلغ جزء" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="B Titr, 10pt, style=Bold"/>
      <TextObject Name="Text24" Left="122.85" Top="122.85" Width="122.85" Height="28.35" Border.Lines="All" Text="بدهکار" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="B Titr, 10pt, style=Bold"/>
      <TextObject Name="Text11" Left="113.4" Top="94.5" Width="66.15" Height="18.9" Text="صفحه:" RightToLeft="true" Font="B Nazanin, 10pt, style=Bold"/>
      <TextObject Name="Text5" Left="689.85" Top="66.15" Width="56.7" Height="18.9" Text="تاریخ:" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text6" Left="585.9" Top="66.15" Width="103.95" Height="18.9" Text="[Table.SanadDate]" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text3" Left="585.9" Top="9.45" Width="103.95" Height="18.9" Text="[Table.SanadNo]" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text4" Left="689.85" Top="9.45" Width="56.7" Height="18.9" Text="شماره:" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text7" Left="689.85" Top="37.8" Width="56.7" Height="18.9" Text="عطف:" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text8" Left="585.9" Top="37.8" Width="103.95" Height="18.9" Text="[Table.SanadMosalsal]" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text33" Left="113.4" Top="66.15" Width="66.15" Height="18.9" Text="تاریخ چاپ:" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 10pt, style=Bold"/>
      <TextObject Name="Text2" Left="226.8" Top="37.8" Width="302.4" Height="28.35" Text="سند حسابداری" HorzAlign="Center" RightToLeft="true" Font="B Titr, 12pt, style=Bold"/>
      <TextObject Name="Text32" Left="189" Top="9.45" Width="378" Height="28.35" Text="[نام شرکت]" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="B Titr, 12pt, style=Bold"/>
      <TextObject Name="Text38" Left="633.15" Top="94.5" Width="113.4" Height="18.9" Text="[Table.OperKindName]" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 11pt"/>
      <TextObject Name="Text39" Left="179.55" Top="94.5" Width="453.6" Height="18.9" Text="[Table.SanadDesc]" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 11pt"/>
      <TextObject Name="Text40" Left="113.4" Top="37.8" Width="66.15" Height="18.9" Text="صادرکننده:" RightToLeft="true" Font="B Nazanin, 10pt, style=Bold"/>
      <TextObject Name="Text41" Left="103.95" Top="9.45" Width="75.6" Height="18.9" Text="وضعیت سند:" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 10pt, style=Bold"/>
      <TextObject Name="Text42" Left="9.45" Top="37.8" Width="103.95" Height="18.9" Text="[Table.CreatorName]" RightToLeft="true" Font="B Nazanin, 10pt"/>
      <TextObject Name="Text43" Left="9.45" Top="66.15" Width="103.95" Height="18.9" Text="[تاریخ گزارش]" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 10pt"/>
      <TextObject Name="Text44" Left="9.45" Top="94.5" Width="103.95" Height="18.9" Text="[Page]" RightToLeft="true" Font="B Nazanin, 10pt"/>
      <TextObject Name="Text45" Left="9.45" Top="9.45" Width="94.5" Height="18.9" Text="[Table.StatusName]" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 10pt"/>
      <DataBand Name="Data1" Top="155.2" Width="756" Height="28.35" CanGrow="true" CanShrink="true" AfterPrintEvent="Data1_AfterPrint" DataSource="Table">
        <TextObject Name="Text13" Left="614.25" Width="66.15" Height="28.35" Border.Lines="Left" CanGrow="true" CanShrink="true" GrowToBottom="true" Text="[IIf([Table.AccCode]==&quot;&quot;,[Table.KolAccCode],&quot;&quot;)]" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
        <TextObject Name="Text15" Left="614.25" Width="75.6" Height="28.35" CanGrow="true" CanShrink="true" GrowToBottom="true" Text="    [IIf([Table.SubDetailCode]==&quot;&quot;,[Table.AccCode],&quot;&quot;)]" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
        <TextObject Name="Text17" Left="614.25" Width="141.75" Height="28.35" Border.Lines="Right" CanGrow="true" CanShrink="true" GrowToBottom="true" Text="    [IIf([Table.JozPrice]==0,[Table.SubDetailCode],&quot;&quot;)]    [IIf([Table.JozPrice]==0,[Table.SubDetailCode5],&quot;&quot;)]    [IIf([Table.JozPrice]==0,[Table.SubDetailCode6],&quot;&quot;)]" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
        <TextObject Name="Text21" Left="245.7" Width="122.85" Height="28.35" Border.Lines="Left, Right" CanGrow="true" CanShrink="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" WordWrap="false" Font="B Nazanin, 11pt, style=Bold" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text23" Left="122.85" Width="122.85" Height="28.35" Border.Lines="Left, Right" CanGrow="true" CanShrink="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" WordWrap="false" Font="B Nazanin, 11pt, style=Bold" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text25" Width="122.85" Height="28.35" Border.Lines="Left, Right" CanGrow="true" CanShrink="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" WordWrap="false" Font="B Nazanin, 11pt, style=Bold" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text19" Left="368.55" Width="245.7" Height="28.35" Border.Lines="Left, Right" CanGrow="true" CanShrink="true" GrowToBottom="true" Text="[IIf([Table.JozPrice]==0,[Table.Description],&quot;&quot;)]" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 11pt, style=Bold"/>
        <TextObject Name="Text37" Left="368.55" Width="245.7" Height="28.35" Border.Lines="Left, Right" CanGrow="true" CanShrink="true" GrowToBottom="true" Text="      [IIf([Table.JozPrice]==0,&quot;&quot;,[Table.Description])]" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 11pt"/>
        <Sort>
          <Sort Expression="[Table.RowNo]"/>
        </Sort>
      </DataBand>
      <GroupFooterBand Name="GroupFooter1" Top="187.55" Width="756" Height="37.8" CanGrow="true" CanBreak="true">
        <TextObject Name="Text51" Width="122.85" Height="37.8" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="3" VertAlign="Center" RightToLeft="true" WordWrap="false" Font="B Nazanin, 11pt, style=Bold" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text48" Left="614.25" Width="141.75" Height="37.8" Border.Lines="Right" CanGrow="true" GrowToBottom="true" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
        <TextObject Name="Text49" Left="245.7" Width="122.85" Height="37.8" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="3" VertAlign="Center" RightToLeft="true" WordWrap="false" Font="B Nazanin, 11pt, style=Bold" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text50" Left="122.85" Width="122.85" Height="37.8" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="3" VertAlign="Center" RightToLeft="true" WordWrap="false" Font="B Nazanin, 11pt, style=Bold" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text53" Left="368.55" Width="245.7" Height="37.8" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 11pt"/>
        <ChildBand Name="Child2" Top="229.35" Width="756" Height="49.25" Border.Lines="Right, Top">
          <TextObject Name="Text27" Left="122.85" Width="122.85" Height="49.25" 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, 11pt, style=Bold"/>
          <TextObject Name="Text28" Width="122.85" Height="49.25" 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, 11pt, style=Bold"/>
          <TextObject Name="Text29" Left="245.7" Width="56.7" Height="49.25" Text="جمع:" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="B Nazanin, 11pt, style=Bold"/>
        </ChildBand>
      </GroupFooterBand>
    </GroupHeaderBand>
    <PageFooterBand Name="PageFooter1" Top="282.6" Width="756" Height="56.7">
      <TextObject Name="Text1" Left="567" Width="189" Height="56.7" Border.Lines="All" Text="ثبــــت کننــده:&#13;&#10;[Table.CreatorName]" RightToLeft="true" Font="B Nazanin, 11pt, style=Bold"/>
      <TextObject Name="Text54" Left="378" Width="189" Height="56.7" Border.Lines="All" Text="رسیـــدگی:&#13;&#10;[Table.UpdaterName]" RightToLeft="true" Font="B Nazanin, 11pt, style=Bold"/>
      <TextObject Name="Text55" Left="189" Width="189" Height="56.7" Border.Lines="All" Text="تائیـــد کننــده:&#13;&#10;[Table.ConfirmName]" RightToLeft="true" Font="B Nazanin, 11pt, style=Bold"/>
      <TextObject Name="Text56" Width="189" Height="56.7" Border.Lines="All" Text="تصــویب کننــده:&#13;&#10;[Table.ConfirmName]" RightToLeft="true" Font="B Nazanin, 11pt, style=Bold"/>
    </PageFooterBand>
  </ReportPage>
</Report>
