53 lines
1.7 KiB
C#
53 lines
1.7 KiB
C#
using System;
|
|
using BeWo.Data.Access;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Report.ReportObjects;
|
|
using BeWo.Report;
|
|
using DevExpress.XtraPrinting;
|
|
|
|
namespace KirschbaumManz
|
|
{
|
|
public partial class Leistungsdokumentation : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<FLSReportRO>
|
|
{
|
|
public Leistungsdokumentation()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(FLSReportRO pRO)
|
|
{
|
|
if (pRO.GroupTypeHeader.Contains("Klient"))
|
|
{
|
|
foreach (var group in pRO.FLSReportGroups)
|
|
{
|
|
foreach (var sr in group.ServiceRecords)
|
|
{
|
|
if (sr.CostBearer2SupportConceptOid.HasValue)
|
|
{
|
|
var c2s = DAOFactory.GenericDAO.LoadByID<CostBearer2SupportConcept>(
|
|
sr.CostBearer2SupportConceptOid.Value);
|
|
|
|
sr.CustomValue1 = c2s.CustomerReferenceNumber;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
cellAzHeader.Borders = DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Bottom;
|
|
cellAzHeader.Width = 0;
|
|
cellAzHeader.Text = "";
|
|
cellAz.Borders = DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Bottom;
|
|
cellAz.Width = 0;
|
|
cellAz.Text = "";
|
|
|
|
xrTable2.Rows[0].Cells.Remove(cellAzHeader);
|
|
xrTable4.Rows[0].Cells.Remove(cellAz);
|
|
|
|
}
|
|
this.bindingSource1.DataSource = pRO;
|
|
}
|
|
|
|
}
|
|
}
|