40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
using System;
|
|
using BeWo.Data.Access;
|
|
using BeWo.Data.Entities;
|
|
using BeWo.Report;
|
|
using BeWo.Report.ReportObjects;
|
|
using DevExpress.XtraReports.UI;
|
|
|
|
namespace VkmRietberg
|
|
{
|
|
public partial class BudgetnachweisAnhang : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<BudgetnachweisAnhangRO>
|
|
{
|
|
public BudgetnachweisAnhang()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(BudgetnachweisAnhangRO pRO)
|
|
{
|
|
var organisation = DAOFactory.GenericDAO.LoadByID<Organisation>(pRO.Costbearer2SupportConceptDC.CostBearer.OrganisationOid);
|
|
if (organisation != null && organisation.Name.ToLower().Contains("ass"))
|
|
{
|
|
xrLabel1.Text = xrLabel1.Text.Replace("FL", "ASS");
|
|
xrLabel1.Text = xrLabel1.Text.Replace("Fachleistungs", "Assistenz");
|
|
|
|
xrLabel2.Text = xrLabel2.Text.Replace("FL", "ASS");
|
|
xrLabel3.Text = xrLabel3.Text.Replace("FL", "ASS");
|
|
|
|
XRTableCell[] tableCells = new XRTableCell[] { xrTableCell7, xrTableCell72, xrTableCell57, xrTableCell35, xrTableCell78, xrTableCell21,
|
|
xrTableCell79, xrTableCell74, xrTableCell65, xrTableCell49, xrTableCell66, xrTableCell67, xrTableCell68, xrTableCell47 };
|
|
foreach (var tableCell in tableCells)
|
|
{
|
|
tableCell.Text = tableCell.Text.Replace("FL", "ASS");
|
|
}
|
|
}
|
|
|
|
bindingSource1.DataSource = pRO;
|
|
}
|
|
}
|
|
}
|