MH: TeamPfeil QB Betreuungskräftte richtiggestellt
This commit is contained in:
@@ -47,6 +47,7 @@ namespace TeamPfeil
|
||||
{
|
||||
Dictionary<long, string> empQuali = new Dictionary<long, string>();
|
||||
List<ServicesOverviewRO.ServiceDetail> servicesBillable = new List<ServicesOverviewRO.ServiceDetail>();
|
||||
pRO.MainAttendant = "";
|
||||
|
||||
foreach (var sd in pRO.Services)
|
||||
{
|
||||
@@ -97,26 +98,39 @@ namespace TeamPfeil
|
||||
|
||||
if (quali == "1")
|
||||
{
|
||||
sd.ServiceCategoryAbbr = "QA";
|
||||
sd.ServiceCategoryAbbr = "QA 1";
|
||||
qa1Min += sd.Minutes;
|
||||
}
|
||||
if (quali == "2")
|
||||
{
|
||||
sd.ServiceCategoryAbbr = "QA";
|
||||
sd.ServiceCategoryAbbr = "QA 2";
|
||||
qa2Min += sd.Minutes;
|
||||
}
|
||||
if (quali == "3")
|
||||
{
|
||||
sd.ServiceCategoryAbbr = "UA";
|
||||
sd.ServiceCategoryAbbr = "UA 3";
|
||||
ua3Min += sd.Minutes;
|
||||
}
|
||||
if (quali == "4")
|
||||
{
|
||||
sd.ServiceCategoryAbbr = "UA";
|
||||
sd.ServiceCategoryAbbr = "UA 4";
|
||||
ua4Min += sd.Minutes;
|
||||
}
|
||||
}
|
||||
|
||||
// Mitarbeiter:in in den String von beteiligten Personen auf dem Beleg mit aufnehmen
|
||||
if (!pRO.MainAttendant.Contains(sd.EmployeeFirstName) && !pRO.MainAttendant.Contains(sd.EmployeeLastName))
|
||||
{
|
||||
if (pRO.MainAttendant == "")
|
||||
pRO.MainAttendant = sd.EmployeeFirstName + " " + sd.EmployeeLastName;
|
||||
else
|
||||
pRO.MainAttendant += ", " + sd.EmployeeFirstName + " " + sd.EmployeeLastName;
|
||||
|
||||
// Qualifikation von Mitarbeiter:in in den String von beteiligten Personen auf dem Beleg mit aufnehmen
|
||||
if (sd.ServiceCategoryAbbr != null)
|
||||
pRO.MainAttendant += string.Format(" ({0})", sd.ServiceCategoryAbbr);
|
||||
}
|
||||
|
||||
// Summen der geleisteten Stunden nach Qualifikationen der Leistungen
|
||||
if (sd.ServiceDescription == "QA 1")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user