File: D:/MariaDB Data/timesheets/reports.MYD
"�@�,� Holiday and Sickness� G SELECT timesheets.*
FROM timesheets
INNER JOIN staff ON staff.StaffID = timesheets.StaffID
WHERE StaffName = "[STAFFNAME]" AND (ProjectID = "ITP-SICK" OR ProjectID = "ITP-HOLIDAY" OR ProjectID = "ITP-BANKHOL")
AND DATE(StartTime) >= "[STARTDATE] "AND DATE(StartTime) <= "[ENDDATE]"
ORDER BY StaffName, ProjectID, StartTime! <?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.10.1" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.AllowEdit="False" PreviewOptions.Buttons="1465" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Compressed="True" ReportOptions.CreateDate="39024.4955783102" ReportOptions.Description.Text="" ReportOptions.LastChange="41620.7443896759" ScriptLanguage="PascalScript" ScriptText.Text="// From [<tknSTARTDATE>] to [<tknENDDATE>] function GetSubtitle: String; var LStartDate, LEndDate: TDateTime; begin LStartDate := GetDateFromTokenVar(<tknSTARTDATE>); LEndDate := GetDateFromTokenVar(<tknENDDATE>); Result := 'From ' + DateToStr(LStartDate) + ' to ' + DateToStr(LEndDate) end; // converts string in 2013-03-14 format to datetime function GetDateFromTokenVar(const ADateStr: String): TDateTime; begin Result := StrToDate(Copy(ADateStr, 9, 2) + '/' + Copy(ADateStr, 6, 2) + '/' + Copy(ADateStr, 1, 4)); end; begin end." PropData="044C656674022C03546F70021408446174617365747301010C1E00000020446174615365743D2264732220446174615365744E616D653D226473220000095661726961626C657301010C16000000204E616D653D2220495450207661726961626C65732200010C21000000204E616D653D227374725265706F72745469746C65222056616C75653D2227272200010C24000000204E616D653D227374725265706F72745375627469746C65222056616C75653D2227272200010C1E000000204E616D653D22737472557365724E616D65222056616C75653D2227272200010C24000000204E616D653D22737472456D61696C5369676E6174757265222056616C75653D2227272200010C28000000204E616D653D22737472456D61696C5369676E617475726548544D4C222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676531222056616C75653D2227272200010C1E000000204E616D653D227374724D65737361676532222056616C75653D2227272200010C29000000204E616D653D22746B6E535441525444415445222056616C75653D2227323031332D30312D3036272200010C27000000204E616D653D22746B6E454E4444415445222056616C75653D2227323031342D30312D3035272200010C2D000000204E616D653D22746B6E53544146464E414D45222056616C75653D2227537572696E6465722053696E676827220000055374796C650100">
<TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
<TfrxReportPage Name="Page1" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="15" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
<TfrxPageHeader Name="PageHeader1" Height="56.69295" Left="0" Top="18.89765" Width="699.21305">
<TfrxMemoView Name="Memo7" Left="0" Top="0" Width="460.65368" Height="24" ShowHint="False" AutoWidth="True" Font.Charset="1" Font.Color="0" Font.Height="-19" Font.Name="Arial" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Project ITP-BANKHOL, ITP-HOLIDAY and ITP-SICK"/>
<TfrxMemoView Name="mvSubtitle" Left="0" Top="27.77953" Width="328.81911" Height="18.89765" ShowHint="False" AutoWidth="True" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="3" Frame.Typ="8" ParentFont="False" Text="For [tknSTAFFNAME] between [tknSTARTDATE] and [tknENDDATE] "/>
</TfrxPageHeader>
<TfrxMasterData Name="MasterData1" Height="22.67718" Left="0" Top="219.21274" Width="699.21305" ColumnWidth="0" ColumnGap="0" DataSet="ds" DataSetName="ds" RowCount="0" Stretched="True">
<TfrxMemoView Name="Memo1" Left="86.92919" Top="0" Width="52.91342" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" HAlign="haRight" ParentFont="False" Text="[<ds."ActualHours"> / 7.5]"/>
<TfrxMemoView Name="dsLogOff" Left="151.1812" Top="0" Width="548.03185" Height="18.89765" ShowHint="False" StretchMode="smMaxHeight" DataField="WorkDone" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds."WorkDone"]"/>
<TfrxMemoView Name="Memo12" Left="0" Top="0" Width="79.37013" Height="18.89765" ShowHint="False" DataField="StartTime" DataSet="ds" DataSetName="ds" DisplayFormat.FormatStr="dd/mm/yyyy" DisplayFormat.Kind="fkDateTime" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="[ds."StartTime"]"/>
</TfrxMasterData>
<TfrxPageFooter Name="PageFooter1" Height="22.67718" Left="0" Top="355.27582" Width="699.21305">
<TfrxMemoView Name="Memo8" Left="0" Top="0" Width="225" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="2" ParentFont="False" Text="[<DATE>] [FORMATDATETIME('h:mm am/pm', <TIME>)]"/>
<TfrxMemoView Name="Memo9" Left="574.48856" Top="0" Width="144.77953" Height="20" ShowHint="False" StretchMode="smMaxHeight" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="2" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
</TfrxPageFooter>
<TfrxGroupHeader Name="GroupHeader1" Height="60.47248" Left="0" Top="136.06308" Width="699.21305" Condition="ds."ProjectID"" KeepTogether="True">
<TfrxMemoView Name="dsPCName" Left="0" Top="37.7953" Width="79.37013" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Date"/>
<TfrxMemoView Name="Memo5" Left="86.92919" Top="37.7953" Width="52.91342" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="8" HAlign="haRight" ParentFont="False" Text="Days"/>
<TfrxMemoView Name="Memo6" Left="151.1812" Top="37.7953" Width="548.03185" Height="18.89765" ShowHint="False" DisplayFormat.DecimalSeparator="." Font.Charset="1" Font.Color="-16777208" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="8" ParentFont="False" Text="Work Done"/>
<TfrxMemoView Name="Memo2" Left="68.03154" Top="11.33859" Width="279.68522" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[ds."ProjectID"]"/>
<TfrxMemoView Name="Memo10" Left="0" Top="11.33859" Width="60.47248" Height="22.67718" ShowHint="False" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-16" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Project:"/>
</TfrxGroupHeader>
<TfrxGroupFooter Name="GroupFooter1" Height="30.23624" Left="0" Top="264.5671" Width="699.21305">
<TfrxMemoView Name="Memo13" Left="98.26778" Top="3.77953" Width="41.57483" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" DisplayFormat.FormatStr="%2.2n" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Typ="4" HAlign="haRight" ParentFont="False" Text="[SUM(<ds."ActualHours">) / 7.5]"/>
<TfrxMemoView Name="Memo14" Left="0" Top="3.77953" Width="102.04731" Height="18.89765" ShowHint="False" DataSet="ds" DataSetName="ds" Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="[ds."ProjectID"]"/>
</TfrxGroupFooter>
</TfrxReportPage>
</TfrxReport>
Q