﻿<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" StartReportEvent="_StartReport" ReportInfo.Created="03/13/2023 10:07:52" ReportInfo.Modified="04/27/2024 12:55:56" 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
  {
    

    private void _StartReport(object sender, EventArgs e)
    {
      GroupHeader1.KeepTogether=true;                  
      if(((String)Report.GetParameterValue(&quot;ShowAccAge&quot;)) != &quot;1&quot;)
      {
        MessageBox.Show( &quot;������ ������ ����� ���&quot;);
        Report.Abort();// ( Sender).Terminated = true;    ---------------------------
      }     
      else    
      {
        Per1.Visible = false;
        Per2.Visible = false;
        Per3.Visible = false;
        Per4.Visible = false;
        per5.Visible = false;
        per6.Visible = false;

        P11.Visible = false;
        P12.Visible = false;
        P13.Visible = false;
        P14.Visible = false;
        P15.Visible = false;
        P16.Visible = false;
         
        if( Convert.ToInt32((String)Report.GetParameterValue(&quot;PeriodCnt&quot;))  == 1)      
        {
          Per1.Visible = true;
          Per1.Visible=true ;     
          P11.Visible = true;
          Pe11.Visible = true;   
          
          P2.Visible = true;                
          Per2.Visible = true;
          P12.Visible = true;
          Pe12.Visible = true; 
          P2.AllowExpressions = false;                
          Per2.AllowExpressions = false;
          P12.AllowExpressions = false;
          Pe12.AllowExpressions = false; 
          
          Per3.Visible = false;
          P3.Visible = false;
          P13.Visible = false;
          Pe13.Visible = false;  
          Per3.AllowExpressions = false; 
          P3.AllowExpressions = false; 
          P13.AllowExpressions = false; 
          Pe13.AllowExpressions = false;  
          
          Per4.Visible = false;
          P4.Visible = false;
          P14.Visible = false;
          Pe14.Visible = false;                  
          Per4.AllowExpressions = false;
          P4.AllowExpressions = false;
          P14.AllowExpressions = false;
          Pe14.AllowExpressions = false; 
          
          
          per5.Visible = false;
          P5.Visible = false;
          P15.Visible = false;
          Pe15.Visible = false; 
          per5.AllowExpressions = false;
          P5.AllowExpressions = false;
          P15.AllowExpressions = false;
          Pe15.AllowExpressions = false; 
        
          
          per6.Visible = false;
          P6.Visible = false;
          P16.Visible = false;
          Pe16.Visible = false; 
          per6.AllowExpressions = false;
          P6.AllowExpressions = false;
          P16.AllowExpressions = false;
          Pe16.AllowExpressions = false;
        }
               
        if( Convert.ToInt32((String)Report.GetParameterValue(&quot;PeriodCnt&quot;)) == 2)      
        {
          Per1.Visible = true;
          Per1.Visible=true ;     
          P11.Visible = true;
          Pe11.Visible = true;  
           
          P2.Visible = true;                
          Per2.Visible = true;
          P12.Visible = true;
          Pe12.Visible = true; 
          P2.AllowExpressions = true;                
          Per2.AllowExpressions = true;
          P12.AllowExpressions = true;
          Pe12.AllowExpressions = true; 
          
          Per3.Visible = false;
          P3.Visible = false;
          P13.Visible = false;
          Pe13.Visible = false;  
          Per3.AllowExpressions = false; 
          P3.AllowExpressions = false; 
          P13.AllowExpressions = false; 
          Pe13.AllowExpressions = false;  
          
          Per4.Visible = false;
          P4.Visible = false;
          P14.Visible = false;
          Pe14.Visible = false;                  
          Per4.AllowExpressions = false;
          P4.AllowExpressions = false;
          P14.AllowExpressions = false;
          Pe14.AllowExpressions = false; 
          
          
          per5.Visible = false;
          P5.Visible = false;
          P15.Visible = false;
          Pe15.Visible = false; 
          per5.AllowExpressions = false;
          P5.AllowExpressions = false;
          P15.AllowExpressions = false;
          Pe15.AllowExpressions = false; 
        
          
          per6.Visible = false;
          P6.Visible = false;
          P16.Visible = false;
          Pe16.Visible = false; 
          per6.AllowExpressions = false;
          P6.AllowExpressions = false;
          P16.AllowExpressions = false;
          Pe16.AllowExpressions = false;
             
        }
        if(Convert.ToInt32((String)Report.GetParameterValue(&quot;PeriodCnt&quot;)) == 3)
        {
          Per1.Visible = true;
          Per1.Visible=true ;     
          P11.Visible = true;
          Pe11.Visible = true;  
           
          P2.Visible = true;                
          Per2.Visible = true;
          P12.Visible = true;
          Pe12.Visible = true; 
          P2.AllowExpressions = true;                
          Per2.AllowExpressions = true;
          P12.AllowExpressions = true;
          Pe12.AllowExpressions = true; 
          
          Per3.Visible = true;
          P3.Visible = true;
          P13.Visible = true;
          Pe13.Visible = true;  
          Per3.AllowExpressions = true; 
          P3.AllowExpressions = true; 
          P13.AllowExpressions = true; 
          Pe13.AllowExpressions = true; 
          
          Per4.Visible = false;
          P4.Visible = false;
          P14.Visible = false;
          Pe14.Visible = false;                  
          Per4.AllowExpressions = false;
          P4.AllowExpressions = false;
          P14.AllowExpressions = false;
          Pe14.AllowExpressions = false; 
          
          
          per5.Visible = false;
          P5.Visible = false;
          P15.Visible = false;
          Pe15.Visible = false; 
          per5.AllowExpressions = false;
          P5.AllowExpressions = false;
          P15.AllowExpressions = false;
          Pe15.AllowExpressions = false; 
        
          
          per6.Visible = false;
          P6.Visible = false;
          P16.Visible = false;
          Pe16.Visible = false; 
          per6.AllowExpressions = false;
          P6.AllowExpressions = false;
          P16.AllowExpressions = false;
          Pe16.AllowExpressions = false;
        
        }
        if( Convert.ToInt32((String)Report.GetParameterValue(&quot;PeriodCnt&quot;)) == 4)
        {
          Per1.Visible = true;
          Per1.Visible=true ;     
          P11.Visible = true;
          Pe11.Visible = true;  
           
          P2.Visible = true;                
          Per2.Visible = true;
          P12.Visible = true;
          Pe12.Visible = true; 
          P2.AllowExpressions = true;                
          Per2.AllowExpressions = true;
          P12.AllowExpressions = true;
          Pe12.AllowExpressions = true; 
          
          Per3.Visible = true;
          P3.Visible = true;
          P13.Visible = true;
          Pe13.Visible = true;  
          Per3.AllowExpressions = true; 
          P3.AllowExpressions = true; 
          P13.AllowExpressions = true; 
          Pe13.AllowExpressions = true; 
          
          Per4.Visible = true;
          P4.Visible = true;
          P14.Visible = true;
          Pe14.Visible = true;                  
          Per4.AllowExpressions = true;
          P4.AllowExpressions = true;
          P14.AllowExpressions = true;
          Pe14.AllowExpressions = true; 
          
          per5.Visible = false;
          P5.Visible = false;
          P15.Visible = false;
          Pe15.Visible = false; 
          per5.AllowExpressions = false;
          P5.AllowExpressions = false;
          P15.AllowExpressions = false;
          Pe15.AllowExpressions = false; 
        
          
          per6.Visible = false;
          P6.Visible = false;
          P16.Visible = false;
          Pe16.Visible = false; 
          per6.AllowExpressions = false;
          P6.AllowExpressions = false;
          P16.AllowExpressions = false;
          Pe16.AllowExpressions = false;
          
            
        }
        if( Convert.ToInt32((String)Report.GetParameterValue(&quot;PeriodCnt&quot;)) == 5)
        {
          
          
          Per1.Visible = true;
          Per1.Visible=true ;     
          P11.Visible = true;
          Pe11.Visible = true;  
           
          P2.Visible = true;                
          Per2.Visible = true;
          P12.Visible = true;
          Pe12.Visible = true; 
          P2.AllowExpressions = true;                
          Per2.AllowExpressions = true;
          P12.AllowExpressions = true;
          Pe12.AllowExpressions = true; 
          
          Per3.Visible = true;
          P3.Visible = true;
          P13.Visible = true;
          Pe13.Visible = true;  
          Per3.AllowExpressions = true; 
          P3.AllowExpressions = true; 
          P13.AllowExpressions = true; 
          Pe13.AllowExpressions = true; 
          
          Per4.Visible = true;
          P4.Visible = true;
          P14.Visible = true;
          Pe14.Visible = true;                  
          Per4.AllowExpressions = true;
          P4.AllowExpressions = true;
          P14.AllowExpressions = true;
          Pe14.AllowExpressions = true; 
          
          per5.Visible = true;
          P5.Visible = true;
          P15.Visible = true;
          Pe15.Visible = true; 
          per5.AllowExpressions = true;
          P5.AllowExpressions = true;
          P15.AllowExpressions = true;
          Pe15.AllowExpressions = true; 
          
          per6.Visible = false;
          P6.Visible = false;
          P16.Visible = false;
          Pe16.Visible = false; 
          per6.AllowExpressions = false;
          P6.AllowExpressions = false;
          P16.AllowExpressions = false;
          Pe16.AllowExpressions = false;
          
        }
        if(Convert.ToInt32((String)Report.GetParameterValue(&quot;PeriodCnt&quot;)) == 6)
        {
          Per1.Visible = true;
          Per1.Visible=true ;     
          P11.Visible = true;
          Pe11.Visible = true;  
           
          P2.Visible = true;                
          Per2.Visible = true;
          P12.Visible = true;
          Pe12.Visible = true; 
          P2.AllowExpressions = true;                
          Per2.AllowExpressions = true;
          P12.AllowExpressions = true;
          Pe12.AllowExpressions = true; 
          
          Per3.Visible = true;
          P3.Visible = true;
          P13.Visible = true;
          Pe13.Visible = true;  
          Per3.AllowExpressions = true; 
          P3.AllowExpressions = true; 
          P13.AllowExpressions = true; 
          Pe13.AllowExpressions = true; 
          
          Per4.Visible = true;
          P4.Visible = true;
          P14.Visible = true;
          Pe14.Visible = true;                  
          Per4.AllowExpressions = true;
          P4.AllowExpressions = true;
          P14.AllowExpressions = true;
          Pe14.AllowExpressions = true; 
          
          per5.Visible = true;
          P5.Visible = true;
          P15.Visible = true;
          Pe15.Visible = true; 
          per5.AllowExpressions = true;
          P5.AllowExpressions = true;
          P15.AllowExpressions = true;
          Pe15.AllowExpressions = true; 
          
          per6.Visible = true;
          P6.Visible = true;
          P16.Visible = true;
          Pe16.Visible = true; 
          per6.AllowExpressions = true;
          P6.AllowExpressions = true;
          P16.AllowExpressions = true;
          Pe16.AllowExpressions = true;
     
        }
        
        Double Sum1 = 0;
        Double Sum3 = 0;
        Double Sum5 = 0;
        Double SumBal = 0;
        String ty1= &quot;&quot;;
        DataSourceBase ds= Report.GetDataSource(&quot;Acc_Statement_Report&quot;);
        while  (ds.HasMoreRows)// do
        {                      
          if((((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Extra&quot;)) &gt; 0)||(((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Disc&quot;)) &gt; 0))
          {
            Sum1=Sum1 + ((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Debit&quot;)) - ((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Credit&quot;));                                                               
            //Memo6.Text=&quot; ������ �������� / ��������&quot;;
            //Memo14.Text= FloatToStr(Sum1);
            //Memo6.Font.Color = Color.CadetBlue;
          }
          else
          {
            if(((Int32)Report.GetColumnValue(&quot;Acc_Statement_Report.RepType&quot;)) == -1)                                  
            {
              Sum1= ((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Debit&quot;)) - ((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Credit&quot;));                               
              //Memo6.Text=&quot;������ ������&quot;;
              //Memo14.Text=FloatToStr(Sum5);                        
              //Memo6.Font.Color = Color.LightPink; //&lt;clRed&gt;;                      
            }
            else
            {
              if(((Int32)Report.GetColumnValue(&quot;Acc_Statement_Report.PayType&quot;)) == 0)
              {                       
                if(((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Debit&quot;)) &gt; 0)
                {                       
                  //Memo6.Text=&quot;����&quot;;
                 // Memo14.Text= FloatToStr(Sum1) ;
                }
                else
                {
                  //Memo6.Text=&quot;&quot;;
                  //Memo14.Text= FloatToStr(Sum1 + StrToFloat(((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Debit&quot;)) - ((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Credit&quot;))));  //&amp;&amp;&amp;&amp;                                            
                }                               
              }                               
              else
              {
               // Memo6.Text=&quot;&quot;;
               // Memo14.Text= FloatToStr(Sum1 + StrToFloat(((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Debit&quot;)) - ((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Credit&quot;)))) ;//****^^^^
                Sum5= Sum1 +  ((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Debit&quot;)) - ((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Credit&quot;));
                Sum1=0;
                Sum1=Sum5;
                //Memo6.Font.Color = Color.Black;
              }
            }                  
          }              
          if (ty1 !=  ((String)Report.GetColumnValue(&quot;Acc_Statement_Report.AccCode&quot;)))
          {
            Sum5=0;                           
            if(Sum3 == 1)
            {
              Engine.ShowBand(GroupFooter1);
              Sum3=Convert.ToDouble(ty1);
            }
            {     
            Engine.ShowBand(GroupHeader1);
            //   Engine.ShowBand(MasterData1);
            Engine.ShowBand(GroupFooter1);
            //}
            ty1 = ((String)Report.GetColumnValue(&quot;Acc_Statement_Report.AccCode&quot;));          
          }
            if(((Int32)Report.GetColumnValue(&quot;Acc_Statement_Report.RepType&quot;)) == -1)
            {
              //Memo6.Text=&quot;������ ������&quot;;
             // Memo14.Text=FloatToStr(Sum5);
              Sum5=0;
              Sum5=((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Debit&quot;))  -  ((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Credit&quot;));
              //Sum5 = StrToFloat(FormatFloat(&quot;#0.00&quot;,Sum5));
              //Memo6.Font.Color = Color.LightPink;// &lt;clRed&gt;;                         
            }              
            else
            {
              if(((Int32)Report.GetColumnValue(&quot;Acc_Statement_Report.PayType&quot;)) == 0)
              {
                if(((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Debit&quot;)) &gt; 0)
                {                       
                  //Memo6.Text=&quot;����&quot;;
                  //Memo14.Text= FloatToStr(Sum1) ;
                }
                else
                {                      
                  if(((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Debit&quot;)) &lt; 0)
                  {
                    //Memo6.Text =&quot;&quot;;
                    //Memo14.Text= FloatToStr(Sum1 + StrToFloat(((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Debit&quot;)) - ((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Credit&quot;)))) ;                                   
                  }
                  else
                  {                                    
                    //Memo6.Text=&quot;&quot;;
                    //Memo6.Font.Color = Color.Black;// &lt;clBlack&gt;;                                          
                  }                                     
                }                                                              
              }
            }
            if((((Int32)Report.GetColumnValue(&quot;Acc_Statement_Report.HasEntry&quot;))  == 1) || (((Int32)Report.GetColumnValue(&quot;Acc_Statement_Report.flag&quot;))  == 1) || (((Int32)Report.GetColumnValue(&quot;Acc_Statement_Report.flag&quot;)) ==6) )
            {     
              if((((Int32)Report.GetColumnValue(&quot;Acc_Statement_Report.PayType&quot;)) ==1) || (((Int32)Report.GetColumnValue(&quot;Acc_Statement_Report.PayType&quot;)) == 9))                                               
                SumBal += (((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Debit&quot;)) - ((Double)Report.GetColumnValue(&quot;Acc_Statement_Report.Credit&quot;))) ;                                                         
            }
            if(((String)Report.GetColumnValue(&quot;Acc_Statement_Report.MatCode&quot;)) == &quot;&quot;)                    
            {
              //memo14.text = FormatFloat(&quot;#0.00&quot;,SumBal)  ;
            }                     
            else
            {
              //memo14.text = &quot;&quot;  ;            
            }

            //memo6.text +=  ((String)Report.GetColumnValue(&quot;Acc_Statement_Report.Notes&quot;));                                                     
            //----------------
            {
            if(Sum3==1)
            {                      
              Engine.ShowBand(MasterData1);
            }                  
            } 
            ty1 = ((String)Report.GetColumnValue(&quot;Acc_Statement_Report.AccCode&quot;));                     
            Engine.ShowBand(MasterData1);                          
            ds.Next();
            }
        }
      }
    }
  }
}
</ScriptText>
  <Dictionary>
    <MsSqlDataConnection Name="ADODatabase" ConnectionString="rijcmlqJUrEa/KIcQqhhcfnlqC6PHTn0L44W7TQfS6RmUJOGDIuc+knUePlrDTYQkz8WhBiAzEgRwZQnSuMp2aeO9YxBum2uUIXh1a5SL8Qe0yZaZwug6o2Mxf+CpVlcVhywh1WqxNeVMey63TzTSMcK61Hp+ffsvjvgR9tbpSrc49N/xlK97H8timqqXteiU9EehZSBKzF6MTTBvTPO3rKfbzcTODxyPWrNL5bQrVtA3QAz1Vnn92ZJE/j/0n29BRHtDp21wFhc9NcoLmTZTC10iJ5F3Tx25VQ46rv2quxaLJ+ooG9mXO3dms69YJr24jXj4ZOKHVH+tV+KP6kapT07+DJs2Y8vSs0KLEBOzHfakHdzvmYd7qoONwmaNo1XyQgLLnqThXb7vPqnGoVI+WAC858qIRPRnVGjhvf4vq7xLwwFxU355RQrCWQhcVVU9GPQWxqKSyajbOL4Ru5tibfFbNlbxS25lrpP7RcGZ6CZt/YxUDJk5tN8mlLGdwFCKj9nWo1uyaB9hJsqHfsMXifiS++fTatczlhAC0bGnUM1usaHHktj5fiJtv5u1npfUt+UEJt0RnSKaemOMRwl62WUb5hrUtrPZ961WxPISMqRP6JU6e/tjMRsgo/VolYopnr1H+wKx7MvarTxduYU5C+A1QaZ2HCGa+DGrZUEG3Yse8wsob5mwz4NNxibksZPoYzEGnVDNIdQ0cje5g6uTsrv+bz+Q==" CommandTimeout="1200">
      <TableDataSource Name="Acc_Statement_Report" DataType="System.Int32" Enabled="true" TableName="Acc_Statement_Report" SelectCommand="exec mnrPrcRepAccStatement5 '{00000000-0000-0000-0000-000000000000}' , '{77DC6AD9-19CA-482e-BA54-C9408B67B88A}' , '{00000000-0000-0000-0000-000000000000}' , '{00000000-0000-0000-0000-000000000000}' , '' , '' , '{1A9A5EDA-ED33-41df-BF65-426897D784EF}' , '{4F425CE1-1697-4b62-A1A1-095D84C722A2}' , '12-31-2021' , '4-27-2024' , '' , '' ,  6  ,	1  ,  0  ,  1  ,  0  ,  2  ,  0  ,  0  ,  0  ,  0  ,  0  ,  0  ,  0  ,  0  ,  0  ,  0  ,  0  ,  0  , '' , '' , '' ,  1  ,  6  ,  30  , '{00000000-0000-0000-0000-000000000000}','{00000000-0000-0000-0000-000000000000}',0,0,0">
        <Column Name="EID" DataType="System.Guid"/>
        <Column Name="EParentID" DataType="System.Guid"/>
        <Column Name="ETypeID" DataType="System.Guid"/>
        <Column Name="EDate" DataType="System.DateTime"/>
        <Column Name="CustID" DataType="System.Guid"/>
        <Column Name="CustName" DataType="System.String"/>
        <Column Name="CustLatinName" DataType="System.String"/>
        <Column Name="AccID" DataType="System.Guid"/>
        <Column Name="AccCode" DataType="System.String"/>
        <Column Name="AccName" DataType="System.String"/>
        <Column Name="AccLatinName" DataType="System.String"/>
        <Column Name="Debit" DataType="System.Double"/>
        <Column Name="Credit" DataType="System.Double"/>
        <Column Name="DefDebit" DataType="System.Double"/>
        <Column Name="DefCredit" DataType="System.Double"/>
        <Column Name="AccCurrDebit" DataType="System.Double"/>
        <Column Name="AccCurrCredit" DataType="System.Double"/>
        <Column Name="BNID" DataType="System.Guid"/>
        <Column Name="TypeID" DataType="System.Guid"/>
        <Column Name="parentID" DataType="System.Guid"/>
        <Column Name="Number" DataType="System.Int32"/>
        <Column Name="type" DataType="System.Int32"/>
        <Column Name="State" DataType="System.Int32"/>
        <Column Name="Date" DataType="System.DateTime"/>
        <Column Name="DueDate" DataType="System.DateTime"/>
        <Column Name="CollectionDate" DataType="System.DateTime"/>
        <Column Name="TypeName" DataType="System.String"/>
        <Column Name="BNLatinName" DataType="System.String"/>
        <Column Name="InOut" DataType="System.Int32"/>
        <Column Name="PayType" DataType="System.Int32"/>
        <Column Name="CurrencyVal" DataType="System.Int32"/>
        <Column Name="MainCurrencyID" DataType="System.Guid"/>
        <Column Name="bItemNum" DataType="System.Int32"/>
        <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="ContrastAccID" DataType="System.Guid"/>
        <Column Name="ContrastAccCode" DataType="System.String"/>
        <Column Name="ContrastAccName" DataType="System.String"/>
        <Column Name="ContrastAccLName" DataType="System.String"/>
        <Column Name="Unit" DataType="System.String"/>
        <Column Name="ItemQty" DataType="System.Double"/>
        <Column Name="ItemPrice" DataType="System.Double"/>
        <Column Name="Disc" DataType="System.Double"/>
        <Column Name="Extra" DataType="System.Double"/>
        <Column Name="Vat" DataType="System.Double"/>
        <Column Name="BillTotal" DataType="System.Double"/>
        <Column Name="payment" DataType="System.Double"/>
        <Column Name="Notes" DataType="System.String"/>
        <Column Name="flag" DataType="System.Int32"/>
        <Column Name="Balanced" DataType="System.Int32"/>
        <Column Name="RepType" DataType="System.Int32"/>
        <Column Name="ItemOption" DataType="System.Int32"/>
        <Column Name="HasEntry" DataType="System.Int32"/>
        <Column Name="BNAge" DataType="System.Double"/>
        <Column Name="DocType" DataType="System.Int32"/>
        <Column Name="Vendor" DataType="System.String"/>
        <Column Name="HasPayment" DataType="System.Int32"/>
        <Column Name="txt1" DataType="System.String"/>
        <Column Name="txt2" DataType="System.String"/>
        <Column Name="txt3" DataType="System.String"/>
        <Column Name="txt4" DataType="System.String"/>
        <Column Name="txt5" DataType="System.String"/>
        <Column Name="txt6" DataType="System.String"/>
        <Column Name="Date1" DataType="System.DateTime"/>
        <Column Name="Date2" DataType="System.DateTime"/>
        <Column Name="Date3" DataType="System.DateTime"/>
        <Column Name="OpClass" DataType="System.String"/>
        <Column Name="TTC" DataType="System.Int32"/>
      </TableDataSource>
      <TableDataSource Name="AccAge" DataType="System.Int32" Enabled="true" TableName="AccAge" SelectCommand="exec mnrPrcRepAccAge  '{00000000-0000-0000-0000-000000000000}' , '{77DC6AD9-19CA-482e-BA54-C9408B67B88A}' , '{00000000-0000-0000-0000-000000000000}' , '{00000000-0000-0000-0000-000000000000}' , '{4F425CE1-1697-4b62-A1A1-095D84C722A2}' , '4-27-2024' , '' , '' , 0, 6 , 30, 0,0,0,1,0,0,0x0,0x0">
        <Column Name="ID" DataType="System.Guid"/>
        <Column Name="Name" DataType="System.String"/>
        <Column Name="LatinName" DataType="System.String"/>
        <Column Name="DiscRate" DataType="System.Double"/>
        <Column Name="BarCode" DataType="System.String"/>
        <Column Name="Prefix" DataType="System.String"/>
        <Column Name="Suffix" DataType="System.String"/>
        <Column Name="Country" DataType="System.String"/>
        <Column Name="City" DataType="System.String"/>
        <Column Name="Area" DataType="System.String"/>
        <Column Name="Street" DataType="System.String"/>
        <Column Name="Nationality" DataType="System.String"/>
        <Column Name="MailBox" DataType="System.String"/>
        <Column Name="Phone1" DataType="System.String"/>
        <Column Name="Phone2" DataType="System.String"/>
        <Column Name="Mobile" DataType="System.String"/>
        <Column Name="Fax" DataType="System.String"/>
        <Column Name="Email" DataType="System.String"/>
        <Column Name="WebPage" DataType="System.String"/>
        <Column Name="PoBox" DataType="System.String"/>
        <Column Name="Account" DataType="System.Guid"/>
        <Column Name="Balance" DataType="System.Double"/>
        <Column Name="BDebit" DataType="System.Double"/>
        <Column Name="BCredit" DataType="System.Double"/>
        <Column Name="Period1" DataType="System.Double"/>
        <Column Name="Period2" DataType="System.Double"/>
        <Column Name="Period3" DataType="System.Double"/>
        <Column Name="Period4" DataType="System.Double"/>
        <Column Name="Period5" DataType="System.Double"/>
        <Column Name="Period6" DataType="System.Double"/>
      </TableDataSource>
      <TableDataSource Name="Acc_Statement_Report1" DataType="System.Int32" PropName="AccAge1" Enabled="true" TableName="Acc_Statement_Report1">
        <Column Name="Name" DataType="System.String"/>
        <Column Name="LatinName" DataType="System.String"/>
        <Column Name="Balance" DataType="System.Double"/>
        <Column Name="BDebit" DataType="System.Double"/>
        <Column Name="BCredit" DataType="System.Double"/>
        <Column Name="AccID" DataType="System.Guid"/>
        <Column Name="Code" DataType="System.String"/>
        <Column Name="Period1" DataType="System.Double"/>
        <Column Name="Period2" DataType="System.Double"/>
        <Column Name="Period3" DataType="System.Double"/>
        <Column Name="Period4" DataType="System.Double"/>
        <Column Name="Period5" DataType="System.Double"/>
        <Column Name="Period6" DataType="System.Double"/>
      </TableDataSource>
      <TableDataSource Name="AccAgeCredit" DataType="System.Int32" Enabled="true" TableName="AccAgeCredit" SelectCommand="exec mnrPrcRepAccAge  '{00000000-0000-0000-0000-000000000000}' , '{77DC6AD9-19CA-482e-BA54-C9408B67B88A}' , '{00000000-0000-0000-0000-000000000000}' , '{00000000-0000-0000-0000-000000000000}' , '{4F425CE1-1697-4b62-A1A1-095D84C722A2}' , '4-27-2024' , '' , '' , 0, 6 , 30, 1,0,0,1,0,0,0x0,0x0">
        <Column Name="ID" DataType="System.Guid"/>
        <Column Name="Name" DataType="System.String"/>
        <Column Name="LatinName" DataType="System.String"/>
        <Column Name="DiscRate" DataType="System.Double"/>
        <Column Name="BarCode" DataType="System.String"/>
        <Column Name="Prefix" DataType="System.String"/>
        <Column Name="Suffix" DataType="System.String"/>
        <Column Name="Country" DataType="System.String"/>
        <Column Name="City" DataType="System.String"/>
        <Column Name="Area" DataType="System.String"/>
        <Column Name="Street" DataType="System.String"/>
        <Column Name="Nationality" DataType="System.String"/>
        <Column Name="MailBox" DataType="System.String"/>
        <Column Name="Phone1" DataType="System.String"/>
        <Column Name="Phone2" DataType="System.String"/>
        <Column Name="Mobile" DataType="System.String"/>
        <Column Name="Fax" DataType="System.String"/>
        <Column Name="Email" DataType="System.String"/>
        <Column Name="WebPage" DataType="System.String"/>
        <Column Name="PoBox" DataType="System.String"/>
        <Column Name="Account" DataType="System.Guid"/>
        <Column Name="Balance" DataType="System.Double"/>
        <Column Name="BDebit" DataType="System.Double"/>
        <Column Name="BCredit" DataType="System.Double"/>
        <Column Name="Period1" DataType="System.Double"/>
        <Column Name="Period2" DataType="System.Double"/>
        <Column Name="Period3" DataType="System.Double"/>
        <Column Name="Period4" DataType="System.Double"/>
        <Column Name="Period5" DataType="System.Double"/>
        <Column Name="Period6" DataType="System.Double"/>
      </TableDataSource>
      <TableDataSource Name="ExtSecConnection" DataType="System.Int32" Enabled="true" TableName="ExtSecConnection" SelectCommand="exec mnrFrxPrcConnection_Add '{46329CDF-FD98-41f2-AA26-1F5456A21552}'">
        <Column Name="TmpVal" DataType="System.Int32"/>
      </TableDataSource>
    </MsSqlDataConnection>
    <Parameter Name="ShowAccAge" DataType="System.String" Expression="&quot;1&quot;"/>
    <Parameter Name="FromDate" DataType="System.String" Expression="&quot;31/12/2021&quot;"/>
    <Parameter Name="ToDate" DataType="System.String" Expression="&quot;27/4/2024&quot;"/>
    <Parameter Name="Acc" DataType="System.String" Expression="&quot;&quot;"/>
    <Parameter Name="Cust" DataType="System.String" Expression="&quot;30195 -(عهدة) محمد محمد احمد النشار&quot;"/>
    <Parameter Name="Currency" DataType="System.String" Expression="&quot;�����&quot;"/>
    <Parameter Name="NumberOfPeriod" DataType="System.String" Expression="&quot;3&quot;"/>
    <Parameter Name="PeriodLength" DataType="System.String" Expression="&quot;30&quot;"/>
    <Parameter Name="PeriodCnt" DataType="System.String" Expression="&quot;6&quot;"/>
    <Parameter Name="PeriodLen" DataType="System.String" Expression="&quot;30&quot;"/>
    <Parameter Name="CurUserID" DataType="System.String" Expression="&quot;{46329CDF-FD98-41f2-AA26-1F5456A21552}&quot;"/>
    <Parameter Name="CurrName" DataType="System.String" Expression="&quot;ريال سعودي&quot;"/>
    <Parameter Name="CurrName2" DataType="System.String" Expression="&quot;���� �����&quot;"/>
    <Parameter Name="CostJob" DataType="System.String" Expression="&quot;&quot;"/>
    <Parameter Name="SaleMan" DataType="System.String" Expression="&quot;&quot;"/>
    <Parameter Name="Vendor" DataType="System.String" Expression="&quot;&quot;"/>
    <Parameter Name="Class" DataType="System.String" Expression="&quot;&quot;"/>
    <Parameter Name="ShowDueDate" DataType="System.String" Expression="&quot;0&quot;"/>
    <Parameter Name="BillPayType" DataType="System.String" Expression="&quot;1&quot;"/>
    <Total Name="Totals1" Expression="IIf(([Acc_Statement_Report.HasEntry] == 1) || ([Acc_Statement_Report.flag]==1) || ([Acc_Statement_Report.flag]==6),IIf([Acc_Statement_Report.Credit]&gt;0,[Acc_Statement_Report.Credit],IIf(([Acc_Statement_Report.flag]==4) &amp;&amp; ([Acc_Statement_Report.PayType]==0),[Acc_Statement_Report.Debit],0))   ,0)" Evaluator="MasterData1" PrintOn="ReportSummary1"/>
    <Total Name="Totalss1" Expression="IIf(([Acc_Statement_Report.HasEntry] == 1) || ([Acc_Statement_Report.flag]==1) || ([Acc_Statement_Report.flag]==6),IIf([Acc_Statement_Report.Debit]&gt;0,[Acc_Statement_Report.Debit],IIf(([Acc_Statement_Report.flag]==4) &amp;&amp; ([Acc_Statement_Report.PayType]==0),[Acc_Statement_Report.Credit],0)),0)" Evaluator="MasterData1" PrintOn="ReportSummary1"/>
    <Total Name="Totalss2" Expression="IIf(([Acc_Statement_Report.HasEntry] == 1) || ([Acc_Statement_Report.flag]==1) || ([Acc_Statement_Report.flag]==6),IIf([Acc_Statement_Report.Credit]&gt;0,[Acc_Statement_Report.Credit],IIf(([Acc_Statement_Report.flag]==4) &amp;&amp; ([Acc_Statement_Report.PayType]==0),[Acc_Statement_Report.Debit],0)),0)" Evaluator="MasterData1" PrintOn="ReportSummary1"/>
    <Total Name="Totalsss" Expression="IIf(([Acc_Statement_Report.HasEntry] == 1) || ([Acc_Statement_Report.flag]==1) || ([Acc_Statement_Report.flag]==6),IIf([Acc_Statement_Report.Debit]&gt;0,[Acc_Statement_Report.Debit],IIf(([Acc_Statement_Report.flag]==4) &amp;&amp; ([Acc_Statement_Report.PayType]==0),[Acc_Statement_Report.Credit],0)),0)" Evaluator="MasterData1" PrintOn="ReportSummary1"/>
    <Total Name="Totalssss1" Expression="IIf(([Acc_Statement_Report.HasEntry] == 1) || ([Acc_Statement_Report.flag]==1) || ([Acc_Statement_Report.flag]==6),IIf([Acc_Statement_Report.Debit]&gt;0,[Acc_Statement_Report.Debit],IIf(([Acc_Statement_Report.flag]==4) &amp;&amp; ([Acc_Statement_Report.PayType]==0),[Acc_Statement_Report.Credit],0)),0)" Evaluator="MasterData1" PrintOn="ReportSummary1"/>
    <Total Name="Totalssss2" Expression="IIf(([Acc_Statement_Report.HasEntry] == 1) || ([Acc_Statement_Report.flag]==1) || ([Acc_Statement_Report.flag]==6),IIf([Acc_Statement_Report.Credit]&gt;0,[Acc_Statement_Report.Credit],IIf(([Acc_Statement_Report.flag]==4) &amp;&amp; ([Acc_Statement_Report.PayType]==0),[Acc_Statement_Report.Debit],0)),0)" Evaluator="MasterData1" PrintOn="ReportSummary1"/>
  </Dictionary>
  <ReportPage Name="Page1" VisibleExpression="[IIf([Acc_Statement_Report.Number] == 0,null,IIf([Acc_Statement_Report.Date] == ToDateTime(&quot;1/1/1980&quot;),null,[Acc_Statement_Report.Date]))]" LeftMargin="2.5" TopMargin="2.5" RightMargin="2.5" BottomMargin="2.5" Watermark.Font="Arial, 60pt">
    <PageHeaderBand Name="PageHeader1" Width="774.9" Height="146.49">
      <PictureObject Name="Picture1" Left="22.68" Top="4.78" Width="729.45" Height="94.49" Fill.Color="White" ImageLocation="res\Logo.bmp" SizeMode="CenterImage" ImageFormat="Bmp"/>
      <TextObject Name="Memo45" Left="241.89" Top="100.65" Width="291.02" Height="22.68" Text="كشف حساب زبون" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 14pt"/>
      <TextObject Name="Memo71" Left="10.3" Top="118.87" Width="120.94" Height="18.9" Text=" [CurrName] " Padding="2, 1, 2, 1" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Memo108" Left="131.24" Top="118.87" Width="49.13" Height="18.9" Text="العملات :" Padding="2, 1, 2, 1" VertAlign="Center" RightToLeft="true" Font="Arial, 10pt"/>
      <TextObject Name="Memo9" Left="714.32" Top="124.72" Width="56.69" Height="18.9" Text=": إعتبارا من" Padding="2, 1, 2, 1" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Memo31" Left="576.71" Top="124.72" Width="41.57" Height="18.9" Text=": ولغاية " Padding="2, 1, 2, 1" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Memo11" Left="621.4" Top="124.72" Width="90.71" Height="18.9" Text="[FromDate]" Padding="2, 1, 2, 1" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
      <TextObject Name="Memo70" Left="483.78" Top="124.72" Width="90.71" Height="18.9" Text="[ToDate]" Padding="2, 1, 2, 1" HorzAlign="Right" VertAlign="Center" Font="Arial, 10pt"/>
    </PageHeaderBand>
    <GroupHeaderBand Name="GroupHeader1" Top="150.49" Width="774.9" Height="79.37" RepeatOnEveryPage="true" Condition="[Acc_Statement_Report.CustID]" KeepTogether="true" ResetPageNumber="true">
      <TextObject Name="Memo46" Left="114.94" Top="5.22" Width="566.93" Height="18.9" Text=" [Acc_Statement_Report.CustName] " Padding="2, 1, 2, 1" HorzAlign="Right" VertAlign="Center" Font="Arial, 11pt" TextFill.Color="Purple"/>
      <TextObject Name="Memo48" Left="112.31" Top="28.68" Width="570.71" Height="18.9" Text=" [Acc_Statement_Report.AccCode]-[Acc_Statement_Report.AccName] " Padding="2, 1, 2, 1" HorzAlign="Right" VertAlign="Center" RightToLeft="true" Font="Arial, 11pt" TextFill.Color="Purple"/>
      <TextObject Name="Memo49" Left="638.79" Top="56.4" Width="132.28" Height="22.68" Border.Lines="All" Fill.Color="187, 210, 244" Text="رقم المستند" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 11pt, style=Bold"/>
      <TextObject Name="Memo50" Left="536.74" Top="56.4" Width="102.05" Height="22.68" Border.Lines="All" Fill.Color="187, 210, 244" Text="التاريخ" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 11pt, style=Bold"/>
      <TextObject Name="Memo51" Left="423.35" Top="56.4" Width="113.39" Height="22.68" Border.Lines="All" Fill.Color="187, 210, 244" Text="مدين" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 11pt, style=Bold"/>
      <TextObject Name="Memo52" Left="298.63" Top="56.4" Width="124.72" Height="22.68" Border.Lines="All" Fill.Color="187, 210, 244" Text="دائن" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 11pt, style=Bold"/>
      <TextObject Name="Memo53" Left="3.83" Top="56.4" Width="219.21" Height="22.68" Border.Lines="All" Fill.Color="187, 210, 244" Text="البيان" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 11pt, style=Bold"/>
      <TextObject Name="Memo54" Left="685.07" Top="5.22" Width="75.59" Height="18.9" Text="كشف حساب " Padding="2, 1, 2, 1" VertAlign="Center" Font="Arial, 11pt" TextFill.Color="Purple"/>
      <TextObject Name="Memo86" Left="685.07" Top="28.68" Width="75.59" Height="18.9" Text="اسم الحساب :" Padding="2, 1, 2, 1" VertAlign="Center" RightToLeft="true" Font="Arial, 11pt" TextFill.Color="Purple"/>
      <TextObject Name="Memo96" Left="223.04" Top="56.4" Width="75.59" Height="22.68" Border.Lines="All" Fill.Color="187, 210, 244" Text="رصيد الحركة" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 11pt, style=Bold"/>
      <DataBand Name="MasterData1" Top="233.86" Width="774.9" Height="23.03" CanGrow="true" CanShrink="true" DataSource="Acc_Statement_Report">
        <TextObject Name="Text6" Left="3.83" Top="0.35" Width="219.21" Height="22.68" Border.Lines="Left, Right, Bottom" Fill.Color="White" Text="[Acc_Statement_Report.Notes]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 11pt"/>
        <TextObject Name="Text7" Left="223.04" Top="0.35" Width="75.59" Height="22.68" Border.Lines="Left, Right, Bottom" Fill.Color="White" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 11pt"/>
        <TextObject Name="Text2" Left="638.79" Top="0.35" Width="132.28" Height="22.68" Border.Lines="All" Fill.Color="White" Text="[IIf([Acc_Statement_Report.RepType] == -1,null,IIf([Acc_Statement_Report.RepType]== 2,&quot;سند قيد&quot;,[Acc_Statement_Report.TypeName]))] [IIf([Acc_Statement_Report.Number] == 0,null,[Acc_Statement_Report.Number])]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 11pt"/>
        <TextObject Name="Text5" Left="298.63" Top="0.35" Width="124.72" Height="22.68" Border.Lines="Left, Right, Bottom" Fill.Color="White" Text="[IIf( [Acc_Statement_Report.DocType] == 16 ,   [Acc_Statement_Report.Credit] ,IIf([Acc_Statement_Report.RepType] == -1,IIf(([Acc_Statement_Report.Credit] -[Acc_Statement_Report.Debit] ) &gt;0, [Acc_Statement_Report.Credit] - [Acc_Statement_Report.Debit],null),IIf([Acc_Statement_Report.Credit] == 0,IIf(([Acc_Statement_Report.RepType]==0) &amp;&amp; ([Acc_Statement_Report.MatCode] == &quot;&quot;),IIf([Acc_Statement_Report.PayType]==0,[Acc_Statement_Report.Debit],null),null),[Acc_Statement_Report.Credit])))]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 11pt"/>
        <TextObject Name="Text4" Left="423.35" Top="0.35" Width="113.39" Height="22.68" Border.Lines="Left, Right, Bottom" Fill.Color="White" Text="[IIf([Acc_Statement_Report.DocType] == 16 , [Acc_Statement_Report.Debit],IIf([Acc_Statement_Report.RepType]== -1,IIf(([Acc_Statement_Report.Debit] - [Acc_Statement_Report.Credit] ) &gt;0, [Acc_Statement_Report.Debit] - [Acc_Statement_Report.Credit],&quot;&quot;),IIf([Acc_Statement_Report.Debit] == 0,IIf(([Acc_Statement_Report.RepType]== 0) &amp;&amp; ([Acc_Statement_Report.MatCode] == &quot;&quot;),IIf([Acc_Statement_Report.PayType]==0, [Acc_Statement_Report.Credit],&quot;&quot;),&quot;&quot;),[Acc_Statement_Report.Debit])))]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 11pt"/>
        <TextObject Name="Text3" Left="536.74" Top="0.35" Width="102.05" Height="22.68" Border.Lines="Left, Right, Bottom" Fill.Color="White" Text="[IIf([Acc_Statement_Report.Number] == 0,null,IIf([Acc_Statement_Report.Date] == ToDateTime(&quot;1/1/1980&quot;),null,[Acc_Statement_Report.Date]))]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 11pt"/>
      </DataBand>
      <GroupFooterBand Name="GroupFooter1" Top="260.89" Width="774.9"/>
    </GroupHeaderBand>
    <ReportSummaryBand Name="ReportSummary1" Top="264.89" Width="774.9" Height="219.42">
      <TextObject Name="Memo106" Left="535.09" Top="48.03" Width="234.33" Height="18.9" Border.Lines="All" Fill.Color="187, 210, 244" Text="الرصيد الحالي" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt" TextFill.Color="Red"/>
      <TextObject Name="Memo105" Left="535.09" Top="29.35" Width="234.33" Height="18.9" Border.Lines="Left, Right, Bottom" Fill.Color="187, 210, 244" Text="المجموع الكلي" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt" TextFill.Color="Red"/>
      <TextObject Name="Memo104" Left="535.09" Top="9.9" Width="234.33" Height="18.9" Border.Lines="All" Fill.Color="187, 210, 244" Text="رصيد الحركة" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt" TextFill.Color="Red"/>
      <TextObject Name="Memo98" Left="297.95" Top="9.9" Width="124.72" Height="18.9" Border.Lines="Left, Top, Bottom" Fill.Color="187, 210, 244" Padding="2, 1, 2, 1" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt" TextFill.Color="Red"/>
      <TextObject Name="Memo99" Left="297.95" Top="29.35" Width="124.72" Height="18.9" Border.Lines="Left, Bottom" Fill.Color="187, 210, 244" Text="[Totals1]" Padding="2, 1, 2, 1" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt" TextFill.Color="Red"/>
      <TextObject Name="Memo100" Left="297.95" Top="48.03" Width="124.72" Height="18.9" Border.Lines="Left, Top, Bottom" Fill.Color="187, 210, 244" Padding="2, 1, 2, 1" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt" TextFill.Color="Red"/>
      <TextObject Name="Memo101" Left="421.13" Top="9.9" Width="113.39" Height="18.9" Border.Lines="All" Fill.Color="187, 210, 244" Text="[[Totalss1] - [Totalss2]]" Padding="2, 1, 2, 1" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt" TextFill.Color="Red"/>
      <TextObject Name="Memo102" Left="421.13" Top="29.35" Width="113.39" Height="18.9" Border.Lines="Left, Right, Bottom" Fill.Color="187, 210, 244" Text="[Totalsss]" Padding="2, 1, 2, 1" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt" TextFill.Color="Red"/>
      <TextObject Name="Memo103" Left="421.13" Top="48.03" Width="113.39" Height="18.9" Border.Lines="All" Fill.Color="187, 210, 244" Text="[[Totalssss1] - [Totalssss2]]" Padding="2, 1, 2, 1" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" VertAlign="Center" Font="Arial, 10pt" TextFill.Color="Red"/>
      <TextObject Name="Memo2" Left="232.69" Top="126.06" Width="536.73" Height="18.9" Fill.Color="White" Text="أعمار الذمم للزبون:" Padding="2, 1, 2, 1" VertAlign="Center" RightToLeft="true" Font="Arial, 14pt, style=Bold" TextFill.Color="128, 0, 64"/>
      <SubreportObject Name="Subreport1" Left="-1.31" Top="86.94" Width="230.55" Height="60.47" Border.Lines="All" Fill.Color="Silver" ReportPage="Page2"/>
    </ReportSummaryBand>
    <PageFooterBand Name="PageFooter1" Top="488.31" Width="774.9" Height="41.57">
      <TextObject Name="Memo15" Left="699.21" Top="1.56" Width="75.59" Height="18.9" Text="[Page#]" Padding="2, 1, 2, 1" HorzAlign="Right" Font="Arial, 10pt"/>
      <TextObject Name="Memo16" Left="70.05" Top="1.56" Width="83.15" Height="15.12" Text="[Date]" Padding="2, 1, 2, 1" Format="Date" Format.Format="d" VertAlign="Center" Font="Arial, 8pt, style=Bold"/>
      <TextObject Name="Memo17" Left="10.8" Top="1.56" Width="56.69" Height="15.12" Text="Printed on:" Padding="2, 1, 2, 1" AutoWidth="true" VertAlign="Center" Font="Tahoma, 8pt"/>
      <TextObject Name="Memo18" Left="159.54" Top="1.56" Width="39.69" Height="15.12" Text="Time:" Padding="2, 1, 2, 1" AutoWidth="true" VertAlign="Center" Font="Tahoma, 8pt"/>
      <TextObject Name="Memo35" Left="656.14" Top="26.76" Width="120.91" Height="13.34" Border.Lines="All" Border.Color="White" Text="www.almanarasoft.com" Padding="2, 1, 2, 1" VertAlign="Center" Font="Times New Roman, 8pt, style=Bold" TextFill.Color="Blue"/>
      <TextObject Name="Text1" Left="207.9" Top="1.51" Width="83.15" Height="15.12" Text="[Date]" Padding="2, 1, 2, 1" Format="Date" Format.Format="d" VertAlign="Center" Font="Arial, 8pt, style=Bold"/>
    </PageFooterBand>
  </ReportPage>
  <ReportPage Name="Page2" LeftMargin="2.5" TopMargin="2.5" RightMargin="2.5" BottomMargin="2.5" Watermark.Font="Arial, 60pt">
    <DataBand Name="MasterData2" Top="22.9" Width="774.9" Height="22.68" DataSource="AccAge">
      <TextObject Name="AccAge_Name" Left="538.06" Width="231.31" Height="22.68" Border.Lines="Right, Top, Bottom" Fill.Color="209, 196, 186" Text="[Acc_Statement_Report.CustName]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 9pt, style=Bold"/>
      <TextObject Name="AccAge_ReportValue" Left="461.21" Width="76.35" Height="22.68" Border.Lines="Right, Top, Bottom" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf([AccAge.Balance]&gt;0,[AccAge.Balance],[AccAgeCredit.Balance])]" Padding="2, 1, 2, 1" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" VertAlign="Center" Font="Arial, 9pt, style=Bold"/>
      <TextObject Name="Per1" Left="384.6" Width="76.35" Height="22.68" Border.Lines="All" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf(ToInt32([PeriodCnt])&gt;= 1,IIf([AccAge.Period1] &gt; 0,[AccAge.Period1],[AccAgeCredit.Period1]),&quot;&quot;)]" Padding="2, 1, 2, 1" HorzAlign="Center" Font="Arial, 9pt"/>
      <TextObject Name="Per2" Left="309.07" Width="76.35" Height="22.68" Border.Lines="All" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf(ToInt32([PeriodCnt])&gt;=2,IIf([AccAge.Period2] &gt; 0,[AccAge.Period2],[AccAgeCredit.Period2]),&quot;&quot;)]" Padding="2, 1, 2, 1" AllowExpressions="false" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" Font="Arial, 9pt"/>
      <TextObject Name="Per3" Left="232.26" Width="76.35" Height="22.68" Visible="false" Border.Lines="All" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf(ToInt32([PeriodCnt])&gt;=3,IIf([AccAge.Period3]&gt;0,[AccAge.Period3],[AccAgeCredit.Period3]),null)]" Padding="2, 1, 2, 1" AllowExpressions="false" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" Font="Arial, 9pt"/>
      <TextObject Name="Per4" Left="155.94" Width="76.35" Height="22.68" Visible="false" Border.Lines="All" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf(ToInt32([PeriodCnt])&gt;=4,IIf([AccAge.Period4]&gt;0,[AccAge.Period4],[AccAgeCredit.Period4]),null)]" Padding="2, 1, 2, 1" AllowExpressions="false" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" Font="Arial, 9pt"/>
      <TextObject Name="per6" Left="3.78" Width="76.35" Height="22.68" Visible="false" Border.Lines="Left, Top, Bottom" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf(ToInt32([PeriodCnt])&gt;=6,IIf([AccAge.Period6]&gt;0,[AccAge.Period6],[AccAgeCredit.Period6]),null)]" Padding="2, 1, 2, 1" AllowExpressions="false" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" Font="Arial, 9pt"/>
      <TextObject Name="per5" Left="79.74" Width="76.35" Height="22.68" Visible="false" Border.Lines="All" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf(ToInt32([PeriodCnt])&gt;=5,IIf([AccAge.Period5]&gt;0,[AccAge.Period5],[AccAgeCredit.Period5]),null)]" Padding="2, 1, 2, 1" AllowExpressions="false" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" Font="Arial, 9pt"/>
      <DataHeaderBand Name="Header1" Width="774.9" Height="18.9">
        <TextObject Name="Memo110" Left="538.06" Width="231.31" Height="18.9" Border.Lines="Right, Top" Fill.Color="191, 232, 202" Text="الزبون" Padding="2, 1, 2, 1" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="Memo111" Left="461.21" Width="76.35" Height="18.9" Border.Lines="Right, Top" Fill.Color="191, 232, 202" Text="مجموع الدين الكلي" Padding="2, 1, 2, 1" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="P3" Left="232.26" Width="76.35" Height="18.9" Visible="false" Border.Lines="Left, Top" Fill.Color="191, 232, 202" Text="[ToInt32([PeriodLen])*3] (أيام/يوم) " Padding="2, 1, 2, 1" AllowExpressions="false" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="P2" Left="309.07" Width="76.35" Height="18.9" Visible="false" Border.Lines="Left, Top" Fill.Color="191, 232, 202" Text="[ToInt32([PeriodLen])*2] (أيام/يوم) " Padding="2, 1, 2, 1" AllowExpressions="false" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="P1" Left="384.6" Width="76.35" Height="18.9" Border.Lines="Left, Right, Top" Fill.Color="191, 232, 202" Text="[PeriodLen] (أيام/يوم) " Padding="2, 1, 2, 1" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="P4" Left="155.94" Width="76.35" Height="18.9" Visible="false" Border.Lines="Left, Right, Top" Fill.Color="191, 232, 202" Text="[ToInt32([PeriodLen])*4] (أيام/يوم) " Padding="2, 1, 2, 1" AllowExpressions="false" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="P5" Left="79.74" Width="76.35" Height="18.9" Visible="false" Border.Lines="Left, Right, Top" Fill.Color="191, 232, 202" Text="[ToInt32([PeriodLen])*5] (أيام/يوم) " Padding="2, 1, 2, 1" AllowExpressions="false" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="P6" Left="3.78" Width="76.35" Height="18.9" Visible="false" Border.Lines="Left, Top" Fill.Color="191, 232, 202" Text="[ToInt32([PeriodLen])*6] (أيام/يوم) " Padding="2, 1, 2, 1" AllowExpressions="false" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
      </DataHeaderBand>
    </DataBand>
    <DataBand Name="MasterData3" Top="72.48" Width="774.9" Height="22.68" DataSource="AccAgeCredit">
      <TextObject Name="Memo3" Left="538.06" Width="231.31" Height="22.68" Border.Lines="Right, Top, Bottom" Fill.Color="209, 196, 186" Text="[Acc_Statement_Report.CustName]" Padding="2, 1, 2, 1" HorzAlign="Center" VertAlign="Center" RightToLeft="true" Font="Arial, 9pt, style=Bold"/>
      <TextObject Name="Memo10" Left="461.21" Width="76.35" Height="22.68" Border.Lines="Right, Top, Bottom" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf([AccAgeCredit.Balance]&gt; 0 ,[AccAgeCredit.Balance],[AccAge.Balance])]" Padding="2, 1, 2, 1" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" VertAlign="Center" Font="Arial, 9pt, style=Bold"/>
      <TextObject Name="Pe12" Left="309.07" Width="76.35" Height="22.68" Border.Lines="Left, Top, Bottom" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf(ToInt32([PeriodCnt])&gt;= 2,IIf([AccAgeCredit.Period2] &gt; 0,[AccAgeCredit.Period2],[AccAge.Period2]),&quot;&quot;)]" Padding="2, 1, 2, 1" AllowExpressions="false" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" Font="Arial, 9pt"/>
      <TextObject Name="Pe13" Left="232.26" Width="76.35" Height="22.68" Visible="false" Border.Lines="Left, Top, Bottom" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf(ToInt32([PeriodCnt])&gt;= 3,IIf([AccAgeCredit.Period3] &gt; 0,[AccAgeCredit.Period3],[AccAge.Period3]),&quot;&quot;)]" Padding="2, 1, 2, 1" AllowExpressions="false" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" Font="Arial, 9pt"/>
      <TextObject Name="Pe14" Left="155.94" Width="76.35" Height="22.68" Visible="false" Border.Lines="All" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf(ToInt32([PeriodCnt]) &gt;= 4 ,IIf([AccAgeCredit.Period4] &gt; 0,[AccAgeCredit.Period4],[AccAge.Period4]),&quot;&quot;)]" Padding="2, 1, 2, 1" AllowExpressions="false" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" Font="Arial, 9pt"/>
      <TextObject Name="Pe16" Left="3.78" Width="76.35" Height="22.68" Visible="false" Border.Lines="Left, Top, Bottom" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf(ToInt32([PeriodCnt]) &gt;= 6 ,IIf([AccAgeCredit.Period6] &gt; 0,[AccAgeCredit.Period6],[AccAge.Period6]),&quot;&quot;)]" Padding="2, 1, 2, 1" AllowExpressions="false" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" Font="Arial, 9pt"/>
      <TextObject Name="Pe15" Left="79.74" Width="76.35" Height="22.68" Visible="false" Border.Lines="All" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf(ToInt32([PeriodCnt])&gt;= 5,IIf([AccAgeCredit.Period5] &gt; 0,[AccAgeCredit.Period5],[AccAge.Period5]),&quot;&quot;)]" Padding="2, 1, 2, 1" AllowExpressions="false" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" Font="Arial, 9pt"/>
      <TextObject Name="Pe11" Left="384.6" Width="76.35" Height="22.68" Border.Lines="All" Fill.Color="209, 196, 186" CanGrow="true" GrowToBottom="true" Text="[IIf(ToInt32([PeriodCnt])&gt;= 1 ,IIf([AccAgeCredit.Period1] &gt; 0,[AccAgeCredit.Period1],[AccAge.Period1]),&quot;&quot;)]" Padding="2, 1, 2, 1" Format="Number" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Center" Font="Arial, 9pt"/>
      <DataHeaderBand Name="Header2" Top="49.58" Width="774.9" Height="18.9">
        <TextObject Name="Memo7" Left="538.06" Width="231.31" Height="18.9" Border.Lines="Right, Top" Fill.Color="191, 232, 202" Text="الزبون" Padding="2, 1, 2, 1" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="Memo8" Left="461.21" Width="76.35" Height="18.9" Border.Lines="Right, Top" Fill.Color="191, 232, 202" Text="مجموع الدين الكلي" Padding="2, 1, 2, 1" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="P13" Left="232.26" Width="76.35" Height="18.9" Visible="false" Border.Lines="Left, Top" Fill.Color="191, 232, 202" Text="[[PeriodLen]*3] (أيام/يوم) " Padding="2, 1, 2, 1" AllowExpressions="false" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="P12" Left="309.07" Width="76.35" Height="18.9" Border.Lines="Left, Top" Fill.Color="191, 232, 202" Text="[[PeriodLen]*2] (أيام/يوم) " Padding="2, 1, 2, 1" AllowExpressions="false" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="P11" Left="384.6" Width="76.35" Height="18.9" Border.Lines="Left, Right, Top" Fill.Color="191, 232, 202" Text="[PeriodLen] (أيام/يوم) " Padding="2, 1, 2, 1" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="P14" Left="155.94" Width="76.35" Height="18.9" Visible="false" Border.Lines="Left, Right, Top" Fill.Color="191, 232, 202" Text="[[PeriodLen]*4] (أيام/يوم) " Padding="2, 1, 2, 1" AllowExpressions="false" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="P15" Left="79.74" Width="76.35" Height="18.9" Visible="false" Border.Lines="Left, Right, Top" Fill.Color="191, 232, 202" Text="[[PeriodLen]*5] (أيام/يوم) " Padding="2, 1, 2, 1" AllowExpressions="false" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
        <TextObject Name="P16" Left="3.78" Width="76.35" Height="18.9" Visible="false" Border.Lines="Left, Top" Fill.Color="191, 232, 202" Text="[[PeriodLen]*6] (أيام/يوم) " Padding="2, 1, 2, 1" AllowExpressions="false" HorzAlign="Center" Font="Arial, 10pt, style=Bold"/>
      </DataHeaderBand>
    </DataBand>
  </ReportPage>
</Report>
