BrueckeABW: Auf QB Fehlkontakt-Support reingebastelt

This commit is contained in:
2025-01-29 19:09:53 +01:00
parent 9a4e8c2aad
commit 3ef125346f
3 changed files with 405 additions and 484 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,9 +1,4 @@
using System;
using System.Collections;
using System.ComponentModel;
using System.Text;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using DevExpress.XtraReports.UI;
using BeWo.Report.ReportObjects;
using BeWo.Report;
@@ -25,33 +20,48 @@ namespace BeWo.BrueckeABW
public void SetReportDataSource(ServicesOverviewRO pRO)
{
Dictionary<string, string> empDict = new Dictionary<string, string>();
Dictionary<string, string> empDict = new Dictionary<string, string>();
if (pRO.Services != null)
{
List<ServicesOverviewRO.ServiceDetail> servicesBillable = new List<ServicesOverviewRO.ServiceDetail>();
if (pRO.Services != null)
{
List<ServicesOverviewRO.ServiceDetail> servicesBillable = new List<ServicesOverviewRO.ServiceDetail>();
foreach (ServicesOverviewRO.ServiceDetail s in pRO.Services)
{
if (s.IsBillable)
{
ServicesOverviewRO.CreateSignatureString(s);
servicesBillable.Add(s);
}
if (!empDict.ContainsKey(s.EmployeeFullname))
{
empDict.Add(s.EmployeeFullname, s.EmployeeFullname);
}
if (s.SignatureDate.HasValue && s.SignatureDate.Value.Date == s.StartDate.Date)
foreach (var s in pRO.Services)
{
if (s.IsBillable || s.ServiceDescription.ToLower().Contains("fehlkontakt") || s.ServiceCategory.ToLower().Contains("fehlkontakt"))
{
s.SignatureDate = null;
ServicesOverviewRO.CreateSignatureString(s);
s.Notice5 = "E";
if (s.IsGroup)
{
s.Notice5 = "G";
}
if (s.ServiceDescription.ToLower().Contains("fehlkontakt") || s.ServiceCategory.ToLower().Contains("fehlkontakt") || (s.ProzentAbrechenbar < 100))
{
s.Notice5 = "F";
}
if (!empDict.ContainsKey(s.EmployeeFullname))
{
empDict.Add(s.EmployeeFullname, s.EmployeeFullname);
}
if (s.SignatureDate.HasValue && s.SignatureDate.Value.Date == s.StartDate.Date)
{
s.SignatureDate = null;
}
servicesBillable.Add(s);
}
}
pRO.Services = servicesBillable;
}
if (empDict.Count > 0)
}
cellSummeFLS.Text = String.Format("{0:0.00}", pRO.TotalFLSoFehlkontakte);
cellSummeFK.Text = String.Format("{0:0.00}", pRO.TotalFLSFehlkontakte);
if (empDict.Count > 0)
{
pRO.MainAttendant = empDict.Values.ToSeparatedString(", ");
}

File diff suppressed because one or more lines are too long