object ppReportX: TppReportX
  AutoStop = False
  DataPipeline = daBDEQueryDataViewX1.Morakhasi
  PrinterSetup.BinName = 'Default'
  PrinterSetup.DocumentName = 'Report'
  PrinterSetup.Orientation = poLandscape
  PrinterSetup.PaperName = 'A4'
  PrinterSetup.PrinterName = 'Default'
  PrinterSetup.mmMarginBottom = 6350
  PrinterSetup.mmMarginLeft = 6350
  PrinterSetup.mmMarginRight = 6350
  PrinterSetup.mmMarginTop = 6350
  PrinterSetup.mmPaperHeight = 105000
  PrinterSetup.mmPaperWidth = 148000
  PrinterSetup.PaperSize = 9
  Template.DatabaseSettings.DataPipeline = plItem
  Template.DatabaseSettings.NameField = 'item_name'
  Template.DatabaseSettings.TemplateField = 'Template'
  Template.FileName = 'D:\parsian\PrjManager\Bin\reports\Morakhasi.rtm'
  Template.Format = ftASCII
  Units = utMillimeters
  AllowPrintToArchive = True
  AllowPrintToFile = True
  ArchiveFileName = 'D:\parsian\PrjManager\Bin\reports\Morakhasi.raf'
  DeviceType = 'Screen'
  Language = lgCustom
  ModalCancelDialog = False
  ModalPreview = False
  TextFileName = 'D:\parsian\PrjManager\Bin\reports\Morakhasi.txt'
  Left = 288
  Top = 168
  Version = '6.02'
  mmColumnWidth = 0
  DataPipelineName = 'Morakhasi'
  object ppTitleBand1: TppTitleBand
    mmBottomOffset = 0
    mmHeight = 24342
    mmPrintPosition = 0
    object ppShape1: TppShape
      UserName = 'Shape1'
      Shape = stRoundRect
      mmHeight = 92075
      mmLeft = 0
      mmTop = 0
      mmWidth = 134938
      BandType = 1
    end
    object ppDBText7: TppDBText
      UserName = 'DBText7'
      DataField = 'work_date'
      DataPipeline = daBDEQueryDataViewX1.Morakhasi
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 8
      Font.Style = []
      ParentDataPipeline = False
      TextAlignment = taCentered
      Transparent = True
      DataPipelineName = 'Morakhasi'
      mmHeight = 4741
      mmLeft = 9260
      mmTop = 3440
      mmWidth = 16933
      BandType = 1
    end
    object ppLabel8: TppLabel
      UserName = 'Label8'
      AutoSize = False
      Caption = ': ‌تاريخ  '
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 8
      Font.Style = [fsBold]
      TextAlignment = taRightJustified
      Transparent = True
      mmHeight = 5027
      mmLeft = 31485
      mmTop = 2381
      mmWidth = 17463
      BandType = 1
    end
    object ppLabel2: TppLabel
      UserName = 'Label2'
      AutoSize = False
      Caption = ': شماره داخلي '
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 8
      Font.Style = [fsBold]
      TextAlignment = taRightJustified
      Transparent = True
      mmHeight = 5027
      mmLeft = 28310
      mmTop = 8731
      mmWidth = 21167
      BandType = 1
    end
    object ppDBText1: TppDBText
      UserName = 'DBText1'
      DataField = 'row_id'
      DataPipeline = daBDEQueryDataViewX1.Morakhasi
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 8
      Font.Style = []
      ParentDataPipeline = False
      TextAlignment = taCentered
      Transparent = True
      DataPipelineName = 'Morakhasi'
      mmHeight = 4741
      mmLeft = 8996
      mmTop = 9260
      mmWidth = 16933
      BandType = 1
    end
    object ppLabel10: TppLabel
      UserName = 'Label10'
      Caption = 'گروه تخصصي ، نرم افزاري بيمه '
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 12
      Font.Style = []
      TextAlignment = taCentered
      Transparent = True
      mmHeight = 7112
      mmLeft = 66599
      mmTop = 794
      mmWidth = 42757
      BandType = 1
    end
    object ppLabel13: TppLabel
      UserName = 'Label13'
      Caption = 'فرم '
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Yagut'
      Font.Size = 12
      Font.Style = [fsBold]
      TextAlignment = taCentered
      Transparent = True
      mmHeight = 7144
      mmLeft = 102129
      mmTop = 7938
      mmWidth = 6350
      BandType = 1
    end
    object ppDBText4: TppDBText
      UserName = 'DBText4'
      DataField = 'WorkType'
      DataPipeline = daBDEQueryDataViewX1.Morakhasi
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Yagut'
      Font.Size = 12
      Font.Style = [fsBold]
      ParentDataPipeline = False
      TextAlignment = taRightJustified
      Transparent = True
      DataPipelineName = 'Morakhasi'
      mmHeight = 7144
      mmLeft = 67204
      mmTop = 8467
      mmWidth = 33073
      BandType = 1
    end
    object ppLabel5: TppLabel
      UserName = 'Label5'
      Caption = 'Label5'
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 8
      Font.Style = []
      Transparent = True
      mmHeight = 4741
      mmLeft = 12965
      mmTop = 15081
      mmWidth = 7281
      BandType = 1
    end
    object ppLabel6: TppLabel
      UserName = 'Label6'
      AutoSize = False
      Caption = ': ‌تاريخ درخواست'
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 8
      Font.Style = [fsBold]
      TextAlignment = taRightJustified
      Transparent = True
      mmHeight = 5027
      mmLeft = 31750
      mmTop = 15875
      mmWidth = 17463
      BandType = 1
    end
  end
  object ppHeaderBand1: TppHeaderBand
    mmBottomOffset = 0
    mmHeight = 0
    mmPrintPosition = 0
  end
  object ppDetailBand1: TppDetailBand
    mmBottomOffset = 0
    mmHeight = 37042
    mmPrintPosition = 0
    object ppLabel3: TppLabel
      UserName = 'Label3'
      AutoSize = False
      Caption = 'درخواست كننده'
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 12
      Font.Style = [fsBold]
      TextAlignment = taRightJustified
      Transparent = True
      mmHeight = 7673
      mmLeft = 99748
      mmTop = 3969
      mmWidth = 33338
      BandType = 4
    end
    object ppDBText3: TppDBText
      UserName = 'DBText3'
      DataField = 'smr_work'
      DataPipeline = daBDEQueryDataViewX1.Morakhasi
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 12
      Font.Style = []
      ParentDataPipeline = False
      TextAlignment = taRightJustified
      Transparent = True
      DataPipelineName = 'Morakhasi'
      mmHeight = 7144
      mmLeft = 1058
      mmTop = 17992
      mmWidth = 117211
      BandType = 4
    end
    object ppLabel4: TppLabel
      UserName = 'Label4'
      AutoSize = False
      Caption = 'شرح : '
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 12
      Font.Style = [fsBold]
      Transparent = True
      mmHeight = 7673
      mmLeft = 123825
      mmTop = 17727
      mmWidth = 7144
      BandType = 4
    end
    object ppLabel15: TppLabel
      UserName = 'Label15'
      Caption = 'امضاء '
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 12
      Font.Style = []
      Transparent = True
      mmHeight = 7112
      mmLeft = 6350
      mmTop = 29898
      mmWidth = 8340
      BandType = 4
    end
    object ppLine1: TppLine
      UserName = 'Line1'
      Pen.Color = clGray
      Pen.Width = 2
      Weight = 1.5
      mmHeight = 3704
      mmLeft = 0
      mmTop = 0
      mmWidth = 134938
      BandType = 4
    end
    object ppDBText8: TppDBText
      UserName = 'DBText8'
      DataField = 'PrsName'
      DataPipeline = daBDEQueryDataViewX1.Morakhasi
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 12
      Font.Style = []
      ParentDataPipeline = False
      TextAlignment = taRightJustified
      Transparent = True
      DataPipelineName = 'Morakhasi'
      mmHeight = 7144
      mmLeft = 28310
      mmTop = 3969
      mmWidth = 67469
      BandType = 4
    end
  end
  object ppFooterBand1: TppFooterBand
    mmBottomOffset = 0
    mmHeight = 24606
    mmPrintPosition = 0
    object ppLabel7: TppLabel
      UserName = 'Label7'
      AutoSize = False
      Caption = 'ساعت'
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 12
      Font.Style = [fsBold]
      TextAlignment = taCentered
      Transparent = True
      mmHeight = 7673
      mmLeft = 48948
      mmTop = 4233
      mmWidth = 36248
      BandType = 8
    end
    object ppDBText6: TppDBText
      UserName = 'DBText6'
      DataField = 'approximate_time'
      DataPipeline = daBDEQueryDataViewX1.Morakhasi
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 12
      Font.Style = []
      ParentDataPipeline = False
      TextAlignment = taCentered
      Transparent = True
      DataPipelineName = 'Morakhasi'
      mmHeight = 7144
      mmLeft = 85725
      mmTop = 4498
      mmWidth = 16933
      BandType = 8
    end
    object ppLabel1: TppLabel
      UserName = 'Label1'
      Caption = 'ميزان مرخصي'
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 12
      Font.Style = [fsBold]
      TextAlignment = taCentered
      Transparent = True
      mmHeight = 7408
      mmLeft = 102923
      mmTop = 4233
      mmWidth = 19050
      BandType = 8
    end
    object ppLabel16: TppLabel
      UserName = 'Label16'
      Caption = 'امضاء مدير'
      Font.Charset = ARABIC_CHARSET
      Font.Color = clBlack
      Font.Name = 'Lotus'
      Font.Size = 12
      Font.Style = []
      Transparent = True
      mmHeight = 7112
      mmLeft = 11377
      mmTop = 8731
      mmWidth = 14224
      BandType = 8
    end
    object ppLine2: TppLine
      UserName = 'Line2'
      Pen.Color = clGray
      Pen.Width = 2
      Weight = 1.5
      mmHeight = 3704
      mmLeft = 0
      mmTop = 0
      mmWidth = 134938
      BandType = 8
    end
  end
  object raCodeModule1: TraCodeModule
    ProgramStream = {
      01060F5472614576656E7448616E646C65720B50726F6772616D4E616D65060F
      4C6162656C354F6E476574546578740B50726F6772616D54797065070B747450
      726F63656475726506536F75726365065570726F636564757265204C6162656C
      354F6E476574546578742876617220546578743A20537472696E67293B0D0A62
      6567696E0D0A0D0A202054657874203A3D204661727369446174653B0D0A0D0A
      656E643B0D0A0D436F6D706F6E656E744E616D6506064C6162656C3509457665
      6E744E616D6506094F6E47657454657874074576656E74494402350000}
  end
  object daDataModule1: TdaDataModule
    object daBDEQueryDataViewX1: TdaBDEQueryDataViewX
      Report = ppReportX
      UserName = 'Query_Morakhasi'
      Height = 245
      Left = 10
      NameColumnWidth = 105
      SizeColumnWidth = 35
      SortMode = 0
      Top = 10
      TypeColumnWidth = 52
      Width = 440
      AutoSearchTabOrder = 0
      object Morakhasi: TppChildBDEPipeline
        AutoCreateFields = False
        UserName = 'Morakhasi'
        object ppField1: TppField
          FieldAlias = 'row_id'
          FieldName = 'row_id'
          FieldLength = 0
          DataType = dtInteger
          DisplayWidth = 10
          Position = 0
        end
        object ppField2: TppField
          FieldAlias = 'work_date'
          FieldName = 'work_date'
          FieldLength = 10
          DisplayWidth = 10
          Position = 1
        end
        object ppField3: TppField
          FieldAlias = 'prs_id'
          FieldName = 'prs_id'
          FieldLength = 0
          DataType = dtInteger
          DisplayWidth = 10
          Position = 2
        end
        object ppField4: TppField
          FieldAlias = 'approximate_time'
          FieldName = 'approximate_time'
          FieldLength = 5
          DisplayWidth = 5
          Position = 3
        end
        object ppField5: TppField
          FieldAlias = 'prj_id'
          FieldName = 'prj_id'
          FieldLength = 0
          DataType = dtInteger
          DisplayWidth = 10
          Position = 4
        end
        object ppField6: TppField
          FieldAlias = 'grd_id'
          FieldName = 'grd_id'
          FieldLength = 0
          DataType = dtInteger
          DisplayWidth = 10
          Position = 5
        end
        object ppField7: TppField
          FieldAlias = 'work_type'
          FieldName = 'work_type'
          FieldLength = 0
          DataType = dtInteger
          DisplayWidth = 10
          Position = 6
        end
        object ppField8: TppField
          FieldAlias = 'smr_work'
          FieldName = 'smr_work'
          FieldLength = 50
          DisplayWidth = 50
          Position = 7
        end
        object ppField9: TppField
          FieldAlias = 'comment'
          FieldName = 'comment'
          FieldLength = 0
          Linkable = False
          DataType = dtMemo
          DisplayWidth = 10
          Position = 8
        end
        object ppField10: TppField
          FieldAlias = 'PrsName'
          FieldName = 'PrsName'
          FieldLength = 101
          DisplayWidth = 101
          Position = 9
        end
        object ppField11: TppField
          FieldAlias = 'WorkType'
          FieldName = 'WorkType'
          FieldLength = 50
          DisplayWidth = 50
          Position = 10
        end
      end
      object daSQL1: TdaSQL
        DatabaseName = 'Local'
        DatabaseType = dtMSSQLServer
        DataPipelineName = 'Morakhasi'
        EditSQLAsText = True
        LinkColor = clBlack
        MaxSQLFieldAliasLength = 0
        SQLText.Strings = (
          '/*{'
          
            'Name=RowID,Type=Int ,GetFrom=App ,Table=v_daily_work ,Field=row_' +
            'id ,Caption=شماره مرخصي'
          
            'Name=WorkDate,Type=string ,GetFrom=App ,Table=v_daily_work ,Fiel' +
            'd=work_date ,Caption=تاريخ'
          '}*/'
          
            'SELECT row_id, work_date, dw.prs_id, approximate_time, prj_id, g' +
            'rd_id, work_type, smr_work, comment,prs.first_name+'#39' '#39'+last_name' +
            ' PrsName ,wt.name WorkType'
          ' From v_daily_work dw,v_prs prs,v_worktype wt'
          
            'Where row_id=:RowID And work_date=:WorkDate And prs.prs_id=dw.pr' +
            's_id And dw.work_type=wt.worktype_id and (dw.work_type=18 OR dw.' +
            'work_type=19)')
        SQLType = sqSQL2
        object daField1: TdaField
          Alias = 'row_id'
          DataType = dtInteger
          DisplayWidth = 10
          FieldAlias = 'row_id'
          FieldLength = 0
          FieldName = 'row_id'
          SQLFieldName = 'row_id'
        end
        object daField2: TdaField
          Alias = 'work_date'
          DisplayWidth = 10
          FieldAlias = 'work_date'
          FieldLength = 10
          FieldName = 'work_date'
          SQLFieldName = 'work_date'
        end
        object daField3: TdaField
          Alias = 'prs_id'
          DataType = dtInteger
          DisplayWidth = 10
          FieldAlias = 'prs_id'
          FieldLength = 0
          FieldName = 'prs_id'
          SQLFieldName = 'prs_id'
        end
        object daField4: TdaField
          Alias = 'approximate_time'
          DisplayWidth = 5
          FieldAlias = 'approximate_time'
          FieldLength = 5
          FieldName = 'approximate_time'
          SQLFieldName = 'approximate_time'
        end
        object daField5: TdaField
          Alias = 'prj_id'
          DataType = dtInteger
          DisplayWidth = 10
          FieldAlias = 'prj_id'
          FieldLength = 0
          FieldName = 'prj_id'
          SQLFieldName = 'prj_id'
        end
        object daField6: TdaField
          Alias = 'grd_id'
          DataType = dtInteger
          DisplayWidth = 10
          FieldAlias = 'grd_id'
          FieldLength = 0
          FieldName = 'grd_id'
          SQLFieldName = 'grd_id'
        end
        object daField7: TdaField
          Alias = 'work_type'
          DataType = dtInteger
          DisplayWidth = 10
          FieldAlias = 'work_type'
          FieldLength = 0
          FieldName = 'work_type'
          SQLFieldName = 'work_type'
        end
        object daField8: TdaField
          Alias = 'smr_work'
          DisplayWidth = 50
          FieldAlias = 'smr_work'
          FieldLength = 50
          FieldName = 'smr_work'
          SQLFieldName = 'smr_work'
        end
        object daField9: TdaField
          Alias = 'comment'
          DataType = dtMemo
          DisplayWidth = 10
          FieldAlias = 'comment'
          FieldLength = 0
          FieldName = 'comment'
          Linkable = False
          SQLFieldName = 'comment'
        end
        object daField10: TdaField
          Alias = 'PrsName'
          DisplayWidth = 101
          FieldAlias = 'PrsName'
          FieldLength = 101
          FieldName = 'PrsName'
          SQLFieldName = 'PrsName'
        end
        object daField11: TdaField
          Alias = 'WorkType'
          DisplayWidth = 50
          FieldAlias = 'WorkType'
          FieldLength = 50
          FieldName = 'WorkType'
          SQLFieldName = 'WorkType'
        end
      end
    end
  end
end
