BrueckeABW: Auf QB Fehlkontakt-Support reingebastelt
This commit is contained in:
617
ReportImp/BrueckeABW/ServicesOverviewReport.Designer.cs
generated
617
ReportImp/BrueckeABW/ServicesOverviewReport.Designer.cs
generated
File diff suppressed because it is too large
Load Diff
@@ -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
Reference in New Issue
Block a user