﻿<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" ReportInfo.Created="11/26/2022 12:26:55" ReportInfo.Modified="07/19/2025 16:11:32" ReportInfo.CreatorVersion="2021.4.3.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
  {
  }
}
/*
{

}
*/</ScriptText>
  <Dictionary>
    <MsSqlDataConnection Name="ADODatabase" ConnectionString="rijcmlqJUrEa/KIcQqhhcfnlqC6PHTn0L44W7TQfS6RmUJOGDIuc+knUePlrDTYQkz8WhBi2jPDTK087z8yjPJQ8ZetblL5yCDe41F7fdxHmwdn6oI8XFJ4rtrgsu83Gl7rw8lbkbWxmi0/Ej2PGJo8Urepg91mlOKowoUNrAZcicP61SWH1+FL8AA9rxaPM8moABsjPKPh4oFMdolM8fXTuXmuVT9u5K9Hkrox1AMo5IFVYXdmR2hiY1ALrhvBxWFB7fENmUK2f27++PGkDF7ECLmxKBLyhhuzbIqSOr/gblXfKXOd1hQHEWxev2mvtyxg35oj5V8v61zX1jsZS7FXoLuBlB+74xHnE0cc2YiCMChJic+Xil7Q44cQqNsq9ZGJDcBY1HlbvvkxVd4Zib5Un48gW6mlGdYdfV8n4o2kgBtbaJOAToZKN0aOnldADnhb8Lddl/i/m+6k7F92yj512LBaOo8bOAOwfQifSTpw690UQrqxinlRpG8zIBLI49wAqVdd566ZZC5AkeKcMf+Hdsmb4UfNfjXl+OEZPDd6dcLuCAjdDMUq8R2U4yrcfHiniOTiieLLZzKKD4aaB1LVp5rNnmBdbd1wWybxtoPtHBIUsAdg2k+I+S0PHEUsNfeO6F5vGf66Bh48ScaNMbMicvjAT7jgCZQzQe0RD+8zZVbEdRgs4aWSL60nPXn4ML5Hzop95uVTZ6tHvN6yi8TP0IR/pg==" CommandTimeout="0">
      <TableDataSource Name="MatUnitSale" DataType="System.Int32" Enabled="true" TableName="MatUnitSale" SelectCommand="exec mnrRepMatUnitSale '{00000000-0000-0000-0000-000000000000}' , '{00000000-0000-0000-0000-000000000000}' , '{00000000-0000-0000-0000-000000000000}' , '{18B74E54-CD6D-415a-B4C6-1A9268977020}' , '1-1-2025' , '7-19-2025' , '{00000000-0000-0000-0000-000000000000}' , '1' , '1' , '{7A37D5BA-3516-42a0-AB92-078C42EF3D8E}'">
        <Column Name="MatID" DataType="System.Guid"/>
        <Column Name="MatCode" DataType="System.String"/>
        <Column Name="MatName" DataType="System.String"/>
        <Column Name="MatLatinName" DataType="System.String"/>
        <Column Name="GrpID" DataType="System.Guid"/>
        <Column Name="GrpCode" DataType="System.String"/>
        <Column Name="GrpName" DataType="System.String"/>
        <Column Name="GrpLatinName" DataType="System.String"/>
        <Column Name="Path" DataType="System.String"/>
        <Column Name="Level" DataType="System.String"/>
        <Column Name="Unit1" DataType="System.Double"/>
        <Column Name="Unit2" DataType="System.Double"/>
        <Column Name="Unit3" DataType="System.Double"/>
        <Column Name="Unit4" DataType="System.Double"/>
        <Column Name="Unit5" DataType="System.Double"/>
        <Column Name="Flag" DataType="System.Int32"/>
      </TableDataSource>
    </MsSqlDataConnection>
    <Parameter Name="CurUserID" DataType="System.String" Expression="&quot;{7A37D5BA-3516-42a0-AB92-078C42EF3D8E}&quot;"/>
    <Parameter Name="OpenOrder" DataType="System.String" Expression="&quot;1&quot;"/>
    <Parameter Name="CloseOrder" DataType="System.String" Expression="&quot;1&quot;"/>
    <Parameter Name="FromDate" DataType="System.String" Expression="&quot;1/1/2025&quot;"/>
    <Parameter Name="ToDate" DataType="System.String" Expression="&quot;19/7/2025&quot;"/>
    <Parameter Name="unit1" DataType="System.String" Expression="&quot;1&quot;"/>
    <Parameter Name="unit2" DataType="System.String" Expression="&quot;1&quot;"/>
    <Parameter Name="unit3" DataType="System.String" Expression="&quot;1&quot;"/>
    <Parameter Name="unit4" DataType="System.String" Expression="&quot;1&quot;"/>
    <Parameter Name="unit5" DataType="System.String" Expression="&quot;1&quot;"/>
    <Total Name="Total" Expression="IIf([MatUnitSale.Flag]==1&amp;&amp;[unit1]==&quot;1&quot;,[MatUnitSale.Unit1],0)" Evaluator="MasterData1" PrintOn="ReportSummary1"/>
    <Total Name="Total1" Expression="IIf(([MatUnitSale.Flag]==1&amp;&amp;[unit2]==&quot;1&quot;),[MatUnitSale.Unit2],null)" Evaluator="MasterData1" PrintOn="ReportSummary1"/>
    <Total Name="Total2" Expression="IIf(([MatUnitSale.Flag]==1 &amp;&amp; [unit3]==&quot;1&quot;),[MatUnitSale.Unit3],0)" Evaluator="MasterData1" PrintOn="ReportSummary1"/>
    <Total Name="Total3" Expression="IIf([MatUnitSale.Flag]==1 &amp;&amp; [unit4]==&quot;1&quot;,[MatUnitSale.Unit4],0)" Evaluator="MasterData1" PrintOn="ReportSummary1"/>
    <Total Name="Total4" Expression="IIf([MatUnitSale.Flag]==1&amp;&amp;[unit5]==&quot;1&quot;,[MatUnitSale.Unit5],0)" Evaluator="MasterData1" PrintOn="ReportSummary1"/>
  </Dictionary>
  <ReportPage Name="Page1" PaperWidth="200" TopMargin="3" Watermark.Font="Arial, 60pt" PrintOnPreviousPage="true">
    <ReportTitleBand Name="ReportTitle1" Width="680.4" Height="198.43">
      <PictureObject Name="Company_Logo" Left="32.79" Width="614.83" Height="122.84" Fill.Color="White" ImageLocation="C:\Program Files (x86)\Almanara Business Solutions\Bin\Res\Logo.bmp" SizeMode="StretchImage" ImageFormat="Bmp"/>
      <TextObject Name="Memo16" Top="135.62" Width="668.98" Height="18.9" Text="حركة المواد حسب الوحدات" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 14pt, style=Bold"/>
      <TextObject Name="Memo17" Left="602.83" Top="170.08" Width="66.14" Height="18.9" Text=":اعتبارا من" Padding="2, 1, 2, 1" HorzAlign="Right" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo18" Left="540.47" Top="170.08" Width="75.59" Height="18.9" Text="[FromDate]" Padding="2, 1, 2, 1" Format="Date" Format.Format="d" HorzAlign="Right" VertAlign="Center" Font="Times New Roman, 10pt"/>
      <TextObject Name="Memo19" Left="468.66" Top="170.08" Width="52.92" Height="18.9" Text=":ولغاية" Padding="2, 1, 2, 1" HorzAlign="Right" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo20" Left="393.07" Top="170.08" Width="94.49" Height="18.9" Text="[ToDate]" Padding="2, 1, 2, 1" Format="Date" Format.Format="d" HorzAlign="Right" VertAlign="Center" Font="Times New Roman, 10pt"/>
    </ReportTitleBand>
    <PageHeaderBand Name="PageHeader1" Top="203.76" Width="680.4" Height="22.68" CanGrow="true" CanShrink="true">
      <TextObject Name="Memo4" Left="633.18" Width="41.57" Height="22.68" Border.Lines="All" Fill.Color="186, 211, 254" Text="الرقم" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo6" Left="379.95" Width="94.49" Height="22.68" Border.Lines="All" Fill.Color="186, 211, 254" Text="الوحدة الاولى" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo7" Left="285.46" Width="94.49" Height="22.68" Border.Lines="All" Fill.Color="186, 211, 254" Text="الوحدة الثانية" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo8" Left="190.98" Width="94.49" Height="22.68" Border.Lines="All" Fill.Color="186, 211, 254" Text="الوحدة الثالثة" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo9" Left="96.49" Width="94.49" Height="22.68" Border.Lines="All" Fill.Color="186, 211, 254" Text="الوحدة الرابعة" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo10" Left="2" Width="94.49" Height="22.68" Border.Lines="All" Fill.Color="186, 211, 254" Text="الوحدة الخامسة" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo32" Left="474.44" Width="158.74" Height="22.68" Border.Lines="All" Fill.Color="186, 211, 254" Text="مادة/مجموعة" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
    </PageHeaderBand>
    <DataBand Name="MasterData1" Top="231.78" Width="680.4" Height="18.9" CanGrow="true" CanShrink="true" DataSource="MatUnitSale">
      <TextObject Name="Memo3" Left="633.18" Width="41.57" Height="18.9" Border.Lines="All" Text="[Row#]" Padding="2, 1, 2, 1" HorzAlign="Right" VertAlign="Center" Font="Times New Roman, 10pt">
        <Highlight>
          <Condition Expression="[MatUnitSale.Flag]== 1" Font="Arial, 10pt"/>
        </Highlight>
      </TextObject>
      <TextObject Name="Text1" Left="379.95" Width="94.49" Height="18.9" Border.Lines="All" Text="[IIf([unit1]==&quot;1&quot;,[MatUnitSale.Unit1],null)]" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt">
        <Highlight>
          <Condition Expression="[MatUnitSale.Flag] == 1" Font="Arial, 10pt"/>
        </Highlight>
      </TextObject>
      <TextObject Name="Text2" Left="285.46" Width="94.49" Height="18.9" Border.Lines="All" Text="[IIf([unit2]==&quot;1&quot;,[MatUnitSale.Unit2],null)]" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt">
        <Highlight>
          <Condition Expression="[MatUnitSale.Flag] == 1" Font="Arial, 10pt"/>
        </Highlight>
      </TextObject>
      <TextObject Name="Text3" Left="190.98" Width="94.49" Height="18.9" Border.Lines="All" Text="[IIf([unit3]==&quot;1&quot;,[MatUnitSale.Unit3],null)]" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt">
        <Highlight>
          <Condition Expression="[MatUnitSale.Flag] == 1" Font="Arial, 10pt"/>
        </Highlight>
      </TextObject>
      <TextObject Name="Text4" Left="96.49" Width="94.49" Height="18.9" Border.Lines="All" Text="[IIf([unit4]==&quot;1&quot;,[MatUnitSale.Unit4],null)]" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt">
        <Highlight>
          <Condition Expression="[MatUnitSale.Flag] == 1" Font="Arial, 10pt"/>
        </Highlight>
      </TextObject>
      <TextObject Name="Text5" Left="2" Width="94.49" Height="18.9" Border.Lines="All" Text="[IIf([unit5]==&quot;1&quot;,[MatUnitSale.Unit5],null)]" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt">
        <Highlight>
          <Condition Expression="[MatUnitSale.Flag] == 1" Font="Arial, 10pt"/>
        </Highlight>
      </TextObject>
      <TextObject Name="Text6" Left="474.44" Width="158.74" Height="18.9" Border.Lines="All" Text="[IIf([MatUnitSale.Flag]==1,[MatUnitSale.GrpName],IIf([MatUnitSale.Flag]==0,[MatUnitSale.MatName],&quot; &quot;))]" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt">
        <Highlight>
          <Condition Expression="[MatUnitSale.Flag] == 1" Font="Arial, 10pt"/>
        </Highlight>
      </TextObject>
    </DataBand>
    <ReportSummaryBand Name="ReportSummary1" Top="256.01" Width="680.4" Height="22.68">
      <TextObject Name="Memo21" Left="474.44" Width="200.32" Height="22.68" Border.Lines="All" Fill.Color="186, 211, 254" Text="الإجمالي" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo23" Left="285.46" Width="94.49" Height="22.68" Border.Lines="All" Fill.Color="186, 211, 254" Text="[Total1]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo24" Left="190.98" Width="94.49" Height="22.68" Border.Lines="All" Fill.Color="186, 211, 254" Text="[Total2]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo25" Left="96.49" Width="94.49" Height="22.68" Border.Lines="All" Fill.Color="186, 211, 254" Text="[Total3]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo26" Left="2" Width="94.49" Height="22.68" Border.Lines="All" Fill.Color="186, 211, 254" Text="[Total4]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo22" Left="379.95" Width="94.49" Height="22.68" Border.Lines="All" Fill.Color="186, 211, 254" Text="[Total]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
    </ReportSummaryBand>
    <PageFooterBand Name="PageFooter1" Top="284.02" Width="680.4" Height="34.02">
      <TextObject Name="Memo1" Left="600.95" Width="75.59" Height="18.9" Text="[Page#]" Padding="2, 1, 2, 1" HorzAlign="Right" Font="Times New Roman, 8pt"/>
      <TextObject Name="Memo28" Left="11.34" Width="56.69" Height="15.12" Text="Printed on:" Padding="2, 1, 2, 1" AutoWidth="true" VertAlign="Center" Font="Times New Roman, 8pt, style=Bold"/>
      <TextObject Name="Memo27" Left="68.03" Width="79.37" Height="15.12" Text="[Date]" Padding="2, 1, 2, 1" Format="Date" Format.Format="d" Font="Times New Roman, 8pt"/>
      <TextObject Name="Memo31" Left="559.37" Top="22.68" Width="117.17" Height="11.34" Text="www.almanarasoft.com" Padding="2, 1, 2, 1" VertAlign="Center" Font="Times New Roman, 8pt, style=Bold" TextFill.Color="Blue"/>
    </PageFooterBand>
  </ReportPage>
</Report>
