diff --git a/Report/DefaultReportCreator.cs b/Report/DefaultReportCreator.cs index 1c189c5a8..fb21bde87 100644 --- a/Report/DefaultReportCreator.cs +++ b/Report/DefaultReportCreator.cs @@ -333,12 +333,14 @@ namespace BeWo.Report if (statistik.VgaType == VgaTypeEnum.Vga) { report = new VgaStatistikReport(); + var vsc = (VgaStatisticCreator)statistik; + ((VgaStatistikReport)report).SetReportDataSource(vsc.VgaStatisticEfs, vsc.VgaStatisticAuflage153a, vsc.VgaStatisticAuflage153aSteuerstraf, vsc.VgaStatisticBewOhne, vsc.VgaStatisticBewMit, vsc.VgaStatisticGnadenverfahren); } else if (statistik.VgaType == VgaTypeEnum.Asa) { report = new AsaStatistikReport(); - + ((AsaStatistikReport)report).SetReportDataSource(statistik as AsaStatistic); } else if (statistik.VgaType == VgaTypeEnum.Tgv) { diff --git a/Report/DefaultReports/Straffaelligenhilfe/VgaStatistikReport.Designer.cs b/Report/DefaultReports/Straffaelligenhilfe/VgaStatistikReport.Designer.cs index 07fc74cb2..35002a27f 100644 --- a/Report/DefaultReports/Straffaelligenhilfe/VgaStatistikReport.Designer.cs +++ b/Report/DefaultReports/Straffaelligenhilfe/VgaStatistikReport.Designer.cs @@ -31,6 +31,11 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe this.components = new System.ComponentModel.Container(); DevExpress.XtraReports.UI.XRWatermark xrWatermark1 = new DevExpress.XtraReports.UI.XRWatermark(); this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand(); + this.lblVermLabel = new DevExpress.XtraReports.UI.XRLabel(); + this.lblStaLabel = new DevExpress.XtraReports.UI.XRLabel(); + this.lblBerichtszeitraum = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); + this.lblBerLabel = new DevExpress.XtraReports.UI.XRLabel(); this.lblTitel = new DevExpress.XtraReports.UI.XRLabel(); this.PageHeader = new DevExpress.XtraReports.UI.PageHeaderBand(); this.tblHeader = new DevExpress.XtraReports.UI.XRTable(); @@ -76,11 +81,6 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe this.paramStaatsanwaltschaft = new DevExpress.XtraReports.Parameters.Parameter(); this.paramBerichtszeitraum = new DevExpress.XtraReports.Parameters.Parameter(); this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); - this.lblVermLabel = new DevExpress.XtraReports.UI.XRLabel(); - this.lblStaLabel = new DevExpress.XtraReports.UI.XRLabel(); - this.lblBerichtszeitraum = new DevExpress.XtraReports.UI.XRLabel(); - this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); - this.lblBerLabel = new DevExpress.XtraReports.UI.XRLabel(); ((System.ComponentModel.ISupportInitialize)(this.tblHeader)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tblDetail)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); @@ -98,6 +98,50 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe this.ReportHeader.HeightF = 104.6667F; this.ReportHeader.Name = "ReportHeader"; // + // lblVermLabel + // + this.lblVermLabel.LocationFloat = new DevExpress.Utils.PointFloat(50.00325F, 24.66665F); + this.lblVermLabel.Name = "lblVermLabel"; + this.lblVermLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblVermLabel.SizeF = new System.Drawing.SizeF(272.33F, 20F); + this.lblVermLabel.StylePriority.UseFont = false; + this.lblVermLabel.Text = "Vermittlungsstelle (Ort):"; + // + // lblStaLabel + // + this.lblStaLabel.LocationFloat = new DevExpress.Utils.PointFloat(50F, 44.66665F); + this.lblStaLabel.Name = "lblStaLabel"; + this.lblStaLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblStaLabel.SizeF = new System.Drawing.SizeF(272.33F, 20F); + this.lblStaLabel.StylePriority.UseFont = false; + this.lblStaLabel.Text = "Staatsanwaltschaft / Landgerichtsbezirk:"; + // + // lblBerichtszeitraum + // + this.lblBerichtszeitraum.LocationFloat = new DevExpress.Utils.PointFloat(322.3332F, 84.66665F); + this.lblBerichtszeitraum.Name = "lblBerichtszeitraum"; + this.lblBerichtszeitraum.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblBerichtszeitraum.SizeF = new System.Drawing.SizeF(272.3333F, 20.00002F); + this.lblBerichtszeitraum.StylePriority.UseFont = false; + // + // xrLabel1 + // + this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(50.00325F, 84.66665F); + this.xrLabel1.Name = "xrLabel1"; + this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel1.SizeF = new System.Drawing.SizeF(272.33F, 20F); + this.xrLabel1.StylePriority.UseFont = false; + this.xrLabel1.Text = "Berichtszeitraum:"; + // + // lblBerLabel + // + this.lblBerLabel.LocationFloat = new DevExpress.Utils.PointFloat(49.99675F, 64.66665F); + this.lblBerLabel.Name = "lblBerLabel"; + this.lblBerLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblBerLabel.SizeF = new System.Drawing.SizeF(272.33F, 20F); + this.lblBerLabel.StylePriority.UseFont = false; + this.lblBerLabel.Text = "darunter Amtsgerichtsbezirk/e:"; + // // lblTitel // this.lblTitel.Font = new DevExpress.Drawing.DXFont("Arial", 12F, DevExpress.Drawing.DXFontStyle.Bold); @@ -400,9 +444,9 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe // // cellBeschr // - this.cellBeschr.CanGrow = false; this.cellBeschr.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] { new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[Beschreibung]")}); + this.cellBeschr.Multiline = true; this.cellBeschr.Name = "cellBeschr"; this.cellBeschr.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.cellBeschr.StylePriority.UseTextAlignment = false; @@ -545,50 +589,6 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe // this.bindingSource1.DataSource = typeof(BeWo.Report.DefaultReports.Straffaelligenhilfe.VgaStatistikReportRow); // - // lblVermLabel - // - this.lblVermLabel.LocationFloat = new DevExpress.Utils.PointFloat(50.00325F, 24.66665F); - this.lblVermLabel.Name = "lblVermLabel"; - this.lblVermLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.lblVermLabel.SizeF = new System.Drawing.SizeF(272.33F, 20F); - this.lblVermLabel.StylePriority.UseFont = false; - this.lblVermLabel.Text = "Vermittlungsstelle (Ort):"; - // - // lblStaLabel - // - this.lblStaLabel.LocationFloat = new DevExpress.Utils.PointFloat(50F, 44.66665F); - this.lblStaLabel.Name = "lblStaLabel"; - this.lblStaLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.lblStaLabel.SizeF = new System.Drawing.SizeF(272.33F, 20F); - this.lblStaLabel.StylePriority.UseFont = false; - this.lblStaLabel.Text = "Staatsanwaltschaft / Landgerichtsbezirk:"; - // - // lblBerichtszeitraum - // - this.lblBerichtszeitraum.LocationFloat = new DevExpress.Utils.PointFloat(322.3332F, 84.66665F); - this.lblBerichtszeitraum.Name = "lblBerichtszeitraum"; - this.lblBerichtszeitraum.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.lblBerichtszeitraum.SizeF = new System.Drawing.SizeF(272.3333F, 20.00002F); - this.lblBerichtszeitraum.StylePriority.UseFont = false; - // - // xrLabel1 - // - this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(50.00325F, 84.66665F); - this.xrLabel1.Name = "xrLabel1"; - this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrLabel1.SizeF = new System.Drawing.SizeF(272.33F, 20F); - this.xrLabel1.StylePriority.UseFont = false; - this.xrLabel1.Text = "Berichtszeitraum:"; - // - // lblBerLabel - // - this.lblBerLabel.LocationFloat = new DevExpress.Utils.PointFloat(49.99675F, 64.66665F); - this.lblBerLabel.Name = "lblBerLabel"; - this.lblBerLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.lblBerLabel.SizeF = new System.Drawing.SizeF(272.33F, 20F); - this.lblBerLabel.StylePriority.UseFont = false; - this.lblBerLabel.Text = "darunter Amtsgerichtsbezirk/e:"; - // // VgaStatistikReport // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { diff --git a/Report/DefaultReports/Straffaelligenhilfe/VgaStatistikReport.cs b/Report/DefaultReports/Straffaelligenhilfe/VgaStatistikReport.cs index 332814480..c9e45c80b 100644 --- a/Report/DefaultReports/Straffaelligenhilfe/VgaStatistikReport.cs +++ b/Report/DefaultReports/Straffaelligenhilfe/VgaStatistikReport.cs @@ -144,8 +144,7 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe // ── Verlauf (Abschnittsüberschrift) ──────────────────────────── VgaStatistikReportRow.SectionHeader( "4.", - "Verlauf (der erledigten Aufträge gem. Zeile 3)", - "Mehrfachnennungen möglich !!"), + "Verlauf (der erledigten Aufträge gem. Zeile 3) Mehrfachnennungen möglich !!"), Row("4.1.", "darunter Vermittlungen in externe Einsatzstellen (Fallzahl von Zeile 3)", @@ -209,8 +208,7 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe // ── Gründe für Abbrüche (Abschnittsüberschrift) ──────────────── VgaStatistikReportRow.SectionHeader( "9.", - "Gründe für Abbrüche / Scheitern", - "(Fallzahlen bezogen auf Zeile 3.2 - Mehrfachnennung möglich)"), + "Gründe für Abbrüche / Scheitern (Fallzahlen bezogen auf Zeile 3.2 - Mehrfachnennung möglich)"), Row("9.1.", "kein Kontakt", s => s.Anzahl9_1), Row("9.2.", "nicht angetreten", s => s.Anzahl9_2), @@ -230,8 +228,7 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe // ── Dauer der Beratung (Abschnittsüberschrift) ───────────────── VgaStatistikReportRow.SectionHeader( "11.", - "Dauer der Beratung / Betreuung (der erl. Aufträge)", - "(Fallzahlen-Summen müssen identisch sein mit Zeile 3)"), + "Dauer der Beratung / Betreuung (der erl. Aufträge) (Fallzahlen-Summen müssen identisch sein mit Zeile 3)"), Row("11.1.", "bis 3 Monate", s => s.Anzahl11_1), Row("11.2.", "3 bis 6 Monate", s => s.Anzahl11_2), @@ -326,13 +323,13 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe /// ColInsgesamt nimmt den Hinweistext auf. /// internal static VgaStatistikReportRow SectionHeader( - string position, string beschreibung, string hinweis = "") + string position, string beschreibung) { return new VgaStatistikReportRow { Position = position, Beschreibung = beschreibung, - ColInsgesamt = hinweis, + ColInsgesamt = "", RowType = VgaReportRowType.SectionHeader }; } diff --git a/ReportImp/FabiansDatenbank/FabiansDatenbank.csproj b/ReportImp/FabiansDatenbank/FabiansDatenbank.csproj index 9d5d46417..b72dfd978 100644 --- a/ReportImp/FabiansDatenbank/FabiansDatenbank.csproj +++ b/ReportImp/FabiansDatenbank/FabiansDatenbank.csproj @@ -4,7 +4,7 @@ Debug AnyCPU - {669D2874-57A2-4811-80DD-EFF78EC079B7} + {2B6F428D-8F97-4638-AF6B-907CB98D9869} Library Properties FabiansDatenbank diff --git a/Service/Plugins/PluginLoader.cs b/Service/Plugins/PluginLoader.cs index 4df70bdff..428f78c1a 100644 --- a/Service/Plugins/PluginLoader.cs +++ b/Service/Plugins/PluginLoader.cs @@ -407,7 +407,7 @@ namespace BeWo.Service.Plugins //t = "9520730180"; // Arbeitskreis Jugend- und Drogenberatung Waf //t = "8365918329"; // Lebenshilfe Stade e.V. Schulbegleitender Dienst //t = "6203102637"; // BeWo Neuss-Lauth u. Lauth GbR - //t = "7060431533"; // Arche Tecklenburg e.V. + t = "7060431533"; // Arche Tecklenburg e.V. //t = "1159580198"; // Wendepunkt Velbert gGmbH //t = "5094575560"; // Christopherus Haus MID //t = "5261046426"; // SelbstWerk EN / Bettina Heckrodt diff --git a/Service/Reporting/Straffaelligenhilfe/VgaStatisticCreator.cs b/Service/Reporting/Straffaelligenhilfe/VgaStatisticCreator.cs index c5fb5a3b3..adadd7fc4 100644 --- a/Service/Reporting/Straffaelligenhilfe/VgaStatisticCreator.cs +++ b/Service/Reporting/Straffaelligenhilfe/VgaStatisticCreator.cs @@ -20,7 +20,7 @@ namespace BeWo.Service.Reporting.Straffaelligenhilfe public class VgaStatisticCreator : StatisticBase { - protected Dictionary> CustomerAktenzeichen2Vgas { get; set; } + protected Dictionary> CustomerAktenzeichen2Vgas { get; set; } = new Dictionary>(); public VgaStatisticCreator() : base(VgaTypeEnum.Vga) { @@ -62,10 +62,13 @@ namespace BeWo.Service.Reporting.Straffaelligenhilfe statistik = VgaStatisticBewMit; break; default: + return; break; } } + statistik.StartDate = this.StartDate; + statistik.EndDate = this.EndDate; statistik.ProcessCustomerVermittlungArbeit(customer, cva); String key = String.Format("{0}_{1}", cva.EigenesAktenzeichen, customer.Oid);