﻿<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" StartReportEvent="_StartReport" ReportInfo.Created="08/28/2022 09:50:49" ReportInfo.Modified="08/28/2022 10:08:55" 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)
    {
      if(((String)Report.GetParameterValue(&quot;StoreCapacity&quot;))==&quot;1&quot;)
      {
      Memo13.Visible=true;
      Memo22.Visible=true;
      Memo16.Visible=true;                                                      
  
    }
      }

    
   
  }
}
/*
void Memo13OnBeforePrint(TfrxComponent Sender)
{
  if(&lt;StoreCapacity&gt;==&quot;1&quot;)
  {
    Memo13.Visible=True;
    Memo22.Visible=True;
    Memo16.Visible=True;                                                      
  
  }
}

{

}
*/</ScriptText>
  <Dictionary>
    <MsSqlDataConnection Name="ADODatabase" ConnectionString="rijcmlqJUrEa/KIcQqhhcfnlqC6PHTn0L44W7TQfS6RmUJOGDIuc+knUePlrDTYQkz8WhBiaZpTEEWyUzaPuDP87XMIQMkFbwRDRqWcnOq05AHvy/3ciW7Aj4vKJx2xbvEamJYpY4S2ERmRvbANQbrAywWlloUqxbVuYJV9jZt8uEZY11kHXAvFLccnAbNsSBoKJMPUKGD+5qxgd/3RmGNgDkiRKTpyUoHIz9hleqSasEU5P/FpmEywyc79ElHV6JPmg0iqJNJlbxLNNtomz01DLmksgD71eGQwwl4Bz2QfeVElqEgAKMSDCPEyVQ5M7Y7/PoLGOS/s0jKpmwGaRMOX10IfnXqKmcQ5FjqHXqYD9eH/VFA+7mti6zwOpgJnq1N8B2jRP9IMpAPQFy1qL/pvqyl8xT+fxl0V44yaSC9BBUMufEgQeitxQd7gqNcASWo+O9O54DTOVb47BWeS7nIkxIsRx0jyFIOuaraEk4xcmCFvYYFJ6lzgzD8FqGNZhM8yejljXL5zk5SVwJJlHjv6ARZHqSuRIlig6Q59LmnTvOq2S1S5gDUYuT2HILS2rDR/lw5/PFBsKuCPgyxYQu8tac4rhQ2pjGmObKKAEIh6xpOlVesy0LQqsIcHNux4A9yU2UG2yRYFlZSdi7dF/jJMjXu19Q==">
      <TableDataSource Name="StoreCapacity_Report" DataType="System.Int32" Enabled="true" TableName="StoreCapacity_Report" SelectCommand="exec mnrRepStoreCapacity '{00000000-0000-0000-0000-000000000000}' , '{00000000-0000-0000-0000-000000000000}' , '{00000000-0000-0000-0000-000000000000}' , 0,0">
        <Column Name="StoreID" DataType="System.Guid"/>
        <Column Name="StoreName" DataType="System.String"/>
        <Column Name="StoreLName" DataType="System.String"/>
        <Column Name="Code" DataType="System.String"/>
        <Column Name="MaxStoreWeightSize" DataType="System.Double"/>
        <Column Name="CurrStoreWeightSize" DataType="System.Double"/>
      </TableDataSource>
    </MsSqlDataConnection>
    <Parameter Name="CurUserID" DataType="System.String" Expression="&quot;{88582DA0-3151-479b-BD5C-E8EF45BD29FC}&quot;"/>
    <Parameter Name="StoreCapacity" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="StoreEmpty" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="ByWeight" DataType="System.String" Expression="&quot;1&quot;"/>
    <Parameter Name="ShowOverLimit" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="FromDate" DataType="System.String"/>
    <Parameter Name="ToDate" DataType="System.String"/>
    <Parameter Name="CurrName" DataType="System.String"/>
    <Total Name="CurrStoreWeightSize" Expression="IIf(ToDouble([ByWeight])==0,[StoreCapacity_Report.CurrStoreWeightSize],[StoreCapacity_Report.CurrStoreWeightSize])" Evaluator="MasterData1"/>
    <Total Name="MaxStoreWeightSize" Expression="IIf(ToDouble([ByWeight])==0,[StoreCapacity_Report.MaxStoreWeightSize],[StoreCapacity_Report.MaxStoreWeightSize])" Evaluator="MasterData1"/>
  </Dictionary>
  <ReportPage Name="Page1" Watermark.Font="Arial, 60pt">
    <ReportTitleBand Name="ReportTitle1" Width="718.2" Height="151.18">
      <TextObject Name="Memo2" Left="279.69" Top="98.27" Width="158.74" Height="26.46" Text="سعة المستودعات" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 14pt, style=Bold"/>
      <PictureObject Name="Company_Logo" Left="9.45" Width="699.21" Height="94.49" Fill.Color="White" SizeMode="CenterImage" Image=""/>
    </ReportTitleBand>
    <PageHeaderBand Name="PageHeader1" Top="155.18" Width="718.2" Height="18.9">
      <TextObject Name="Memo10" Left="668.98" Width="45.35" Height="18.9" Border.Lines="All" Fill.Color="187, 210, 244" Text="الرقم" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo11" Left="442.21" Width="226.77" Height="18.9" Border.Lines="All" Fill.Color="187, 210, 244" Text="المستودع " Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo12" Left="313.7" Width="128.5" Height="18.9" Border.Lines="All" Fill.Color="187, 210, 244" Text="[IIf(ToDouble([ByWeight])==0,&quot;الحجم الحالي&quot;,&quot;الوزن الحالي&quot;)]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo13" Left="185.2" Width="128.5" Height="18.9" Visible="false" Border.Lines="All" Fill.Color="187, 210, 244" Text="[IIf(ToDouble([ByWeight])==0,&quot;الحجم الأعظمي&quot;,&quot;الوزن الأعظمي&quot;)]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
    </PageHeaderBand>
    <DataBand Name="MasterData1" Top="178.08" Width="718.2" Height="18.9" CanGrow="true" CanShrink="true" DataSource="StoreCapacity_Report">
      <TextObject Name="Memo19" Left="668.98" Width="45.35" Height="18.9" Border.Lines="All" Fill.Color="White" GrowToBottom="true" Text="[Row#]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt"/>
      <TextObject Name="Memo20" Left="442.21" Width="226.77" Height="18.9" Border.Lines="All" Fill.Color="White" GrowToBottom="true" Text="[StoreCapacity_Report.StoreName]" Padding="2, 1, 2, 1" HorzAlign="Right" VertAlign="Center" RightToLeft="true" Font="Times New Roman, 10pt"/>
      <TextObject Name="Memo21" Left="313.7" Width="128.5" Height="18.9" Border.Lines="All" Fill.Color="White" GrowToBottom="true" Text="[IIf(ToDouble([ByWeight])==0,[StoreCapacity_Report.CurrStoreWeightSize],[StoreCapacity_Report.CurrStoreWeightSize])]" Padding="2, 1, 2, 1" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" RightToLeft="true" Font="Times New Roman, 10pt"/>
      <TextObject Name="Memo22" Left="185.2" Width="128.5" Height="18.9" Visible="false" Border.Lines="All" Fill.Color="White" GrowToBottom="true" Text="[IIf(ToDouble([ByWeight])==0,[StoreCapacity_Report.MaxStoreWeightSize],[StoreCapacity_Report.MaxStoreWeightSize])]" Padding="2, 1, 2, 1" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" Font="Times New Roman, 10pt"/>
    </DataBand>
    <ReportSummaryBand Name="ReportSummary1" Top="200.98" Width="718.2" Height="18.9">
      <TextObject Name="Memo14" Left="442.21" Width="226.77" Height="18.9" Border.Lines="All" Fill.Color="187, 210, 244" Text="الإجمالي" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold"/>
      <TextObject Name="Memo15" Left="313.7" Width="128.5" Height="18.9" Border.Lines="All" Fill.Color="White" GrowToBottom="true" Text="[CurrStoreWeightSize]" Padding="2, 1, 2, 1" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" RightToLeft="true" Font="Times New Roman, 10pt"/>
      <TextObject Name="Memo16" Left="185.2" Width="128.5" Height="18.9" Visible="false" Border.Lines="All" Fill.Color="White" GrowToBottom="true" Text="[MaxStoreWeightSize]" Padding="2, 1, 2, 1" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" RightToLeft="true" Font="Times New Roman, 10pt"/>
    </ReportSummaryBand>
    <PageFooterBand Name="PageFooter1" Top="223.88" Width="718.2" Height="45.35">
      <TextObject Name="Memo140" Left="64.94" 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="5.69" 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="154.43" Width="30.24" Height="15.12" Text="Time:" Padding="2, 1, 2, 1" AutoWidth="true" VertAlign="Center" Font="Times New Roman, 8pt"/>
      <TextObject Name="Memo143" Left="187.45" 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="Memo8" Left="560.37" Top="24.35" Width="154.96" Height="15.12" Text="www.almanarasoft.com" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Times New Roman, 10pt, style=Bold" TextFill.Color="Blue"/>
      <TextObject Name="Memo9" Left="612.5" Width="94.49" Height="18.9" Text="[Page#]" Padding="2, 1, 2, 1" HorzAlign="Right" VertAlign="Center" Font="Times New Roman, 10pt"/>
    </PageFooterBand>
  </ReportPage>
</Report>
