MH: FFS Mehrarbeitsausgleich

This commit is contained in:
2023-03-15 15:47:20 +01:00
parent 6769ce67f1
commit bcac25e948
3 changed files with 15 additions and 7 deletions

View File

@@ -9,6 +9,14 @@ namespace FreundeskreisSuchthilfe.Alt
{
public class CustomMitarbeiterstundenkontoBerechnung : MitarbeiterstundenkontoBerechnung
{
public override bool IstAnrechenbareAbsenceTime(AbsenceTime item)
{
if (item.AbsenceReason.Description.ToLower() != "mehrarbeitsausgleich")
return true;
else
return false;
}
public override bool ShouldCreateDayDetails()
{
return true;

View File

@@ -56,7 +56,7 @@ namespace FreundeskreisSuchthilfe.Alt
bool abwesend = false;
foreach (var absTime in ed.Employee.AbsenceTimes)
{
if (absTime.AbsenceSpan.ContainsDate(day.Date))
if (absTime.AbsenceSpan.ContainsDate(day.Date) && absTime.AbsenceReason.Description.ToLower() != "mehrarbeitsausgleich")
abwesend = true;
}

View File

@@ -88,7 +88,6 @@ namespace FreundeskreisSuchthilfe.Alt
this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel16 = new DevExpress.XtraReports.UI.XRLabel();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.Title = new DevExpress.XtraReports.UI.XRControlStyle();
this.FieldCaption = new DevExpress.XtraReports.UI.XRControlStyle();
this.PageInfo = new DevExpress.XtraReports.UI.XRControlStyle();
@@ -106,6 +105,7 @@ namespace FreundeskreisSuchthilfe.Alt
this.fieldSumHoliday2 = new DevExpress.XtraReports.UI.CalculatedField();
this.fieldIstArbeitszeit = new DevExpress.XtraReports.UI.CalculatedField();
this.fieldUeberstundenGesamt = new DevExpress.XtraReports.UI.CalculatedField();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit();
@@ -600,7 +600,7 @@ namespace FreundeskreisSuchthilfe.Alt
// xrTableCell13
//
this.xrTableCell13.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "EmployeeDetailList.StundenSollOhneUrlaubKrankheit", "{0:0.00}")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "EmployeeDetailList.StundenSollMax", "{0:0.00}")});
this.xrTableCell13.Name = "xrTableCell13";
this.xrTableCell13.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 2, 0, 0, 100F);
this.xrTableCell13.StylePriority.UsePadding = false;
@@ -734,10 +734,6 @@ namespace FreundeskreisSuchthilfe.Alt
this.xrLabel16.StylePriority.UseFont = false;
this.xrLabel16.Text = "U=Urlaub K=krank F=Fortbildg. M=Mehrarbeitsausgl. D=Dienstreise AB=Arztbesuch" +
" S oder B=Sonder- oder Bildungsurlaub";
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.MitarbeiterstundenkontoRO);
//
// Title
//
@@ -868,6 +864,10 @@ namespace FreundeskreisSuchthilfe.Alt
this.fieldUeberstundenGesamt.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal;
this.fieldUeberstundenGesamt.Name = "fieldUeberstundenGesamt";
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.MitarbeiterstundenkontoRO);
//
// Mitarbeiterarbeitszeitkonto
//
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {