<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="07/19/2019 11:02:20" ReportInfo.Modified="08/06/2019 10:59:47" ReportInfo.CreatorVersion="2019.1.5.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 Data3_AfterData(object sender, EventArgs e)
    {
      if(Text35.Text==&quot;&quot;)
      {
        DataHeader2.Visible=true;
        Data3.Visible=true;
        DataFooter4.Visible=true;
      }
    }
  }
}
</ScriptText>
  <Dictionary>
    <TableDataSource Name="Table1" ReferenceName="Data.Table1" DataType="System.Int32" Enabled="true">
      <Column Name="account_ID" DataType="System.String"/>
      <Column Name="exp" DataType="System.String"/>
      <Column Name="account_name" DataType="System.String"/>
      <Column Name="debit" DataType="System.String"/>
      <Column Name="credit" DataType="System.String"/>
      <Column Name="exchange" DataType="System.String"/>
      <Column Name="fcur" DataType="System.String"/>
      <Column Name="unit" DataType="System.String"/>
      <Column Name="number" DataType="System.String"/>
      <Column Name="unit_price" DataType="System.String"/>
      <Column Name="origin_money" DataType="System.String"/>
      <Column Name="exp1" DataType="System.String" PropName="Column"/>
      <Column Name="account_name1" DataType="System.String" PropName="Column"/>
      <Column Name="debit1" DataType="System.String" PropName="Column"/>
      <Column Name="credit1" DataType="System.String" PropName="Column"/>
      <Column Name="exchange1" DataType="System.String" PropName="Column"/>
      <Column Name="fcur1" DataType="System.String" PropName="Column"/>
      <Column Name="unit1" DataType="System.String" PropName="Column"/>
      <Column Name="number1" DataType="System.String" PropName="Column"/>
      <Column Name="unit_price1" DataType="System.String" PropName="Column"/>
      <Column Name="origin_money1" DataType="System.String" PropName="Column"/>
    </TableDataSource>
    <TableDataSource Name="Table2" ReferenceName="Data.Table2" DataType="System.Int32" Enabled="true">
      <Column Name="account_ID" DataType="System.String"/>
      <Column Name="reciept_number" DataType="System.String"/>
      <Column Name="voucher_title_number" DataType="System.String"/>
      <Column Name="account_date" DataType="System.String"/>
      <Column Name="sharding" DataType="System.String"/>
      <Column Name="company_name" DataType="System.String"/>
      <Column Name="record_man" DataType="System.String"/>
      <Column Name="audit_person" DataType="System.String"/>
      <Column Name="voucher_maker" DataType="System.String"/>
      <Column Name="amount_in_words" DataType="System.String"/>
      <Column Name="total_debit" DataType="System.String"/>
      <Column Name="total_credit" DataType="System.String"/>
      <Column Name="reciept_number1" DataType="System.String" PropName="Column"/>
      <Column Name="voucher_title_number1" DataType="System.String" PropName="Column"/>
      <Column Name="account_date1" DataType="System.String" PropName="Column"/>
      <Column Name="sharding1" DataType="System.String" PropName="Column"/>
      <Column Name="company_name1" DataType="System.String" PropName="Column"/>
      <Column Name="record_man1" DataType="System.String" PropName="Column"/>
      <Column Name="audit_person1" DataType="System.String" PropName="Column"/>
      <Column Name="voucher_maker1" DataType="System.String" PropName="Column"/>
      <Column Name="amount_in_words1" DataType="System.String" PropName="Column"/>
      <Column Name="total_debit1" DataType="System.String" PropName="Column"/>
      <Column Name="total_credit1" DataType="System.String" PropName="Column"/>
    </TableDataSource>
    <Relation Name="Table2_Table1" ParentDataSource="Table2" ChildDataSource="Table1" ParentColumns="account_ID" ChildColumns="account_ID" Enabled="true"/>
    <Relation Name="Table4_Table3" ParentDataSource="null" ChildDataSource="null" ParentColumns="account_ID" ChildColumns="account_ID" Enabled="true"/>
    <Parameter Name="公司名称" DataType="System.String"/>
  </Dictionary>
  <ReportPage Name="Page1" RawPaperSize="9" FirstPageSource="261" OtherPagesSource="261">
    <DataBand Name="Data1" Top="4" Width="718.2" StartNewPage="true">
      <DataHeaderBand Name="DataHeader1" Width="718.2" RepeatOnEveryPage="true"/>
      <DataBand Name="Data2" Top="8" Width="718.2" StartNewPage="true" DataSource="Table2">
        <DataBand Name="Data4" Top="223.9" Width="718.2" Height="37.8" DataSource="Table1">
          <TextObject Name="Text18" Left="132.3" Width="198.45" Height="37.8" Border.Lines="All" CanBreak="false" Text="[Table1.account_name]" VertAlign="Center" Font="微软雅黑, 10pt" Clip="false" Wysiwyg="true"/>
          <TextObject Name="Text19" Left="529.2" Width="94.5" Height="37.8" Border.Lines="All" CanGrow="true" Text="[Table1.debit]" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt" Clip="false"/>
          <TextObject Name="Text20" Left="623.7" Width="94.5" Height="37.8" Border.Lines="All" CanGrow="true" Text="[Table1.credit]" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt" Clip="false"/>
          <TextObject Name="Text17" Left="9.45" Width="122.85" Height="37.8" Border.Lines="All" CanBreak="false" Text="[Table1.exp]" VertAlign="Center" Font="微软雅黑, 10pt" Trimming="Character" Clip="false" Wysiwyg="true"/>
          <TextObject Name="Text77" Left="330.75" Width="56.7" Height="37.8" Border.Lines="All" Text="[Table1.fcur]" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt"/>
          <TextObject Name="Text39" Left="387.45" Width="56.7" Height="37.8" Border.Lines="All" Text="[Table1.exchange]" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt"/>
          <TextObject Name="Text40" Left="444.15" Width="85.05" Height="37.8" Border.Lines="All" Text="[Table1.origin_money]" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt"/>
          <DataHeaderBand Name="DataHeader3" Top="12" Width="718.2" Height="207.9" RepeatOnEveryPage="true">
            <TextObject Name="Text64" Left="266.49" Top="75.6" Width="170.1" Height="37.8" Text="记 账 凭 证" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 15pt, style=Bold"/>
            <TextObject Name="Text65" Left="264.6" Top="113.4" Width="170.1" Height="18.9" Text="日期：[Table2.account_date]" HorzAlign="Center" Font="微软雅黑, 9pt"/>
            <TextObject Name="Text66" Left="614.25" Top="122.85" Width="105.84" Height="18.9" Text="[Table2.reciept_number]" HorzAlign="Right" Font="微软雅黑, 9pt"/>
            <TextObject Name="Text67" Left="548.1" Top="122.85" Width="94.5" Height="18.9" Text="附单据数：" HorzAlign="Right" Font="微软雅黑, 9pt"/>
            <ShapeObject Name="Shape2" Top="37.8" Width="28.35" Height="28.35" Shape="Ellipse"/>
            <TextObject Name="Text68" Left="614.25" Top="141.75" Width="105.84" Height="18.9" Text="[Table2.voucher_title_number][Table2.sharding]" HorzAlign="Right" Font="微软雅黑, 9pt"/>
            <TextObject Name="Text69" Left="548.1" Top="141.75" Width="94.5" Height="18.9" Text="凭证号：" HorzAlign="Right" Font="微软雅黑, 9pt"/>
            <TextObject Name="Text70" Left="9.45" Top="143.64" Width="330.75" Height="18.9" Text="核算单位:[Table2.company_name]" Font="微软雅黑, 9pt"/>
            <TextObject Name="Text15" Left="529.2" Top="170.1" Width="94.5" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="借方" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold" Clip="false"/>
            <TextObject Name="Text16" Left="623.7" Top="170.1" Width="94.5" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="贷方" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold" Clip="false"/>
            <TextObject Name="Text2" Left="9.45" Top="170.1" Width="122.85" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="摘要" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold" Clip="false"/>
            <TextObject Name="Text3" Left="330.75" Top="170.1" Width="56.7" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="币别" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
            <TextObject Name="Text75" Left="387.45" Top="170.1" Width="56.7" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="汇率" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
            <TextObject Name="Text76" Left="444.15" Top="170.1" Width="85.05" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="原币金额" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold"/>
            <TextObject Name="Text14" Left="132.3" Top="170.1" Width="198.45" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="科目" HorzAlign="Center" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold" Clip="false"/>
          </DataHeaderBand>
          <DataFooterBand Name="DataFooter3" Top="265.7" Width="718.2" Height="151.2">
            <TextObject Name="Text1" Left="18.9" Top="47.25" Width="207.9" Height="18.9" Text="记账" Padding="0, 0, 0, 0" Font="微软雅黑, 9pt" TabWidth="20"/>
            <TextObject Name="Text24" Left="285.39" Top="47.25" Width="226.8" Height="18.9" GrowToBottom="true" Text="审核" Padding="0, 0, 0, 0" Font="微软雅黑, 9pt" Trimming="Word" TabWidth="20"/>
            <TextObject Name="Text25" Left="559.44" Top="47.25" Width="226.8" Height="18.9" GrowToBottom="true" Text="制单" Padding="0, 0, 0, 0" Font="微软雅黑, 9pt" TabWidth="20"/>
            <TextObject Name="Text21" Left="9.45" Width="519.75" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="合计：[Table2.amount_in_words]" VertAlign="Center" Font="微软雅黑, 10pt, style=Bold" Clip="false"/>
            <TextObject Name="Text22" Left="529.2" Width="94.5" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="[Table2.total_debit]" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt" Clip="false"/>
            <TextObject Name="Text23" Left="623.7" Width="94.5" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="[Table2.total_credit]" HorzAlign="Right" VertAlign="Center" Font="微软雅黑, 10pt" Clip="false"/>
          </DataFooterBand>
        </DataBand>
        <DataBand Name="Data3" Top="566.65" Width="718.2" Height="37.8" AfterDataEvent="Data3_AfterData" DataSource="Table1">
          <TextObject Name="Text95" Left="585.9" Width="122.85" Height="37.8" Border.Lines="All" CanBreak="false" Text="[Table1.exp1]" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt" Trimming="Character" Clip="false" Wysiwyg="true"/>
          <TextObject Name="Text96" Left="387.45" Width="198.45" Height="37.8" Border.Lines="All" CanBreak="false" Text="[Table1.account_name1]" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt" Clip="false" Wysiwyg="true"/>
          <TextObject Name="Text97" Left="330.75" Width="56.7" Height="37.8" Border.Lines="All" Text="[Table1.fcur1]" HorzAlign="Right" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt"/>
          <TextObject Name="Text88" Left="274.05" Width="56.7" Height="37.8" Border.Lines="All" Text="[Table1.exchange1]" HorzAlign="Right" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt"/>
          <TextObject Name="Text89" Left="189" Width="85.05" Height="37.8" Border.Lines="All" Text="[Table1.origin_money1]" HorzAlign="Right" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt"/>
          <TextObject Name="Text90" Left="94.5" Width="94.5" Height="37.8" Border.Lines="All" CanGrow="true" Text="[Table1.debit1]" HorzAlign="Right" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt" Clip="false"/>
          <TextObject Name="Text91" Width="94.5" Height="37.8" Border.Lines="All" CanGrow="true" Text="[Table1.credit1]" HorzAlign="Right" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt" Clip="false"/>
          <DataHeaderBand Name="DataHeader2" Top="420.9" Width="718.2" Height="141.75">
            <TextObject Name="Text48" Left="94.5" Top="103.95" Width="94.5" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="[Table2.total_debit1]" HorzAlign="Right" VertAlign="Center" Angle="180" Font="微软雅黑, 9pt" Clip="false"/>
            <TextObject Name="Text49" Top="103.95" Width="94.5" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="[Table2.total_credit1]" HorzAlign="Right" VertAlign="Center" Angle="180" Font="微软雅黑, 9pt" Clip="false"/>
            <TextObject Name="Text47" Left="189" Top="103.95" Width="519.75" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="合计：[Table2.amount_in_words1]" VertAlign="Center" Angle="180" Font="微软雅黑, 9pt, style=Bold" Clip="false"/>
            <TextObject Name="Text52" Left="-85.05" Top="75.6" Width="226.8" Height="18.9" Text="制单" Padding="0, 0, 0, 0" Angle="180" Font="微软雅黑, 9pt" TabWidth="20"/>
            <TextObject Name="Text51" Left="207.9" Top="75.6" Width="226.8" Height="18.9" Text="审核" Padding="0, 0, 0, 0" Angle="180" Font="微软雅黑, 9pt" TabWidth="20"/>
            <TextObject Name="Text50" Left="480.06" Top="75.6" Width="207.9" Height="18.9" Text="记账" Padding="0, 0, 0, 0" Angle="180" Font="微软雅黑, 9pt" TabWidth="20"/>
          </DataHeaderBand>
          <DataFooterBand Name="DataFooter4" Top="608.45" Width="718.2" Height="170.1">
            <TextObject Name="Text32" Left="275.94" Top="94.5" Width="170.1" Height="37.8" Text="记 账 凭 证" HorzAlign="Center" VertAlign="Center" Angle="180" Font="微软雅黑, 15pt, style=Bold"/>
            <TextObject Name="Text33" Left="274.05" Top="75.6" Width="170.1" Height="18.9" Text="日期：[Table2.account_date1]" HorzAlign="Center" Angle="180" Font="微软雅黑, 9pt"/>
            <TextObject Name="Text36" Top="64.26" Width="105.84" Height="18.9" Text="[Table2.voucher_title_number1][Table2.sharding1]" HorzAlign="Right" Angle="180" Font="微软雅黑, 9pt"/>
            <TextObject Name="Text38" Left="85.05" Top="64.26" Width="94.5" Height="18.9" Text="凭证号：" HorzAlign="Right" Angle="180" Font="微软雅黑, 9pt"/>
            <TextObject Name="Text34" Left="378" Top="45.36" Width="330.75" Height="18.9" Text="核算单位:[Table2.company_name1]" Angle="180" Font="微软雅黑, 9pt"/>
            <TextObject Name="Text35" Top="45.36" Width="105.84" Height="18.9" Text="[Table2.reciept_number1]" HorzAlign="Right" Angle="180" Font="微软雅黑, 9pt"/>
            <TextObject Name="Text37" Left="85.05" Top="45.36" Width="94.5" Height="18.9" Text="附单据数：" HorzAlign="Right" Angle="180" Font="微软雅黑, 9pt"/>
            <ShapeObject Name="Shape3" Left="689.85" Top="141.75" Width="28.35" Height="28.35" Shape="Ellipse"/>
            <TextObject Name="Text78" Left="585.9" Width="122.85" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="摘要" HorzAlign="Center" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt, style=Bold" Clip="false"/>
            <TextObject Name="Text79" Left="387.45" Width="198.45" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="科目" HorzAlign="Center" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt, style=Bold" Clip="false"/>
            <TextObject Name="Text85" Left="330.75" Width="56.7" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="币别" HorzAlign="Center" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt, style=Bold"/>
            <TextObject Name="Text86" Left="274.05" Width="56.7" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="汇率" HorzAlign="Center" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt, style=Bold"/>
            <TextObject Name="Text87" Left="189" Width="85.05" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="原币金额" HorzAlign="Center" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt, style=Bold"/>
            <TextObject Name="Text83" Left="94.5" Width="94.5" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="借方" HorzAlign="Center" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt, style=Bold" Clip="false"/>
            <TextObject Name="Text84" Width="94.5" Height="37.8" Border.Lines="All" Fill.Color="WhiteSmoke" Text="贷方" HorzAlign="Center" VertAlign="Center" Angle="180" Font="微软雅黑, 10pt, style=Bold" Clip="false"/>
          </DataFooterBand>
        </DataBand>
        <DataFooterBand Name="DataFooter1" Top="782.55" Width="718.2" Guides="9.45" RepeatOnEveryPage="true"/>
      </DataBand>
      <DataFooterBand Name="DataFooter2" Top="786.55" Width="718.2" Guides="47.25" RepeatOnEveryPage="true"/>
    </DataBand>
  </ReportPage>
</Report>
