diff --git a/ReportImp/LebenshilfeStadeMID/Quittierungsbeleg.Designer.cs b/ReportImp/LebenshilfeStadeMID/Quittierungsbeleg.Designer.cs index 58b6d4d26..aa32871d7 100644 --- a/ReportImp/LebenshilfeStadeMID/Quittierungsbeleg.Designer.cs +++ b/ReportImp/LebenshilfeStadeMID/Quittierungsbeleg.Designer.cs @@ -88,20 +88,29 @@ namespace LebenshilfeStadeMID this.xrTable3 = new DevExpress.XtraReports.UI.XRTable(); this.xrTableRow8 = new DevExpress.XtraReports.UI.XRTableRow(); this.xrTableCell16 = new DevExpress.XtraReports.UI.XRTableCell(); - this.tcSumVerfuegungszeit = new DevExpress.XtraReports.UI.XRTableCell(); - this.tcSumZusatzleistung1 = new DevExpress.XtraReports.UI.XRTableCell(); - this.tcSumZusatzleistung2 = new DevExpress.XtraReports.UI.XRTableCell(); - this.tcSumSchuelerKrank = new DevExpress.XtraReports.UI.XRTableCell(); - this.lblGesamtzeit = new DevExpress.XtraReports.UI.XRTableCell(); + this.tcSumVerfuegungszeitMin = new DevExpress.XtraReports.UI.XRTableCell(); + this.tcSumZusatzleistung1Min = new DevExpress.XtraReports.UI.XRTableCell(); + this.tcSumZusatzleistung2Min = new DevExpress.XtraReports.UI.XRTableCell(); + this.tcSumSchuelerKrankMin = new DevExpress.XtraReports.UI.XRTableCell(); + this.lblGesamtzeitMin = new DevExpress.XtraReports.UI.XRTableCell(); this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel10 = new DevExpress.XtraReports.UI.XRLabel(); this.fieldKontaktArt = new DevExpress.XtraReports.UI.CalculatedField(); this.Hours = new DevExpress.XtraReports.UI.CalculatedField(); + this.xrTable2 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow3 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell18 = new DevExpress.XtraReports.UI.XRTableCell(); + this.tcSumVerfuegungszeitStd = new DevExpress.XtraReports.UI.XRTableCell(); + this.tcSumZusatzleistung1Std = new DevExpress.XtraReports.UI.XRTableCell(); + this.tcSumZusatzleistung2Std = new DevExpress.XtraReports.UI.XRTableCell(); + this.tcSumSchuelerKrankStd = new DevExpress.XtraReports.UI.XRTableCell(); + this.lblGesamtzeitStd = new DevExpress.XtraReports.UI.XRTableCell(); ((System.ComponentModel.ISupportInitialize)(this.xrTableDetail)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // Detail @@ -689,6 +698,7 @@ namespace LebenshilfeStadeMID // GroupFooter1 // this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable2, this.xrPictureBox1, this.xrTable3, this.xrLabel1, @@ -701,7 +711,7 @@ namespace LebenshilfeStadeMID // xrPictureBox1 // this.xrPictureBox1.ImageSource = new DevExpress.XtraPrinting.Drawing.ImageSource("img", resources.GetString("xrPictureBox1.ImageSource")); - this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(401.3133F, 34.6165F); + this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(401.3133F, 60.65817F); this.xrPictureBox1.Name = "xrPictureBox1"; this.xrPictureBox1.SizeF = new System.Drawing.SizeF(211.5F, 25F); this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage; @@ -725,11 +735,11 @@ namespace LebenshilfeStadeMID // this.xrTableRow8.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { this.xrTableCell16, - this.tcSumVerfuegungszeit, - this.tcSumZusatzleistung1, - this.tcSumZusatzleistung2, - this.tcSumSchuelerKrank, - this.lblGesamtzeit}); + this.tcSumVerfuegungszeitMin, + this.tcSumZusatzleistung1Min, + this.tcSumZusatzleistung2Min, + this.tcSumSchuelerKrankMin, + this.lblGesamtzeitMin}); this.xrTableRow8.Name = "xrTableRow8"; this.xrTableRow8.Weight = 0.53333333333333344D; // @@ -741,66 +751,66 @@ namespace LebenshilfeStadeMID this.xrTableCell16.StylePriority.UseFont = false; this.xrTableCell16.StylePriority.UsePadding = false; this.xrTableCell16.StylePriority.UseTextAlignment = false; - this.xrTableCell16.Text = "Summen"; + this.xrTableCell16.Text = "Summen in Minuten"; this.xrTableCell16.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; this.xrTableCell16.Weight = 0.35582241246611113D; // - // tcSumVerfuegungszeit + // tcSumVerfuegungszeitMin // - this.tcSumVerfuegungszeit.Font = new DevExpress.Drawing.DXFont("Calibri", 12F); - this.tcSumVerfuegungszeit.Name = "tcSumVerfuegungszeit"; - this.tcSumVerfuegungszeit.StylePriority.UseFont = false; - this.tcSumVerfuegungszeit.StylePriority.UseTextAlignment = false; - this.tcSumVerfuegungszeit.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.tcSumVerfuegungszeit.Weight = 0.21657708927019603D; + this.tcSumVerfuegungszeitMin.Font = new DevExpress.Drawing.DXFont("Calibri", 12F); + this.tcSumVerfuegungszeitMin.Name = "tcSumVerfuegungszeitMin"; + this.tcSumVerfuegungszeitMin.StylePriority.UseFont = false; + this.tcSumVerfuegungszeitMin.StylePriority.UseTextAlignment = false; + this.tcSumVerfuegungszeitMin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.tcSumVerfuegungszeitMin.Weight = 0.21657708927019603D; // - // tcSumZusatzleistung1 + // tcSumZusatzleistung1Min // - this.tcSumZusatzleistung1.BorderColor = System.Drawing.Color.Transparent; - this.tcSumZusatzleistung1.Borders = DevExpress.XtraPrinting.BorderSide.None; - this.tcSumZusatzleistung1.Font = new DevExpress.Drawing.DXFont("Calibri", 12F); - this.tcSumZusatzleistung1.Multiline = true; - this.tcSumZusatzleistung1.Name = "tcSumZusatzleistung1"; - this.tcSumZusatzleistung1.StylePriority.UseBorderColor = false; - this.tcSumZusatzleistung1.StylePriority.UseBorders = false; - this.tcSumZusatzleistung1.StylePriority.UseFont = false; - this.tcSumZusatzleistung1.StylePriority.UseTextAlignment = false; - this.tcSumZusatzleistung1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.tcSumZusatzleistung1.Weight = 0.27659229459618939D; + this.tcSumZusatzleistung1Min.BorderColor = System.Drawing.Color.Transparent; + this.tcSumZusatzleistung1Min.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.tcSumZusatzleistung1Min.Font = new DevExpress.Drawing.DXFont("Calibri", 12F); + this.tcSumZusatzleistung1Min.Multiline = true; + this.tcSumZusatzleistung1Min.Name = "tcSumZusatzleistung1Min"; + this.tcSumZusatzleistung1Min.StylePriority.UseBorderColor = false; + this.tcSumZusatzleistung1Min.StylePriority.UseBorders = false; + this.tcSumZusatzleistung1Min.StylePriority.UseFont = false; + this.tcSumZusatzleistung1Min.StylePriority.UseTextAlignment = false; + this.tcSumZusatzleistung1Min.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.tcSumZusatzleistung1Min.Weight = 0.27659229459618939D; // - // tcSumZusatzleistung2 + // tcSumZusatzleistung2Min // - this.tcSumZusatzleistung2.BorderColor = System.Drawing.Color.Transparent; - this.tcSumZusatzleistung2.Borders = DevExpress.XtraPrinting.BorderSide.None; - this.tcSumZusatzleistung2.Font = new DevExpress.Drawing.DXFont("Calibri", 12F); - this.tcSumZusatzleistung2.Multiline = true; - this.tcSumZusatzleistung2.Name = "tcSumZusatzleistung2"; - this.tcSumZusatzleistung2.StylePriority.UseBorderColor = false; - this.tcSumZusatzleistung2.StylePriority.UseBorders = false; - this.tcSumZusatzleistung2.StylePriority.UseFont = false; - this.tcSumZusatzleistung2.StylePriority.UseTextAlignment = false; - this.tcSumZusatzleistung2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.tcSumZusatzleistung2.Weight = 0.27629456681042475D; + this.tcSumZusatzleistung2Min.BorderColor = System.Drawing.Color.Transparent; + this.tcSumZusatzleistung2Min.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.tcSumZusatzleistung2Min.Font = new DevExpress.Drawing.DXFont("Calibri", 12F); + this.tcSumZusatzleistung2Min.Multiline = true; + this.tcSumZusatzleistung2Min.Name = "tcSumZusatzleistung2Min"; + this.tcSumZusatzleistung2Min.StylePriority.UseBorderColor = false; + this.tcSumZusatzleistung2Min.StylePriority.UseBorders = false; + this.tcSumZusatzleistung2Min.StylePriority.UseFont = false; + this.tcSumZusatzleistung2Min.StylePriority.UseTextAlignment = false; + this.tcSumZusatzleistung2Min.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.tcSumZusatzleistung2Min.Weight = 0.27629456681042475D; // - // tcSumSchuelerKrank + // tcSumSchuelerKrankMin // - this.tcSumSchuelerKrank.Font = new DevExpress.Drawing.DXFont("Calibri", 12F); - this.tcSumSchuelerKrank.Name = "tcSumSchuelerKrank"; - this.tcSumSchuelerKrank.StylePriority.UseFont = false; - this.tcSumSchuelerKrank.StylePriority.UseTextAlignment = false; - this.tcSumSchuelerKrank.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.tcSumSchuelerKrank.Weight = 0.15042691376707346D; + this.tcSumSchuelerKrankMin.Font = new DevExpress.Drawing.DXFont("Calibri", 12F); + this.tcSumSchuelerKrankMin.Name = "tcSumSchuelerKrankMin"; + this.tcSumSchuelerKrankMin.StylePriority.UseFont = false; + this.tcSumSchuelerKrankMin.StylePriority.UseTextAlignment = false; + this.tcSumSchuelerKrankMin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.tcSumSchuelerKrankMin.Weight = 0.15042691376707346D; // - // lblGesamtzeit + // lblGesamtzeitMin // - this.lblGesamtzeit.Name = "lblGesamtzeit"; - this.lblGesamtzeit.StylePriority.UseTextAlignment = false; - this.lblGesamtzeit.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; - this.lblGesamtzeit.Weight = 0.19556364238797414D; + this.lblGesamtzeitMin.Name = "lblGesamtzeitMin"; + this.lblGesamtzeitMin.StylePriority.UseTextAlignment = false; + this.lblGesamtzeitMin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.lblGesamtzeitMin.Weight = 0.19556364238797414D; // // xrLabel1 // - this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(274.3658F, 39.61652F); + this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(274.3658F, 65.65819F); this.xrLabel1.Name = "xrLabel1"; this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel1.SizeF = new System.Drawing.SizeF(111.9999F, 20F); @@ -813,7 +823,7 @@ namespace LebenshilfeStadeMID // this.xrLabel8.Borders = DevExpress.XtraPrinting.BorderSide.Top; this.xrLabel8.Font = new DevExpress.Drawing.DXFont("Calibri", 10F); - this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(386.3657F, 59.6165F); + this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(386.3657F, 85.65817F); this.xrLabel8.Name = "xrLabel8"; this.xrLabel8.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel8.SizeF = new System.Drawing.SizeF(348.6342F, 19.99999F); @@ -825,7 +835,7 @@ namespace LebenshilfeStadeMID // // xrLabel10 // - this.xrLabel10.LocationFloat = new DevExpress.Utils.PointFloat(0F, 93.97033F); + this.xrLabel10.LocationFloat = new DevExpress.Utils.PointFloat(0F, 120.012F); this.xrLabel10.Name = "xrLabel10"; this.xrLabel10.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel10.SizeF = new System.Drawing.SizeF(734.9999F, 20F); @@ -848,6 +858,98 @@ namespace LebenshilfeStadeMID this.Hours.Expression = "[Minutes] / 60"; this.Hours.Name = "Hours"; // + // xrTable2 + // + this.xrTable2.Font = new DevExpress.Drawing.DXFont("Verdana", 10F, DevExpress.Drawing.DXFontStyle.Bold, DevExpress.Drawing.DXGraphicsUnit.Point, new DevExpress.Drawing.DXFontAdditionalProperty[] { + new DevExpress.Drawing.DXFontAdditionalProperty("GdiCharSet", ((byte)(0)))}); + this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 20F); + this.xrTable2.Name = "xrTable2"; + this.xrTable2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow3}); + this.xrTable2.SizeF = new System.Drawing.SizeF(758F, 20F); + this.xrTable2.StylePriority.UseBorders = false; + this.xrTable2.StylePriority.UseFont = false; + this.xrTable2.StylePriority.UsePadding = false; + this.xrTable2.StylePriority.UseTextAlignment = false; + this.xrTable2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + // + // xrTableRow3 + // + this.xrTableRow3.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell18, + this.tcSumVerfuegungszeitStd, + this.tcSumZusatzleistung1Std, + this.tcSumZusatzleistung2Std, + this.tcSumSchuelerKrankStd, + this.lblGesamtzeitStd}); + this.xrTableRow3.Name = "xrTableRow3"; + this.xrTableRow3.Weight = 0.53333333333333344D; + // + // xrTableCell18 + // + this.xrTableCell18.Font = new DevExpress.Drawing.DXFont("Calibri", 12F); + this.xrTableCell18.Name = "xrTableCell18"; + this.xrTableCell18.Padding = new DevExpress.XtraPrinting.PaddingInfo(10, 0, 0, 0, 100F); + this.xrTableCell18.StylePriority.UseFont = false; + this.xrTableCell18.StylePriority.UsePadding = false; + this.xrTableCell18.StylePriority.UseTextAlignment = false; + this.xrTableCell18.Text = "Summen in Stunden"; + this.xrTableCell18.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell18.Weight = 0.35582241246611113D; + // + // tcSumVerfuegungszeitStd + // + this.tcSumVerfuegungszeitStd.Font = new DevExpress.Drawing.DXFont("Calibri", 12F); + this.tcSumVerfuegungszeitStd.Name = "tcSumVerfuegungszeitStd"; + this.tcSumVerfuegungszeitStd.StylePriority.UseFont = false; + this.tcSumVerfuegungszeitStd.StylePriority.UseTextAlignment = false; + this.tcSumVerfuegungszeitStd.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.tcSumVerfuegungszeitStd.Weight = 0.21657708927019603D; + // + // tcSumZusatzleistung1Std + // + this.tcSumZusatzleistung1Std.BorderColor = System.Drawing.Color.Transparent; + this.tcSumZusatzleistung1Std.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.tcSumZusatzleistung1Std.Font = new DevExpress.Drawing.DXFont("Calibri", 12F); + this.tcSumZusatzleistung1Std.Multiline = true; + this.tcSumZusatzleistung1Std.Name = "tcSumZusatzleistung1Std"; + this.tcSumZusatzleistung1Std.StylePriority.UseBorderColor = false; + this.tcSumZusatzleistung1Std.StylePriority.UseBorders = false; + this.tcSumZusatzleistung1Std.StylePriority.UseFont = false; + this.tcSumZusatzleistung1Std.StylePriority.UseTextAlignment = false; + this.tcSumZusatzleistung1Std.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.tcSumZusatzleistung1Std.Weight = 0.27659229459618939D; + // + // tcSumZusatzleistung2Std + // + this.tcSumZusatzleistung2Std.BorderColor = System.Drawing.Color.Transparent; + this.tcSumZusatzleistung2Std.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.tcSumZusatzleistung2Std.Font = new DevExpress.Drawing.DXFont("Calibri", 12F); + this.tcSumZusatzleistung2Std.Multiline = true; + this.tcSumZusatzleistung2Std.Name = "tcSumZusatzleistung2Std"; + this.tcSumZusatzleistung2Std.StylePriority.UseBorderColor = false; + this.tcSumZusatzleistung2Std.StylePriority.UseBorders = false; + this.tcSumZusatzleistung2Std.StylePriority.UseFont = false; + this.tcSumZusatzleistung2Std.StylePriority.UseTextAlignment = false; + this.tcSumZusatzleistung2Std.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.tcSumZusatzleistung2Std.Weight = 0.27629456681042475D; + // + // tcSumSchuelerKrankStd + // + this.tcSumSchuelerKrankStd.Font = new DevExpress.Drawing.DXFont("Calibri", 12F); + this.tcSumSchuelerKrankStd.Name = "tcSumSchuelerKrankStd"; + this.tcSumSchuelerKrankStd.StylePriority.UseFont = false; + this.tcSumSchuelerKrankStd.StylePriority.UseTextAlignment = false; + this.tcSumSchuelerKrankStd.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.tcSumSchuelerKrankStd.Weight = 0.15042691376707346D; + // + // lblGesamtzeitStd + // + this.lblGesamtzeitStd.Name = "lblGesamtzeitStd"; + this.lblGesamtzeitStd.StylePriority.UseTextAlignment = false; + this.lblGesamtzeitStd.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.lblGesamtzeitStd.Weight = 0.19556364238797414D; + // // Quittierungsbeleg // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { @@ -878,6 +980,7 @@ namespace LebenshilfeStadeMID ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); } @@ -937,10 +1040,10 @@ namespace LebenshilfeStadeMID private DevExpress.XtraReports.UI.XRTable xrTable3; private DevExpress.XtraReports.UI.XRTableRow xrTableRow8; private DevExpress.XtraReports.UI.XRTableCell xrTableCell16; - private DevExpress.XtraReports.UI.XRTableCell tcSumVerfuegungszeit; - private DevExpress.XtraReports.UI.XRTableCell tcSumZusatzleistung1; - private DevExpress.XtraReports.UI.XRTableCell tcSumSchuelerKrank; - private DevExpress.XtraReports.UI.XRTableCell lblGesamtzeit; + private DevExpress.XtraReports.UI.XRTableCell tcSumVerfuegungszeitMin; + private DevExpress.XtraReports.UI.XRTableCell tcSumZusatzleistung1Min; + private DevExpress.XtraReports.UI.XRTableCell tcSumSchuelerKrankMin; + private DevExpress.XtraReports.UI.XRTableCell lblGesamtzeitMin; private DevExpress.XtraReports.UI.XRLabel xrLabel1; private DevExpress.XtraReports.UI.XRLabel xrLabel8; private DevExpress.XtraReports.UI.XRLabel xrLabel10; @@ -949,6 +1052,14 @@ namespace LebenshilfeStadeMID private DevExpress.XtraReports.UI.XRTableCell xrTableCell17; private DevExpress.XtraReports.UI.XRTableCell xrTableCell7; private DevExpress.XtraReports.UI.XRTableCell xrTableCell15; - private DevExpress.XtraReports.UI.XRTableCell tcSumZusatzleistung2; + private DevExpress.XtraReports.UI.XRTableCell tcSumZusatzleistung2Min; + private DevExpress.XtraReports.UI.XRTable xrTable2; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow3; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell18; + private DevExpress.XtraReports.UI.XRTableCell tcSumVerfuegungszeitStd; + private DevExpress.XtraReports.UI.XRTableCell tcSumZusatzleistung1Std; + private DevExpress.XtraReports.UI.XRTableCell tcSumZusatzleistung2Std; + private DevExpress.XtraReports.UI.XRTableCell tcSumSchuelerKrankStd; + private DevExpress.XtraReports.UI.XRTableCell lblGesamtzeitStd; } } diff --git a/ReportImp/LebenshilfeStadeMID/Quittierungsbeleg.cs b/ReportImp/LebenshilfeStadeMID/Quittierungsbeleg.cs index f5c1d7e36..0ca1ff352 100644 --- a/ReportImp/LebenshilfeStadeMID/Quittierungsbeleg.cs +++ b/ReportImp/LebenshilfeStadeMID/Quittierungsbeleg.cs @@ -95,8 +95,10 @@ namespace LebenshilfeStadeMID sd.Notice5 = "Klassenfahrt"; else { - sd.Notice5 = string.Format("{0:0.00}", Math.Round(sd.Minutes / 60, 2)); - gesamteZeit += Math.Round(sd.Minutes / 60, 2); + //sd.Notice5 = string.Format("{0:0.00}", Math.Round(sd.Minutes / 60, 2)); + //gesamteZeit += Math.Round(sd.Minutes / 60, 2); + sd.Notice5 = string.Format("{0}", sd.Minutes); + gesamteZeit += sd.Minutes; } if (sd.IsBillable || sd.ServiceDescription.ToLower().Contains("fehlkontakt") || sd.ServiceCategory.ToLower().Contains("fehlkontakt")) @@ -107,10 +109,15 @@ namespace LebenshilfeStadeMID pRO.Services = servicesBillable; } - tcSumVerfuegungszeit.Text = string.Format("{0:0.00}", summeVerfuegungszeit / 60); - tcSumZusatzleistung1.Text = string.Format("{0:0.00}", summeZusatzleistung1 / 60); - tcSumZusatzleistung2.Text = string.Format("{0:0.00}", summeZusatzleistung2 / 60); - lblGesamtzeit.Text = string.Format("{0:0.00}", gesamteZeit); + tcSumVerfuegungszeitMin.Text = string.Format("{0:0}", summeVerfuegungszeit); + tcSumZusatzleistung1Min.Text = string.Format("{0:0}", summeZusatzleistung1); + tcSumZusatzleistung2Min.Text = string.Format("{0:0}", summeZusatzleistung2); + lblGesamtzeitMin.Text = string.Format("{0:0}", gesamteZeit); + + tcSumVerfuegungszeitStd.Text = string.Format("{0:0.00}", summeVerfuegungszeit / 60); + tcSumZusatzleistung1Std.Text = string.Format("{0:0.00}", summeZusatzleistung1 / 60); + tcSumZusatzleistung2Std.Text = string.Format("{0:0.00}", summeZusatzleistung2 / 60); + lblGesamtzeitStd.Text = string.Format("{0:0.00}", gesamteZeit / 60); bindingSource1.DataSource = pRO; }