<?xml version="1.0" encoding="utf-8"?>
<Report ReportInfo.Created="09/17/2013 12:42:44" ReportInfo.Modified="09/07/2015 08:59:01" 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_BeforePrint(object sender, EventArgs e)
    {
       if(((String)Report.GetColumnValue(&quot;AccountCodeView.CredKind&quot;))==&quot;1&quot;)
        txtMahiat.Text = &quot;بدهکار&quot;;
      
      if(((String)Report.GetColumnValue(&quot;AccountCodeView.CredKind&quot;))==&quot;2&quot;)
        txtMahiat.Text = &quot;بستانکار&quot;;
      
      if(((String)Report.GetColumnValue(&quot;AccountCodeView.CredKind&quot;))==&quot;3&quot;)
        txtMahiat.Text = &quot;دو ماهیتی&quot;;
        
      if(((String)Report.GetColumnValue(&quot;AccountCodeView.TempKind&quot;))==&quot;1&quot;)
        txtMovaghat.Text = &quot;دائم&quot;;
      
      if(((String)Report.GetColumnValue(&quot;AccountCodeView.TempKind&quot;))==&quot;2&quot;)
        txtMovaghat.Text = &quot;موقت&quot;;
    }
  }
}
</ScriptText>
  <Dictionary>
    <TableDataSource Name="AccountCodeView" ReferenceName="MasterData.AccountCodeView" DataType="System.Int32" Enabled="true">
      <Column Name="GCompanyID" DataType="System.String"/>
      <Column Name="GAccID" DataType="System.String"/>
      <Column Name="AccID" DataType="System.String"/>
      <Column Name="AccCode" DataType="System.String"/>
      <Column Name="AccName" DataType="System.String"/>
      <Column Name="Credit" DataType="System.String"/>
      <Column Name="TempKind" DataType="System.String"/>
      <Column Name="CredKind" DataType="System.String"/>
      <Column Name="AccKind" DataType="System.String"/>
      <Column Name="GParentID" DataType="System.String"/>
      <Column Name="AccLevel" DataType="System.String"/>
      <Column Name="Status" DataType="System.String"/>
      <Column Name="GDetailID" DataType="System.String"/>
      <Column Name="DetailID" 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="نام شرکت" 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"/>
  </Dictionary>
  <ReportPage Name="Page1">
    <PageHeaderBand Name="PageHeader1" Width="718.2" Height="141.75">
      <ShapeObject Name="Shape1" Left="9.45" Width="699.3" Height="75.6" Border.Width="2"/>
      <TextObject Name="Text11" Left="122.85" Top="9.45" Width="481.95" Height="28.35" Text="[نام شرکت]" HorzAlign="Center" VertAlign="Center" Font="Arial, 14pt, style=Bold"/>
      <TextObject Name="Text12" Left="103.95" Top="47.25" Width="122.85" Height="18.9" Text="[تاریخ گزارش]" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt"/>
      <TextObject Name="Text13" Left="604.8" Top="47.25" Width="94.5" Height="18.9" Text="صفحه [Page#]" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt"/>
      <TextObject Name="Text2" Left="491.4" Top="85.05" Width="170.1" Height="28.35" Border.Lines="All" Border.Width="1.5" Text="کد حساب" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt, style=Bold"/>
      <TextObject Name="Text4" Left="179.55" Top="85.05" Width="311.85" Height="56.7" Border.Lines="All" Border.Width="1.5" Text="عنوان حساب" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt, style=Bold"/>
      <TextObject Name="Text9" Left="661.5" Top="85.05" Width="47.25" Height="56.7" Border.Lines="All" Border.Width="1.5" Text="ردیف" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt, style=Bold"/>
      <PictureObject Name="Picture1" Left="18.9" Top="4" Width="75.6" Height="66.15" DataColumn="Logo.ImageLogo"/>
      <TextObject Name="Text14" Left="226.8" Top="37.8" Width="274.05" Height="28.35" Text="کدینگ حسابداری" HorzAlign="Center" VertAlign="Center" Font="Arial, 14pt, style=Bold"/>
      <TextObject Name="Text15" Left="491.4" Top="113.4" Width="47.25" Height="28.35" Border.Lines="All" Border.Width="1.5" Text="گروه" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt, style=Bold"/>
      <TextObject Name="Text16" Left="538.65" Top="113.4" Width="47.25" Height="28.35" Border.Lines="All" Border.Width="1.5" Text="کل" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt, style=Bold"/>
      <TextObject Name="Text17" Left="585.9" Top="113.4" Width="75.6" Height="28.35" Border.Lines="All" Border.Width="1.5" Text="معین" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt, style=Bold"/>
      <TextObject Name="Text18" Left="94.5" Top="85.05" Width="85.05" Height="56.7" Border.Lines="All" Border.Width="1.5" Text="ماهیت حساب" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt, style=Bold"/>
      <TextObject Name="Text20" Left="9.45" Top="85.05" Width="85.05" Height="56.7" Border.Lines="All" Border.Width="1.5" Text="دائم / موقت" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt, style=Bold"/>
    </PageHeaderBand>
    <DataBand Name="Data1" Top="145.75" Width="718.2" Height="28.35" BeforePrintEvent="Data1_BeforePrint" DataSource="AccountCodeView">
      <TextObject Name="Text1" Left="491.4" Width="47.25" Height="28.35" Border.Lines="Top, Bottom" CanGrow="true" GrowToBottom="true" Text="[IIf([AccountCodeView.AccLevel]==&quot;1&quot;,[AccountCodeView.AccCode],&quot;&quot;)]" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt"/>
      <TextObject Name="Text3" Left="179.55" Width="311.85" Height="28.35" Border.Lines="All" CanGrow="true" GrowToBottom="true" Text="[AccountCodeView.AccName]" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt"/>
      <TextObject Name="Text10" Left="661.5" Width="47.25" Height="28.35" Border.Lines="All" CanGrow="true" GrowToBottom="true" Text="[Row#]" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt"/>
      <TextObject Name="txtMahiat" Left="94.5" Width="85.05" Height="28.35" Border.Lines="All" CanGrow="true" GrowToBottom="true" Text="[AccountCodeView.CredKind]" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt"/>
      <TextObject Name="txtMovaghat" Left="9.45" Width="85.05" Height="28.35" Border.Lines="All" CanGrow="true" GrowToBottom="true" Text="[AccountCodeView.TempKind]" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt"/>
      <TextObject Name="Text21" Left="538.65" Width="47.25" Height="28.35" Border.Lines="Top, Bottom" CanGrow="true" GrowToBottom="true" Text="[IIf([AccountCodeView.AccLevel]==&quot;2&quot;,[AccountCodeView.AccCode],&quot;&quot;)]" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt"/>
      <TextObject Name="Text22" Left="585.9" Width="75.6" Height="28.35" Border.Lines="Top, Bottom" CanGrow="true" GrowToBottom="true" Text="[IIf([AccountCodeView.AccLevel]==&quot;3&quot;,[AccountCodeView.AccCode],&quot;&quot;)]" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 12pt"/>
    </DataBand>
    <PageFooterBand Name="PageFooter1" Top="178.1" Width="718.2" Height="18.9"/>
  </ReportPage>
</Report>
