﻿<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" StartReportEvent="_StartReport" ReportInfo.Created="08/30/2022 11:35:33" ReportInfo.Modified="10/23/2024 12:31:15" 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
  {
    void _StartReport(object sender, EventArgs e)
    {      Page1.Visible=true;    
              
    /*  if((((string)Report.GetParameterValue(&quot;Qty&quot;)) == &quot;0&quot;) &amp;&amp; (((string)Report.GetParameterValue(&quot;Total&quot;)) == &quot;0&quot;))      
      {
        MSChart4.Visible = false;
        MSChart1.Visible =false;
        Page1.Visible=false;
        Page2.Visible=false;
        Page3.Visible=true;              
                                                                      
    }
                           
      else if((((string)Report.GetParameterValue(&quot;Total&quot;)) == &quot;0&quot;) &amp;&amp; ((((string)Report.GetParameterValue(&quot;Qty&quot;)) == &quot;1&quot;)))      
      {
       MSChart1.Visible = false;
        MSChart2.Visible = true;
        Page1.Visible=true;
        Page2.Visible=false;
        Page3.Visible=false;
        Memo36.Visible=true;
        Memo37.Visible=false;                                                              
      }
       
      else if((((string)Report.GetParameterValue(&quot;Total&quot;)) == &quot;1&quot;) &amp;&amp; ((((string)Report.GetParameterValue(&quot;Qty&quot;)) == &quot;0&quot;)))      
      {
        MSChart4.Visible = false;
        MSChart1.Visible = true;
        Page1.Visible=true;
        Page2.Visible=false;
        Page3.Visible=false;
        Memo37.Visible=true;
        Memo36.Visible=false;                          
        }
      else      
      {
        MSChart4.Visible = true;
        MSChart1.Visible = true;
        Page2.Visible=true;
        Page1.Visible=false;
        Page3.Visible=false;
        Memo37.Visible=true;
        Memo36.Visible=true;                          
      } */                       
                                                
                                             
      } 

    
    
  }  
}



  


