﻿<?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="06/27/2015 09:45:51" 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 btnOk_Click(object sender, EventArgs e)
    {
      //Report.SetParameterValue(&quot;OrderBy&quot;, cboOrderBy.Text); DOES NOT WORK ?????
      TableDataSource tProducts = Report.GetDataSource(&quot;products&quot;) as TableDataSource;
      string costColumn = &quot;CostPrice&quot;;
      string sellingColumn = &quot;SellingPrice&quot;;
      
      //Set the Headers for the report
      if (chkShowCost.Checked)
      {          
        if (optCostAsTotal.Checked)
        {
          txtHeaderCost.Text = &quot;Total Cost&quot;;
          costColumn = &quot;CostPrice * QtyAvailable&quot;;
        }
        else 
        {
          txtHeaderCost.Text = &quot;Unit Cost&quot;; 
        }
      }
      else
      {
        txtHeaderCost.Visible = false;
        txtCostData.Visible = false; 
        txtTotalCost.Visible = false;
      }
      
      if (chkShowRetail.Checked)
      {
        if (optRetailAsTotal.Checked)
        {
          txtHeaderSelling.Text = &quot;Total Selling&quot;;
          if (chkSellingIncludeTax.Checked)
            sellingColumn = &quot;SellingPriceIncl * QtyAvailable&quot;;
          else
            sellingColumn = &quot;SellingPrice * QtyAvailable&quot;;
        }
        else
        {
          txtHeaderSelling.Text = &quot;Unit Selling&quot;;
          if (chkSellingIncludeTax.Checked)
            sellingColumn = &quot;SellingPriceIncl&quot;;
        }
      }
      else
      {
        txtHeaderSelling.Visible = false;
        txtRetailData.Visible = false;
        txtTotalSelling.Visible = false;
      }
      
      //Replaces the @CostColumn &amp; @SellingColumn strings
      tProducts.SelectCommand = tProducts.SelectCommand.ToString().Replace(&quot;@CostColumn&quot;, costColumn);
      tProducts.SelectCommand = tProducts.SelectCommand.ToString().Replace(&quot;@SellingColumn&quot;, sellingColumn);
      
      if (!chkShowQty.Checked)
      {
        txtHeaderQty.Visible = false;
        txtQty.Visible = false;
      }  
      
      
       
      string orderBy = String.Empty;
      if (cboOrderBy.Text == &quot;Item code&quot;)
        orderBy = &quot;ProductCode&quot;;      
      else if (cboOrderBy.Text == &quot;Description&quot;)      
        orderBy = &quot;Description&quot;;      
      else if (cboOrderBy.Text == &quot;Qty Available&quot;)
        orderBy = &quot;QtyAvailable DESC&quot;;
      tProducts.SelectCommand = tProducts.SelectCommand.ToString().Replace(&quot;@OrderBy&quot;, orderBy);
      
      string selection = String.Empty;
      string excludeZeroQtys = String.Empty;
      if (chkExcludeZeroQtys.Checked) 
        excludeZeroQtys = &quot; AND QtyAvailable &lt;&gt; 0&quot;;
      
      if (cboSelection.Text == &quot;All&quot;)
      {
        txtSelectionFeedback.Text = &quot;Selection: All&quot;;
        selection = &quot;ID &gt; 0&quot; + excludeZeroQtys;
      }
      else if (cboSelection.Text == &quot;Products Only&quot;)
      {
        txtSelectionFeedback.Text = &quot;Selection: Products Only&quot;;
        selection = &quot;IsProduct = 1&quot; + excludeZeroQtys;
      }
      else if (cboSelection.Text == &quot;Services Only&quot;)
      {
        txtSelectionFeedback.Text = &quot;Selection: Services Only&quot;;
        selection = &quot;IsProduct = 0&quot;;
      }
      else if (cboSelection.Text == &quot;Category =&quot;)
      {
        txtSelectionFeedback.Text = &quot;Selection: Category = &quot; + cboCategory.Text;
        selection = &quot;Category = '&quot; + cboCategory.Text + &quot;'&quot; + excludeZeroQtys;
      }
      else if (cboSelection.Text == &quot;Sub Category =&quot;)
      {
        txtSelectionFeedback.Text = &quot;Selection: Sub Category = &quot; + cboSubCategory.Text;
        selection = &quot;SubCategory = '&quot; + cboSubCategory.Text + &quot;'&quot; + excludeZeroQtys; 
      }
      else if (cboSelection.Text == &quot;Location =&quot;)
      {
        txtSelectionFeedback.Text = &quot;Selection: Location = &quot; + cboLocation.Text;
        selection = &quot;Location = '&quot; + cboLocation.Text + &quot;'&quot; + excludeZeroQtys;
      }
      else if (cboSelection.Text == &quot;Sub Location =&quot;)
      {
        txtSelectionFeedback.Text = &quot;Selection: Sub Location = &quot; + cboSubLocation.Text;
        selection = &quot;SubLocation = '&quot; + cboSubLocation.Text + &quot;'&quot; + excludeZeroQtys; 
      }
      else if (cboSelection.Text == &quot;Below Min. Qty&quot;)
      {
        txtSelectionFeedback.Text = &quot;Selection: Items below Min. Qty&quot;;
        selection = &quot;QtyAvailable &lt; MinQty&quot; + excludeZeroQtys; 
      }
      else if (cboSelection.Text == &quot;Main Supplier =&quot;)
      {
        txtSelectionFeedback.Text = &quot;Selection: Main Supplier = &quot; + cboSupplier.Text;
        selection = &quot;MainSupplierID = '&quot; + ComboBox2.Text + &quot;'&quot; + excludeZeroQtys;
      }
      
      tProducts.SelectCommand = tProducts.SelectCommand.ToString().Replace(&quot;@Selection&quot;, selection);
    }
   
    

    private void Data1_AfterData(object sender, EventArgs e)
    {
      //total Qty Column format      
      int decimalValue = Convert.ToInt32(Report.GetColumnValue(&quot;programs_config.QtyDecimalValue&quot;));
      decimal qtyVal = 0; 
      if (Decimal.TryParse(txtQty.Text, out qtyVal))
      {
        txtQty.Text = String.Format(&quot;{0:F&quot; + decimalValue + &quot;}&quot;, qtyVal);
      }
      
      
    }

    private void DataFooter1_AfterData(object sender, EventArgs e)
    {
      //total Qty Column format      
      int decimalValue = Convert.ToInt32(Report.GetColumnValue(&quot;programs_config.QtyDecimalValue&quot;));
      decimal qtyVal = 0; 
      if (Decimal.TryParse(txtQtyTotal.Text, out qtyVal))
      {
        txtQtyTotal.Text = String.Format(&quot;{0:F&quot; + decimalValue + &quot;}&quot;, qtyVal);
      }
    }

    

    private void cboSelection_SelectedIndexChanged(object sender, EventArgs e)
    {
      cboCategory.Visible = false;
      cboSubCategory.Visible = false;
      cboLocation.Visible = false;
      cboSubLocation.Visible = false;
      cboSupplier.Visible = false;
      
      if (cboSelection.Text == &quot;Category =&quot;)
        cboCategory.Visible = true; 
      else if (cboSelection.Text == &quot;Sub Category =&quot;)
        cboSubCategory.Visible = true;
      else if (cboSelection.Text == &quot;Location =&quot;)
        cboLocation.Visible = true; 
      else if (cboSelection.Text == &quot;Sub Location =&quot;)
        cboSubLocation.Visible = true;
      else if (cboSelection.Text == &quot;Main Supplier =&quot;)
        cboSupplier.Visible = true;
    }
    
    

    private void Form1_Shown(object sender, EventArgs e)
    {
      Form1.Height = 370;
      cboSelection.Text = &quot;All&quot;;
      cboOrderBy.Text = &quot;Description&quot;;
    }
    
    

    private void btnAdvanced_Click(object sender, EventArgs e)
    {
        Panel1.Visible = !Panel1.Visible;
        if (Panel1.Visible)
          Form1.Height = 560;
        else
          Form1.Height = 370;
    }

    
  }
}
</ScriptText>
  <Dictionary>
    <MySqlDataConnection Name="Connection" ConnectionString="rijcmlqmUGi0DHzhik04BO5+uxHPNJg6XdWlo9sfl3oNLbLcC5ELgVy3yM4U7/vviW/yU/VlCYnkUjA+BNt9VEI/Ru/VheIHqUbG8410VEbI9gcZyk=">
      <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="Table" Alias="products" DataType="System.Int32" Enabled="true" SelectCommand="SELECT ProductCode, Description, QtyAvailable, CostPrice * QtyAvailable AS TotalCostPrice,  SellingPrice * QtyAvailable AS TotalSellingPrice, @CostColumn AS CostPrice, @SellingColumn AS SellingPrice &#13;&#10;FROM products WHERE CompanyID = @CompanyID AND Status = 'Active' &#13;&#10;AND @Selection &#13;&#10;GROUP BY ProductCode &#13;&#10;ORDER BY @OrderBy&#13;&#10;">
        <Column Name="ProductCode" DataType="System.String"/>
        <Column Name="QtyAvailable" DataType="System.Decimal"/>
        <Column Name="TotalCostPrice" DataType="System.Decimal"/>
        <Column Name="TotalSellingPrice" DataType="System.Decimal"/>
        <Column Name="Description" DataType="System.String"/>
        <Column Name="CostPrice" DataType="System.String"/>
        <Column Name="SellingPrice" DataType="System.String"/>
        <CommandParameter Name="CompanyID" DataType="254" Expression="[CompanyID]"/>
        <CommandParameter Name="orderBy" DataType="254"/>
        <CommandParameter Name="ShowOnlyOnHand" DataType="254" Expression="ShowOnlyOnHand"/>
        <CommandParameter Name="Selection" DataType="254" Expression="[Selection]"/>
        <CommandParameter Name="CostColumn" DataType="254" DefaultValue="CostPrice"/>
        <CommandParameter Name="SellingColumn" DataType="254" DefaultValue="SellingPrice"/>
      </TableDataSource>
      <TableDataSource Name="Table2" Alias="programs_config" DataType="System.Int32" Enabled="true" SelectCommand="SELECT QtyDecimalValue FROM programs_config WHERE CompanyID = @CompanyID">
        <Column Name="QtyDecimalValue" DataType="System.UInt32"/>
        <CommandParameter Name="CompanyID" DataType="254" Expression="[CompanyID]"/>
      </TableDataSource>
      <TableDataSource Name="Table3" Alias="Categories" DataType="System.Int32" Enabled="true" SelectCommand="SELECT DISTINCT Category FROM products  WHERE CompanyID = @CompanyID ORDER BY Category">
        <Column Name="Category" DataType="System.String"/>
        <CommandParameter Name="CompanyID" DataType="254" Expression="CompanyID"/>
      </TableDataSource>
      <TableDataSource Name="Table4" Alias="SubCategories" DataType="System.Int32" Enabled="true" SelectCommand="SELECT DISTINCT(SubCategory) FROM products WHERE CompanyID = @CompanyID ORDER BY SubCategory">
        <Column Name="SubCategory" DataType="System.String"/>
        <CommandParameter Name="CompanyID" DataType="254" Expression="[CompanyID]"/>
      </TableDataSource>
      <TableDataSource Name="Table1" Alias="Locations" DataType="System.Int32" Enabled="true" SelectCommand="SELECT DISTINCT Location FROM products WHERE CompanyID = @CompanyID ORDER BY Location">
        <Column Name="Location" DataType="System.String"/>
        <CommandParameter Name="companyID" DataType="254" Expression="[CompanyID]"/>
      </TableDataSource>
      <TableDataSource Name="Table5" Alias="SubLocations" DataType="System.Int32" Enabled="true" SelectCommand="SELECT DISTINCT SubLocation FROM products WHERE CompanyID = @CompanyID ORDER BY SubLocation">
        <Column Name="SubLocation" DataType="System.String"/>
        <CommandParameter Name="CompanyID" DataType="254" Expression="[CompanyID]"/>
      </TableDataSource>
      <TableDataSource Name="Table6" Alias="suppliers_search" DataType="System.Int32" Enabled="true" SelectCommand="/*Not every company will have suppliers. So make provision for that */&#13;&#10;SELECT IF(Count(SupplierID) = 0, 0, SupplierID) AS SupplierID, IF(Count(SupplierID) = 0, 'None', Name) AS Name &#13;&#10;FROM suppliers WHERE CompanyID = @CompanyID &#13;&#10;UNION&#13;&#10;SELECT SupplierID, Name FROM suppliers WHERE CompanyID = @CompanyID &#13;&#10;ORDER BY Name">
        <Column Name="SupplierID" DataType="System.UInt32"/>
        <Column Name="Name" DataType="System.String"/>
        <CommandParameter Name="CompanyID" DataType="254" Expression="[CompanyID]"/>
      </TableDataSource>
      <TableDataSource Name="Table7" Alias="suppliers_relatedID" DataType="System.Int32" Enabled="true" SelectCommand="/* Not every company will have suppliers. So make provision for that */&#13;&#10;SELECT IF(COUNT(SupplierID) = 0, 0, SupplierID) AS SupplierID FROM suppliers WHERE CompanyID = @CompanyID&#13;&#10;UNION&#13;&#10;SELECT SupplierID FROM suppliers WHERE CompanyID = @CompanyID">
        <Column Name="SupplierID" DataType="System.UInt32"/>
        <CommandParameter Name="CompanyID" DataType="254" Expression="[CompanyID]"/>
      </TableDataSource>
    </MySqlDataConnection>
    <Relation Name="Table6_Table7" ParentDataSource="Table6" ChildDataSource="Table7" ParentColumns="SupplierID" ChildColumns="SupplierID" Enabled="true"/>
    <Parameter Name="CompanyID" DataType="System.Int32"/>
    <Parameter Name="OrderBy" DataType="System.String"/>
    <Parameter Name="ShowOnlyOnHand" DataType="System.String"/>
    <Parameter Name="Selection" DataType="System.String"/>
    <Parameter Name="SupplierID" DataType="System.String"/>
    <Total Name="Total_Cost" Expression="[products.TotalCostPrice]" Evaluator="Data1" PrintOn="DataFooter1"/>
    <Total Name="Total_Selling" Expression="[products.TotalSellingPrice]" Evaluator="Data1" PrintOn="DataFooter1"/>
    <Total Name="Total_QtyAvailable" Expression="[products.QtyAvailable]" Evaluator="Data1" PrintOn="DataFooter1"/>
    <Total Name="Count_Total_Items" TotalType="Count" Evaluator="Data1"/>
  </Dictionary>
  <inherited Name="Page1" RawPaperSize="9" FirstPageSource="15" OtherPagesSource="15">
    <inherited Name="PageHeader1">
      <inherited Name="_CompanyName"/>
      <ChildBand Name="Child1" ZOrder="-1" Top="41.8" Width="718.2" Height="122.85">
        <ShapeObject Name="Shape7" Top="75.6" Width="708.75" Height="37.8" Border.Color="Gainsboro" Fill.Color="WhiteSmoke" Shape="RoundRectangle"/>
        <TextObject Name="txtHeaderCost" Left="396.9" Top="85.05" Width="94.5" Height="18.9" Text="Total Cost" HorzAlign="Right"/>
        <TextObject Name="txtHeaderSelling" Left="500.85" Top="85.05" Width="94.5" Height="18.9" Text="Total Selling" HorzAlign="Right"/>
        <TextObject Name="Text18" Left="141.75" Top="85.05" Width="94.5" Height="18.9" Text="Description"/>
        <TextObject Name="Text19" Left="9.45" Top="85.05" Width="94.5" Height="18.9" Text="Item Code"/>
        <TextObject Name="txtHeaderQty" Left="604.8" Top="85.05" Width="85.05" Height="18.9" Text="Qty Avail." HorzAlign="Right"/>
        <TextObject Name="Text31" Left="37.8" Top="9.45" Width="170.1" Height="56.7" Text="Items List" Font="Segoe UI Light, 22pt" TextFill.Color="OliveDrab"/>
        <TextObject Name="txtSelectionFeedback" Left="217.35" Top="28.35" Width="472.5" Height="28.35" Text="All" HorzAlign="Right" Font="Segoe UI Light, 14pt" TextFill.Color="OliveDrab"/>
      </ChildBand>
    </inherited>
    <DataBand Name="Data1" ZOrder="0" Top="168.65" Width="718.2" Height="18.9" AfterDataEvent="Data1_AfterData" DataSource="Table">
      <TextObject Name="Text4" Left="9.45" Width="122.85" Height="18.9" Cursor="Hand" Hyperlink.Kind="DetailPage" ClickEvent="Text4_Click" Text="[products.ProductCode]" Trimming="EllipsisCharacter"/>
      <TextObject Name="Text5" Left="141.75" Width="245.7" Height="18.9" Text="[products.Description]" WordWrap="false" Trimming="EllipsisCharacter"/>
      <TextObject Name="txtCostData" Left="396.9" Width="94.5" Height="18.9" Text="[products.CostPrice]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
      <TextObject Name="txtRetailData" Left="500.85" Width="94.5" Height="18.9" Text="[products.SellingPrice]" Format="Number" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
      <TextObject Name="txtQty" Left="604.8" Width="85.05" Height="18.9" Text="[products.QtyAvailable]" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
      <DataFooterBand Name="DataFooter1" Top="191.55" Width="718.2" Height="56.7" AfterDataEvent="DataFooter1_AfterData">
        <ShapeObject Name="Shape8" Top="9.45" Width="708.75" Height="37.8" Border.Color="Gainsboro" Fill.Color="WhiteSmoke" Shape="RoundRectangle"/>
        <TextObject Name="txtTotalCost" Left="396.9" Top="18.9" Width="94.5" Height="18.9" Text="[Total_Cost]" Format="Number" Format.UseLocale="true" HorzAlign="Right"/>
        <TextObject Name="txtTotalSelling" Left="500.85" Top="18.9" Width="94.5" Height="18.9" Text="[Total_Selling]" Format="Number" Format.UseLocale="true" HorzAlign="Right"/>
        <TextObject Name="txtQtyTotal" Left="604.8" Top="18.9" Width="85.05" Height="18.9" Text="[Total_QtyAvailable]" HorzAlign="Right"/>
        <TextObject Name="Text32" Left="9.45" Top="18.9" Width="245.7" Height="18.9" Text="Totals Excl Tax:   (Units X Qty's)" TextFill.Color="DimGray"/>
      </DataFooterBand>
    </DataBand>
    <ReportSummaryBand Name="ReportSummary1" ZOrder="-1" Top="252.25" Width="718.2" Height="37.8">
      <TextObject Name="Text30" Left="189" Top="9.45" Width="94.5" Height="18.9" Text="[Count_Total_Items]"/>
      <TextObject Name="Text33" Top="9.45" Width="179.55" Height="18.9" Text="Item count:" HorzAlign="Right" TextFill.Color="DimGray"/>
    </ReportSummaryBand>
    <PageFooterBand Name="PageFooter1" ZOrder="-1" Top="294.05" Width="718.2" 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="434.7" Top="9.45" Width="94.5" Height="18.9" Text="Print Date:" HorzAlign="Right" TextFill.Color="DimGray"/>
      <TextObject Name="Text78" Left="538.65" Top="9.45" Width="160.65" Height="18.9" Text="[Date]" TextFill.Color="DimGray"/>
    </PageFooterBand>
  </inherited>
  <DialogPage Name="Form1" ZOrder="1" Width="738" Height="560" AcceptButton="btnOk" CancelButton="btnCancel" ShownEvent="Form1_Shown">
    <ButtonControl Name="btnOk" Left="542" Top="469" Height="40" Anchor="Bottom, Right" Font="Segoe UI Light, 11pt" TabIndex="0" Text="OK" ClickEvent="btnOk_Click" DialogResult="OK"/>
    <ButtonControl Name="btnCancel" Left="625" Top="469" Height="40" Anchor="Bottom, Right" Font="Segoe UI Light, 11pt" TabIndex="1" Text="Cancel" DialogResult="Cancel"/>
    <LabelControl Name="Label3" Left="24" Top="24" Width="138" Height="37" Font="Segoe UI Light, 20pt" ForeColor="OliveDrab" TabIndex="6" Text="Items - List"/>
    <ComboBoxControl Name="cboOrderBy" Left="216" Top="164" Width="233" Font="Segoe UI Light, 11pt" TabIndex="7" ClickEvent="" DropDownStyle="DropDownList" DropDownWidth="233" ItemHeight="20" ItemsText="Item code&#13;&#10;Description&#13;&#10;Qty Available"/>
    <LabelControl Name="Label4" Left="68" Top="168" Width="116" Height="20" Font="Segoe UI Light, 11pt" TabIndex="5" Text="Order records by"/>
    <ComboBoxControl Name="cboSelection" Left="216" Top="92" Width="233" Font="Segoe UI Light, 11pt" TabIndex="7" ClickEvent="" DropDownStyle="DropDownList" DropDownWidth="233" ItemHeight="20" ItemsText="All&#13;&#10;Products Only&#13;&#10;Services Only&#13;&#10;Category =&#13;&#10;Sub Category =&#13;&#10;Location =&#13;&#10;Sub Location =&#13;&#10;Below Min. Qty&#13;&#10;Main Supplier =" SelectedIndexChangedEvent="cboSelection_SelectedIndexChanged"/>
    <LabelControl Name="Label5" Left="68" Top="96" Width="65" Height="20" Font="Segoe UI Light, 11pt" TabIndex="5" Text="Selection"/>
    <ComboBoxControl Name="cboCategory" Left="216" Top="128" Width="233" Visible="false" Font="Tahoma, 11pt" TabIndex="8" DataColumn="Categories.Category" DropDownStyle="DropDownList" DropDownWidth="233" ItemHeight="18"/>
    <ComboBoxControl Name="cboSubCategory" Left="216" Top="128" Width="233" Visible="false" Font="Tahoma, 11pt" TabIndex="8" DataColumn="SubCategories.SubCategory" DropDownStyle="DropDownList" DropDownWidth="233" ItemHeight="18"/>
    <ButtonControl Name="btnAdvanced" Left="68" Top="232" Width="111" Height="35" Font="Segoe UI Light, 11pt" TabIndex="11" Text="Advanced " ClickEvent="btnAdvanced_Click"/>
    <PanelControl Name="Panel1" Left="208" Top="204" Width="492" Height="252" Visible="false" Font="Tahoma, 8pt" TabIndex="12" Text="Panel">
      <GroupBoxControl Name="GroupBox1" Left="12" Top="24" Width="224" Height="144" Font="Segoe UI Light, 11pt" TabIndex="10" Text="     Show cost">
        <RadioButtonControl Name="optCostPerUnit" Left="48" Top="32" Width="77" Font="Segoe UI Light, 11pt" TabIndex="11" TabStop="false" Text="per Unit"/>
        <RadioButtonControl Name="optCostAsTotal" Left="48" Top="64" Width="72" Font="Segoe UI Light, 11pt" TabIndex="11" Text="as Total" Checked="true"/>
        <CheckBoxControl Name="chkShowCost" Left="12" Top="4" Width="15" Height="14" Font="Segoe UI Light, 11pt" TabIndex="9" Checked="true" CheckState="Checked"/>
        <LabelControl Name="Label1" Left="126" Top="69" Width="65" Height="15" Font="Segoe UI Light, 9pt" ForeColor="DimGray" TabIndex="11" Text=" (Unit x Qty)"/>
      </GroupBoxControl>
      <CheckBoxControl Name="chkExcludeZeroQtys" Left="12" Top="212" Width="249" Font="Segoe UI Light, 11pt" TabIndex="9" Text=" Show only items with available qty's"/>
      <GroupBoxControl Name="GroupBox2" Left="252" Top="24" Width="224" Height="144" Font="Segoe UI Light, 11pt" TabIndex="10" Text="     Show retail (selling)">
        <RadioButtonControl Name="optRetailPerUnit" Left="48" Top="32" Width="77" Font="Segoe UI Light, 11pt" TabIndex="11" TabStop="false" Text="per Unit"/>
        <RadioButtonControl Name="optRetailAsTotal" Left="48" Top="64" Width="72" Font="Segoe UI Light, 11pt" TabIndex="11" Text="as Total" Checked="true"/>
        <CheckBoxControl Name="chkShowRetail" Left="12" Top="4" Width="15" Height="14" Font="Segoe UI Light, 11pt" TabIndex="9" Checked="true" CheckState="Checked"/>
        <LabelControl Name="Label6" Left="128" Top="69" Width="65" Height="15" Font="Segoe UI Light, 9pt" ForeColor="DimGray" TabIndex="11" Text=" (Unit x Qty)"/>
        <CheckBoxControl Name="chkSellingIncludeTax" Left="48" Top="96" Width="100" Font="Segoe UI Light, 11pt" TabIndex="9" Text=" Include Tax"/>
      </GroupBoxControl>
      <CheckBoxControl Name="chkShowQty" Left="12" Top="180" Width="150" Font="Segoe UI Light, 11pt" TabIndex="9" Text=" Show Qty Available" Checked="true" CheckState="Checked" CheckedChangedEvent=""/>
    </PanelControl>
    <ComboBoxControl Name="cboLocation" Left="216" Top="128" Width="233" Visible="false" Font="Tahoma, 11pt" TabIndex="8" DataColumn="Locations.Location" DropDownStyle="DropDownList" DropDownWidth="233" ItemHeight="18"/>
    <ComboBoxControl Name="cboSubLocation" Left="216" Top="128" Width="233" Visible="false" Font="Tahoma, 11pt" TabIndex="8" DataColumn="SubLocations.SubLocation" DropDownStyle="DropDownList" DropDownWidth="233" ItemHeight="18"/>
    <ComboBoxControl Name="cboSupplier" Left="216" Top="128" Width="233" Visible="false" Font="Tahoma, 11pt" TabIndex="2" AutoFilter="false" DataColumn="suppliers_search.Name" DetailControl="ComboBox2" DropDownStyle="DropDownList" DropDownWidth="261" ItemHeight="18"/>
    <ComboBoxControl Name="ComboBox2" Left="456" Top="132" Visible="false" Font="Tahoma, 8pt" TabIndex="3" Text="ComboBox" AutoFill="false" DataColumn="suppliers_relatedID.SupplierID" ReportParameter="SupplierID" ItemHeight="13"/>
  </DialogPage>
</inherited>
