43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using BeWo.Report;
|
|
using BeWo.Report.ReportObjects;
|
|
using DevExpress.XtraReports.UI;
|
|
|
|
namespace WohnassistenzMuensterReports
|
|
{
|
|
public partial class Stundenzettel : XtraReport, IBeWoReport<ServicesOverviewRO>
|
|
{
|
|
public Stundenzettel()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(ServicesOverviewRO pRO)
|
|
{
|
|
if (pRO.Services != null)
|
|
{
|
|
List<ServicesOverviewRO.ServiceDetail> servicesBillable = new List<ServicesOverviewRO.ServiceDetail>();
|
|
|
|
foreach (ServicesOverviewRO.ServiceDetail s in pRO.Services)
|
|
{
|
|
if (s.IsBillable)
|
|
servicesBillable.Add(s);
|
|
}
|
|
|
|
pRO.Services = servicesBillable;
|
|
}
|
|
bindingSource1.DataSource = pRO;
|
|
// rechnungsDatum.Text = DateTime.Now.ToShortDateString();
|
|
|
|
//summeMinuten.Text = string.Format("{0:0.##}", pRO.TotalFLMBillable);
|
|
|
|
//if (pRO.SupportConceptCostBearer != null)
|
|
// aktenzeichenLV.Text = pRO.SupportConceptCostBearer.CustomerReferenceNumber ?? string.Empty;
|
|
|
|
//bewilligteFLSW.Text = string.Format("{0:0.##}", pRO.ApprovedFLSPerWeek);
|
|
}
|
|
}
|
|
}
|