</ScriptText>
  <Dictionary>
    <MsSqlDataConnection Name="ADODatabase" ConnectionString="rijcmlqJUrEa/KIcQqhhcfnlqC6PHTn0L44W7TQfS6RmUJOGDIuc+knUePlrDTYQkz8WhBiSU8bhoXkqFANiL5V4vT9FLgGcGRwY/h37doq7AbQM00xCAZftkAGBfhe5Z2Zrv3PR82qANkxj8AlrG/cphz+56b7ErVPwg3irAuojhpEvroTyIxWszXyADC4JJYUpClnJKADUhAOWodWPNF+UzxoQxXTuiP1aHdZrcFBsgFBZmHXpFUtSgTIfJMIaPTcZwwdw/xAwcj/JElEALcER5+UYKDiITzaBHNQ6wFLwVeQiuXox3os2GYuLwfqigtgH8USH+QRnoXmLFleB0mx38yygTQzLtfw7TK09EHQsGEPVEa5hZI5fru+0xP2nk09GR3f93qDFWJRWiKKhCYw5VXr1aRZFhT3J/lbC0P30ti+D9XVY7/1j3hqa6g61uWxkIS8+Cl9p/kkVsV7xQcPgNdOoCdC3GwThzfukyYdGyblhL6gckEapFXsrVD3b//7Wq5sjidMAU9rBfbMERzS2LB6XYQq6bsA+5bMsLCQCYAm/+Xvi2LyT4kReAVq32+xOR6hzzmcF4ryAresMjcPEfAi4Gty/zqqIpp65JfuhTKHKYblMaLSRl38H5k/2K025A4HFSJ8KjdvXRwvqwCfZ2M22cx61aHgXGypewRCy4BeQci4uM+LUJVsYbjnGDLJtosA41viJUmTiM9ObZRIrRH1Tg==" CommandTimeout="1200">
      <TableDataSource Name="MatMaxMove_Report" DataType="System.Int32" Enabled="true" TableName="MatMaxMove_Report" SelectCommand="exec mnrPrcRepMatMaxMove '{00000000-0000-0000-0000-000000000000}' , '{00000000-0000-0000-0000-000000000000}' , '{00000000-0000-0000-0000-000000000000}' , '{00000000-0000-0000-0000-000000000000}' , '{00000000-0000-0000-0000-000000000000}' , '{00000000-0000-0000-0000-000000000000}' , '' , '' , '1-1-2024' , '10-23-2024' , '{AF2816C3-E77F-41ee-8DCD-32CD78E20AE2}' , 0 , 10 , 0 , 0 , 0 , 0 , 2 , 6 , '{E1E8EB3E-6A28-4053-BF34-E5174EF53E4F}' , 1 , 0 , 0 , 1 , 0 , 0 , '' , '', '{00000000-0000-0000-0000-000000000000}', 0 , 0">
        <Column Name="MatID" DataType="System.Guid"/>
        <Column Name="MatCode" DataType="System.String"/>
        <Column Name="MatName" DataType="System.String"/>
        <Column Name="MatLaName" DataType="System.String"/>
        <Column Name="GrID" DataType="System.Guid"/>
        <Column Name="GrCode" DataType="System.String"/>
        <Column Name="GrName" DataType="System.String"/>
        <Column Name="GrLaName" DataType="System.String"/>
        <Column Name="StoreID" DataType="System.Guid"/>
        <Column Name="StoreCode" DataType="System.String"/>
        <Column Name="StoreName" DataType="System.String"/>
        <Column Name="StoreLaName" DataType="System.String"/>
        <Column Name="CostID" DataType="System.Guid"/>
        <Column Name="CoCode" DataType="System.String"/>
        <Column Name="CoName" DataType="System.String"/>
        <Column Name="CoLaName" DataType="System.String"/>
        <Column Name="AccID" DataType="System.Guid"/>
        <Column Name="CustID" DataType="System.Guid"/>
        <Column Name="Date" DataType="System.DateTime"/>
        <Column Name="Qty" DataType="System.Double"/>
        <Column Name="Price" DataType="System.Double"/>
        <Column Name="QtyPercent" DataType="System.Double"/>
        <Column Name="PricePercent" DataType="System.Double"/>
        <Column Name="InOut" DataType="System.Int32"/>
        <Column Name="Path" DataType="System.String"/>
        <Column Name="Level" DataType="System.Int32"/>
        <Column Name="Type" DataType="System.Int32"/>
        <Column Name="CustCount" DataType="System.Int32"/>
        <Column Name="FldStrID" DataType="System.String"/>
        <Column Name="LessCnt" DataType="System.Int32"/>
      </TableDataSource>
      <TableDataSource Name="ExtSecConnection" DataType="System.Int32" Enabled="true" TableName="ExtSecConnection" SelectCommand="exec mnrFrxPrcConnection_Add '{2E84AA1A-6F79-44a5-B019-EDA6D4587FEA}'">
        <Column Name="TmpVal" DataType="System.Int32"/>
      </TableDataSource>
    </MsSqlDataConnection>
    <Parameter Name="CurUserID" DataType="System.String" Expression="&quot;{2E84AA1A-6F79-44a5-B019-EDA6D4587FEA}&quot;"/>
    <Parameter Name="CurrName" DataType="System.String" Expression="&quot;دولار أمريكي&quot;"/>
    <Parameter Name="FromDate" DataType="System.String" Expression="&quot;01/01/2024&quot;"/>
    <Parameter Name="ToDate" DataType="System.String" Expression="&quot;23/10/2024&quot;"/>
    <Parameter Name="Period" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="NumOfMat" DataType="System.String" Expression="&quot;10&quot;"/>
    <Parameter Name="NumOfCustSell" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="MaxMoveOfGrp" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="MaxMoveOfBranch" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="MaxMoveOfCust" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="Reptype" DataType="System.String" Expression="&quot;2&quot;"/>
    <Parameter Name="RepOrder" DataType="System.String" Expression="&quot;1&quot;"/>
    <Parameter Name="MatCnt" DataType="System.String" Expression="&quot;10&quot;"/>
    <Parameter Name="SHOWUNPOSTED" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="SHOWPOSTED" DataType="System.String" Expression="&quot;1&quot;"/>
    <Parameter Name="Unit" DataType="System.String" Expression="&quot;6&quot;"/>
    <Parameter Name="Qty" DataType="System.String" Expression="&quot;1&quot;"/>
    <Parameter Name="Total" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="ShowLessPercent" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="LessPercent" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="maxMoveOfStore" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="maxMoveOfCost" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="useunit" DataType="System.String" Expression="&quot;6&quot;"/>
  </Dictionary>
  <ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" Watermark.Font="Arial, 60pt" StartPageEvent="_StartReport" ManualBuildEvent="_StartReport">
    <ReportTitleBand Name="ReportTitle1" Width="1047.06" Height="204.1">
      <PictureObject Name="Company_Logo" Left="17.07" Top="9.45" Width="1014.81" Height="105.82" Fill.Color="White" ImageLocation="\\server\Manara Tools\2019.bmp" SizeMode="CenterImage"/>
      <TextObject Name="Memo40" Left="115.34" Top="124.72" Width="816.38" Height="30.24" Text="المواد الأكثر حركة" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 16pt, style=Bold"/>
      <TextObject Name="Memo41" Left="22.68" Top="185.2" Width="124.72" Height="18.9" Text=" [CurrName] " Padding="2, 1, 2, 1" HorzAlign="Right" Font="Times New Roman, 10pt"/>
      <TextObject Name="Memo42" Left="128.5" Top="185.2" Width="60.47" Height="18.9" Text="العملة :" Padding="2, 1, 2, 1" RightToLeft="true" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo46" Left="749.66" Top="185.2" Width="86.93" Height="18.9" Text="[ToDate]" Padding="2, 1, 2, 1" HorzAlign="Right" Font="Times New Roman, 10pt"/>
      <TextObject Name="Memo43" Left="955.08" Top="185.2" Width="75.59" Height="18.9" Text="إعتبارا من:" Padding="2, 1, 2, 1" RightToLeft="true" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo44" Left="885.18" Top="185.2" Width="86.93" Height="18.9" Text="[FromDate]" Padding="2, 1, 2, 1" HorzAlign="Right" Font="Times New Roman, 10pt"/>
      <TextObject Name="Memo45" Left="837.81" Top="185.2" Width="41.57" Height="18.9" Text="ولغاية:" Padding="2, 1, 2, 1" RightToLeft="true" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="mnrExtSecMemo" Text="[ExtSecConnection.TmpVal]" Font="Arial, 10pt"/>
    </ReportTitleBand>
    <DataBand Name="MasterData1" Top="212.1" Width="1047.06" DataSource="MatMaxMove_Report">
      <DataHeaderBand Name="Header1" Top="208.1" Width="1047.06"/>
    </DataBand>
    <ReportSummaryBand Name="ReportSummary1" Top="216.1" Width="1047.06" Height="245.7">
      <MSChartObject Name="MSChart6" Left="28.35" Top="18.9" Width="1001.7" Height="170.1" CanGrow="true" GrowToBottom="true" DataSource="MatMaxMove_Report" ChartData="PENoYXJ0IFBhbGV0dGU9Ik5vbmUiIFNpemU9IjM2MCwgMjkwIiBCb3JkZXJsaW5lQ29sb3I9IkRhcmtHcmF5IiBCb3JkZXJsaW5lV2lkdGg9IjIiIEJvcmRlcmxpbmVEYXNoU3R5bGU9IlNvbGlkIj4NCiAgPFNlcmllcz4NCiAgICA8U2VyaWVzIE5hbWU9IlNlcmllczEiIExlZ2VuZD0iRGVmYXVsdCIgWFZhbHVlVHlwZT0iRGF0ZSIgWVZhbHVlVHlwZT0iRG91YmxlIiBNYXJrZXJTdGVwPSIxNyIgQ2hhcnRBcmVhPSJEZWZhdWx0IiBMYWJlbD0iI1ZBTFkiIEZvbnQ9Ik1pY3Jvc29mdCBTYW5zIFNlcmlmLCA4cHQiIE1hcmtlclNpemU9IjE1Ij4NCiAgICAgIDxQb2ludHM+DQogICAgICAgIDxEYXRhUG9pbnQgWVZhbHVlcz0iMSIgQXhpc0xhYmVsPSJBIiAvPg0KICAgICAgICA8RGF0YVBvaW50IFlWYWx1ZXM9IjMiIEF4aXNMYWJlbD0iQiIgLz4NCiAgICAgICAgPERhdGFQb2ludCBZVmFsdWVzPSIwIiBBeGlzTGFiZWw9IkMiIC8+DQogICAgICAgIDxEYXRhUG9pbnQgWVZhbHVlcz0iMCIgQXhpc0xhYmVsPSJkIiAvPg0KICAgICAgPC9Qb2ludHM+DQogICAgPC9TZXJpZXM+DQogIDwvU2VyaWVzPg0KICA8TGVnZW5kcz4NCiAgICA8TGVnZW5kIE5hbWU9IkRlZmF1bHQiIElzVGV4dEF1dG9GaXQ9IkZhbHNlIj4NCiAgICA8L0xlZ2VuZD4NCiAgPC9MZWdlbmRzPg0KICA8VGl0bGVzPg0KICAgIDxUaXRsZSBOYW1lPSJUaXRsZTEiIFZpc2libGU9IkZhbHNlIj4NCiAgICA8L1RpdGxlPg0KICA8L1RpdGxlcz4NCiAgPENoYXJ0QXJlYXM+DQogICAgPENoYXJ0QXJlYSBOYW1lPSJEZWZhdWx0Ij4NCiAgICAgIDxBeGlzWSBJc0xhYmVsQXV0b0ZpdD0iRmFsc2UiPg0KICAgICAgICA8TWFqb3JHcmlkIExpbmVDb2xvcj0iNjQsIDY0LCA2NCwgNjQiIC8+DQogICAgICA8L0F4aXNZPg0KICAgICAgPEF4aXNYIElzTGFiZWxBdXRvRml0PSJGYWxzZSIgSW50ZXJ2YWw9IjEiPg0KICAgICAgICA8TWFqb3JHcmlkIExpbmVDb2xvcj0iNjQsIDY0LCA2NCwgNjQiIC8+DQogICAgICA8L0F4aXNYPg0KICAgICAgPEF4aXNYMiBJc0xhYmVsQXV0b0ZpdD0iRmFsc2UiPg0KICAgICAgICA8TWFqb3JHcmlkIExpbmVDb2xvcj0iNjQsIDY0LCA2NCwgNjQiIC8+DQogICAgICA8L0F4aXNYMj4NCiAgICAgIDxBeGlzWTIgSXNMYWJlbEF1dG9GaXQ9IkZhbHNlIj4NCiAgICAgICAgPE1ham9yR3JpZCBMaW5lQ29sb3I9IjY0LCA2NCwgNjQsIDY0IiAvPg0KICAgICAgPC9BeGlzWTI+DQogICAgICA8QXJlYTNEU3R5bGUgSXNSaWdodEFuZ2xlQXhlcz0iRmFsc2UiIFBlcnNwZWN0aXZlPSI4IiBJbmNsaW5hdGlvbj0iLTkwIiBSb3RhdGlvbj0iLTkxIiBXYWxsV2lkdGg9IjMwIiAvPg0KICAgIDwvQ2hhcnRBcmVhPg0KICA8L0NoYXJ0QXJlYXM+DQogIDxCb3JkZXJTa2luIFNraW5TdHlsZT0iRW1ib3NzIiAvPg0KPC9DaGFydD4=">
        <MSChartSeries Name="Series6" GroupBy="XValue" XValue="[MatMaxMove_Report.Date]" YValue1="FormatNumber([MatMaxMove_Report.Price],2)"/>
      </MSChartObject>
    </ReportSummaryBand>
    <PageFooterBand Name="PageFooter1" Top="465.8" Width="1047.06" Height="49.13">
      <TextObject Name="Memo140" Left="66.81" Top="1" Width="83.15" Height="15.12" Text="[Date]" Padding="2, 1, 2, 1" Format="Date" Format.Format="d" VertAlign="Center" Font="Times New Roman, 8pt, style=Bold"/>
      <TextObject Name="Memo141" Left="7.56" Top="1" Width="56.69" Height="15.12" Text="Printed on:" Padding="2, 1, 2, 1" AutoWidth="true" VertAlign="Center" Font="Times New Roman, 8pt"/>
      <TextObject Name="Memo142" Left="156.3" Top="1" Width="39.69" Height="15.12" Text="Time:" Padding="2, 1, 2, 1" AutoWidth="true" VertAlign="Center" Font="Times New Roman, 8pt"/>
      <TextObject Name="Memo143" Left="189.32" Top="1" Width="56.69" Height="15.12" Text="[Date]" Padding="2, 1, 2, 1" Format="Time" Format.Format="t" VertAlign="Center" Font="Times New Roman, 8pt, style=Bold"/>
      <TextObject Name="Memo22" Left="878.84" Top="30.24" Width="147.4" Height="15.12" Text="www.almanarasoft.com" Padding="2, 1, 2, 1" HorzAlign="Right" Font="Times New Roman, 8pt, style=Bold" TextFill.Color="Blue"/>
      <TextObject Name="Memo1" Left="949.87" Top="1" Width="75.59" Height="18.9" Text="[Page#]" Padding="2, 1, 2, 1" HorzAlign="Right" Font="Times New Roman, 10pt"/>
    </PageFooterBand>
  </ReportPage>
</Report>
