<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/04/2013 19:45:13" ReportInfo.Modified="10/08/2018 14:20:59" ReportInfo.CreatorVersion="2017.1.12.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;QBaslik.ORIGIN&quot;))==&quot;Türkiye&quot;)
      {
        Picture2.Visible=true;
        Text6.Visible=false;
      }
      else
      {
        Picture2.Visible=false;
        Text6.Visible=true;
      }
      Text4.Text=&quot;Birim Fiyat :&quot;+Convert.ToString(((Double)Report.GetColumnValue(&quot;QBaslik.PRICE&quot;))/((Double)Report.GetColumnValue(&quot;QBaslik.SPECIFICGRAVITY&quot;)));
      if(((String)Report.GetColumnValue(&quot;QBaslik.BARCODE&quot;)).Length ==13)
      {
        Barcode1.Barcode =  new BarcodeEAN13();
      }
      else if (((String)Report.GetColumnValue(&quot;QBaslik.BARCODE&quot;)).Length ==8)
      {
        Barcode1.Barcode =  new BarcodeEAN8();
      }
      else
      {
        Barcode1.Barcode = new  Barcode93();
      }
      }
  }
}
</ScriptText>
  <Dictionary>
    <TableDataSource Name="QBaslik" ReferenceName="QBaslik" DataType="System.Int32" Enabled="true">
      <Column Name="STOCKNO" DataType="System.String"/>
      <Column Name="STOCKNAME" DataType="System.String"/>
      <Column Name="PRICE" DataType="System.Double"/>
      <Column Name="UNITNAME" DataType="System.String"/>
      <Column Name="BARCODE" DataType="System.String"/>
      <Column Name="CHECKCOL" DataType="System.Boolean" BindableControl="CheckBox"/>
      <Column Name="BAKIYE" DataType="System.Double"/>
      <Column Name="OLDPRICE" DataType="System.Double"/>
      <Column Name="STOCKID" DataType="System.Int32"/>
      <Column Name="ORIGIN" DataType="System.String"/>
      <Column Name="POSUNITID" DataType="System.Int16"/>
      <Column Name="SPECIFICGRAVITY" DataType="System.Double"/>
    </TableDataSource>
  </Dictionary>
  <ReportPage Name="Page1" PaperWidth="100" PaperHeight="37" LeftMargin="0" TopMargin="0" RightMargin="0" BottomMargin="0" MirrorMargins="true">
    <DataBand Name="Data1" Width="378" Height="132.3" BeforePrintEvent="Data1_BeforePrint" DataSource="QBaslik">
      <TextObject Name="Text1" Width="378" Height="47.25" Text="[QBaslik.STOCKNAME]" Font="Tahoma, 18pt"/>
      <BarcodeObject Name="Barcode1" Left="9.45" Top="56.7" Width="128.75" Height="56.7" DataColumn="QBaslik.BARCODE" Barcode="EAN13"/>
      <TextObject Name="Text2" Left="141.75" Top="73.15" Width="226.8" Height="37.8" Text="[QBaslik.PRICE]" Format="Currency" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Font="Tahoma, 20pt" Trimming="EllipsisCharacter"/>
      <TextObject Name="Text3" Left="9.45" Top="113.4" Width="170.1" Height="18.9" Text="Fiyatlarımıza K.D.V. Dahildir." Font="Tahoma, 8pt, style=Bold"/>
      <TextObject Name="Text4" Left="179.55" Top="113.4" Width="132.3" Height="18.9" HorzAlign="Right"/>
      <PictureObject Name="Picture1" Left="311.85" Top="112.4" Width="9.45" Height="18.9" Image="[encoded data, 52244 characters]"/>
      <TextObject Name="Text5" Left="321.3" Top="113.4" Width="37.8" Height="18.9" Text="/ KG" Font="Tahoma, 10pt"/>
      <PictureObject Name="Picture2" Left="242.6" Top="37.8" Width="113.4" Height="37.8" Image="[encoded data, 42772 characters]"/>
      <TextObject Name="Text6" Left="242.6" Top="37.8" Width="132.3" Height="37.8" Text="MENŞEİ&#13;&#10;[QBaslik.ORIGIN]" Font="Tahoma, 12pt"/>
    </DataBand>
  </ReportPage>
</Report>
