﻿<?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="08/06/2015 08:27:14" 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;);
      
      cboClientName.Items.Insert(0, &quot;All&quot;);
      cboClientName.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 tSales = Report.GetDataSource(&quot;cash_sales&quot;) as TableDataSource;
      TableDataSource tRefunds = Report.GetDataSource(&quot;cash_refunds&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;Client Name&quot;)
        orderBy = &quot;ClientName&quot;;
      else if (cboOrderBy.Text == &quot;User&quot;)
        orderBy = &quot;SalesRep&quot;;       
      tSales.SelectCommand = tSales.SelectCommand.ToString().Replace(&quot;@OrderBy&quot;, orderBy);           
      tRefunds.SelectCommand = tRefunds.SelectCommand.ToString().Replace(&quot;@OrderBy&quot;, orderBy);
      
      //For a specific client
      string forClient = &quot;ID &gt;= 0&quot;;
      if (cboClientName.Text != &quot;All&quot;)
        forClient = String.Format(&quot;ClientName = '{0}'&quot;, cboClientName.Text);
      tSales.SelectCommand = tSales.SelectCommand.ToString().Replace(&quot;@ForClient&quot;, forClient);
      tRefunds.SelectCommand = tRefunds.SelectCommand.ToString().Replace(&quot;@ForClient&quot;, forClient);
      
    }
          

    private void ReportSummary1_AfterData(object sender, EventArgs e)
    {
      txtTotExcl.Text = (Report.GetTotalValue(&quot;Total_Excl&quot;) - Report.GetTotalValue(&quot;Total_Excl_Refunds&quot;)).ToString(); 
      txtTotVAT.Text = (Report.GetTotalValue(&quot;Total_VAT&quot;) - Report.GetTotalValue(&quot;Total_VAT_Refunds&quot;)).ToString(); 
      txtTotIncl.Text = (Report.GetTotalValue(&quot;Total_Incl&quot;) - Report.GetTotalValue(&quot;Total_Incl_Refunds&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="rijcmlqAxB5REKUT+dukMQH3sU+xfro0FofBDRUyaCSfcX7GxNGUjye309ffYebJwk+OhpeS4a7rwkxMHL/wX5pA4bBxw==">
      <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_sales" DataType="System.Int32" Enabled="true" TableName="cash_sales" SelectCommand="SELECT * FROM cash_sales &#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 @ForClient &#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="SalesRep" DataType="System.String"/>
        <Column Name="ClientID" DataType="System.UInt32"/>
        <Column Name="ClientName" 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="DeliveryAddress" DataType="System.String"/>
        <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="ForClient" DataType="254"/>
      </TableDataSource>
      <TableDataSource Name="cash_refunds" DataType="System.Int32" Enabled="true" TableName="cash_refunds" SelectCommand="SELECT * FROM cash_refunds &#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 @ForClient &#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="SalesRep" DataType="System.String"/>
        <Column Name="ClientID" DataType="System.UInt32"/>
        <Column Name="ClientName" 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"/>
        <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="ForClient" DataType="254"/>
      </TableDataSource>
      <TableDataSource Name="Table" Alias="cash_clients" DataType="System.Int32" Enabled="true" SelectCommand="SELECT Name FROM clients 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_sales.TotalExcl]" Evaluator="Data1" ResetAfterPrint="false"/>
    <Total Name="Total_VAT" Expression="[cash_sales.TotalVAT]" Evaluator="Data1" ResetAfterPrint="false"/>
    <Total Name="Total_Incl" Expression="[cash_sales.TotalIncl]" Evaluator="Data1" ResetAfterPrint="false"/>
    <Total Name="Count_Qty" TotalType="Count" Evaluator="Data1"/>
    <Total Name="Total_Excl_Refunds" Expression="[cash_refunds.TotalExcl]" Evaluator="Data2" PrintOn="GroupFooter1" ResetAfterPrint="false"/>
    <Total Name="Total_VAT_Refunds" Expression="[cash_refunds.TotalVAT]" Evaluator="Data2" PrintOn="GroupFooter1" ResetAfterPrint="false"/>
    <Total Name="Total_Incl_Refunds" Expression="[cash_refunds.TotalIncl]" Evaluator="Data2" PrintOn="GroupFooter1" ResetAfterPrint="false"/>
    <Total Name="Count_Qty_Refunds" 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="689.85" Height="56.7" Text="Transactions - Cash Sales &amp; Refunds" 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_sales.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 Sales" 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="170.1" Top="56.7" Width="94.5" Height="18.9" Text="Document #" HorzAlign="Right"/>
      <TextObject Name="Text6" Left="548.1" Top="56.7" Width="141.75" Height="18.9" Text="User"/>
      <TextObject Name="Text8" Left="699.3" Top="56.7" Width="94.5" Height="18.9" Text="Total Excl" HorzAlign="Right"/>
      <TextObject Name="Text10" Left="803.25" Top="56.7" Width="94.5" Height="18.9" Text="Total VAT" HorzAlign="Right"/>
      <TextObject Name="Text12" Left="907.2" Top="56.7" Width="94.5" Height="18.9" Text="Total Incl" HorzAlign="Right"/>
      <TextObject Name="Text13" Left="274.05" Top="56.7" Width="94.5" Height="18.9" Text="Client Name"/>
      <DataBand Name="Data1" Top="219.9" Width="1047.06" Height="18.9" DataSource="cash_sales">
        <TextObject Name="Text3" Left="9.45" Width="151.2" Height="18.9" Text="[cash_sales.Date]" Format="Custom" Format.Format="yyy/MM/dd HH:mm"/>
        <TextObject Name="Text4" Left="274.05" Width="264.6" Height="18.9" Text="[cash_sales.ClientName]" WordWrap="false"/>
        <TextObject Name="Text5" Left="548.1" Width="141.75" Height="18.9" Text="[cash_sales.SalesRep]"/>
        <TextObject Name="Text7" Left="699.3" Width="94.5" Height="18.9" Text="[cash_sales.TotalExcl]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text9" Left="803.25" Width="94.5" Height="18.9" Text="[cash_sales.TotalVAT]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text11" Left="907.2" Width="94.5" Height="18.9" Text="[cash_sales.TotalIncl]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text1" Left="170.1" Width="94.5" Height="18.9" Text="[cash_sales.TransID]" 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="699.3" Top="18.9" Width="94.5" Height="18.9" Text="[Total_Excl]" Format="Number" Format.UseLocale="true" HorzAlign="Right"/>
        <TextObject Name="Text17" Left="803.25" Top="18.9" Width="94.5" Height="18.9" Text="[Total_VAT]" Format="Number" Format.UseLocale="true" HorzAlign="Right"/>
        <TextObject Name="Text18" Left="907.2" 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_refunds.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="179.55" Height="28.35" Text="Cash Refunds" 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="170.1" Top="56.7" Width="94.5" Height="18.9" Text="Document #" HorzAlign="Right"/>
      <TextObject Name="Text85" Left="548.1" Top="56.7" Width="141.75" Height="18.9" Text="User"/>
      <TextObject Name="Text86" Left="699.3" Top="56.7" Width="94.5" Height="18.9" Text="Total Excl" HorzAlign="Right"/>
      <TextObject Name="Text87" Left="803.25" Top="56.7" Width="94.5" Height="18.9" Text="Total VAT" HorzAlign="Right"/>
      <TextObject Name="Text88" Left="907.2" Top="56.7" Width="94.5" Height="18.9" Text="Total Incl" HorzAlign="Right"/>
      <TextObject Name="Text89" Left="274.05" Top="56.7" Width="94.5" Height="18.9" Text="Client Name"/>
      <TextObject Name="Text90" Left="9.45" Top="56.7" Width="94.5" Height="18.9" Text="Date"/>
      <DataHeaderBand Name="DataHeader1" Top="303.5" Width="1047.06" StartNewPage="true"/>
      <DataBand Name="Data2" Top="406" Width="1047.06" Height="18.9" DataSource="cash_refunds">
        <TextObject Name="Text92" Left="9.45" Width="151.2" Height="18.9" Text="[cash_refunds.Date]" Format="Custom" Format.Format="yyy/MM/dd HH:mm"/>
        <TextObject Name="Text93" Left="274.05" Width="264.6" Height="18.9" Text="[cash_refunds.ClientName]" WordWrap="false"/>
        <TextObject Name="Text94" Left="548.1" Width="141.75" Height="18.9" Text="[cash_refunds.SalesRep]"/>
        <TextObject Name="Text95" Left="699.3" Width="94.5" Height="18.9" Text="[cash_refunds.TotalExcl]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text96" Left="803.25" Width="94.5" Height="18.9" Text="[cash_refunds.TotalVAT]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text97" Left="907.2" Width="94.5" Height="18.9" Text="[cash_refunds.TotalIncl]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
        <TextObject Name="Text98" Left="170.1" Width="94.5" Height="18.9" Text="[cash_refunds.TransID]" 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="699.3" Top="18.9" Width="94.5" Height="18.9" Text="[Total_Excl_Refunds]" Format="Number" Format.UseLocale="true" HorzAlign="Right"/>
        <TextObject Name="Text21" Left="803.25" Top="18.9" Width="94.5" Height="18.9" Text="[Total_VAT_Refunds]" Format="Number" Format.UseLocale="true" HorzAlign="Right"/>
        <TextObject Name="Text24" Left="907.2" Top="18.9" Width="94.5" Height="18.9" Text="[Total_Incl_Refunds]" Format="Number" Format.UseLocale="true" HorzAlign="Right"/>
        <TextObject Name="Text25" Left="189" Top="18.9" Width="94.5" Height="18.9" Text="[Count_Qty_Refunds]"/>
      </GroupFooterBand>
    </GroupHeaderBand>
    <ReportSummaryBand Name="ReportSummary1" ZOrder="-1" Top="489.6" Width="1047.06" Height="66.15" AfterDataEvent="ReportSummary1_AfterData">
      <ShapeObject Name="Shape13" Left="444.15" Top="18.9" Width="595.35" Height="37.8" Border.Color="Gainsboro" Fill.Color="WhiteSmoke" Shape="RoundRectangle"/>
      <TextObject Name="txtTotVAT" Left="803.25" 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="txtTotExcl" Left="699.3" 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="907.2" 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="491.4" Top="28.35" Width="189" Height="18.9" Text="Totals (Sales - Refunds):" 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="446" Top="307" Height="40" Anchor="Bottom, Right" Font="Segoe UI, 11pt" TabIndex="0" Text="OK" ClickEvent="btnOk_Click" DialogResult="OK"/>
    <ButtonControl Name="btnCancel" Left="529" Top="307" Height="40" Anchor="Bottom, Right" Font="Segoe UI, 11pt" TabIndex="1" Text="Cancel" DialogResult="Cancel"/>
    <DateTimePickerControl Name="dtpFromDate" Left="220" 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="220" 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="396" Height="37" Font="Segoe UI Light, 20pt" ForeColor="OliveDrab" TabIndex="6" Text="Transactions - Cash Sales &amp; Refunds"/>
    <ComboBoxControl Name="cboOrderBy" Left="220" 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;Client 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="cboClientName" Left="220" Top="188" Width="341" Height="28" Font="Segoe UI Light, 11pt" TabIndex="7" ClickEvent="" DataColumn="cash_clients.Name" DropDownStyle="DropDownList" DropDownWidth="233" ItemHeight="20"/>
    <LabelControl Name="Label5" Left="72" Top="188" Width="68" Height="20" Font="Segoe UI Light, 11pt" TabIndex="5" Text="For Client"/>
  </DialogPage>
</inherited>
