diff --git a/ReportImp/FeidPartnerReports/CollectiveBillingReportTab.Designer.cs b/ReportImp/FeidPartnerReports/CollectiveBillingReportTab.Designer.cs index a0b17af58..40a1ffa85 100644 --- a/ReportImp/FeidPartnerReports/CollectiveBillingReportTab.Designer.cs +++ b/ReportImp/FeidPartnerReports/CollectiveBillingReportTab.Designer.cs @@ -83,7 +83,6 @@ namespace FeidPartnerReports this.xrTableCell29 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell31 = new DevExpress.XtraReports.UI.XRTableCell(); - this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); this.GroupHeader2 = new DevExpress.XtraReports.UI.GroupHeaderBand(); this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand(); this.xrTable5 = new DevExpress.XtraReports.UI.XRTable(); @@ -97,11 +96,15 @@ namespace FeidPartnerReports this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox(); this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel9 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell(); + this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); ((System.ComponentModel.ISupportInitialize)(this.xrTable4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // Detail @@ -121,7 +124,7 @@ namespace FeidPartnerReports this.xrTable4.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { this.xrTableRow4, this.xrTableRow7}); - this.xrTable4.SizeF = new System.Drawing.SizeF(1014.831F, 36F); + this.xrTable4.SizeF = new System.Drawing.SizeF(1078F, 36F); this.xrTable4.StylePriority.UseBackColor = false; this.xrTable4.StylePriority.UseBorders = false; this.xrTable4.StylePriority.UseFont = false; @@ -136,6 +139,7 @@ namespace FeidPartnerReports this.xrTableCell19, this.xrTableCell20, this.xrTableCell21, + this.xrTableCell2, this.xrTableCell30, this.xrTableCell32, this.xrTableCell33, @@ -165,7 +169,7 @@ namespace FeidPartnerReports this.xrTableCell12.StylePriority.UseBorders = false; this.xrTableCell12.StylePriority.UseFont = false; this.xrTableCell12.Text = "Name, Vorname"; - this.xrTableCell12.Weight = 0.45423516621260712D; + this.xrTableCell12.Weight = 0.49276499842675459D; // // xrTableCell19 // @@ -176,7 +180,7 @@ namespace FeidPartnerReports this.xrTableCell19.StylePriority.UseBorders = false; this.xrTableCell19.StylePriority.UseFont = false; this.xrTableCell19.Text = "Aktenzeichen"; - this.xrTableCell19.Weight = 0.2759912937317307D; + this.xrTableCell19.Weight = 0.29404700475458D; // // xrTableCell20 // @@ -186,7 +190,7 @@ namespace FeidPartnerReports this.xrTableCell20.StylePriority.UseBorders = false; this.xrTableCell20.StylePriority.UseFont = false; this.xrTableCell20.Text = "Aktueller"; - this.xrTableCell20.Weight = 0.44044461882401287D; + this.xrTableCell20.Weight = 0.43665532365477167D; // // xrTableCell21 // @@ -196,7 +200,7 @@ namespace FeidPartnerReports this.xrTableCell21.StylePriority.UseBorders = false; this.xrTableCell21.StylePriority.UseFont = false; this.xrTableCell21.Text = "Leistung"; - this.xrTableCell21.Weight = 0.33118949750760451D; + this.xrTableCell21.Weight = 0.32239010134679691D; // // xrTableCell30 // @@ -258,6 +262,7 @@ namespace FeidPartnerReports this.xrTableCell38, this.xrTableCell42, this.xrTableCell45, + this.xrTableCell4, this.xrTableCell51, this.lblEPreis, this.lblAnzahl, @@ -284,7 +289,7 @@ namespace FeidPartnerReports this.xrTableCell37.Name = "xrTableCell37"; this.xrTableCell37.StylePriority.UseBorders = false; this.xrTableCell37.StylePriority.UseFont = false; - this.xrTableCell37.Weight = 0.4542354311971783D; + this.xrTableCell37.Weight = 0.49276542697916609D; // // xrTableCell38 // @@ -294,7 +299,7 @@ namespace FeidPartnerReports this.xrTableCell38.Name = "xrTableCell38"; this.xrTableCell38.StylePriority.UseBorders = false; this.xrTableCell38.StylePriority.UseFont = false; - this.xrTableCell38.Weight = 0.27599102472007131D; + this.xrTableCell38.Weight = 0.29404724609610466D; // // xrTableCell42 // @@ -304,7 +309,7 @@ namespace FeidPartnerReports this.xrTableCell42.StylePriority.UseBorders = false; this.xrTableCell42.StylePriority.UseFont = false; this.xrTableCell42.Text = "Bewilligungszeitraum"; - this.xrTableCell42.Weight = 0.44044461204164687D; + this.xrTableCell42.Weight = 0.43665464749375354D; // // xrTableCell45 // @@ -313,7 +318,7 @@ namespace FeidPartnerReports this.xrTableCell45.Name = "xrTableCell45"; this.xrTableCell45.StylePriority.UseBorders = false; this.xrTableCell45.StylePriority.UseFont = false; - this.xrTableCell45.Weight = 0.33118937124124648D; + this.xrTableCell45.Weight = 0.32239155689460891D; // // xrTableCell51 // @@ -400,7 +405,7 @@ namespace FeidPartnerReports this.xrTable1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); this.xrTable1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { this.xrTableRow2}); - this.xrTable1.SizeF = new System.Drawing.SizeF(1014.83F, 17F); + this.xrTable1.SizeF = new System.Drawing.SizeF(1078F, 17F); this.xrTable1.StylePriority.UseBorders = false; this.xrTable1.StylePriority.UseFont = false; this.xrTable1.StylePriority.UsePadding = false; @@ -426,7 +431,7 @@ namespace FeidPartnerReports this.xrTableCell11.StylePriority.UseTextAlignment = false; this.xrTableCell11.Text = "Rechnungssumme"; this.xrTableCell11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - this.xrTableCell11.Weight = 1.8007896864822381D; + this.xrTableCell11.Weight = 1.9303659764751189D; // // xrTableCell14 // @@ -441,7 +446,7 @@ namespace FeidPartnerReports this.xrTableCell14.StylePriority.UseTextAlignment = false; this.xrTableCell14.Text = "xrTableCell9"; this.xrTableCell14.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; - this.xrTableCell14.Weight = 0.21297249777057958D; + this.xrTableCell14.Weight = 0.20874658234501667D; // // ruleNoticeNull // @@ -496,12 +501,12 @@ namespace FeidPartnerReports // this.xrTable2.Font = new DevExpress.Drawing.DXFont("Calibri", 8.25F, 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(7.947286E-05F, 0F); + this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); this.xrTable2.Name = "xrTable2"; this.xrTable2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); this.xrTable2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { this.xrTableRow3}); - this.xrTable2.SizeF = new System.Drawing.SizeF(1014.83F, 17F); + this.xrTable2.SizeF = new System.Drawing.SizeF(1078F, 17F); this.xrTable2.StylePriority.UseBorders = false; this.xrTable2.StylePriority.UseFont = false; this.xrTable2.StylePriority.UsePadding = false; @@ -514,6 +519,7 @@ namespace FeidPartnerReports this.xrTableCell24, this.xrTableCell25, this.xrTableCell26, + this.xrTableCell5, this.xrTableCell27, this.xrTableCell28, this.xrTableCell29, @@ -539,7 +545,7 @@ namespace FeidPartnerReports this.xrTableCell22.Summary = xrSummary1; this.xrTableCell22.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; this.xrTableCell22.TextFormatString = "{0}"; - this.xrTableCell22.Weight = 0.10634058531450184D; + this.xrTableCell22.Weight = 0.1074583410926062D; // // xrTableCell23 // @@ -555,7 +561,7 @@ namespace FeidPartnerReports this.xrTableCell23.StylePriority.UseTextAlignment = false; this.xrTableCell23.Text = "[ServiceInvoicePeriods.Customer.LastName]"; this.xrTableCell23.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - this.xrTableCell23.Weight = 0.45657075705373318D; + this.xrTableCell23.Weight = 0.50050532480320276D; // // xrTableCell24 // @@ -567,7 +573,7 @@ namespace FeidPartnerReports this.xrTableCell24.StylePriority.UseTextAlignment = false; this.xrTableCell24.Text = "[ServiceInvoicePeriods.CostBearer2SupportConcept.CustomerReferenceNumber]"; this.xrTableCell24.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.xrTableCell24.Weight = 0.27741008367627817D; + this.xrTableCell24.Weight = 0.29866588697436142D; // // xrTableCell25 // @@ -580,7 +586,7 @@ namespace FeidPartnerReports this.xrTableCell25.Text = "[ServiceInvoicePeriods.CostBearer2SupportConcept.StartDate!dd.MM.yyyy] - [Service" + "InvoicePeriods.CostBearer2SupportConcept.EndDate!dd.MM.yyyy]"; this.xrTableCell25.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.xrTableCell25.Weight = 0.4427094977716719D; + this.xrTableCell25.Weight = 0.44351433866259071D; // // xrTableCell26 // @@ -593,7 +599,7 @@ namespace FeidPartnerReports this.xrTableCell26.StylePriority.UseFont = false; this.xrTableCell26.StylePriority.UseTextAlignment = false; this.xrTableCell26.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.xrTableCell26.Weight = 0.33289208820280392D; + this.xrTableCell26.Weight = 0.3274541928825217D; // // xrTableCell27 // @@ -610,7 +616,7 @@ namespace FeidPartnerReports this.xrTableCell27.StylePriority.UseTextAlignment = false; this.xrTableCell27.Text = "xrTableCell45"; this.xrTableCell27.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.xrTableCell27.Weight = 0.23579789695281189D; + this.xrTableCell27.Weight = 0.23827695045619599D; // // xrTableCell28 // @@ -625,7 +631,7 @@ namespace FeidPartnerReports this.xrTableCell28.StylePriority.UsePadding = false; this.xrTableCell28.StylePriority.UseTextAlignment = false; this.xrTableCell28.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.xrTableCell28.Weight = 0.22192789741327412D; + this.xrTableCell28.Weight = 0.22426102208157253D; // // xrTableCell29 // @@ -639,7 +645,7 @@ namespace FeidPartnerReports this.xrTableCell29.StylePriority.UseTextAlignment = false; this.xrTableCell29.Text = "xrTableCell17"; this.xrTableCell29.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; - this.xrTableCell29.Weight = 0.22192856135156558D; + this.xrTableCell29.Weight = 0.22426066046576354D; // // xrTableCell3 // @@ -652,7 +658,7 @@ namespace FeidPartnerReports this.xrTableCell3.StylePriority.UseFont = false; this.xrTableCell3.StylePriority.UseTextAlignment = false; this.xrTableCell3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; - this.xrTableCell3.Weight = 0.22192771476319542D; + this.xrTableCell3.Weight = 0.22426043575594362D; // // xrTableCell31 // @@ -666,11 +672,7 @@ namespace FeidPartnerReports this.xrTableCell31.StylePriority.UseFont = false; this.xrTableCell31.StylePriority.UseTextAlignment = false; this.xrTableCell31.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; - this.xrTableCell31.Weight = 0.29773565063758856D; - // - // bindingSource1 - // - this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServiceInvoiceRO); + this.xrTableCell31.Weight = 0.3008674746572616D; // // GroupHeader2 // @@ -694,7 +696,7 @@ namespace FeidPartnerReports this.xrTable5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); this.xrTable5.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { this.xrTableRow6}); - this.xrTable5.SizeF = new System.Drawing.SizeF(1014.831F, 17F); + this.xrTable5.SizeF = new System.Drawing.SizeF(1078F, 17F); this.xrTable5.StylePriority.UseBorders = false; this.xrTable5.StylePriority.UseFont = false; this.xrTable5.StylePriority.UsePadding = false; @@ -721,7 +723,7 @@ namespace FeidPartnerReports this.xrTableCell13.StylePriority.UsePadding = false; this.xrTableCell13.StylePriority.UseTextAlignment = false; this.xrTableCell13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - this.xrTableCell13.Weight = 0.076059516538963659D; + this.xrTableCell13.Weight = 0.074556285796255742D; // // xrTableCell17 // @@ -737,7 +739,7 @@ namespace FeidPartnerReports this.xrTableCell17.StylePriority.UseTextAlignment = false; this.xrTableCell17.Text = "Summe [Customer.LastName]"; this.xrTableCell17.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - this.xrTableCell17.Weight = 1.7247306998513456D; + this.xrTableCell17.Weight = 1.8558093367469213D; // // xrTableCell18 // @@ -754,7 +756,7 @@ namespace FeidPartnerReports xrSummary2.Running = DevExpress.XtraReports.UI.SummaryRunning.Group; this.xrTableCell18.Summary = xrSummary2; this.xrTableCell18.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; - this.xrTableCell18.Weight = 0.212973345569157D; + this.xrTableCell18.Weight = 0.20874634129183786D; // // fieldMonatskontingent // @@ -817,6 +819,48 @@ namespace FeidPartnerReports this.xrLabel9.StylePriority.UseFont = false; this.xrLabel9.Text = "[InvoiceBase.InvoiceNumber]\r\n\r\n"; // + // xrTableCell2 + // + this.xrTableCell2.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top))); + this.xrTableCell2.Font = new DevExpress.Drawing.DXFont("Calibri", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell2.Multiline = true; + this.xrTableCell2.Name = "xrTableCell2"; + this.xrTableCell2.StylePriority.UseBorders = false; + this.xrTableCell2.StylePriority.UseFont = false; + this.xrTableCell2.Text = "Monat"; + this.xrTableCell2.Weight = 0.19059462802218469D; + // + // xrTableCell4 + // + this.xrTableCell4.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell4.Font = new DevExpress.Drawing.DXFont("Calibri", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell4.Multiline = true; + this.xrTableCell4.Name = "xrTableCell4"; + this.xrTableCell4.StylePriority.UseBorders = false; + this.xrTableCell4.StylePriority.UseFont = false; + this.xrTableCell4.Weight = 0.19059402207551385D; + // + // xrTableCell5 + // + this.xrTableCell5.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell5.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.UnitDescription")}); + this.xrTableCell5.Font = new DevExpress.Drawing.DXFont("Calibri", 9F); + this.xrTableCell5.Multiline = true; + this.xrTableCell5.Name = "xrTableCell5"; + this.xrTableCell5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell5.StylePriority.UseBorderColor = false; + this.xrTableCell5.StylePriority.UseBorders = false; + this.xrTableCell5.StylePriority.UseFont = false; + this.xrTableCell5.StylePriority.UsePadding = false; + this.xrTableCell5.StylePriority.UseTextAlignment = false; + this.xrTableCell5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell5.Weight = 0.19358810322603051D; + // + // bindingSource1 + // + this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServiceInvoiceRO); + // // SammelrechnungTab // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { @@ -835,7 +879,7 @@ namespace FeidPartnerReports this.ruleRateFactorNull, this.ruleNoticeNull}); this.Landscape = true; - this.Margins = new DevExpress.Drawing.DXMargins(60F, 60F, 23F, 7.500458F); + this.Margins = new DevExpress.Drawing.DXMargins(60F, 31F, 23F, 7.500458F); this.PageHeight = 827; this.PageWidth = 1169; this.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.A4; @@ -845,8 +889,8 @@ namespace FeidPartnerReports ((System.ComponentModel.ISupportInitialize)(this.xrTable4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); } @@ -916,5 +960,8 @@ namespace FeidPartnerReports private DevExpress.XtraReports.UI.XRTableCell lblAnzahl; private DevExpress.XtraReports.UI.XRTableCell xrTableCell54; private DevExpress.XtraReports.UI.XRTableCell xrTableCell55; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell4; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell5; } } diff --git a/ReportImp/FeidPartnerReports/Invoicing/CollectiveInvoiceCreation.cs b/ReportImp/FeidPartnerReports/Invoicing/CollectiveInvoiceCreation.cs index 9fae772c5..2c1aa7559 100644 --- a/ReportImp/FeidPartnerReports/Invoicing/CollectiveInvoiceCreation.cs +++ b/ReportImp/FeidPartnerReports/Invoicing/CollectiveInvoiceCreation.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Data; using System.Linq; using BeWo.Data.Access; using BeWo.Data.Entities; @@ -63,72 +64,129 @@ namespace FeidPartnerReports.Invoicing DateTime start = accountingPeriodStart.Value; DateTime end = accountingPeriodEnd.Value; - bool teilmonat = false; - if (supportConceptApprovalPeriod.StartDate != null && supportConceptApprovalPeriod.StartDate > start) - { - start = supportConceptApprovalPeriod.StartDate.Value; - teilmonat = true; - } - if (supportConceptApprovalPeriod.EndDate != null && supportConceptApprovalPeriod.EndDate < end) - { - end = supportConceptApprovalPeriod.EndDate.Value; - teilmonat = true; - } if (supportConceptApprovalPeriod.ServiceCategory != null && data != null && data.Count > 0) { - var ii = new InvoiceItem + decimal preis = (decimal)Math.Round((double)data[0].AmountTotal, 2, MidpointRounding.AwayFromZero); + decimal days = (decimal)(end - start).TotalDays + 1; + + // im Normalfall monatliche Abrechnung + if (start.Year == end.Year && start.Month == end.Month) { - ItemPeriodStart = serviceInvoicePeriod.Start, - ItemPeriodEnd = serviceInvoicePeriod.End, - SupportConceptApprovalPeriodOid = supportConceptApprovalPeriod.SupportConceptApprovalPeriodOid, - AccountingInterval = AccountingIntervalType.Daily, - UnitCount = (decimal)(end - start).TotalDays + 1, - Notice = "keine Minuten" - }; - if (supportConceptApprovalPeriod.ServiceCategory.Name.Contains("Bedarfsgruppe")) - { - ii.AccountingInterval = AccountingIntervalType.Monthly; - ii.ItemDescription = supportConceptApprovalPeriod.ServiceCategory.Name; - ii.UnitCount = 1; - ii.AmountPerUnit = (decimal)Math.Round((double)data[0].AmountTotal, 2, MidpointRounding.AwayFromZero); - if (teilmonat) - { - var days = (double)(end - start).TotalDays + 1; - ii.AmountPerUnit = (decimal)Math.Round((double)data[0].AmountTotal / 30.42 * days, 2, MidpointRounding.AwayFromZero); - } - ii.AmountTotal = ii.AmountPerUnit; - ii.GrossAmountTotal = ii.AmountTotal; - ii.Notice = ""; - serviceInvoicePeriod.InvoiceItemList.Add(ii); - return; + CreateInvoiceItemsLwv(serviceInvoicePeriod, supportConceptApprovalPeriod, start, end, preis); } - if (supportConceptApprovalPeriod.ApprovedBEPerInterval.HasValue) + // ...aber es können auch Zeiträume für einzelne Klienten nachträglich abgerechnet werden, + // dann monatliche Rechnungsposition + else { - ii.Notice = String.Format("{0:n0}", supportConceptApprovalPeriod.ApprovedBEPerInterval.Value); - if (supportConceptApprovalPeriod.ServiceCategory.Name.Contains("Fahrzeit")) + var monthlyDict = data + .GroupBy(e => new DateTime(e.BillingPeriodStart.Value.Year, e.BillingPeriodStart.Value.Month, 1)) + .ToDictionary( + g => g.Key, + g => g.OrderBy(e => e.BillingPeriodStart).ToList() // Liste der Einträge in diesem Monat + ); + + foreach (var kvp in monthlyDict.OrderBy(k => k.Key)) { - ii.AmountPerUnit = supportConceptApprovalPeriod.ApprovedBEPerInterval * AMOUNT_PER_KMQA; - ii.ItemDescription = "Fahrzeiten QA"; + var month = kvp.Key; // z.?B. 2025-01-01 + var entries = kvp.Value; + preis = (decimal)Math.Round((double)entries[0].AmountTotal, 2, MidpointRounding.AwayFromZero); + //days = (decimal)(end - start).TotalDays + 1; + days = entries.Count; + var lastday = entries.LastOrDefault(); + CreateInvoiceItemsLwv(serviceInvoicePeriod, supportConceptApprovalPeriod, entries[0].BillingPeriodStart.Value, lastday.BillingPeriodStart.Value, preis); + } + } + } + } + + private void CreateInvoiceItemsLwv(ServiceInvoicePeriod serviceInvoicePeriod, SupportConceptApprovalPeriodDC supportConceptApprovalPeriod, DateTime start, DateTime end, decimal preis) + { + var ii = new InvoiceItem + { + ItemPeriodStart = serviceInvoicePeriod.Start, + ItemPeriodEnd = serviceInvoicePeriod.End, + SupportConceptApprovalPeriodOid = supportConceptApprovalPeriod.SupportConceptApprovalPeriodOid, + AccountingInterval = AccountingIntervalType.Daily, + UnitCount = (decimal)(end - start).TotalDays + 1, + UnitDescription = String.Format("{0:MM.yyyy}", start), + Notice = "keine Minuten" + }; + if (supportConceptApprovalPeriod.ServiceCategory.Name.Contains("Bedarfsgruppe")) + { + bool teilmonat = false; + if (supportConceptApprovalPeriod.StartDate != null && supportConceptApprovalPeriod.StartDate > start) + { + start = supportConceptApprovalPeriod.StartDate.Value; + teilmonat = true; + } + if (supportConceptApprovalPeriod.EndDate != null && supportConceptApprovalPeriod.EndDate < end) + { + end = supportConceptApprovalPeriod.EndDate.Value; + teilmonat = true; + } + + ii.AccountingInterval = AccountingIntervalType.Monthly; + ii.ItemDescription = supportConceptApprovalPeriod.ServiceCategory.Name; + ii.UnitCount = 1; + ii.AmountPerUnit = preis; + if (teilmonat) + { + var days = (double)(end - start).TotalDays + 1; + ii.AmountPerUnit = (decimal)Math.Round((double)preis / 30.42 * days, 2, MidpointRounding.AwayFromZero); + } + ii.AmountTotal = ii.AmountPerUnit; + ii.GrossAmountTotal = ii.AmountTotal; + ii.Notice = ""; + serviceInvoicePeriod.InvoiceItemList.Add(ii); + return; + } + if (supportConceptApprovalPeriod.ApprovedBEPerInterval.HasValue) + { + ii.Notice = String.Format("{0:n0}", supportConceptApprovalPeriod.ApprovedBEPerInterval.Value); + if (supportConceptApprovalPeriod.ServiceCategory.Name.Contains("Fahrzeit")) + { + ii.AmountPerUnit = supportConceptApprovalPeriod.ApprovedBEPerInterval * AMOUNT_PER_KMQA; + ii.ItemDescription = "Fahrzeiten QA"; + } + else + { + if (supportConceptApprovalPeriod.ApprovedFixedAmount != null) + { + ii.AmountPerUnit = supportConceptApprovalPeriod.ApprovedFixedAmount; } else { - if (supportConceptApprovalPeriod.ApprovedFixedAmount != null) - { - ii.AmountPerUnit = supportConceptApprovalPeriod.ApprovedFixedAmount; - } - else - { - ii.AmountPerUnit = supportConceptApprovalPeriod.ApprovedBEPerInterval * (decimal)Math.Round((double)data[0].AmountTotal / 60, 4, MidpointRounding.AwayFromZero); - } - ii.ItemDescription = "Qualifizierte Assistenz"; + ii.AmountPerUnit = supportConceptApprovalPeriod.ApprovedBEPerInterval * (decimal)Math.Round((double)preis / 60, 4, MidpointRounding.AwayFromZero); } - - ii.AmountPerUnit = Math.Round((decimal)ii.AmountPerUnit, 2, MidpointRounding.AwayFromZero); - ii.AmountTotal = ii.UnitCount * ii.AmountPerUnit; - ii.GrossAmountTotal = ii.AmountTotal; + ii.ItemDescription = "Qualifizierte Assistenz"; + } + + ii.AmountPerUnit = Math.Round((decimal)ii.AmountPerUnit, 2, MidpointRounding.AwayFromZero); + ii.AmountTotal = ii.UnitCount * ii.AmountPerUnit; + ii.GrossAmountTotal = ii.AmountTotal; + } + serviceInvoicePeriod.InvoiceItemList.Add(ii); + + if (supportConceptApprovalPeriod.MonthlyPayment.HasValue && supportConceptApprovalPeriod.MonthlyPayment > 0) + { + var equity = supportConceptApprovalPeriod.MonthlyPayment.Value; + if (equity > 0) + { + var iiE = new InvoiceItem(); + iiE.UnitCount = 1; + iiE.AmountPerUnit = equity; + iiE.AmountTotal = -equity; + iiE.GrossAmountTotal = -equity; + iiE.ItemPeriodStart = ii.ItemPeriodStart; + iiE.ItemPeriodEnd = ii.ItemPeriodEnd; + iiE.Notice = ""; + iiE.SupportConceptApprovalPeriodOid = ii.SupportConceptApprovalPeriodOid; + iiE.ItemDescription = "Eigenanteil"; + iiE.UnitDescription = String.Format("{0:MM.yyyy}", start); + + serviceInvoicePeriod.InvoiceItemList.Add(iiE); } - serviceInvoicePeriod.InvoiceItemList.Add(ii); } } diff --git a/ReportImp/LebenshilfeBadKreuznachFUD/Reporting/Reports/ServiceInvoiceReport.Designer.cs b/ReportImp/LebenshilfeBadKreuznachFUD/Reporting/Reports/ServiceInvoiceReport.Designer.cs index bd72302e6..ff8998884 100644 --- a/ReportImp/LebenshilfeBadKreuznachFUD/Reporting/Reports/ServiceInvoiceReport.Designer.cs +++ b/ReportImp/LebenshilfeBadKreuznachFUD/Reporting/Reports/ServiceInvoiceReport.Designer.cs @@ -74,7 +74,7 @@ namespace LebenshilfeBadKreuznachFUD this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow(); this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); - this.rowIKZeichen = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableRow11 = new DevExpress.XtraReports.UI.XRTableRow(); this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell(); this.ReportFooter = new DevExpress.XtraReports.UI.ReportFooterBand(); this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); @@ -101,11 +101,7 @@ namespace LebenshilfeBadKreuznachFUD this.xrTableCell45 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell47 = new DevExpress.XtraReports.UI.XRTableCell(); this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); - this.xrTableRow10 = new DevExpress.XtraReports.UI.XRTableRow(); - this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell(); - this.xrTableCell7 = new DevExpress.XtraReports.UI.XRTableCell(); - this.xrTableRow12 = new DevExpress.XtraReports.UI.XRTableRow(); - this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell(); + this.lblIk = new DevExpress.XtraReports.UI.XRLabel(); ((System.ComponentModel.ISupportInitialize)(this.xrTable4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit(); @@ -149,6 +145,7 @@ namespace LebenshilfeBadKreuznachFUD // this.Page1.BorderWidth = 2F; this.Page1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.lblIk, this.lblVers, this.xrLabel11, this.xrTable4, @@ -433,10 +430,8 @@ namespace LebenshilfeBadKreuznachFUD this.xrTableRow2, this.xrTableRow5, this.xrTableRow1, - this.xrTableRow10, - this.rowIKZeichen, - this.xrTableRow12}); - this.xrTable3.SizeF = new System.Drawing.SizeF(261.7049F, 153F); + this.xrTableRow11}); + this.xrTable3.SizeF = new System.Drawing.SizeF(261.7049F, 134F); this.xrTable3.StylePriority.UseBorderColor = false; this.xrTable3.StylePriority.UseBorders = false; this.xrTable3.StylePriority.UseFont = false; @@ -773,12 +768,12 @@ namespace LebenshilfeBadKreuznachFUD this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; this.xrTableCell2.Weight = 0.39287399134179252D; // - // rowIKZeichen + // xrTableRow11 // - this.rowIKZeichen.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableRow11.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { this.xrTableCell3}); - this.rowIKZeichen.Name = "rowIKZeichen"; - this.rowIKZeichen.Weight = 0.68D; + this.xrTableRow11.Name = "xrTableRow11"; + this.xrTableRow11.Weight = 0.68D; // // xrTableCell3 // @@ -787,7 +782,6 @@ namespace LebenshilfeBadKreuznachFUD this.xrTableCell3.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) | DevExpress.XtraPrinting.BorderSide.Bottom))); this.xrTableCell3.BorderWidth = 2F; - this.xrTableCell3.CanShrink = true; this.xrTableCell3.Font = new DevExpress.Drawing.DXFont("Arial", 8F); this.xrTableCell3.Name = "xrTableCell3"; this.xrTableCell3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); @@ -798,9 +792,8 @@ namespace LebenshilfeBadKreuznachFUD this.xrTableCell3.StylePriority.UseFont = false; this.xrTableCell3.StylePriority.UsePadding = false; this.xrTableCell3.StylePriority.UseTextAlignment = false; - this.xrTableCell3.Text = "IK-Zeichen: [BusinessPartnerId]"; + this.xrTableCell3.Text = "Bitte bei allen Rückfragen angeben!"; this.xrTableCell3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.xrTableCell3.Visible = false; this.xrTableCell3.Weight = 0.78575907572128534D; // // ReportFooter @@ -1145,84 +1138,22 @@ namespace LebenshilfeBadKreuznachFUD // this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServiceInvoiceRO); // - // xrTableRow10 + // lblIk // - this.xrTableRow10.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { - this.xrTableCell5, - this.xrTableCell7}); - this.xrTableRow10.Name = "xrTableRow10"; - this.xrTableRow10.Weight = 0.080000000000000071D; - // - // xrTableCell5 - // - this.xrTableCell5.BackColor = System.Drawing.Color.Transparent; - this.xrTableCell5.BorderColor = System.Drawing.Color.Silver; - this.xrTableCell5.Borders = DevExpress.XtraPrinting.BorderSide.Left; - this.xrTableCell5.BorderWidth = 2F; - this.xrTableCell5.Font = new DevExpress.Drawing.DXFont("Arial", 8F); - this.xrTableCell5.Multiline = true; - this.xrTableCell5.Name = "xrTableCell5"; - this.xrTableCell5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); - this.xrTableCell5.StylePriority.UseBackColor = false; - this.xrTableCell5.StylePriority.UseBorderColor = false; - this.xrTableCell5.StylePriority.UseBorders = false; - this.xrTableCell5.StylePriority.UseBorderWidth = false; - this.xrTableCell5.StylePriority.UseFont = false; - this.xrTableCell5.StylePriority.UsePadding = false; - this.xrTableCell5.StylePriority.UseTextAlignment = false; - this.xrTableCell5.Text = "xrTableCell5"; - this.xrTableCell5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - this.xrTableCell5.Weight = 0.39288508437949277D; - // - // xrTableCell7 - // - this.xrTableCell7.BackColor = System.Drawing.Color.Transparent; - this.xrTableCell7.BorderColor = System.Drawing.Color.Silver; - this.xrTableCell7.Borders = DevExpress.XtraPrinting.BorderSide.Right; - this.xrTableCell7.BorderWidth = 2F; - this.xrTableCell7.Font = new DevExpress.Drawing.DXFont("Arial", 8F); - this.xrTableCell7.Multiline = true; - this.xrTableCell7.Name = "xrTableCell7"; - this.xrTableCell7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); - this.xrTableCell7.StylePriority.UseBackColor = false; - this.xrTableCell7.StylePriority.UseBorderColor = false; - this.xrTableCell7.StylePriority.UseBorders = false; - this.xrTableCell7.StylePriority.UseBorderWidth = false; - this.xrTableCell7.StylePriority.UseFont = false; - this.xrTableCell7.StylePriority.UsePadding = false; - this.xrTableCell7.StylePriority.UseTextAlignment = false; - this.xrTableCell7.Text = "xrTableCell7"; - this.xrTableCell7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - this.xrTableCell7.Weight = 0.39287399134179252D; - // - // xrTableRow12 - // - this.xrTableRow12.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { - this.xrTableCell8}); - this.xrTableRow12.Name = "xrTableRow12"; - this.xrTableRow12.Weight = 0.68D; - // - // xrTableCell8 - // - this.xrTableCell8.BackColor = System.Drawing.Color.Transparent; - this.xrTableCell8.BorderColor = System.Drawing.Color.Silver; - this.xrTableCell8.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) - | DevExpress.XtraPrinting.BorderSide.Bottom))); - this.xrTableCell8.BorderWidth = 2F; - this.xrTableCell8.Font = new DevExpress.Drawing.DXFont("Arial", 8F); - this.xrTableCell8.Multiline = true; - this.xrTableCell8.Name = "xrTableCell8"; - this.xrTableCell8.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); - this.xrTableCell8.StylePriority.UseBackColor = false; - this.xrTableCell8.StylePriority.UseBorderColor = false; - this.xrTableCell8.StylePriority.UseBorders = false; - this.xrTableCell8.StylePriority.UseBorderWidth = false; - this.xrTableCell8.StylePriority.UseFont = false; - this.xrTableCell8.StylePriority.UsePadding = false; - this.xrTableCell8.StylePriority.UseTextAlignment = false; - this.xrTableCell8.Text = "Bitte bei allen Rückfragen angeben!"; - this.xrTableCell8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.xrTableCell8.Weight = 0.78575907572128534D; + this.lblIk.BackColor = System.Drawing.Color.Transparent; + this.lblIk.CanShrink = true; + this.lblIk.Font = new DevExpress.Drawing.DXFont("Arial", 8F); + this.lblIk.LocationFloat = new DevExpress.Utils.PointFloat(421.2952F, 170.9583F); + this.lblIk.Name = "lblIk"; + this.lblIk.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblIk.SizeF = new System.Drawing.SizeF(261.7048F, 17.00002F); + this.lblIk.StylePriority.UseBackColor = false; + this.lblIk.StylePriority.UseFont = false; + this.lblIk.StylePriority.UseTextAlignment = false; + this.lblIk.Text = "IK-Zeichen: 500713239"; + this.lblIk.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + this.lblIk.Visible = false; + this.lblIk.WordWrap = false; // // Rechnung // @@ -1302,7 +1233,7 @@ namespace LebenshilfeBadKreuznachFUD private DevExpress.XtraReports.UI.XRTableRow xrTableRow1; private DevExpress.XtraReports.UI.XRTableCell xrTableCell1; private DevExpress.XtraReports.UI.XRTableCell xrTableCell2; - private DevExpress.XtraReports.UI.XRTableRow rowIKZeichen; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow11; private DevExpress.XtraReports.UI.XRTableCell xrTableCell3; private DevExpress.XtraReports.UI.XRTable xrTable2; private DevExpress.XtraReports.UI.XRTableRow xrTableRow3; @@ -1327,10 +1258,6 @@ namespace LebenshilfeBadKreuznachFUD private DevExpress.XtraReports.UI.XRTableRow xrTableRow5; private DevExpress.XtraReports.UI.XRTableCell xrTableCell6; private DevExpress.XtraReports.UI.XRTableCell lblMail; - private DevExpress.XtraReports.UI.XRTableRow xrTableRow10; - private DevExpress.XtraReports.UI.XRTableCell xrTableCell5; - private DevExpress.XtraReports.UI.XRTableCell xrTableCell7; - private DevExpress.XtraReports.UI.XRTableRow xrTableRow12; - private DevExpress.XtraReports.UI.XRTableCell xrTableCell8; + private DevExpress.XtraReports.UI.XRLabel lblIk; } } diff --git a/ReportImp/LebenshilfeBadKreuznachFUD/Reporting/Reports/ServiceInvoiceReport.cs b/ReportImp/LebenshilfeBadKreuznachFUD/Reporting/Reports/ServiceInvoiceReport.cs index 00fcd1c54..810c08c7e 100644 --- a/ReportImp/LebenshilfeBadKreuznachFUD/Reporting/Reports/ServiceInvoiceReport.cs +++ b/ReportImp/LebenshilfeBadKreuznachFUD/Reporting/Reports/ServiceInvoiceReport.cs @@ -42,7 +42,8 @@ namespace LebenshilfeBadKreuznachFUD if (entlastung) { lblZahlziel.Visible = true; - lblZahlziel.Text = String.Format("(bis {0:dd.MM.yyyy})", pRO.InvoiceDateTime.Value.AddDays(30)); + lblIk.Visible = true; + lblZahlziel.Text = String.Format("(bis {0:dd.MM.yyyy})", pRO.InvoiceDateTime.Value.AddDays(30)); lblZahlzeit.Text = "30 Tage"; } else @@ -55,7 +56,6 @@ namespace LebenshilfeBadKreuznachFUD lblBearbeiter.Text = "Kirmse"; lblTel.Text = "0671/483269-118"; lblMail.Text = "andrea.kirmse@\nlebenshilfe-kreuznach.de"; - rowIKZeichen.Visible = true; } SetzeAdresse(pRO); diff --git a/ReportImp/LebenszentrumKönigsborn/Fachleistungsstundennachweis.designer.cs b/ReportImp/LebenszentrumKönigsborn/Fachleistungsstundennachweis.designer.cs index 6b899977e..01f657b19 100644 --- a/ReportImp/LebenszentrumKönigsborn/Fachleistungsstundennachweis.designer.cs +++ b/ReportImp/LebenszentrumKönigsborn/Fachleistungsstundennachweis.designer.cs @@ -42,6 +42,7 @@ namespace LebenszentrumKoenigsborn this.xrTableCell17 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell16 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell50 = new DevExpress.XtraReports.UI.XRTableCell(); + this.picSignature = new DevExpress.XtraReports.UI.XRPictureBox(); this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand(); this.xrTableServiceRecords1 = new DevExpress.XtraReports.UI.XRTable(); this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow(); @@ -55,6 +56,7 @@ namespace LebenszentrumKoenigsborn this.xrTableCell7 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell9 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell12 = new DevExpress.XtraReports.UI.XRTableCell(); + this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); this.formattingRuleStartDate = new DevExpress.XtraReports.UI.FormattingRule(); this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand(); this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel(); @@ -95,7 +97,6 @@ namespace LebenszentrumKoenigsborn this.lblUnterschriftMitarbeiter = new DevExpress.XtraReports.UI.XRLabel(); this.fieldKontaktArt = new DevExpress.XtraReports.UI.CalculatedField(); this.Hours = new DevExpress.XtraReports.UI.CalculatedField(); - this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTableServiceRecords1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); @@ -221,6 +222,8 @@ namespace LebenszentrumKoenigsborn // // xrTableCell50 // + this.xrTableCell50.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.picSignature}); this.xrTableCell50.Name = "xrTableCell50"; this.xrTableCell50.StylePriority.UseBorders = false; this.xrTableCell50.StylePriority.UseFont = false; @@ -229,6 +232,18 @@ namespace LebenszentrumKoenigsborn this.xrTableCell50.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; this.xrTableCell50.Weight = 0.16766258323313957D; // + // picSignature + // + this.picSignature.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.picSignature.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Tag", null, "Services.Signature")}); + this.picSignature.LocationFloat = new DevExpress.Utils.PointFloat(6.371155F, 0F); + this.picSignature.Name = "picSignature"; + this.picSignature.SizeF = new System.Drawing.SizeF(145.5569F, 21.99999F); + this.picSignature.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage; + this.picSignature.StylePriority.UseBorders = false; + this.picSignature.BeforePrint += new DevExpress.XtraReports.UI.BeforePrintEventHandler(this.picSignature_BeforePrint); + // // GroupHeader1 // this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { @@ -435,10 +450,14 @@ namespace LebenszentrumKoenigsborn this.xrTableCell12.StylePriority.UseFont = false; this.xrTableCell12.StylePriority.UsePadding = false; this.xrTableCell12.StylePriority.UseTextAlignment = false; - this.xrTableCell12.Text = "Mitarbeiter/-in"; + this.xrTableCell12.Text = "Therapeut/-in"; this.xrTableCell12.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; this.xrTableCell12.Weight = 0.12438260807783755D; // + // bindingSource1 + // + this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO); + // // formattingRuleStartDate // this.formattingRuleStartDate.Condition = "[StartDate2] < [StartDate]"; @@ -1039,10 +1058,6 @@ namespace LebenszentrumKoenigsborn this.Hours.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal; this.Hours.Name = "Hours"; // - // bindingSource1 - // - this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO); - // // Fachleistungsstundennachweis // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { @@ -1103,6 +1118,7 @@ namespace LebenszentrumKoenigsborn private DevExpress.XtraReports.UI.XRTableCell xrTableCell50; private DevExpress.XtraReports.UI.CalculatedField fieldKontaktArt; private DevExpress.XtraReports.UI.XRLabel lblUnterschriftMitarbeiter; + private DevExpress.XtraReports.UI.XRPictureBox picSignature; private DevExpress.XtraReports.UI.XRLabel xrLabel24; private DevExpress.XtraReports.UI.XRPictureBox xrPictureBox3; private DevExpress.XtraReports.UI.XRLabel xrLabel8;