Fix BeWo Leverkusen

This commit is contained in:
Waldi
2017-05-22 13:10:42 +02:00
parent 71185c79f6
commit d410c4a09c
4 changed files with 41 additions and 41 deletions

View File

@@ -1,7 +1,7 @@
using BeWo.Report.ReportObjects;
namespace BeWo.BeWoLeverkusen
namespace BeWoLeverkusen
{
partial class Stundenzettel
partial class StundenzettelAss
{
/// <summary>
/// Required designer variable.

View File

@@ -6,36 +6,36 @@ using BeWo.Report.ReportObjects;
using BeWo.Report;
using System.Collections.Generic;
namespace BeWo.BeWoLeverkusen
namespace BeWoLeverkusen
{
public partial class Stundenzettel : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
public partial class StundenzettelAss : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
{
public Stundenzettel()
public StundenzettelAss()
{
InitializeComponent();
}
public void SetReportDataSource(ServicesOverviewRO pRO)
{
if (String.IsNullOrEmpty(pRO.AbsenceTimes))
{
lblAbwesenheiten.Top += 18;
lblAbwesenheiten.Width = 376;
lblAbwesenheiten.Borders = DevExpress.XtraPrinting.BorderSide.Top;
}
if (pRO.Services != null)
{
List<ServicesOverviewRO.ServiceDetail> servicesBillable = new List<ServicesOverviewRO.ServiceDetail>();
//if (String.IsNullOrEmpty(pRO.AbsenceTimes))
//{
// lblAbwesenheiten.Top += 18;
// lblAbwesenheiten.Width = 376;
// lblAbwesenheiten.Borders = DevExpress.XtraPrinting.BorderSide.Top;
//}
//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);
}
// foreach (ServicesOverviewRO.ServiceDetail s in pRO.Services)
// {
// if (s.IsBillable)
// servicesBillable.Add(s);
// }
pRO.Services = servicesBillable;
}
this.bindingSource1.DataSource = pRO;
// pRO.Services = servicesBillable;
//}
//this.bindingSource1.DataSource = pRO;
}
}
}

View File

@@ -1,5 +1,5 @@
using BeWo.Report.ReportObjects;
namespace BeWo.BeWoLeverkusen
namespace BeWoLeverkusen
{
partial class Stundenzettel
{

View File

@@ -6,7 +6,7 @@ using BeWo.Report.ReportObjects;
using BeWo.Report;
using System.Collections.Generic;
namespace BeWo.BeWoLeverkusen
namespace BeWoLeverkusen
{
public partial class Stundenzettel : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
{
@@ -17,25 +17,25 @@ namespace BeWo.BeWoLeverkusen
public void SetReportDataSource(ServicesOverviewRO pRO)
{
if (String.IsNullOrEmpty(pRO.AbsenceTimes))
{
lblAbwesenheiten.Top += 18;
lblAbwesenheiten.Width = 376;
lblAbwesenheiten.Borders = DevExpress.XtraPrinting.BorderSide.Top;
}
if (pRO.Services != null)
{
List<ServicesOverviewRO.ServiceDetail> servicesBillable = new List<ServicesOverviewRO.ServiceDetail>();
//if (String.IsNullOrEmpty(pRO.AbsenceTimes))
//{
// lblAbwesenheiten.Top += 18;
// lblAbwesenheiten.Width = 376;
// lblAbwesenheiten.Borders = DevExpress.XtraPrinting.BorderSide.Top;
//}
//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);
}
// foreach (ServicesOverviewRO.ServiceDetail s in pRO.Services)
// {
// if (s.IsBillable)
// servicesBillable.Add(s);
// }
pRO.Services = servicesBillable;
}
this.bindingSource1.DataSource = pRO;
// pRO.Services = servicesBillable;
//}
//this.bindingSource1.DataSource = pRO;
}
}
}