﻿<?xml version="1.0" encoding="utf-8"?>
<inherited BaseReport="..\Base.frx" ScriptLanguage="CSharp" DoublePass="true" ReportInfo.Created="05/15/2013 14:45:40" ReportInfo.Modified="04/03/2015 15:26:18" ReportInfo.CreatorVersion="1.6.57.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 Form1_Shown(object sender, EventArgs e)
    {
      //Shows today's date
      dtpFromDate.Text = System.DateTime.Now.ToString(&quot;d MMMM yyy&quot;);
      dtpToDate.Text = System.DateTime.Now.ToString(&quot;d MMMM yyy&quot;);
      
      cboSupplierName.Items.Insert(0, &quot;All&quot;);
      cboSupplierName.Text = &quot;All&quot;;
      cboOrderBy.Text = cboOrderBy.Items[0].ToString();
    }
            
    
    private void btnOk_Click(object sender, EventArgs e)
    {
      Report.SetParameterValue(&quot;FromDate&quot;, dtpFromDate.Value.ToString(&quot;yyyy-MM-dd&quot;));
      Report.SetParameterValue(&quot;ToDate&quot;, dtpToDate.Value.ToString(&quot;yyyy-MM-dd&quot;));   
      
      TableDataSource tGRV = Report.GetDataSource(&quot;cash_purchases&quot;) as TableDataSource;
      TableDataSource tRET = Report.GetDataSource(&quot;cash_purchases_returns&quot;) as TableDataSource;
      
      //Order the records by...
      string orderBy = String.Empty;
      if (cboOrderBy.Text == &quot;Date&quot;)
       orderBy = &quot;DATE_FORMAT(`Date`,'%Y-%m-%d')&quot;;      
      else if (cboOrderBy.Text == &quot;Document #&quot;)      
        orderBy = &quot;TransID&quot;;      
      else if (cboOrderBy.Text == &quot;Supplier Name&quot;)
        orderBy = &quot;SupplierName&quot;;
      else if (cboOrderBy.Text == &quot;User&quot;)
        orderBy = &quot;User&quot;;       
      tGRV.SelectCommand = tGRV.SelectCommand.ToString().Replace(&quot;@OrderBy&quot;, orderBy);           
      tRET.SelectCommand = tRET.SelectCommand.ToString().Replace(&quot;@OrderBy&quot;, orderBy);
      
      //For a specific Supplier
      string forSupplier = &quot;ID &gt;= 0&quot;;
      if (cboSupplierName.Text != &quot;All&quot;)
        forSupplier = String.Format(&quot;SupplierName = '{0}'&quot;, cboSupplierName.Text);
      tGRV.SelectCommand = tGRV.SelectCommand.ToString().Replace(&quot;@ForSupplier&quot;, forSupplier);
      tRET.SelectCommand = tRET.SelectCommand.ToString().Replace(&quot;@ForSupplier&quot;, forSupplier);
      
    }
          

    private void ReportSummary1_AfterData(object sender, EventArgs e)
    {
      txtTotExcl.Text = (Report.GetTotalValue(&quot;Total_Excl&quot;) - Report.GetTotalValue(&quot;Total_Excl_Returns&quot;)).ToString(); 
      txtTotVAT.Text = (Report.GetTotalValue(&quot;Total_VAT&quot;) - Report.GetTotalValue(&quot;Total_VAT_Returns&quot;)).ToString(); 
      txtTotIncl.Text = (Report.GetTotalValue(&quot;Total_Incl&quot;) - Report.GetTotalValue(&quot;Total_Incl_Returns&quot;)).ToString();       
      
      //Format the total values
      //Use the tryParse method if there is no data to print
      decimal number = 0; 
      if (Decimal.TryParse(txtTotExcl.Text, out number)) 
        txtTotExcl.Text = Convert.ToDecimal(txtTotExcl.Text).ToString(&quot;# ###.00&quot;);
      if (Decimal.TryParse(txtTotVAT.Text, out number)) 
        txtTotVAT.Text = Convert.ToDecimal(txtTotVAT.Text).ToString(&quot;# ###.00&quot;);
      if (Decimal.TryParse(txtTotIncl.Text, out number)) 
        txtTotIncl.Text = Convert.ToDecimal(txtTotIncl.Text).ToString(&quot;# ###.00&quot;); 
    }
  }
}
</ScriptText>
  <Dictionary>
    <MySqlDataConnection Name="Connection" ConnectionString="rijcmlqomabmqtwD7y3BaVO988XrjoBefSoHBX+xGSDpo0d+ot8yrzL17EhRvx7tW87ZuxDTsXprPmiOj80ATh2Aow+2w==">
      <TableDataSource Name="companies" DataType="System.Int32" Enabled="true" TableName="companies" SelectCommand="SELECT * FROM companies WHERE ID = @companyID">
        <Column Name="ID" DataType="System.UInt32"/>
        <Column Name="Name" DataType="System.String"/>
        <Column Name="Email" DataType="System.String"/>
        <Column Name="Address" DataType="System.String"/>
        <Column Name="RegNo" DataType="System.String"/>
        <Column Name="VATno" DataType="System.String"/>
        <Column Name="ContactNo" DataType="System.String"/>
        <Column Name="AltNo" DataType="System.String"/>
        <Column Name="FaxNo" DataType="System.String"/>
        <Column Name="CellNo" DataType="System.String"/>
        <Column Name="LogoPath" DataType="System.String"/>
        <Column Name="InvoiceStylePath" DataType="System.String"/>
        <Column Name="InvoiceSize" DataType="System.String"/>
        <Column Name="VATrate" DataType="System.String"/>
        <Column Name="BankingDetails" DataType="System.String"/>
        <CommandParameter Name="companyID" DataType="254" Expression="[CompanyID]"/>
      </TableDataSource>
      <TableDataSource Name="cash_purchases" DataType="System.Int32" PropName="cash_sales" Enabled="true" TableName="cash_purchases" SelectCommand="SELECT * FROM cash_purchases &#13;&#10;WHERE CompanyID = @CompanyID AND DATE_FORMAT(`Date`,'%Y-%m-%d') BETWEEN DATE_FORMAT(@FromDate,'%Y-%m-%d') AND DATE_FORMAT(@ToDate,'%Y-%m-%d') &#13;&#10;AND @ForSupplier &#13;&#10;ORDER BY @OrderBy">
        <Column Name="ID" DataType="System.UInt32"/>
        <Column Name="CompanyID" DataType="System.UInt32"/>
        <Column Name="Date" DataType="System.DateTime"/>
        <Column Name="ComputerName" DataType="System.String"/>
        <Column Name="SlipNote" DataType="System.String"/>
        <Column Name="Custom1" DataType="System.String"/>
        <Column Name="Custom2" DataType="System.String"/>
        <Column Name="Custom3" DataType="System.String"/>
        <Column Name="Custom4" DataType="System.String"/>
        <Column Name="Custom5" DataType="System.String"/>
        <Column Name="Custom6" DataType="System.String"/>
        <Column Name="TotalExcl" DataType="System.Decimal"/>
        <Column Name="TotalVAT" DataType="System.Decimal"/>
        <Column Name="TotalIncl" DataType="System.Decimal"/>
        <Column Name="TotalPaid" DataType="System.Decimal"/>
        <Column Name="TransID" DataType="System.UInt32"/>
        <Column Name="User" DataType="System.String"/>
        <Column Name="SupplierID" DataType="System.UInt32"/>
        <Column Name="SupplierName" DataType="System.String"/>
        <Column Name="InvoiceNo" DataType="System.String"/>
        <Column Name="InvoiceDate" DataType="System.DateTime"/>
        <CommandParameter Name="companyID" DataType="254" Expression="[CompanyID]" DefaultValue=" "/>
        <CommandParameter Name="fromDate" DataType="254" Expression="[FromDate]"/>
        <CommandParameter Name="toDate" DataType="254" Expression="[ToDate]"/>
        <CommandParameter Name="OrderBy" DataType="254"/>
        <CommandParameter Name="ForSupplier" DataType="254"/>
      </TableDataSource>
      <TableDataSource Name="cash_purchases_returns" DataType="System.Int32" PropName="cash_refunds" Enabled="true" TableName="cash_purchases_returns" SelectCommand="SELECT * FROM cash_purchases_returns &#13;&#10;WHERE CompanyID = @CompanyID AND DATE_FORMAT(`Date`,'%Y-%m-%d') BETWEEN DATE_FORMAT(@FromDate,'%Y-%m-%d') AND DATE_FORMAT(@ToDate,'%Y-%m-%d') &#13;&#10;AND @ForSupplier &#13;&#10;ORDER BY @OrderBy">
        <Column Name="ID" DataType="System.UInt32"/>
        <Column Name="CompanyID" DataType="System.UInt32"/>
        <Column Name="Date" DataType="System.DateTime"/>
        <Column Name="ComputerName" DataType="System.String"/>
        <Column Name="SlipNote" DataType="System.String"/>
        <Column Name="TotalExcl" DataType="System.Decimal"/>
        <Column Name="TotalVAT" DataType="System.Decimal"/>
        <Column Name="TotalIncl" DataType="System.Decimal"/>
        <Column Name="TransID" DataType="System.UInt32"/>
        <Column Name="ReturnDate" DataType="System.DateTime"/>
        <Column Name="User" DataType="System.String"/>
        <Column Name="SupplierID" DataType="System.UInt32"/>
        <Column Name="SupplierName" DataType="System.String"/>
        <Column Name="RelatedTransID" DataType="System.UInt32"/>
        <CommandParameter Name="companyID" DataType="254" Expression="[CompanyID]"/>
        <CommandParameter Name="fromDate" DataType="254" Expression="[FromDate]"/>
        <CommandParameter Name="toDate" DataType="254" Expression="[ToDate]"/>
        <CommandParameter Name="OrderBy" DataType="254"/>
        <CommandParameter Name="ForSupplier" DataType="254"/>
      </TableDataSource>
      <TableDataSource Name="cash_suppliers" DataType="System.Int32" PropName="Table" Enabled="true" TableName="cash_suppliers" SelectCommand="SELECT Name FROM suppliers WHERE CompanyID = @CompanyID &#13;&#10;ORDER BY Name">
        <Column Name="Name" DataType="System.String"/>
        <CommandParameter Name="CompanyID" DataType="254" Expression="[CompanyID]"/>
      </TableDataSource>
    </MySqlDataConnection>
    <Parameter Name="CompanyID" DataType="System.Int32"/>
    <Parameter Name="FromDate" DataType="System.String"/>
    <Parameter Name="ToDate" DataType="System.String"/>
    <Total Name="Total_Excl" Expression="[cash_purchases.TotalExcl]" Evaluator="Data1" ResetAfterPrint="false"/>
    <Total Name="Total_VAT" Expression="[cash_purchases.TotalVAT]" Evaluator="Data1" ResetAfterPrint="false"/>
    <Total Name="Total_Incl" Expression="[cash_purchases.TotalIncl]" Evaluator="Data1" ResetAfterPrint="false"/>
    <Total Name="Count_Qty" TotalType="Count" Evaluator="Data1"/>
    <Total Name="Total_Excl_Returns" Expression="[cash_purchases_returns.TotalExcl]" Evaluator="Data2" PrintOn="GroupFooter1" ResetAfterPrint="false"/>
    <Total Name="Total_VAT_Returns" Expression="[cash_purchases_returns.TotalVAT]" Evaluator="Data2" PrintOn="GroupFooter1" ResetAfterPrint="false"/>
    <Total Name="Total_Incl_Returns" Expression="[cash_purchases_returns.TotalIncl]" Evaluator="Data2" PrintOn="GroupFooter1" ResetAfterPrint="false"/>
    <Total Name="Count_Qty_Returns" TotalType="Count" Evaluator="Data2" PrintOn="GroupFooter1"/>
  </Dictionary>
  <inherited Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" FirstPageSource="15" OtherPagesSource="15">
    <inherited Name="PageHeader1" Width="1047.06" Height="47.25">
      <inherited Name="_CompanyName"/>
      <ChildBand Name="Child1" ZOrder="-1" Top="51.25" Width="1047.06" Height="66.15">
        <TextObject Name="Text31" Left="18.9" Top="9.45" Width="557.55" Height="56.7" Text="Transactions - Cash Purchases &amp; Returns" Font="Segoe UI Light, 22pt" TextFill.Color="OliveDrab"/>
        <TextObject Name="Text80" Left="841.05" Top="9.45" Width="189" Height="18.9" Text="[FromDate]" Format="Custom" Format.Format="d MMMM yyy"/>
        <TextObject Name="Text81" Left="841.05" Top="37.8" Width="189" Height="18.9" Text="[ToDate]" Format="Custom" Format.Format="d MMMM yyy"/>
        <TextObject Name="Text22" Left="727.65" Top="9.45" Width="94.5" Height="18.9" Text="From Date:" HorzAlign="Right" TextFill.Color="DimGray"/>
        <TextObject Name="Text23" Left="727.65" Top="37.8" Width="94.5" Height="18.9" Text="To Date:" HorzAlign="Right" TextFill.Color="DimGray"/>
      </ChildBand>
    </inherited>
    <GroupHeaderBand Name="GroupHeader2" ZOrder="0" Top="121.4" Width="1047.06" Height="94.5" RepeatOnEveryPage="true" Condition="[cash_purchases.CompanyID]" SortOrder="None">
      <ShapeObject Name="Shape9" Top="9.45" Width="406.35" Height="47.25" Border.Color="Transparent" Fill="LinearGradient" Fill.StartColor="WhiteSmoke" Fill.EndColor="White" Fill.Angle="270" Fill.Focus="1" Fill.Contrast="0.89" Shape="RoundRectangle"/>
      <TextObject Name="Text83" Left="9.45" Top="18.9" Width="179.55" Height="28.35" Text="Cash Purchases" Font="Segoe UI Light, 14pt" TextFill.Color="DodgerBlue"/>
      <ShapeObject Name="Shape7" Top="47.25" Width="1039.5" Height="37.8" Border.Color="Transparent" Fill.Color="WhiteSmoke" Shape="RoundRectangle"/>
      <TextObject Name="Text15" Left="9.45" Top="56.7" Width="94.5" Height="18.9" Text="Date"/>
      <TextObject Name="Text14" Left="141.75" Top="56.7" Width="94.5" Height="18.9" Text="Document #" HorzAlign="Right"/>
      <TextObject Name="Text6" Left="500.85" Top="56.7" Width="113.4" Height="18.9" Text="User"/>
      <TextObject Name="Text8" Left="727.65" Top="56.7" Width="94.5" Height="18.9" Text="Total Excl" HorzAlign="Right"/>
      <TextObject Name="Text10" Left="831.6" Top="56.7" Width="85.05" Height="18.9" Text="Total VAT" HorzAlign="Right"/>
      <TextObject Name="Text12" Left="926.1" Top="56.7" Width="94.5" Height="18.9" Text="Total Incl" HorzAlign="Right"/>
      <TextObject Name="Text13" Left="245.7" Top="56.7" Width="179.55" Height="18.9" Text="Supplier Name"/>
      <TextObject Name="Text104" Left="623.7" Top="56.7" Width="94.5" Height="18.9" Text="Supplier Inv #" HorzAlign="Right"/>
      <DataBand Name="Data1" Top="219.9" Width="1047.06" Height="18.9" DataSource="cash_purchases">
        <TextObject Name="Text3" Left="9.45" Width="122.85" Height="18.9" Text="[cash_purchases.Date]" Format="Custom" Format.Format="yyy/MM/dd HH:mm"/>
        <TextObject Name="Text4" Left="245.7" Width="245.7" Height="18.9" Text="[cash_purchases.SupplierName]" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text5" Left="500.85" Width="113.4" Height="18.9" Text="[cash_purchases.User]" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text7" Left="727.65" Width="94.5" Height="18.9" Text="[cash_purchases.TotalExcl]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text9" Left="831.6" Width="85.05" Height="18.9" Text="[cash_purchases.TotalVAT]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text11" Left="926.1" Width="94.5" Height="18.9" Text="[cash_purchases.TotalIncl]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text1" Left="141.75" Width="94.5" Height="18.9" Text="[cash_purchases.TransID]" HorzAlign="Right"/>
        <TextObject Name="Text2" Left="623.7" Width="94.5" Height="18.9" Text="[cash_purchases.InvoiceNo]" HorzAlign="Right"/>
      </DataBand>
      <GroupFooterBand Name="GroupFooter2" Top="242.8" Width="1047.06" Height="56.7" AfterDataEvent="GroupFooter2_AfterData">
        <ShapeObject Name="Shape8" Top="9.45" Width="1039.5" Height="37.8" Border.Color="WhiteSmoke" Fill.Color="WhiteSmoke" Shape="RoundRectangle"/>
        <TextObject Name="Text82" Left="18.9" Top="18.9" Width="160.65" Height="18.9" Text="Transaction Qty:" HorzAlign="Right" TextFill.Color="DimGray"/>
        <TextObject Name="Text16" Left="727.65" Top="18.9" Width="94.5" Height="18.9" Text="[Total_Excl]" Format="Number" Format.UseLocale="true" HorzAlign="Right"/>
        <TextObject Name="Text17" Left="831.6" Top="18.9" Width="85.05" Height="18.9" Text="[Total_VAT]" Format="Number" Format.UseLocale="true" HorzAlign="Right"/>
        <TextObject Name="Text18" Left="926.1" Top="18.9" Width="94.5" Height="18.9" Text="[Total_Incl]" Format="Number" Format.UseLocale="true" HorzAlign="Right"/>
        <TextObject Name="Text19" Left="189" Top="18.9" Width="94.5" Height="18.9" Text="[Count_Qty]"/>
      </GroupFooterBand>
    </GroupHeaderBand>
    <GroupHeaderBand Name="GroupHeader1" ZOrder="1" Top="307.5" Width="1047.06" Height="94.5" RepeatOnEveryPage="true" Condition="[cash_purchases_returns.CompanyID]" SortOrder="None">
      <ShapeObject Name="Shape14" Top="9.45" Width="406.35" Height="47.25" Border.Color="Transparent" Fill="LinearGradient" Fill.StartColor="WhiteSmoke" Fill.EndColor="White" Fill.Angle="270" Fill.Focus="1" Fill.Contrast="0.89" Shape="RoundRectangle"/>
      <TextObject Name="Text91" Left="9.45" Top="18.9" Width="264.6" Height="28.35" Text="Cash Purchase Returns" Font="Segoe UI Light, 14pt" TextFill.Color="Red"/>
      <ShapeObject Name="Shape10" Top="47.25" Width="1039.5" Height="37.8" Border.Color="Transparent" Fill.Color="WhiteSmoke" Shape="RoundRectangle"/>
      <TextObject Name="Text84" Left="141.75" Top="56.7" Width="94.5" Height="18.9" Text="Document #" HorzAlign="Right"/>
      <TextObject Name="Text85" Left="500.85" Top="56.7" Width="113.4" Height="18.9" Text="User"/>
      <TextObject Name="Text86" Left="727.65" Top="56.7" Width="94.5" Height="18.9" Text="Total Excl" HorzAlign="Right"/>
      <TextObject Name="Text87" Left="831.6" Top="56.7" Width="85.05" Height="18.9" Text="Total VAT" HorzAlign="Right"/>
      <TextObject Name="Text88" Left="926.1" Top="56.7" Width="94.5" Height="18.9" Text="Total Incl" HorzAlign="Right"/>
      <TextObject Name="Text89" Left="245.7" Top="56.7" Width="179.55" Height="18.9" Text="Supplier Name"/>
      <TextObject Name="Text90" Left="9.45" Top="56.7" Width="94.5" Height="18.9" Text="Date"/>
      <TextObject Name="Text105" Left="623.7" Top="56.7" Width="94.5" Height="18.9" Text="Orig. Doc. #" HorzAlign="Right"/>
      <DataHeaderBand Name="DataHeader1" Top="303.5" Width="1047.06" StartNewPage="true"/>
      <DataBand Name="Data2" Top="406" Width="1047.06" Height="18.9" DataSource="cash_purchases_returns">
        <TextObject Name="Text92" Left="9.45" Width="122.85" Height="18.9" Text="[cash_purchases_returns.Date]" Format="Custom" Format.Format="yyy/MM/dd HH:mm"/>
        <TextObject Name="Text93" Left="245.7" Width="245.7" Height="18.9" Text="[cash_purchases_returns.SupplierName]" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text94" Left="500.85" Width="113.4" Height="18.9" Text="[cash_purchases_returns.User]" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text95" Left="727.65" Width="94.5" Height="18.9" Text="[cash_purchases_returns.TotalExcl]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text96" Left="831.6" Width="85.05" Height="18.9" Text="[cash_purchases_returns.TotalVAT]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text97" Left="926.1" Width="94.5" Height="18.9" Text="[cash_purchases_returns.TotalIncl]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text98" Left="141.75" Width="94.5" Height="18.9" Text="[cash_purchases_returns.TransID]" HorzAlign="Right"/>
        <TextObject Name="Text26" Left="623.7" Width="94.5" Height="18.9" Text="[cash_purchases_returns.RelatedTransID]" HorzAlign="Right"/>
      </DataBand>
      <GroupFooterBand Name="GroupFooter1" Top="428.9" Width="1047.06" Height="56.7" AfterDataEvent="GroupFooter1_AfterData">
        <ShapeObject Name="Shape12" Top="9.45" Width="1039.5" Height="37.8" Border.Color="WhiteSmoke" Fill.Color="WhiteSmoke" Shape="RoundRectangle"/>
        <TextObject Name="Text99" Left="18.9" Top="18.9" Width="160.65" Height="18.9" Text="Transaction Qty:" HorzAlign="Right" TextFill.Color="DimGray"/>
        <TextObject Name="Text20" Left="727.65" Top="18.9" Width="94.5" Height="18.9" Text="[Total_Excl_Returns]" Format="Number" Format.UseLocale="true" HorzAlign="Right"/>
        <TextObject Name="Text21" Left="831.6" Top="18.9" Width="85.05" Height="18.9" Text="[Total_VAT_Returns]" Format="Number" Format.UseLocale="true" HorzAlign="Right"/>
        <TextObject Name="Text24" Left="926.1" Top="18.9" Width="94.5" Height="18.9" Text="[Total_Incl_Returns]" Format="Number" Format.UseLocale="true" HorzAlign="Right"/>
        <TextObject Name="Text25" Left="189" Top="18.9" Width="94.5" Height="18.9" Text="[Count_Qty_Returns]"/>
      </GroupFooterBand>
    </GroupHeaderBand>
    <ReportSummaryBand Name="ReportSummary1" ZOrder="-1" Top="489.6" Width="1047.06" Height="66.15" AfterDataEvent="ReportSummary1_AfterData">
      <ShapeObject Name="Shape13" Left="567" Top="18.9" Width="472.5" Height="37.8" Border.Color="Gainsboro" Fill.Color="WhiteSmoke" Shape="RoundRectangle"/>
      <TextObject Name="txtTotVAT" Left="831.6" Top="28.35" Width="85.05" Height="18.9" Text="0.00" Format="Number" Format.UseLocale="false" Format.DecimalDigits="2" Format.DecimalSeparator="." Format.GroupSeparator=" " Format.NegativePattern="1" HorzAlign="Right"/>
      <TextObject Name="txtTotExcl" Left="727.65" Top="28.35" Width="94.5" Height="18.9" Text="0.00" Format="Number" Format.UseLocale="false" Format.DecimalDigits="2" Format.DecimalSeparator="." Format.GroupSeparator=" " Format.NegativePattern="1" HorzAlign="Right"/>
      <TextObject Name="txtTotIncl" Left="926.1" Top="28.35" Width="94.5" Height="18.9" Text="0.00" Format="Number" Format.UseLocale="false" Format.DecimalDigits="2" Format.DecimalSeparator="." Format.GroupSeparator=" " Format.NegativePattern="1" HorzAlign="Right"/>
      <TextObject Name="Text103" Left="604.8" Top="28.35" Width="75.6" Height="18.9" Text="Totals:" HorzAlign="Right" TextFill.Color="DimGray"/>
    </ReportSummaryBand>
    <PageFooterBand Name="PageFooter1" ZOrder="-1" Top="559.75" Width="1047.06" Height="37.8">
      <TextObject Name="Text36" Left="9.45" Top="9.45" Width="94.5" Height="18.9" Text="[PageNofM]" Font="Arial, 9pt" TextFill.Color="DimGray"/>
      <TextObject Name="Text79" Left="765.45" Top="9.45" Width="94.5" Height="18.9" Text="Print Date:" HorzAlign="Right" TextFill.Color="DimGray"/>
      <TextObject Name="Text78" Left="869.4" Top="9.45" Width="160.65" Height="18.9" Text="[Date]" TextFill.Color="DimGray"/>
    </PageFooterBand>
  </inherited>
  <DialogPage Name="Form1" ZOrder="1" Width="634" Height="398" AcceptButton="btnOk" CancelButton="btnCancel" LoadEvent="" ShownEvent="Form1_Shown">
    <ButtonControl Name="btnOk" Left="430" Top="307" Width="83" Height="40" Anchor="Bottom, Right" Font="Segoe UI, 11pt" TabIndex="0" Text="OK" ClickEvent="btnOk_Click" DialogResult="OK"/>
    <ButtonControl Name="btnCancel" Left="521" Top="307" Width="83" Height="40" Anchor="Bottom, Right" Font="Segoe UI, 11pt" TabIndex="1" Text="Cancel" DialogResult="Cancel"/>
    <DateTimePickerControl Name="dtpFromDate" Left="228" Top="96" Width="236" Height="27" Font="Segoe UI, 11pt" ForeColor="DimGray" TabIndex="2" Text="2 January 2014" CustomFormat="d MMMM yyy" Format="Custom" Value="01/02/2014 16:15:55"/>
    <DateTimePickerControl Name="dtpToDate" Left="228" Top="136" Width="236" Height="27" Font="Segoe UI, 11pt" ForeColor="DimGray" TabIndex="3" Text="2 January 2014" CustomFormat="d MMMM yyy" Format="Custom" Value="01/02/2014 16:14:02"/>
    <LabelControl Name="Label1" Left="72" Top="100" Width="74" Height="20" Font="Segoe UI Light, 11pt" TabIndex="4" Text="From Date"/>
    <LabelControl Name="Label2" Left="72" Top="136" Width="56" Height="20" Font="Segoe UI Light, 11pt" TabIndex="5" Text="To Date"/>
    <LabelControl Name="Label3" Left="16" Top="24" Width="464" Height="37" Font="Segoe UI Light, 20pt" ForeColor="OliveDrab" TabIndex="6" Text="Transactions - Cash Purchases &amp;&amp; Returns"/>
    <ComboBoxControl Name="cboOrderBy" Left="228" Top="228" Width="233" Height="28" Font="Segoe UI Light, 11pt" TabIndex="7" ClickEvent="" DropDownStyle="DropDownList" DropDownWidth="233" ItemHeight="20" ItemsText="Document #&#13;&#10;Date&#13;&#10;Supplier Name&#13;&#10;User"/>
    <LabelControl Name="Label4" Left="72" Top="228" Width="116" Height="20" Font="Segoe UI Light, 11pt" TabIndex="5" Text="Order records By"/>
    <ComboBoxControl Name="cboSupplierName" Left="228" Top="188" Width="341" Height="28" Font="Segoe UI Light, 11pt" TabIndex="7" ClickEvent="" DataColumn="cash_suppliers.Name" DropDownStyle="DropDownList" DropDownWidth="233" ItemHeight="20"/>
    <LabelControl Name="Label5" Left="72" Top="188" Width="83" Height="20" Font="Segoe UI Light, 11pt" TabIndex="5" Text="For Supplier"/>
  </DialogPage>
</inherited>
