BeWoDarmstadt/Zeitzuschlagsbeleg und Teamuebersicht Nacharbeiten
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BS.Shared.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -40,7 +41,6 @@ namespace BeWoDarmstadt
|
||||
{
|
||||
var edTotal = base.BerechneUeberstundenBis(edOrig, records, monat, out ueberstunden, out alteExtraUeberstunden);
|
||||
edOrig.Custom15 = -fls;
|
||||
// edOrig.Custom6 = ausgezahlte;
|
||||
return edTotal;
|
||||
}
|
||||
|
||||
@@ -80,5 +80,31 @@ namespace BeWoDarmstadt
|
||||
|
||||
return flsSollImVertragsUndBerichtzeitraum;
|
||||
}
|
||||
}
|
||||
|
||||
public override void CalculateAbsenceTimesForDay(MitarbeiterstundenkontoRO.DayDetail dd, MitarbeiterstundenkontoRO.EmployeeDetail ed)
|
||||
{
|
||||
base.CalculateAbsenceTimesForDay(dd, ed);
|
||||
if (dd.AbsenceTimes != null)
|
||||
{
|
||||
foreach (var at in dd.AbsenceTimes)
|
||||
{
|
||||
if (dd.HoursInVacation == 0)
|
||||
{
|
||||
if (dd.HoursSick == 0 && !String.IsNullOrEmpty(at.AbsenceReason.Description) && at.AbsenceReason.Description.ToLower().Contains("fortbildung"))
|
||||
{
|
||||
dd.Custom6 = "F";
|
||||
}
|
||||
else if (!String.IsNullOrEmpty(at.AbsenceReason.Description) && at.AbsenceReason.Description.ToLower().Contains("kindkrank"))
|
||||
{
|
||||
dd.Custom6 = "kk";
|
||||
}
|
||||
else if (dd.HoursSick == 0)
|
||||
{
|
||||
dd.Custom6 = "A";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,8 +96,9 @@ namespace BeWoDarmstadt
|
||||
|
||||
if (qro.Rows.Count > 0)
|
||||
{
|
||||
DateTime start = DateTime.Parse(qro.Rows[0].Field1.ToString());
|
||||
DateTime end = start.AddMonths(1).AddDays(-1);
|
||||
DateTime param = DateTime.Parse(qro.Rows[0].Field1.ToString());
|
||||
DateTime start = new DateTime(param.Year, 1, 1);
|
||||
DateTime end = param.AddMonths(1).AddDays(-1);
|
||||
|
||||
var ro = FinanceRO.Create(start, end);
|
||||
var druck = new Teamuebersicht();
|
||||
|
||||
@@ -304,7 +304,7 @@ namespace BeWoDarmstadt
|
||||
this.lblTitel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblTitel.SizeF = new System.Drawing.SizeF(652.9166F, 23F);
|
||||
this.lblTitel.StylePriority.UseFont = false;
|
||||
this.lblTitel.Text = "Monatsübersicht je Team für [ReportStartDate!MMMM] [ReportStartDate!yyyy] ";
|
||||
this.lblTitel.Text = "Monatsübersicht je Team für [ReportEndDate!MMMM] [ReportEndDate!yyyy] ";
|
||||
//
|
||||
// DetailReport
|
||||
//
|
||||
|
||||
@@ -377,6 +377,8 @@ namespace BeWoDarmstadt
|
||||
AddAbwesenheitToCell(day.Date, "K");
|
||||
else if (day.HoursInVacation > 0)
|
||||
AddAbwesenheitToCell(day.Date, "U");
|
||||
else if (day.Custom6 != null)
|
||||
AddAbwesenheitToCell(day.Date, day.Custom6);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user