Fix BeWo Leverkusen
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using BeWo.Report.ReportObjects;
|
||||
namespace BeWo.BeWoLeverkusen
|
||||
namespace BeWoLeverkusen
|
||||
{
|
||||
partial class Stundenzettel
|
||||
partial class StundenzettelAss
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using BeWo.Report.ReportObjects;
|
||||
namespace BeWo.BeWoLeverkusen
|
||||
namespace BeWoLeverkusen
|
||||
{
|
||||
partial class Stundenzettel
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user