61 lines
1.7 KiB
C#
61 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using BeWo.Report;
|
|
using BeWo.Report.ReportObjects;
|
|
using DevExpress.XtraReports.UI;
|
|
|
|
namespace SkmKrefeld
|
|
{
|
|
public partial class QuittierungsbelegBeWo67 : XtraReport, IBeWoReport<ServicesOverviewRO>
|
|
{
|
|
public QuittierungsbelegBeWo67()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(ServicesOverviewRO pRO)
|
|
{
|
|
if (pRO.Mandator != null && !String.IsNullOrEmpty(pRO.Mandator.Name))
|
|
{
|
|
lblAnbieter.Text = pRO.Mandator.Name;
|
|
}
|
|
double minutes = 0;
|
|
|
|
|
|
|
|
if (pRO.Services != null)
|
|
{
|
|
|
|
List<ServicesOverviewRO.ServiceDetail> servicesBillable = new List<ServicesOverviewRO.ServiceDetail>();
|
|
|
|
foreach (var sd in pRO.Services)
|
|
{
|
|
if (sd.IsBillable)
|
|
{
|
|
if (sd.IsGroup)
|
|
{
|
|
//hatGruppen = true;
|
|
}
|
|
minutes += sd.Minutes;
|
|
servicesBillable.Add(sd);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
// rechnungsDatum.Text = DateTime.Now.ToShortDateString();
|
|
|
|
summeMinuten.Text = string.Format("{0:0.##}", minutes);
|
|
|
|
if (pRO.SupportConceptCostBearer != null)
|
|
aktenzeichenLV.Text = pRO.SupportConceptCostBearer.CustomerReferenceNumber ?? string.Empty;
|
|
|
|
bewilligteFLSW.Text = string.Format("{0:0.##} Stunden", pRO.ApprovedFLSPerWeek);
|
|
|
|
|
|
bindingSource1.DataSource = pRO;
|
|
}
|
|
}
|
|
}
|