41 lines
971 B
C#
41 lines
971 B
C#
using System;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using BeWo.Report;
|
|
using BeWo.Report.ReportObjects;
|
|
using BeWo.Service.ServiceImplementations;
|
|
using BS.Shared;
|
|
using BS.Shared.Core;
|
|
|
|
namespace BhsSolingen
|
|
{
|
|
[IDSpecificClass(Identifier = "GeleisteteStunden")]
|
|
public partial class GeleisteteStunden : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<QueryRO>
|
|
{
|
|
|
|
public GeleisteteStunden()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(QueryRO pRO)
|
|
{
|
|
if (pRO.Rows.Count > 0)
|
|
{
|
|
DateTime dt = DateTime.Now;
|
|
|
|
if (pRO.Rows[0].Field8 != null)
|
|
{
|
|
DateTime.TryParse(pRO.Rows[0].Field8.ToString(), out dt);
|
|
|
|
}
|
|
|
|
lblTitel.Text = String.Format("{0:MMMM yyyy}", dt);
|
|
}
|
|
this.bindingSource1.DataSource = pRO;
|
|
}
|
|
|
|
}
|
|
|
|
}
|