Bugfix Vga Statistik für Straffälligenhilfe

This commit is contained in:
2026-07-01 02:23:40 +02:00
parent b648444258
commit bd01a550aa
6 changed files with 64 additions and 62 deletions

View File

@@ -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)
{

View File

@@ -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[] {

View File

@@ -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.
/// </summary>
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
};
}

View File

@@ -4,7 +4,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{669D2874-57A2-4811-80DD-EFF78EC079B7}</ProjectGuid>
<ProjectGuid>{2B6F428D-8F97-4638-AF6B-907CB98D9869}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>FabiansDatenbank</RootNamespace>

View File

@@ -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

View File

@@ -20,7 +20,7 @@ namespace BeWo.Service.Reporting.Straffaelligenhilfe
public class VgaStatisticCreator : StatisticBase
{
protected Dictionary<String, List<CustomerVermittlungArbeit>> CustomerAktenzeichen2Vgas { get; set; }
protected Dictionary<String, List<CustomerVermittlungArbeit>> CustomerAktenzeichen2Vgas { get; set; } = new Dictionary<string, List<CustomerVermittlungArbeit>>();
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);