83 lines
2.4 KiB
C#
83 lines
2.4 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.ComponentModel;
|
|
using BS.Shared.Core;
|
|
using DevExpress.XtraReports.UI;
|
|
using BeWo.Report.ReportObjects;
|
|
using BeWo.Report;
|
|
using System.Collections.Generic;
|
|
using BeWo.Data.Access;
|
|
using BeWo.Data.Entities;
|
|
|
|
namespace BeWo.WegweiserBetreuungsdienstReports
|
|
{
|
|
|
|
public partial class LeistungsnachweisSoziotherapie : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<ServicesOverviewRO>
|
|
{
|
|
public LeistungsnachweisSoziotherapie()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void SetReportDataSource(ServicesOverviewRO pRO)
|
|
{
|
|
double gesamt = 0;
|
|
if (pRO.Services != null)
|
|
{
|
|
foreach (ServicesOverviewRO.ServiceDetail s in pRO.Services)
|
|
{
|
|
gesamt += s.Minutes;
|
|
if (s.Minutes == s.GroupMinutes)
|
|
s.Notice5 = "E";
|
|
else
|
|
s.Notice5 = "G";
|
|
|
|
|
|
//if (s.ServiceDescription.Contains("Video"))
|
|
//{
|
|
// s.ServiceDescription = "V";
|
|
//}
|
|
//else if (s.ServiceDescription.Contains("Telefon"))
|
|
//{
|
|
// s.ServiceDescription = "T";
|
|
//}
|
|
//else if (s.ServiceDescription.Contains("Einrichtung"))
|
|
//{
|
|
// s.ServiceDescription = "E";
|
|
//}
|
|
//else
|
|
//{
|
|
// s.ServiceDescription = "A";
|
|
//}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
cellGesamt.Text = String.Format("{0:0.00}", gesamt / 60);
|
|
|
|
//SetzeAdresseUndIk(pRO);
|
|
|
|
|
|
this.bindingSource1.DataSource = pRO;
|
|
}
|
|
|
|
//private void SetzeAdresseUndIk(ServicesOverviewRO pRo)
|
|
//{
|
|
// if (pRo.CustomerOid > 0)
|
|
// {
|
|
// var c = DAOFactory.GenericDAO.LoadByID<Customer>(pRo.CustomerOid);
|
|
|
|
// foreach (var t2c in c.Team2CustomerList)
|
|
// {
|
|
// if (t2c.Team.Name.Contains("Nord"))
|
|
// {
|
|
// lblAdresse.Text = "Diakonie im Kirchenkreis Kleve e.V., Stechbahn 33, 47533 Kleve";
|
|
// lblIkNr.Text = "IK-Nr.: 500506341";
|
|
// }
|
|
// }
|
|
// }
|
|
//}
|
|
}
|
|
}
|