MH: Anzeige der Betreuer angepasst AutismusKölnBonn

This commit is contained in:
2023-02-01 09:26:07 +01:00
parent d47177f8a4
commit 734eb0cc8a
2 changed files with 26 additions and 3 deletions

View File

@@ -347,7 +347,7 @@ namespace AutismusKoelnBonn
// xrTableCell16
//
this.xrTableCell16.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.Notice", "{0:0.##}")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.Notice2", "{0:0.##}")});
this.xrTableCell16.Font = new System.Drawing.Font("Arial", 8F);
this.xrTableCell16.Name = "xrTableCell16";
this.xrTableCell16.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
@@ -779,8 +779,6 @@ namespace AutismusKoelnBonn
//
// cellBerater1
//
this.cellBerater1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "MainAttendant")});
this.cellBerater1.Name = "cellBerater1";
this.cellBerater1.Weight = 0.43894654911611386D;
//

View File

@@ -82,9 +82,34 @@ namespace AutismusKoelnBonn //BetreutesWohnen Stelzel
}
}
pRO.Services = servicesBillable;
}
// Betreuuernamen setzen
foreach (var cb2sc in pRO.CostBearer2SupportConceptList)
{
if (cb2sc.CostBearer.Organisation.Name == pRO.Costbearer)
{
foreach (var scap in cb2sc.ApprovalPeriodList)
{
if (pRO.StartDate.Date >= scap.StartDate.Value.Date && pRO.EndDate.Date <= scap.EndDate.Value.Date)
{
if (scap.SupportConceptApprovalPeriod2Employee != null && scap.SupportConceptApprovalPeriod2Employee.Count > 0)
{
if (scap.SupportConceptApprovalPeriod2Employee.Count == 1)
cellBerater1.Text = scap.SupportConceptApprovalPeriod2Employee[0].Employee.Person.FirstNameLastName;
else
{
cellBerater1.Text = scap.SupportConceptApprovalPeriod2Employee[0].Employee.Person.FirstNameLastName;
cellBerater2.Text = scap.SupportConceptApprovalPeriod2Employee[1].Employee.Person.FirstNameLastName;
}
}
}
}
}
}
cellSummeFls.Text = String.Format("{0:0.00}", summeFls / 60);
cellSummeAusfall.Text = String.Format("{0:0.00}", summeAusfall / 60);
cellSummeWegezeit.Text = String.Format("{0:0.00}", summeWege / 60);