MH: ZuHauseWohnenIrisThimm neue AZ-Nachweis-Spalte

This commit is contained in:
2023-03-12 13:14:23 +01:00
parent 4979684dba
commit 25957f3881
2 changed files with 54 additions and 16 deletions

View File

@@ -6,6 +6,7 @@ using BeWo.Report;
using BeWo.Report.ReportObjects;
using BS.Shared.Core;
using BS.Shared.Extensions;
using DevExpress.XtraReports.UI;
namespace ZuhauseWohnenIrisThimm
@@ -42,7 +43,21 @@ namespace ZuhauseWohnenIrisThimm
ed.UrlaubUndKrankheit = 0;
foreach (var day in ed.Days)
{
if (day.Custom10 == null)
day.Custom10 = "";
ed.UrlaubUndKrankheit += (day.HoursSick + day.HoursInVacation);
if (day.ServiceRecords != null)
{
foreach (var sr in day.ServiceRecords)
{
if (day.Custom10 != null && !day.Custom10.Contains(sr.InsUser))
day.Custom10 += sr.InsUser + ", ";
}
if (!day.Custom10.IsNullOrEmpty())
day.Custom10 = day.Custom10.Remove(day.Custom10.Length - 2, 2);
}
}
}

View File

@@ -115,6 +115,8 @@ namespace ZuhauseWohnenIrisThimm
this.fieldSumHoliday2 = new DevExpress.XtraReports.UI.CalculatedField();
this.fieldIstArbeitszeit = new DevExpress.XtraReports.UI.CalculatedField();
this.fieldUeberstundenGesamt = new DevExpress.XtraReports.UI.CalculatedField();
this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell12 = new DevExpress.XtraReports.UI.XRTableCell();
((System.ComponentModel.ISupportInitialize)(this.xrTableDetail)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTableHeader)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit();
@@ -147,7 +149,7 @@ namespace ZuhauseWohnenIrisThimm
this.xrTableDetail.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrTableDetail.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
this.xrTableRowDetail});
this.xrTableDetail.SizeF = new System.Drawing.SizeF(670F, 22F);
this.xrTableDetail.SizeF = new System.Drawing.SizeF(755.9999F, 22F);
this.xrTableDetail.StylePriority.UseBorders = false;
this.xrTableDetail.StylePriority.UseFont = false;
this.xrTableDetail.StylePriority.UsePadding = false;
@@ -161,7 +163,8 @@ namespace ZuhauseWohnenIrisThimm
this.xrTableCell20,
this.xrTableCell31,
this.xrTableCell67,
this.xrTableCell27});
this.xrTableCell27,
this.xrTableCell12});
this.xrTableRowDetail.FormattingRules.Add(this.ruleIstFeiertagOderWE);
this.xrTableRowDetail.Name = "xrTableRowDetail";
this.xrTableRowDetail.Weight = 0.88D;
@@ -185,7 +188,7 @@ namespace ZuhauseWohnenIrisThimm
new DevExpress.XtraReports.UI.XRBinding("Text", null, "EmployeeDetailList.Days.ZeitraeumeString", "{0:HH:mm}")});
this.xrTableCell20.Name = "xrTableCell20";
this.xrTableCell20.Text = "xrTableCell20";
this.xrTableCell20.Weight = 0.27051398343498156D;
this.xrTableCell20.Weight = 0.22918545006630769D;
//
// xrTableCell31
//
@@ -195,7 +198,7 @@ namespace ZuhauseWohnenIrisThimm
this.xrTableCell31.StylePriority.UseTextAlignment = false;
this.xrTableCell31.Text = "xrTableCell31";
this.xrTableCell31.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell31.Weight = 0.08115419554645896D;
this.xrTableCell31.Weight = 0.072137062994610465D;
//
// xrTableCell67
//
@@ -205,7 +208,7 @@ namespace ZuhauseWohnenIrisThimm
this.xrTableCell67.StylePriority.UseTextAlignment = false;
this.xrTableCell67.Text = "xrTableCell67";
this.xrTableCell67.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell67.Weight = 0.081154197266340475D;
this.xrTableCell67.Weight = 0.0721370578349658D;
//
// xrTableCell27
//
@@ -215,7 +218,7 @@ namespace ZuhauseWohnenIrisThimm
this.xrTableCell27.StylePriority.UseTextAlignment = false;
this.xrTableCell27.Text = "xrTableCell27";
this.xrTableCell27.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell27.Weight = 0.08115417920758361D;
this.xrTableCell27.Weight = 0.072137081053366012D;
//
// ruleIstFeiertagOderWE
//
@@ -274,7 +277,7 @@ namespace ZuhauseWohnenIrisThimm
this.xrTableHeader.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrTableHeader.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
this.xrTableRowHeader});
this.xrTableHeader.SizeF = new System.Drawing.SizeF(670F, 30F);
this.xrTableHeader.SizeF = new System.Drawing.SizeF(755.9999F, 30F);
this.xrTableHeader.StylePriority.UseBackColor = false;
this.xrTableHeader.StylePriority.UseBorders = false;
this.xrTableHeader.StylePriority.UseFont = false;
@@ -289,7 +292,8 @@ namespace ZuhauseWohnenIrisThimm
this.xrTableCell2,
this.xrTableCell7,
this.xrTableCell8,
this.xrTableCell10});
this.xrTableCell10,
this.xrTableCell11});
this.xrTableRowHeader.Name = "xrTableRowHeader";
this.xrTableRowHeader.Weight = 0.79999999999999982D;
//
@@ -309,7 +313,7 @@ namespace ZuhauseWohnenIrisThimm
this.xrTableCell2.StylePriority.UseTextAlignment = false;
this.xrTableCell2.Text = "Uhrzeit";
this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell2.Weight = 0.27051397637806085D;
this.xrTableCell2.Weight = 0.22918544300938692D;
//
// xrTableCell7
//
@@ -317,7 +321,7 @@ namespace ZuhauseWohnenIrisThimm
this.xrTableCell7.StylePriority.UseTextAlignment = false;
this.xrTableCell7.Text = "Stunden";
this.xrTableCell7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell7.Weight = 0.081154194025935031D;
this.xrTableCell7.Weight = 0.072137061474086508D;
//
// xrTableCell8
//
@@ -326,7 +330,7 @@ namespace ZuhauseWohnenIrisThimm
this.xrTableCell8.StylePriority.UseTextAlignment = false;
this.xrTableCell8.Text = "Krank";
this.xrTableCell8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell8.Weight = 0.081154199562331691D;
this.xrTableCell8.Weight = 0.072137060130957026D;
//
// xrTableCell10
//
@@ -336,7 +340,7 @@ namespace ZuhauseWohnenIrisThimm
this.xrTableCell10.StylePriority.UseTextAlignment = false;
this.xrTableCell10.Text = "Urlaub";
this.xrTableCell10.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell10.Weight = 0.0811541853775325D;
this.xrTableCell10.Weight = 0.072137032187105418D;
//
// GroupHeader3
//
@@ -358,7 +362,7 @@ namespace ZuhauseWohnenIrisThimm
this.lblMonat.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
this.lblMonat.Multiline = true;
this.lblMonat.Name = "lblMonat";
this.lblMonat.SizeF = new System.Drawing.SizeF(700.0001F, 25F);
this.lblMonat.SizeF = new System.Drawing.SizeF(720F, 25F);
this.lblMonat.StyleName = "Title";
this.lblMonat.StylePriority.UseFont = false;
this.lblMonat.Text = "lblMonat";
@@ -590,7 +594,7 @@ namespace ZuhauseWohnenIrisThimm
this.xrTable1.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
| DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 36.66667F);
this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 36.66668F);
this.xrTable1.Name = "xrTable1";
this.xrTable1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrTable1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
@@ -598,7 +602,7 @@ namespace ZuhauseWohnenIrisThimm
this.xrTableRow2,
this.xrTableRow5,
this.xrTableRow6});
this.xrTable1.SizeF = new System.Drawing.SizeF(669.9999F, 80F);
this.xrTable1.SizeF = new System.Drawing.SizeF(720F, 80F);
this.xrTable1.StylePriority.UseBorders = false;
this.xrTable1.StylePriority.UseFont = false;
this.xrTable1.StylePriority.UsePadding = false;
@@ -977,6 +981,23 @@ namespace ZuhauseWohnenIrisThimm
this.fieldUeberstundenGesamt.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal;
this.fieldUeberstundenGesamt.Name = "fieldUeberstundenGesamt";
//
// xrTableCell11
//
this.xrTableCell11.Name = "xrTableCell11";
this.xrTableCell11.StylePriority.UseTextAlignment = false;
this.xrTableCell11.Text = "Eintrag von";
this.xrTableCell11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell11.Weight = 0.14592721179792886D;
//
// xrTableCell12
//
this.xrTableCell12.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "EmployeeDetailList.Days.Custom10")});
this.xrTableCell12.Name = "xrTableCell12";
this.xrTableCell12.StylePriority.UseTextAlignment = false;
this.xrTableCell12.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell12.Weight = 0.14592721155957975D;
//
// Mitarbeiterarbeitszeitkonto
//
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
@@ -1001,7 +1022,7 @@ namespace ZuhauseWohnenIrisThimm
this.Font = new System.Drawing.Font("Arial", 8F);
this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] {
this.ruleIstFeiertagOderWE});
this.Margins = new System.Drawing.Printing.Margins(75, 50, 50, 50);
this.Margins = new System.Drawing.Printing.Margins(39, 32, 50, 50);
this.PageHeight = 1169;
this.PageWidth = 827;
this.PaperKind = System.Drawing.Printing.PaperKind.A4;
@@ -1104,5 +1125,7 @@ namespace ZuhauseWohnenIrisThimm
private DevExpress.XtraReports.UI.XRTableCell xrTableCell9;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell16;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell19;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell11;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell12;
}
}