56 lines
1.8 KiB
C#
56 lines
1.8 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using DevExpress.XtraReports.UI;
|
|
using BeWo.Report.ReportObjects;
|
|
using BeWo.Report;
|
|
|
|
namespace BeWo.BeWoMobilReports.J2023
|
|
{
|
|
public partial class Stundenzettel : DevExpress.XtraReports.UI.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)
|
|
{
|
|
s.Notice = String.Format("F");
|
|
if (s.IsBillable)
|
|
{
|
|
if (s.IsGroup)
|
|
{
|
|
s.Notice = String.Format("G, {0} TN", s.CustomerCount);
|
|
}
|
|
else if (s.ServiceDescription == "Fehlkontakt")
|
|
{
|
|
s.Notice = String.Format("FK");
|
|
}
|
|
else if (s.ServiceDescription == "Ear to Ear")
|
|
{
|
|
s.Notice = String.Format("E");
|
|
}
|
|
else if (s.ServiceDescription.Contains("Assistenz"))
|
|
{
|
|
s.Notice = String.Format("A");
|
|
}
|
|
servicesBillable.Add(s);
|
|
}
|
|
}
|
|
|
|
pRO.Services = servicesBillable;
|
|
}
|
|
|
|
this.bindingSource1.DataSource = pRO;
|
|
}
|
|
}
|
|
}
|