<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="12/03/2011 19:50:23" ReportInfo.Modified="11/16/2025 17:05:35" ReportInfo.CreatorVersion="2015.2.16.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 - 120;
      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="ردیف" DataType="System.Int64"/>
      <Column Name="شماره سند" DataType="System.String"/>
      <Column Name="تاریخ" DataType="System.String"/>
      <Column Name="کل" DataType="System.String"/>
      <Column Name="بدهکار" DataType="System.Decimal"/>
      <Column Name="بستانکار" DataType="System.Decimal"/>
      <Column Name="جزء" DataType="System.Int32"/>
      <Column Name="نوع" DataType="System.Int32"/>
      <Column Name="شرح" DataType="System.String"/>
      <Column Name="lvl" 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=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" BindableControl="Picture"/>
    </TableDataSource>
    <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="استان" 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.بدهکار]" Evaluator="Data1" ResetOnReprint="true"/>
    <Total Name="TotalCredit" Expression="[Table.بستانکار]" Evaluator="Data1" ResetOnReprint="true"/>
  </Dictionary>
  <ReportPage Name="Page1" LeftMargin="5" RightMargin="5">
    <GroupHeaderBand Name="GroupHeader1" Width="756" Height="170.1" Condition="[Table.شماره سند]">
      <ShapeObject Name="Shape1" Width="756" Height="132.3" Border.Width="2"/>
      <TextObject Name="Text26" Top="141.75" Width="189" Height="28.35" Border.Lines="All" Text="بستانکار" HorzAlign="Center" VertAlign="Center" Font="B Titr, 11pt, style=Bold"/>
      <TextObject Name="Text14" Left="718.2" Top="141.75" Width="37.8" Height="28.35" Border.Lines="All" Text="کل" HorzAlign="Center" VertAlign="Center" Font="B Titr, 11pt, style=Bold"/>
      <TextObject Name="Text20" Left="378" Top="141.75" Width="340.2" Height="28.35" Border.Lines="All" Text="شرح" HorzAlign="Center" VertAlign="Center" Font="B Titr, 11pt, style=Bold"/>
      <TextObject Name="Text24" Left="189" Top="141.75" Width="189" Height="28.35" Border.Lines="All" Text="بدهکار" HorzAlign="Center" VertAlign="Center" Font="B Titr, 11pt, style=Bold"/>
      <TextObject Name="Text11" Left="37.8" Top="103.95" Width="94.5" Height="18.9" Text="صفحه: [Page]" RightToLeft="true" Font="B Nazanin, 10pt"/>
      <TextObject Name="Text5" Left="661.5" Top="94.5" Width="56.7" Height="28.35" Text=": تاریخ" VertAlign="Center" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text6" Left="500.85" Top="94.5" Width="160.65" Height="28.35" Text="[Table.تاریخ]" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text3" Left="510.3" Top="66.15" Width="151.2" Height="28.35" Text="[Table.شماره سند]" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text4" Left="661.5" Top="66.15" Width="56.7" Height="28.35" Text=": شماره" VertAlign="Center" Font="B Nazanin, 12pt, style=Bold"/>
      <TextObject Name="Text2" Left="236.25" Top="37.8" 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="529.2" Height="28.35" Text="[نام شرکت]" HorzAlign="Center" Font="B Nazanin, 14pt, style=Bold"/>
      <PictureObject Name="Picture1" Left="18.9" Top="9.45" Width="75.6" Height="75.6" DataColumn="Logo.ImageLogo"/>
      <DataBand Name="Data1" Top="174.1" Width="756" Height="28.35" CanGrow="true" AfterPrintEvent="Data1_AfterPrint" DataSource="Table">
        <TextObject Name="Text13" Left="718.2" Width="37.8" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Text="[Table.کل]" HorzAlign="Center" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
        <TextObject Name="Text19" Left="378" Width="340.2" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Text="[Table.شرح]" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
        <TextObject Name="Text155" Width="189" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Text="[Table.بستانکار]" Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="3" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 14pt, style=Bold"/>
        <TextObject Name="Text156" Left="189" Width="189" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" Text="[Table.بدهکار]" Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="3" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 14pt, style=Bold"/>
        <Sort>
          <Sort Expression="[Table.ردیف]"/>
        </Sort>
      </DataBand>
      <GroupFooterBand Name="Data2" Top="206.45" Width="756" Height="28.35">
        <TextObject Name="Text159" Width="189" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
        <TextObject Name="Text160" Left="189" Width="189" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
        <TextObject Name="Text157" Left="718.2" Width="37.8" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" HorzAlign="Center" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
        <TextObject Name="Text158" Left="378" Width="340.2" Height="28.35" Border.Lines="Left, Right" CanGrow="true" GrowToBottom="true" HorzAlign="Right" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
        <ChildBand Name="Child1" Top="238.8" Width="756" Height="85.05">
          <TextObject Name="Text28" Width="189" Height="28.35" 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, 14pt, style=Bold"/>
          <TextObject Name="Text29" Left="378" Width="378" Height="28.35" Border.Lines="All" Text="جمع" HorzAlign="Center" VertAlign="Center" Font="B Nazanin, 11pt, style=Bold"/>
          <TextObject Name="Text27" Left="189" Width="189" Height="28.35" 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, 14pt, style=Bold"/>
          <TextObject Name="Text161" Left="567" Top="28.35" 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="28.35" 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="28.35" Width="189" Height="56.7" Border.Lines="All" Text="تائیـــد کننــده:&#13;&#10;" RightToLeft="true" Font="B Nazanin, 11pt, style=Bold"/>
          <TextObject Name="Text56" Top="28.35" Width="189" Height="56.7" Border.Lines="All" Text="تصــویب کننــده:&#13;&#10;" RightToLeft="true" Font="B Nazanin, 11pt, style=Bold"/>
        </ChildBand>
      </GroupFooterBand>
    </GroupHeaderBand>
  </ReportPage>
</Report>
