Merge
This commit is contained in:
@@ -1,29 +1,31 @@
|
||||
using System;
|
||||
using BeWo.Data;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Data.Security;
|
||||
using BeWo.Report.DefaultReports;
|
||||
using BeWo.Report.DefaultReports.Straffaelligenhilfe;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Service.DCEntityMapper;
|
||||
using BeWo.Service.Plugins;
|
||||
using BeWo.Service.Reporting;
|
||||
using BeWo.Service.Reporting.Straffaelligenhilfe;
|
||||
using BeWo.Service.ServiceImplementations;
|
||||
using BS.Shared;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts;
|
||||
using BS.Shared.DataContracts.Compact;
|
||||
using BS.Shared.ReportRequests;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using DevExpress.XtraRichEdit;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using BeWo.Report.DefaultReports;
|
||||
using BS.Shared;
|
||||
using BeWo.Data;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BeWo.Service.DCEntityMapper;
|
||||
using BeWo.Service.ServiceImplementations;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using BS.Shared.DataContracts.Compact;
|
||||
using BeWo.Service.Plugins;
|
||||
using BeWo.Service.Reporting;
|
||||
using System.Web;
|
||||
using BeWo.Data.Security;
|
||||
using BS.Shared.ReportRequests;
|
||||
using System.Drawing;
|
||||
using DevExpress.XtraRichEdit;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
|
||||
namespace BeWo.Report
|
||||
{
|
||||
@@ -246,8 +248,24 @@ namespace BeWo.Report
|
||||
return lFLSReportObject as XtraReport;
|
||||
}
|
||||
|
||||
|
||||
public override XtraReport CreateQueryReport(long queryOid, String queryReportId)
|
||||
{
|
||||
//Muss irgendwann mal in die GUI integriert werden
|
||||
if (queryOid == 11000)
|
||||
{
|
||||
return CreateVgaStatistic(CreateQueryRO(queryOid, queryReportId), VgaTypeEnum.Vga);
|
||||
}
|
||||
if (queryOid == 11001)
|
||||
{
|
||||
return CreateVgaStatistic(CreateQueryRO(queryOid, queryReportId), VgaTypeEnum.Asa);
|
||||
}
|
||||
if (queryOid == 11002)
|
||||
{
|
||||
return CreateVgaStatistic(CreateQueryRO(queryOid, queryReportId), VgaTypeEnum.Tgv);
|
||||
}
|
||||
|
||||
|
||||
var query = DAOFactory.GenericDAO.LoadByID<Query>(queryOid);
|
||||
|
||||
if (query is null)
|
||||
@@ -268,6 +286,74 @@ namespace BeWo.Report
|
||||
return queryReport as XtraReport;
|
||||
}
|
||||
|
||||
|
||||
private XtraReport CreateVgaStatistic(QueryRO qro, VgaTypeEnum vgaType)
|
||||
{
|
||||
DateTime start = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
|
||||
DateTime ende = start.AddMonths(1).AddTicks(-1);
|
||||
|
||||
if (qro.Rows.Count > 0)
|
||||
{
|
||||
start = new DateTime(start.Year, start.Month, 1);
|
||||
|
||||
DateTime dt = DateTime.Now;
|
||||
if (DateTime.TryParse(qro.Rows[0].Field1.ToString(), out dt) && dt > DateTime.MinValue)
|
||||
{
|
||||
start = dt;
|
||||
|
||||
}
|
||||
if (DateTime.TryParse(qro.Rows[0].Field2.ToString(), out dt) && dt < DateTime.MaxValue.Date)
|
||||
{
|
||||
ende = dt.AddTicks(-1);
|
||||
}
|
||||
}
|
||||
StatisticBase statistik = null;
|
||||
|
||||
if (vgaType == VgaTypeEnum.Vga)
|
||||
{
|
||||
statistik = new VgaStatisticCreator();
|
||||
}
|
||||
else if (vgaType == VgaTypeEnum.Tgv)
|
||||
{
|
||||
statistik = new TgvStatistic();
|
||||
}
|
||||
else if (vgaType == VgaTypeEnum.Asa)
|
||||
{
|
||||
statistik = new AsaStatistic();
|
||||
}
|
||||
statistik.CreateStatistic(start, ende);
|
||||
|
||||
return CreateReportForStatistik(statistik);
|
||||
}
|
||||
|
||||
private XtraReport CreateReportForStatistik(StatisticBase statistik)
|
||||
{
|
||||
XtraReport report = null;
|
||||
|
||||
if (statistik.VgaType == VgaTypeEnum.Vga)
|
||||
{
|
||||
report = new VgaStatistikReport();
|
||||
|
||||
}
|
||||
else if (statistik.VgaType == VgaTypeEnum.Asa)
|
||||
{
|
||||
report = new AsaStatistikReport();
|
||||
|
||||
}
|
||||
else if (statistik.VgaType == VgaTypeEnum.Tgv)
|
||||
{
|
||||
report = new TgvStatistikReport();
|
||||
((TgvStatistikReport)report).SetReportDataSource(statistik as TgvStatistic);
|
||||
|
||||
}
|
||||
if (report == null)
|
||||
{
|
||||
report = new XtraReport();
|
||||
}
|
||||
|
||||
return report;
|
||||
}
|
||||
|
||||
public virtual QueryRO CreateQueryRO(long queryOid, String queryReportId)
|
||||
{
|
||||
var query = DAOFactory.GenericDAO.LoadByID<Query>(queryOid);
|
||||
|
||||
@@ -29,16 +29,11 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
|
||||
DevExpress.XtraReports.UI.XRWatermark xrWatermark1 = new DevExpress.XtraReports.UI.XRWatermark();
|
||||
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
|
||||
this.lblVersion = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblBerichtszeitraum = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblTitel = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblVermLabel = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblVermWert = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblStaLabel = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblStaWert = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblBerLabel = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblBerWert = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.PageHeader = new DevExpress.XtraReports.UI.PageHeaderBand();
|
||||
this.tblHeader = new DevExpress.XtraReports.UI.XRTable();
|
||||
this.tblHeaderRow = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
@@ -53,214 +48,148 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
this.cellWert = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.ruleHighlighted = new DevExpress.XtraReports.UI.FormattingRule();
|
||||
this.ruleSectionHeader = new DevExpress.XtraReports.UI.FormattingRule();
|
||||
this.PageFooter = new DevExpress.XtraReports.UI.PageFooterBand();
|
||||
this.xrPageInfo1 = new DevExpress.XtraReports.UI.XRPageInfo();
|
||||
this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand();
|
||||
this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand();
|
||||
this.paramVermittlungsstelle = new DevExpress.XtraReports.Parameters.Parameter();
|
||||
this.paramStaatsanwaltschaft = new DevExpress.XtraReports.Parameters.Parameter();
|
||||
this.paramBerichtszeitraum = new DevExpress.XtraReports.Parameters.Parameter();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
|
||||
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.tblHeader)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tblDetail)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
||||
//
|
||||
// bindingSource1
|
||||
//
|
||||
this.bindingSource1.DataSource = typeof(BeWo.Report.DefaultReports.Straffaelligenhilfe.AsaStatistikReportRow);
|
||||
//
|
||||
//
|
||||
// ReportHeader
|
||||
//
|
||||
//
|
||||
this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.lblVersion,
|
||||
this.lblBerichtszeitraum,
|
||||
this.lblTitel,
|
||||
this.lblVermLabel,
|
||||
this.lblVermWert,
|
||||
this.lblStaLabel,
|
||||
this.lblStaWert,
|
||||
this.lblBerLabel,
|
||||
this.lblBerWert});
|
||||
this.ReportHeader.HeightF = 84F;
|
||||
this.lblBerLabel});
|
||||
this.ReportHeader.HeightF = 79.83332F;
|
||||
this.ReportHeader.Name = "ReportHeader";
|
||||
//
|
||||
// lblVersion
|
||||
//
|
||||
this.lblVersion.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblVersion.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
|
||||
this.lblVersion.Name = "lblVersion";
|
||||
this.lblVersion.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblVersion.SizeF = new System.Drawing.SizeF(80F, 18F);
|
||||
this.lblVersion.Text = "V 2014.1";
|
||||
//
|
||||
//
|
||||
// lblBerichtszeitraum
|
||||
//
|
||||
this.lblBerichtszeitraum.LocationFloat = new DevExpress.Utils.PointFloat(337.3299F, 44.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;
|
||||
//
|
||||
// lblTitel
|
||||
//
|
||||
this.lblTitel.Font = new DevExpress.Drawing.DXFont("Arial", 8F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.lblTitel.LocationFloat = new DevExpress.Utils.PointFloat(80F, 0F);
|
||||
//
|
||||
this.lblTitel.Font = new DevExpress.Drawing.DXFont("Arial", 12F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.lblTitel.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
|
||||
this.lblTitel.Name = "lblTitel";
|
||||
this.lblTitel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblTitel.SizeF = new System.Drawing.SizeF(989F, 18F);
|
||||
this.lblTitel.SizeF = new System.Drawing.SizeF(655F, 33F);
|
||||
this.lblTitel.StylePriority.UseFont = false;
|
||||
this.lblTitel.StylePriority.UseTextAlignment = false;
|
||||
this.lblTitel.Text = "Statistik der Aufsuchenden Sozialarbeit (ASA)";
|
||||
this.lblTitel.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
|
||||
//
|
||||
// lblVermLabel
|
||||
//
|
||||
this.lblVermLabel.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblVermLabel.LocationFloat = new DevExpress.Utils.PointFloat(50F, 20F);
|
||||
this.lblVermLabel.Name = "lblVermLabel";
|
||||
this.lblVermLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblVermLabel.SizeF = new System.Drawing.SizeF(319F, 18F);
|
||||
this.lblVermLabel.Text = "Vermittlungsstelle (Ort):";
|
||||
//
|
||||
// lblVermWert
|
||||
//
|
||||
this.lblVermWert.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] {
|
||||
new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[Parameters.Vermittlungsstelle]")});
|
||||
this.lblVermWert.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblVermWert.LocationFloat = new DevExpress.Utils.PointFloat(369F, 20F);
|
||||
this.lblVermWert.Name = "lblVermWert";
|
||||
this.lblVermWert.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblVermWert.SizeF = new System.Drawing.SizeF(300F, 18F);
|
||||
//
|
||||
// lblStaLabel
|
||||
//
|
||||
this.lblStaLabel.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblStaLabel.LocationFloat = new DevExpress.Utils.PointFloat(50F, 40F);
|
||||
this.lblStaLabel.Name = "lblStaLabel";
|
||||
this.lblStaLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblStaLabel.SizeF = new System.Drawing.SizeF(319F, 18F);
|
||||
this.lblStaLabel.Text = "Staatsanwaltschaft / Landgerichtsbezirk:";
|
||||
//
|
||||
// lblStaWert
|
||||
//
|
||||
this.lblStaWert.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] {
|
||||
new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[Parameters.Staatsanwaltschaft]")});
|
||||
this.lblStaWert.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblStaWert.LocationFloat = new DevExpress.Utils.PointFloat(369F, 40F);
|
||||
this.lblStaWert.Name = "lblStaWert";
|
||||
this.lblStaWert.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblStaWert.SizeF = new System.Drawing.SizeF(300F, 18F);
|
||||
//
|
||||
this.lblTitel.Text = "Statistik ASA";
|
||||
this.lblTitel.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
|
||||
//
|
||||
// lblBerLabel
|
||||
//
|
||||
this.lblBerLabel.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblBerLabel.LocationFloat = new DevExpress.Utils.PointFloat(50F, 60F);
|
||||
//
|
||||
this.lblBerLabel.LocationFloat = new DevExpress.Utils.PointFloat(65F, 44.66665F);
|
||||
this.lblBerLabel.Name = "lblBerLabel";
|
||||
this.lblBerLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblBerLabel.SizeF = new System.Drawing.SizeF(319F, 18F);
|
||||
this.lblBerLabel.SizeF = new System.Drawing.SizeF(272.33F, 20F);
|
||||
this.lblBerLabel.StylePriority.UseFont = false;
|
||||
this.lblBerLabel.Text = "Berichtszeitraum:";
|
||||
//
|
||||
// lblBerWert
|
||||
//
|
||||
this.lblBerWert.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] {
|
||||
new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "FormatString('{0:dd.MM.yyyy}', [Parameters.Berichtszeitraum])")});
|
||||
this.lblBerWert.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblBerWert.LocationFloat = new DevExpress.Utils.PointFloat(369F, 60F);
|
||||
this.lblBerWert.Name = "lblBerWert";
|
||||
this.lblBerWert.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblBerWert.SizeF = new System.Drawing.SizeF(200F, 18F);
|
||||
//
|
||||
//
|
||||
// PageHeader
|
||||
//
|
||||
//
|
||||
this.PageHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.tblHeader});
|
||||
this.PageHeader.HeightF = 28F;
|
||||
this.PageHeader.HeightF = 40F;
|
||||
this.PageHeader.Name = "PageHeader";
|
||||
//
|
||||
//
|
||||
// tblHeader
|
||||
//
|
||||
//
|
||||
this.tblHeader.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(166)))), ((int)(((byte)(166)))), ((int)(((byte)(166)))));
|
||||
this.tblHeader.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
|
||||
| DevExpress.XtraPrinting.BorderSide.Right)
|
||||
this.tblHeader.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
|
||||
| DevExpress.XtraPrinting.BorderSide.Right)
|
||||
| DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.tblHeader.BorderWidth = 0.5F;
|
||||
this.tblHeader.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
|
||||
this.tblHeader.Name = "tblHeader";
|
||||
this.tblHeader.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
|
||||
this.tblHeaderRow});
|
||||
this.tblHeader.SizeF = new System.Drawing.SizeF(1069F, 28F);
|
||||
//
|
||||
this.tblHeader.SizeF = new System.Drawing.SizeF(655F, 40F);
|
||||
//
|
||||
// tblHeaderRow
|
||||
//
|
||||
//
|
||||
this.tblHeaderRow.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
this.cellHPos,
|
||||
this.cellHBeschr,
|
||||
this.cellHWert});
|
||||
this.tblHeaderRow.Name = "tblHeaderRow";
|
||||
this.tblHeaderRow.Weight = 1.0D;
|
||||
//
|
||||
this.tblHeaderRow.Weight = 1.428571525885141D;
|
||||
//
|
||||
// cellHPos
|
||||
//
|
||||
//
|
||||
this.cellHPos.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
|
||||
this.cellHPos.Font = new DevExpress.Drawing.DXFont("Arial", 7F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.cellHPos.Font = new DevExpress.Drawing.DXFont("Arial", 10F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.cellHPos.Name = "cellHPos";
|
||||
this.cellHPos.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1, 100F);
|
||||
this.cellHPos.StylePriority.UseFont = false;
|
||||
this.cellHPos.StylePriority.UseTextAlignment = false;
|
||||
this.cellHPos.Text = "Pos.";
|
||||
this.cellHPos.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
|
||||
this.cellHPos.Weight = 0.20D;
|
||||
//
|
||||
this.cellHPos.Weight = 0.20134228498791382D;
|
||||
//
|
||||
// cellHBeschr
|
||||
//
|
||||
//
|
||||
this.cellHBeschr.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
|
||||
this.cellHBeschr.Font = new DevExpress.Drawing.DXFont("Arial", 7F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.cellHBeschr.Font = new DevExpress.Drawing.DXFont("Arial", 10F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.cellHBeschr.Name = "cellHBeschr";
|
||||
this.cellHBeschr.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1, 100F);
|
||||
this.cellHBeschr.StylePriority.UseFont = false;
|
||||
this.cellHBeschr.StylePriority.UseTextAlignment = false;
|
||||
this.cellHBeschr.Text = "1 Auftrag = 1 Person !!!";
|
||||
this.cellHBeschr.Text = "1 Auftrag = 1 Person";
|
||||
this.cellHBeschr.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
|
||||
this.cellHBeschr.Weight = 1.40D;
|
||||
//
|
||||
this.cellHBeschr.Weight = 1.3009808289431031D;
|
||||
//
|
||||
// cellHWert
|
||||
//
|
||||
//
|
||||
this.cellHWert.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
|
||||
this.cellHWert.Font = new DevExpress.Drawing.DXFont("Arial", 7F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.cellHWert.Font = new DevExpress.Drawing.DXFont("Arial", 10F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.cellHWert.Name = "cellHWert";
|
||||
this.cellHWert.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1, 100F);
|
||||
this.cellHWert.StylePriority.UseFont = false;
|
||||
this.cellHWert.StylePriority.UseTextAlignment = false;
|
||||
this.cellHWert.Text = "zur Abwendung einer\nErsatzfreiheitsstrafe";
|
||||
this.cellHWert.Text = "zur Abwendung einer Ersatzfreiheitsstrafe";
|
||||
this.cellHWert.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
|
||||
this.cellHWert.Weight = 0.40D;
|
||||
//
|
||||
this.cellHWert.Weight = 0.52658750876651672D;
|
||||
//
|
||||
// Detail
|
||||
//
|
||||
//
|
||||
this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.tblDetail});
|
||||
this.Detail.HeightF = 16F;
|
||||
this.Detail.HeightF = 20F;
|
||||
this.Detail.Name = "Detail";
|
||||
//
|
||||
//
|
||||
// tblDetail
|
||||
//
|
||||
this.tblDetail.AnchorVertical = ((DevExpress.XtraReports.UI.VerticalAnchorStyles)((DevExpress.XtraReports.UI.VerticalAnchorStyles.Top | DevExpress.XtraReports.UI.VerticalAnchorStyles.Bottom)));
|
||||
//
|
||||
this.tblDetail.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(166)))), ((int)(((byte)(166)))), ((int)(((byte)(166)))));
|
||||
this.tblDetail.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
|
||||
| DevExpress.XtraPrinting.BorderSide.Right)
|
||||
this.tblDetail.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
|
||||
| DevExpress.XtraPrinting.BorderSide.Right)
|
||||
| DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.tblDetail.BorderWidth = 0.5F;
|
||||
this.tblDetail.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
|
||||
this.tblDetail.Name = "tblDetail";
|
||||
this.tblDetail.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
|
||||
this.tblDetailRow});
|
||||
this.tblDetail.SizeF = new System.Drawing.SizeF(1069F, 16F);
|
||||
//
|
||||
this.tblDetail.SizeF = new System.Drawing.SizeF(655F, 20F);
|
||||
//
|
||||
// tblDetailRow
|
||||
//
|
||||
//
|
||||
this.tblDetailRow.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
this.cellPos,
|
||||
this.cellBeschr,
|
||||
this.cellWert});
|
||||
this.tblDetailRow.FormattingRules.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] {
|
||||
this.ruleHighlighted,
|
||||
this.ruleSectionHeader});
|
||||
this.tblDetailRow.Name = "tblDetailRow";
|
||||
this.tblDetailRow.Weight = 11.5D;
|
||||
//
|
||||
this.tblDetailRow.Weight = 14.375D;
|
||||
//
|
||||
// cellPos
|
||||
//
|
||||
//
|
||||
this.cellPos.CanGrow = false;
|
||||
this.cellPos.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] {
|
||||
new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[Position]")});
|
||||
@@ -268,21 +197,21 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
this.cellPos.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.cellPos.StylePriority.UseTextAlignment = false;
|
||||
this.cellPos.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
|
||||
this.cellPos.Weight = 0.20D;
|
||||
//
|
||||
this.cellPos.Weight = 0.20134228498791382D;
|
||||
//
|
||||
// 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;
|
||||
this.cellBeschr.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
|
||||
this.cellBeschr.Weight = 1.40D;
|
||||
//
|
||||
this.cellBeschr.Weight = 1.3009808289431031D;
|
||||
//
|
||||
// cellWert
|
||||
//
|
||||
//
|
||||
this.cellWert.CanGrow = false;
|
||||
this.cellWert.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] {
|
||||
new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[Wert]")});
|
||||
@@ -290,93 +219,57 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
this.cellWert.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.cellWert.StylePriority.UseTextAlignment = false;
|
||||
this.cellWert.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
|
||||
this.cellWert.Weight = 0.40D;
|
||||
//
|
||||
this.cellWert.Weight = 0.52658750876651672D;
|
||||
//
|
||||
// ruleHighlighted
|
||||
//
|
||||
this.ruleHighlighted.Condition = "[RowType] == 1";
|
||||
//
|
||||
this.ruleHighlighted.Formatting.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(230)))), ((int)(((byte)(153)))));
|
||||
this.ruleHighlighted.Name = "ruleHighlighted";
|
||||
//
|
||||
//
|
||||
// ruleSectionHeader
|
||||
//
|
||||
this.ruleSectionHeader.Condition = "[RowType] == 2";
|
||||
//
|
||||
this.ruleSectionHeader.Formatting.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(215)))), ((int)(((byte)(238)))));
|
||||
this.ruleSectionHeader.Formatting.Font = new DevExpress.Drawing.DXFont("Arial", 8F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.ruleSectionHeader.Name = "ruleSectionHeader";
|
||||
//
|
||||
// PageFooter
|
||||
//
|
||||
this.PageFooter.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.xrPageInfo1});
|
||||
this.PageFooter.HeightF = 26F;
|
||||
this.PageFooter.Name = "PageFooter";
|
||||
//
|
||||
// xrPageInfo1
|
||||
//
|
||||
this.xrPageInfo1.LocationFloat = new DevExpress.Utils.PointFloat(868.9998F, 10F);
|
||||
this.xrPageInfo1.Name = "xrPageInfo1";
|
||||
this.xrPageInfo1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrPageInfo1.SizeF = new System.Drawing.SizeF(200F, 16F);
|
||||
this.xrPageInfo1.StylePriority.UseTextAlignment = false;
|
||||
this.xrPageInfo1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
|
||||
//
|
||||
//
|
||||
// TopMargin
|
||||
//
|
||||
//
|
||||
this.TopMargin.HeightF = 50F;
|
||||
this.TopMargin.Name = "TopMargin";
|
||||
//
|
||||
//
|
||||
// BottomMargin
|
||||
//
|
||||
//
|
||||
this.BottomMargin.HeightF = 50F;
|
||||
this.BottomMargin.Name = "BottomMargin";
|
||||
//
|
||||
// paramVermittlungsstelle
|
||||
//
|
||||
this.paramVermittlungsstelle.Description = "Vermittlungsstelle (Ort)";
|
||||
this.paramVermittlungsstelle.Name = "Vermittlungsstelle";
|
||||
//
|
||||
// paramStaatsanwaltschaft
|
||||
//
|
||||
this.paramStaatsanwaltschaft.Description = "Staatsanwaltschaft / LG-Bezirk";
|
||||
this.paramStaatsanwaltschaft.Name = "Staatsanwaltschaft";
|
||||
this.paramStaatsanwaltschaft.ValueInfo = "GESAMT";
|
||||
//
|
||||
// paramBerichtszeitraum
|
||||
//
|
||||
this.paramBerichtszeitraum.Description = "Berichtszeitraum (Stichtag)";
|
||||
this.paramBerichtszeitraum.Name = "Berichtszeitraum";
|
||||
this.paramBerichtszeitraum.Type = typeof(System.DateTime);
|
||||
this.paramBerichtszeitraum.ValueInfo = "2026-03-31";
|
||||
//
|
||||
//
|
||||
// bindingSource1
|
||||
//
|
||||
this.bindingSource1.DataSource = typeof(BeWo.Report.DefaultReports.Straffaelligenhilfe.TgvStatistikReportRow);
|
||||
//
|
||||
// AsaStatistikReport
|
||||
//
|
||||
//
|
||||
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
|
||||
this.TopMargin,
|
||||
this.ReportHeader,
|
||||
this.PageHeader,
|
||||
this.Detail,
|
||||
this.PageFooter,
|
||||
this.BottomMargin});
|
||||
this.ComponentStorage.AddRange(new System.ComponentModel.IComponent[] {
|
||||
this.bindingSource1});
|
||||
this.DataSource = this.bindingSource1;
|
||||
this.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] {
|
||||
this.ruleHighlighted,
|
||||
this.ruleSectionHeader});
|
||||
this.Landscape = true;
|
||||
this.Margins = new DevExpress.Drawing.DXMargins(50F, 50F, 50F, 50F);
|
||||
this.PageHeight = 827;
|
||||
this.PageWidth = 1169;
|
||||
this.Font = new DevExpress.Drawing.DXFont("Arial", 10F);
|
||||
this.Margins = new DevExpress.Drawing.DXMargins(80F, 50F, 50F, 50F);
|
||||
this.PageHeight = 1169;
|
||||
this.PageWidth = 827;
|
||||
this.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.A4;
|
||||
this.Parameters.AddRange(new DevExpress.XtraReports.Parameters.Parameter[] {
|
||||
this.paramVermittlungsstelle,
|
||||
this.paramStaatsanwaltschaft,
|
||||
this.paramBerichtszeitraum});
|
||||
this.Version = "23.2";
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
|
||||
xrWatermark1.Id = "Watermark1";
|
||||
this.Watermarks.Add(xrWatermark1);
|
||||
((System.ComponentModel.ISupportInitialize)(this.tblHeader)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tblDetail)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -384,47 +277,29 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
// ── Private Felder (alle Report-Controls) ──────────────────────────────
|
||||
private System.Windows.Forms.BindingSource bindingSource1;
|
||||
|
||||
private DevExpress.XtraReports.UI.TopMarginBand TopMargin;
|
||||
private DevExpress.XtraReports.UI.TopMarginBand TopMargin;
|
||||
private DevExpress.XtraReports.UI.BottomMarginBand BottomMargin;
|
||||
private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader;
|
||||
private DevExpress.XtraReports.UI.PageHeaderBand PageHeader;
|
||||
private DevExpress.XtraReports.UI.DetailBand Detail;
|
||||
private DevExpress.XtraReports.UI.PageFooterBand PageFooter;
|
||||
|
||||
// Report-Header Labels
|
||||
private DevExpress.XtraReports.UI.XRLabel lblVersion;
|
||||
private DevExpress.XtraReports.UI.PageHeaderBand PageHeader;
|
||||
private DevExpress.XtraReports.UI.DetailBand Detail;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblTitel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblVermLabel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblVermWert;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblStaLabel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblStaWert;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblBerLabel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblBerWert;
|
||||
|
||||
// Page-Header Tabelle
|
||||
// Detail-Tabelle
|
||||
private DevExpress.XtraReports.UI.XRTable tblDetail;
|
||||
private DevExpress.XtraReports.UI.XRTableRow tblDetailRow;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellPos;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellBeschr;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellWert;
|
||||
|
||||
// Bedingte Formatierung
|
||||
private DevExpress.XtraReports.UI.FormattingRule ruleHighlighted;
|
||||
private DevExpress.XtraReports.UI.FormattingRule ruleSectionHeader;
|
||||
private DevExpress.XtraReports.UI.XRTable tblHeader;
|
||||
private DevExpress.XtraReports.UI.XRTableRow tblHeaderRow;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellHPos;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellHBeschr;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellHWert;
|
||||
|
||||
// Detail-Tabelle
|
||||
private DevExpress.XtraReports.UI.XRTable tblDetail;
|
||||
private DevExpress.XtraReports.UI.XRTableRow tblDetailRow;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellPos;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellBeschr;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellWert;
|
||||
|
||||
// Seitenzahl
|
||||
private DevExpress.XtraReports.UI.XRPageInfo xrPageInfo1;
|
||||
|
||||
// Bedingte Formatierung
|
||||
private DevExpress.XtraReports.UI.FormattingRule ruleHighlighted;
|
||||
private DevExpress.XtraReports.UI.FormattingRule ruleSectionHeader;
|
||||
|
||||
// Parameter
|
||||
private DevExpress.XtraReports.Parameters.Parameter paramVermittlungsstelle;
|
||||
private DevExpress.XtraReports.Parameters.Parameter paramStaatsanwaltschaft;
|
||||
private DevExpress.XtraReports.Parameters.Parameter paramBerichtszeitraum;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblBerichtszeitraum;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
using BeWo.Service.Reporting.Straffaelligenhilfe;
|
||||
using DevExpress.XtraPrinting.Native;
|
||||
using DevExpress.XtraReports.UI;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BeWo.Service.Reporting.Straffaelligenhilfe;
|
||||
using DevExpress.XtraReports.UI;
|
||||
|
||||
namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
{
|
||||
/// <summary>
|
||||
/// XtraReport für die "Statistik der Aufsuchenden Sozialarbeit (ASA)" (V 2014.1).
|
||||
/// XtraReport für die "Statistik der Treuhänderischen Geldverwaltung (TGV)" (V 2014.1).
|
||||
///
|
||||
/// Verwendung:
|
||||
/// var rows = AsaStatistikReport.CreateRows(asa);
|
||||
/// var report = new AsaStatistikReport();
|
||||
/// var rows = TgvStatistikReport.CreateRows(tgv);
|
||||
/// var report = new TgvStatistikReport();
|
||||
/// report.Parameters["Vermittlungsstelle"].Value = "Musterstadt";
|
||||
/// report.Parameters["Staatsanwaltschaft"].Value = "GESAMT";
|
||||
/// report.Parameters["Berichtszeitraum"].Value = new DateTime(2025, 6, 30);
|
||||
@@ -27,88 +28,101 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
/// <summary>
|
||||
/// Setzt die Datenquelle des Reports.
|
||||
/// </summary>
|
||||
public void SetReportDataSource(List<AsaStatistikReportRow> rows)
|
||||
public void SetReportDataSource(AsaStatistic statistik)
|
||||
{
|
||||
this.bindingSource1.DataSource = rows;
|
||||
lblBerichtszeitraum.Text = String.Format("{0:dd.MM.yyyy}-{1:dd.MM.yyyy}", statistik.StartDate, statistik.EndDate);
|
||||
this.bindingSource1.DataSource = CreateRows(statistik);
|
||||
}
|
||||
|
||||
// ── Factory ─────────────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>
|
||||
/// Konvertiert ein ausgefülltes AsaStatistic-Objekt in die Zeilenliste für den Report.
|
||||
/// Konvertiert ein ausgefülltes TgvStatistic-Objekt in die Zeilenliste für den Report.
|
||||
/// </summary>
|
||||
public static List<AsaStatistikReportRow> CreateRows(AsaStatistic asa)
|
||||
{
|
||||
AsaStatistikReportRow Row(string pos, string beschr, int val,
|
||||
AsaStatistikReportRow Row(string pos, string beschr, string wert,
|
||||
AsaReportRowType type = AsaReportRowType.Normal) =>
|
||||
new AsaStatistikReportRow
|
||||
{
|
||||
Position = pos,
|
||||
Beschreibung = beschr,
|
||||
Wert = val.ToString("N0"),
|
||||
Wert = wert,
|
||||
RowType = type
|
||||
};
|
||||
|
||||
AsaStatistikReportRow RowInt(string pos, string beschr, int val,
|
||||
AsaReportRowType type = AsaReportRowType.Normal) =>
|
||||
Row(pos, beschr, val.ToString("N0"), type);
|
||||
|
||||
return new List<AsaStatistikReportRow>
|
||||
{
|
||||
// ── Auftragsbestand ────────────────────────────────────────────
|
||||
Row("0.1",
|
||||
RowInt("0.1",
|
||||
"Anzahl der aus dem vorhergehenden Berichtszeitraum übernommenen offenen Aufträge",
|
||||
asa.Anzahl01),
|
||||
|
||||
Row("0.2",
|
||||
RowInt("0.2",
|
||||
"Anzahl der im aktuellen Berichtszeitraum erteilten Aufträge",
|
||||
asa.Anzahl02, AsaReportRowType.Highlighted),
|
||||
|
||||
Row("1.",
|
||||
RowInt("1.",
|
||||
"Anzahl der insges. erteilten Aufträge (Summe Zeilen 0.1 + 0.2)",
|
||||
asa.Anzahl1, AsaReportRowType.Highlighted),
|
||||
|
||||
Row("2.",
|
||||
"Anzahl aller erledigten Aufträge (incl. Abbrüche, ...)",
|
||||
asa.Anzahl2),
|
||||
"Anzahl aller erledigten Aufträge (incl. Abbrüche, teilweise erledigter Aufträge, gescheiterte Fälle)",
|
||||
asa.Anzahl2.ToString("N2"), AsaReportRowType.Highlighted),
|
||||
|
||||
// ── Fallverlauf (Abschnittsüberschrift) ────────────────────────
|
||||
AsaStatistikReportRow.SectionHeader(
|
||||
"3.",
|
||||
"Fallverlauf (der erledigten Aufträge gem. Zeile 2)"),
|
||||
|
||||
// ── 3.1. Methode ───────────────────────────────────────────────
|
||||
AsaStatistikReportRow.SectionHeader(
|
||||
"3.1.",
|
||||
"Methode (der erledigten Aufträge gem. Zeile 2)"),
|
||||
|
||||
Row("3.1.1.", "Klient wurde aufgesucht", asa.Anzahl3_1_1),
|
||||
Row("3.1.2.", "Klient wurde angetroffen", asa.Anzahl3_1_2),
|
||||
Row("3.1.3.", "Klient wurde nicht angetroffen", asa.Anzahl3_1_3),
|
||||
Row("3.1.4.",
|
||||
// ── Erledigte Aufträge ─────────────────────────────────────────
|
||||
RowInt("3.1.1.",
|
||||
"Klient wurde aufgesucht",
|
||||
asa.Anzahl3_1_1),
|
||||
RowInt("3.1.2.",
|
||||
"Klient wurde angetroffen",
|
||||
asa.Anzahl3_1_2),
|
||||
RowInt("3.1.3.",
|
||||
"Klient wurde nicht angetroffen",
|
||||
asa.Anzahl3_1_3),
|
||||
RowInt("3.1.4.",
|
||||
"Klient wurde nicht aufgesucht, da Klient sich in VBS meldet (1. Anschreiben)",
|
||||
asa.Anzahl3_1_4),
|
||||
|
||||
// ── 3.2. Verlauf ───────────────────────────────────────────────
|
||||
AsaStatistikReportRow.SectionHeader(
|
||||
"3.2.",
|
||||
"Verlauf (der erledigten Aufträge gem. Zeile 2)"),
|
||||
|
||||
Row("3.2.1.", "Übergang in Schwitzen statt Sitzen", asa.Anzahl3_2_1),
|
||||
Row("3.2.2.", "Übergang in Treuhänderische Geldverwaltung", asa.Anzahl3_2_2),
|
||||
Row("3.2.3.", "Kein Interesse / Abbruch / Scheitern", asa.Anzahl3_2_3),
|
||||
RowInt("3.2.1.",
|
||||
"Übergang in Schwitzen statt Sitzen",
|
||||
asa.Anzahl3_2_1),
|
||||
RowInt("3.2.2.",
|
||||
"Übergang in Treuhänderische Geldverwaltung",
|
||||
asa.Anzahl3_2_2),
|
||||
RowInt("3.2.3.",
|
||||
"Kein Interesse / Abbruch / Scheitern",
|
||||
asa.Anzahl3_2_3),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Zeilentyp für die bedingte Formatierung im ASA-Statistik Report.
|
||||
/// Zeilentyp für die bedingte Formatierung im TGV-Statistik Report.
|
||||
/// </summary>
|
||||
public enum AsaReportRowType
|
||||
{
|
||||
Normal = 0,
|
||||
Highlighted = 1, // Orangefarbener Hintergrund (z. B. Zeilen 0.2, 1.)
|
||||
SectionHeader = 2 // Blauer Hintergrund (Abschnittsüberschriften 3., 3.1., 3.2.)
|
||||
Highlighted = 1, // Orangefarbener Hintergrund (z. B. Zeilen 0.2, 1., 2., 3.2., 5.)
|
||||
SectionHeader = 2 // Blauer Hintergrund (Abschnittsüberschrift 4.)
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Datenmodell für eine Zeile im ASA-Statistik Report.
|
||||
/// Datenmodell für eine Zeile im TGV-Statistik Report.
|
||||
/// </summary>
|
||||
public class AsaStatistikReportRow
|
||||
{
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -29,16 +29,13 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
|
||||
DevExpress.XtraReports.UI.XRWatermark xrWatermark1 = new DevExpress.XtraReports.UI.XRWatermark();
|
||||
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
|
||||
this.lblVersion = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblBerichtszeitraum = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblTitel = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblVermLabel = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblVermWert = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblStaLabel = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblStaWert = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblBerLabel = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblBerWert = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.PageHeader = new DevExpress.XtraReports.UI.PageHeaderBand();
|
||||
this.tblHeader = new DevExpress.XtraReports.UI.XRTable();
|
||||
this.tblHeaderRow = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
@@ -53,214 +50,170 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
this.cellWert = new DevExpress.XtraReports.UI.XRTableCell();
|
||||
this.ruleHighlighted = new DevExpress.XtraReports.UI.FormattingRule();
|
||||
this.ruleSectionHeader = new DevExpress.XtraReports.UI.FormattingRule();
|
||||
this.PageFooter = new DevExpress.XtraReports.UI.PageFooterBand();
|
||||
this.xrPageInfo1 = new DevExpress.XtraReports.UI.XRPageInfo();
|
||||
this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand();
|
||||
this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand();
|
||||
this.paramVermittlungsstelle = new DevExpress.XtraReports.Parameters.Parameter();
|
||||
this.paramStaatsanwaltschaft = new DevExpress.XtraReports.Parameters.Parameter();
|
||||
this.paramBerichtszeitraum = new DevExpress.XtraReports.Parameters.Parameter();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
|
||||
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
|
||||
this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tblHeader)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tblDetail)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
||||
//
|
||||
// bindingSource1
|
||||
//
|
||||
this.bindingSource1.DataSource = typeof(BeWo.Report.DefaultReports.Straffaelligenhilfe.TgvStatistikReportRow);
|
||||
//
|
||||
//
|
||||
// ReportHeader
|
||||
//
|
||||
//
|
||||
this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.lblVersion,
|
||||
this.xrLabel1,
|
||||
this.lblBerichtszeitraum,
|
||||
this.lblTitel,
|
||||
this.lblVermLabel,
|
||||
this.lblVermWert,
|
||||
this.lblStaLabel,
|
||||
this.lblStaWert,
|
||||
this.lblBerLabel,
|
||||
this.lblBerWert});
|
||||
this.ReportHeader.HeightF = 84F;
|
||||
this.lblBerLabel});
|
||||
this.ReportHeader.HeightF = 147.3333F;
|
||||
this.ReportHeader.Name = "ReportHeader";
|
||||
//
|
||||
// lblVersion
|
||||
//
|
||||
this.lblVersion.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblVersion.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
|
||||
this.lblVersion.Name = "lblVersion";
|
||||
this.lblVersion.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblVersion.SizeF = new System.Drawing.SizeF(80F, 18F);
|
||||
this.lblVersion.Text = "V 2014.1";
|
||||
//
|
||||
//
|
||||
// lblBerichtszeitraum
|
||||
//
|
||||
this.lblBerichtszeitraum.LocationFloat = new DevExpress.Utils.PointFloat(337.3299F, 92.99998F);
|
||||
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;
|
||||
//
|
||||
// lblTitel
|
||||
//
|
||||
this.lblTitel.Font = new DevExpress.Drawing.DXFont("Arial", 8F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.lblTitel.LocationFloat = new DevExpress.Utils.PointFloat(80F, 0F);
|
||||
//
|
||||
this.lblTitel.Font = new DevExpress.Drawing.DXFont("Arial", 12F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.lblTitel.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
|
||||
this.lblTitel.Name = "lblTitel";
|
||||
this.lblTitel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblTitel.SizeF = new System.Drawing.SizeF(989F, 18F);
|
||||
this.lblTitel.SizeF = new System.Drawing.SizeF(655F, 33F);
|
||||
this.lblTitel.StylePriority.UseFont = false;
|
||||
this.lblTitel.StylePriority.UseTextAlignment = false;
|
||||
this.lblTitel.Text = "Statistik der Treuhänderischen Geldverwaltung (TGV)";
|
||||
this.lblTitel.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
|
||||
//
|
||||
this.lblTitel.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
|
||||
//
|
||||
// lblVermLabel
|
||||
//
|
||||
this.lblVermLabel.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblVermLabel.LocationFloat = new DevExpress.Utils.PointFloat(50F, 20F);
|
||||
//
|
||||
this.lblVermLabel.LocationFloat = new DevExpress.Utils.PointFloat(65F, 32.99998F);
|
||||
this.lblVermLabel.Name = "lblVermLabel";
|
||||
this.lblVermLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblVermLabel.SizeF = new System.Drawing.SizeF(319F, 18F);
|
||||
this.lblVermLabel.SizeF = new System.Drawing.SizeF(272.33F, 20F);
|
||||
this.lblVermLabel.StylePriority.UseFont = false;
|
||||
this.lblVermLabel.Text = "Vermittlungsstelle (Ort):";
|
||||
//
|
||||
// lblVermWert
|
||||
//
|
||||
this.lblVermWert.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] {
|
||||
new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[Parameters.Vermittlungsstelle]")});
|
||||
this.lblVermWert.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblVermWert.LocationFloat = new DevExpress.Utils.PointFloat(369F, 20F);
|
||||
this.lblVermWert.Name = "lblVermWert";
|
||||
this.lblVermWert.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblVermWert.SizeF = new System.Drawing.SizeF(300F, 18F);
|
||||
//
|
||||
//
|
||||
// lblStaLabel
|
||||
//
|
||||
this.lblStaLabel.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblStaLabel.LocationFloat = new DevExpress.Utils.PointFloat(50F, 40F);
|
||||
//
|
||||
this.lblStaLabel.LocationFloat = new DevExpress.Utils.PointFloat(64.99674F, 52.99998F);
|
||||
this.lblStaLabel.Name = "lblStaLabel";
|
||||
this.lblStaLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblStaLabel.SizeF = new System.Drawing.SizeF(319F, 18F);
|
||||
this.lblStaLabel.SizeF = new System.Drawing.SizeF(272.33F, 20F);
|
||||
this.lblStaLabel.StylePriority.UseFont = false;
|
||||
this.lblStaLabel.Text = "Staatsanwaltschaft / Landgerichtsbezirk:";
|
||||
//
|
||||
// lblStaWert
|
||||
//
|
||||
this.lblStaWert.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] {
|
||||
new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[Parameters.Staatsanwaltschaft]")});
|
||||
this.lblStaWert.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblStaWert.LocationFloat = new DevExpress.Utils.PointFloat(369F, 40F);
|
||||
this.lblStaWert.Name = "lblStaWert";
|
||||
this.lblStaWert.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblStaWert.SizeF = new System.Drawing.SizeF(300F, 18F);
|
||||
//
|
||||
//
|
||||
// lblBerLabel
|
||||
//
|
||||
this.lblBerLabel.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblBerLabel.LocationFloat = new DevExpress.Utils.PointFloat(50F, 60F);
|
||||
//
|
||||
this.lblBerLabel.LocationFloat = new DevExpress.Utils.PointFloat(64.99349F, 72.99998F);
|
||||
this.lblBerLabel.Name = "lblBerLabel";
|
||||
this.lblBerLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblBerLabel.SizeF = new System.Drawing.SizeF(319F, 18F);
|
||||
this.lblBerLabel.Text = "Berichtszeitraum:";
|
||||
//
|
||||
// lblBerWert
|
||||
//
|
||||
this.lblBerWert.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] {
|
||||
new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "FormatString('{0:dd.MM.yyyy}', [Parameters.Berichtszeitraum])")});
|
||||
this.lblBerWert.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblBerWert.LocationFloat = new DevExpress.Utils.PointFloat(369F, 60F);
|
||||
this.lblBerWert.Name = "lblBerWert";
|
||||
this.lblBerWert.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblBerWert.SizeF = new System.Drawing.SizeF(200F, 18F);
|
||||
//
|
||||
this.lblBerLabel.SizeF = new System.Drawing.SizeF(272.33F, 20F);
|
||||
this.lblBerLabel.StylePriority.UseFont = false;
|
||||
this.lblBerLabel.Text = "darunter Amtsgerichtsbezirk/e:";
|
||||
//
|
||||
// PageHeader
|
||||
//
|
||||
//
|
||||
this.PageHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.tblHeader});
|
||||
this.PageHeader.HeightF = 28F;
|
||||
this.PageHeader.HeightF = 40F;
|
||||
this.PageHeader.Name = "PageHeader";
|
||||
//
|
||||
//
|
||||
// tblHeader
|
||||
//
|
||||
//
|
||||
this.tblHeader.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(166)))), ((int)(((byte)(166)))), ((int)(((byte)(166)))));
|
||||
this.tblHeader.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
|
||||
| DevExpress.XtraPrinting.BorderSide.Right)
|
||||
this.tblHeader.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
|
||||
| DevExpress.XtraPrinting.BorderSide.Right)
|
||||
| DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.tblHeader.BorderWidth = 0.5F;
|
||||
this.tblHeader.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
|
||||
this.tblHeader.Name = "tblHeader";
|
||||
this.tblHeader.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
|
||||
this.tblHeaderRow});
|
||||
this.tblHeader.SizeF = new System.Drawing.SizeF(1069F, 28F);
|
||||
//
|
||||
this.tblHeader.SizeF = new System.Drawing.SizeF(655F, 40F);
|
||||
//
|
||||
// tblHeaderRow
|
||||
//
|
||||
//
|
||||
this.tblHeaderRow.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
this.cellHPos,
|
||||
this.cellHBeschr,
|
||||
this.cellHWert});
|
||||
this.tblHeaderRow.Name = "tblHeaderRow";
|
||||
this.tblHeaderRow.Weight = 1.0D;
|
||||
//
|
||||
this.tblHeaderRow.Weight = 1.428571525885141D;
|
||||
//
|
||||
// cellHPos
|
||||
//
|
||||
//
|
||||
this.cellHPos.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
|
||||
this.cellHPos.Font = new DevExpress.Drawing.DXFont("Arial", 7F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.cellHPos.Font = new DevExpress.Drawing.DXFont("Arial", 10F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.cellHPos.Name = "cellHPos";
|
||||
this.cellHPos.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1, 100F);
|
||||
this.cellHPos.StylePriority.UseFont = false;
|
||||
this.cellHPos.StylePriority.UseTextAlignment = false;
|
||||
this.cellHPos.Text = "Pos.";
|
||||
this.cellHPos.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
|
||||
this.cellHPos.Weight = 0.20D;
|
||||
//
|
||||
this.cellHPos.Weight = 0.20134228498791382D;
|
||||
//
|
||||
// cellHBeschr
|
||||
//
|
||||
//
|
||||
this.cellHBeschr.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
|
||||
this.cellHBeschr.Font = new DevExpress.Drawing.DXFont("Arial", 7F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.cellHBeschr.Font = new DevExpress.Drawing.DXFont("Arial", 10F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.cellHBeschr.Name = "cellHBeschr";
|
||||
this.cellHBeschr.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1, 100F);
|
||||
this.cellHBeschr.StylePriority.UseFont = false;
|
||||
this.cellHBeschr.StylePriority.UseTextAlignment = false;
|
||||
this.cellHBeschr.Text = "1 Auftrag = 1 Person !!!";
|
||||
this.cellHBeschr.Text = "1 Auftrag = 1 Person";
|
||||
this.cellHBeschr.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
|
||||
this.cellHBeschr.Weight = 1.40D;
|
||||
//
|
||||
this.cellHBeschr.Weight = 1.3009808289431031D;
|
||||
//
|
||||
// cellHWert
|
||||
//
|
||||
//
|
||||
this.cellHWert.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(217)))), ((int)(((byte)(217)))), ((int)(((byte)(217)))));
|
||||
this.cellHWert.Font = new DevExpress.Drawing.DXFont("Arial", 7F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.cellHWert.Font = new DevExpress.Drawing.DXFont("Arial", 10F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.cellHWert.Name = "cellHWert";
|
||||
this.cellHWert.Padding = new DevExpress.XtraPrinting.PaddingInfo(1, 1, 1, 1, 100F);
|
||||
this.cellHWert.StylePriority.UseFont = false;
|
||||
this.cellHWert.StylePriority.UseTextAlignment = false;
|
||||
this.cellHWert.Text = "zur Abwendung einer\nErsatzfreiheitsstrafe";
|
||||
this.cellHWert.Text = "zur Abwendung einer Ersatzfreiheitsstrafe";
|
||||
this.cellHWert.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
|
||||
this.cellHWert.Weight = 0.40D;
|
||||
//
|
||||
this.cellHWert.Weight = 0.52658750876651672D;
|
||||
//
|
||||
// Detail
|
||||
//
|
||||
//
|
||||
this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.tblDetail});
|
||||
this.Detail.HeightF = 16F;
|
||||
this.Detail.HeightF = 20F;
|
||||
this.Detail.Name = "Detail";
|
||||
//
|
||||
//
|
||||
// tblDetail
|
||||
//
|
||||
this.tblDetail.AnchorVertical = ((DevExpress.XtraReports.UI.VerticalAnchorStyles)((DevExpress.XtraReports.UI.VerticalAnchorStyles.Top | DevExpress.XtraReports.UI.VerticalAnchorStyles.Bottom)));
|
||||
//
|
||||
this.tblDetail.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(166)))), ((int)(((byte)(166)))), ((int)(((byte)(166)))));
|
||||
this.tblDetail.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
|
||||
| DevExpress.XtraPrinting.BorderSide.Right)
|
||||
this.tblDetail.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
|
||||
| DevExpress.XtraPrinting.BorderSide.Right)
|
||||
| DevExpress.XtraPrinting.BorderSide.Bottom)));
|
||||
this.tblDetail.BorderWidth = 0.5F;
|
||||
this.tblDetail.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
|
||||
this.tblDetail.Name = "tblDetail";
|
||||
this.tblDetail.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
|
||||
this.tblDetailRow});
|
||||
this.tblDetail.SizeF = new System.Drawing.SizeF(1069F, 16F);
|
||||
//
|
||||
this.tblDetail.SizeF = new System.Drawing.SizeF(655F, 20F);
|
||||
//
|
||||
// tblDetailRow
|
||||
//
|
||||
//
|
||||
this.tblDetailRow.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
|
||||
this.cellPos,
|
||||
this.cellBeschr,
|
||||
this.cellWert});
|
||||
this.tblDetailRow.FormattingRules.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] {
|
||||
this.ruleHighlighted,
|
||||
this.ruleSectionHeader});
|
||||
this.tblDetailRow.Name = "tblDetailRow";
|
||||
this.tblDetailRow.Weight = 11.5D;
|
||||
//
|
||||
this.tblDetailRow.Weight = 14.375D;
|
||||
//
|
||||
// cellPos
|
||||
//
|
||||
//
|
||||
this.cellPos.CanGrow = false;
|
||||
this.cellPos.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] {
|
||||
new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[Position]")});
|
||||
@@ -268,21 +221,21 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
this.cellPos.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.cellPos.StylePriority.UseTextAlignment = false;
|
||||
this.cellPos.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
|
||||
this.cellPos.Weight = 0.20D;
|
||||
//
|
||||
this.cellPos.Weight = 0.20134228498791382D;
|
||||
//
|
||||
// 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;
|
||||
this.cellBeschr.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
|
||||
this.cellBeschr.Weight = 1.40D;
|
||||
//
|
||||
this.cellBeschr.Weight = 1.3009808289431031D;
|
||||
//
|
||||
// cellWert
|
||||
//
|
||||
//
|
||||
this.cellWert.CanGrow = false;
|
||||
this.cellWert.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] {
|
||||
new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[Wert]")});
|
||||
@@ -290,93 +243,66 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
this.cellWert.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.cellWert.StylePriority.UseTextAlignment = false;
|
||||
this.cellWert.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
|
||||
this.cellWert.Weight = 0.40D;
|
||||
//
|
||||
this.cellWert.Weight = 0.52658750876651672D;
|
||||
//
|
||||
// ruleHighlighted
|
||||
//
|
||||
this.ruleHighlighted.Condition = "[RowType] == 1";
|
||||
//
|
||||
this.ruleHighlighted.Formatting.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(230)))), ((int)(((byte)(153)))));
|
||||
this.ruleHighlighted.Name = "ruleHighlighted";
|
||||
//
|
||||
//
|
||||
// ruleSectionHeader
|
||||
//
|
||||
this.ruleSectionHeader.Condition = "[RowType] == 2";
|
||||
//
|
||||
this.ruleSectionHeader.Formatting.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(215)))), ((int)(((byte)(238)))));
|
||||
this.ruleSectionHeader.Formatting.Font = new DevExpress.Drawing.DXFont("Arial", 8F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.ruleSectionHeader.Name = "ruleSectionHeader";
|
||||
//
|
||||
// PageFooter
|
||||
//
|
||||
this.PageFooter.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.xrPageInfo1});
|
||||
this.PageFooter.HeightF = 26F;
|
||||
this.PageFooter.Name = "PageFooter";
|
||||
//
|
||||
// xrPageInfo1
|
||||
//
|
||||
this.xrPageInfo1.LocationFloat = new DevExpress.Utils.PointFloat(868.9998F, 10F);
|
||||
this.xrPageInfo1.Name = "xrPageInfo1";
|
||||
this.xrPageInfo1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.xrPageInfo1.SizeF = new System.Drawing.SizeF(200F, 16F);
|
||||
this.xrPageInfo1.StylePriority.UseTextAlignment = false;
|
||||
this.xrPageInfo1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
|
||||
//
|
||||
//
|
||||
// TopMargin
|
||||
//
|
||||
//
|
||||
this.TopMargin.HeightF = 50F;
|
||||
this.TopMargin.Name = "TopMargin";
|
||||
//
|
||||
//
|
||||
// BottomMargin
|
||||
//
|
||||
//
|
||||
this.BottomMargin.HeightF = 50F;
|
||||
this.BottomMargin.Name = "BottomMargin";
|
||||
//
|
||||
// paramVermittlungsstelle
|
||||
//
|
||||
this.paramVermittlungsstelle.Description = "Vermittlungsstelle (Ort)";
|
||||
this.paramVermittlungsstelle.Name = "Vermittlungsstelle";
|
||||
//
|
||||
// paramStaatsanwaltschaft
|
||||
//
|
||||
this.paramStaatsanwaltschaft.Description = "Staatsanwaltschaft / LG-Bezirk";
|
||||
this.paramStaatsanwaltschaft.Name = "Staatsanwaltschaft";
|
||||
this.paramStaatsanwaltschaft.ValueInfo = "GESAMT";
|
||||
//
|
||||
// paramBerichtszeitraum
|
||||
//
|
||||
this.paramBerichtszeitraum.Description = "Berichtszeitraum (Stichtag)";
|
||||
this.paramBerichtszeitraum.Name = "Berichtszeitraum";
|
||||
this.paramBerichtszeitraum.Type = typeof(System.DateTime);
|
||||
this.paramBerichtszeitraum.ValueInfo = "2026-03-31";
|
||||
//
|
||||
//
|
||||
// bindingSource1
|
||||
//
|
||||
this.bindingSource1.DataSource = typeof(BeWo.Report.DefaultReports.Straffaelligenhilfe.TgvStatistikReportRow);
|
||||
//
|
||||
// xrLabel1
|
||||
//
|
||||
this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(65F, 92.99998F);
|
||||
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:";
|
||||
//
|
||||
// TgvStatistikReport
|
||||
//
|
||||
//
|
||||
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
|
||||
this.TopMargin,
|
||||
this.ReportHeader,
|
||||
this.PageHeader,
|
||||
this.Detail,
|
||||
this.PageFooter,
|
||||
this.BottomMargin});
|
||||
this.ComponentStorage.AddRange(new System.ComponentModel.IComponent[] {
|
||||
this.bindingSource1});
|
||||
this.DataSource = this.bindingSource1;
|
||||
this.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] {
|
||||
this.ruleHighlighted,
|
||||
this.ruleSectionHeader});
|
||||
this.Landscape = true;
|
||||
this.Margins = new DevExpress.Drawing.DXMargins(50F, 50F, 50F, 50F);
|
||||
this.PageHeight = 827;
|
||||
this.PageWidth = 1169;
|
||||
this.Font = new DevExpress.Drawing.DXFont("Arial", 10F);
|
||||
this.Margins = new DevExpress.Drawing.DXMargins(80F, 50F, 50F, 50F);
|
||||
this.PageHeight = 1169;
|
||||
this.PageWidth = 827;
|
||||
this.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.A4;
|
||||
this.Parameters.AddRange(new DevExpress.XtraReports.Parameters.Parameter[] {
|
||||
this.paramVermittlungsstelle,
|
||||
this.paramStaatsanwaltschaft,
|
||||
this.paramBerichtszeitraum});
|
||||
this.Version = "23.2";
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
|
||||
xrWatermark1.Id = "Watermark1";
|
||||
this.Watermarks.Add(xrWatermark1);
|
||||
((System.ComponentModel.ISupportInitialize)(this.tblHeader)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tblDetail)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -389,24 +315,10 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader;
|
||||
private DevExpress.XtraReports.UI.PageHeaderBand PageHeader;
|
||||
private DevExpress.XtraReports.UI.DetailBand Detail;
|
||||
private DevExpress.XtraReports.UI.PageFooterBand PageFooter;
|
||||
|
||||
// Report-Header Labels
|
||||
private DevExpress.XtraReports.UI.XRLabel lblVersion;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblTitel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblVermLabel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblVermWert;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblStaLabel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblStaWert;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblBerLabel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblBerWert;
|
||||
|
||||
// Page-Header Tabelle
|
||||
private DevExpress.XtraReports.UI.XRTable tblHeader;
|
||||
private DevExpress.XtraReports.UI.XRTableRow tblHeaderRow;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellHPos;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellHBeschr;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellHWert;
|
||||
|
||||
// Detail-Tabelle
|
||||
private DevExpress.XtraReports.UI.XRTable tblDetail;
|
||||
@@ -415,16 +327,15 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellBeschr;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellWert;
|
||||
|
||||
// Seitenzahl
|
||||
private DevExpress.XtraReports.UI.XRPageInfo xrPageInfo1;
|
||||
|
||||
// Bedingte Formatierung
|
||||
private DevExpress.XtraReports.UI.FormattingRule ruleHighlighted;
|
||||
private DevExpress.XtraReports.UI.FormattingRule ruleSectionHeader;
|
||||
|
||||
// Parameter
|
||||
private DevExpress.XtraReports.Parameters.Parameter paramVermittlungsstelle;
|
||||
private DevExpress.XtraReports.Parameters.Parameter paramStaatsanwaltschaft;
|
||||
private DevExpress.XtraReports.Parameters.Parameter paramBerichtszeitraum;
|
||||
private DevExpress.XtraReports.UI.XRTable tblHeader;
|
||||
private DevExpress.XtraReports.UI.XRTableRow tblHeaderRow;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellHPos;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellHBeschr;
|
||||
private DevExpress.XtraReports.UI.XRTableCell cellHWert;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblBerichtszeitraum;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,9 +27,10 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
/// <summary>
|
||||
/// Setzt die Datenquelle des Reports.
|
||||
/// </summary>
|
||||
public void SetReportDataSource(List<TgvStatistikReportRow> rows)
|
||||
public void SetReportDataSource(TgvStatistic statistik)
|
||||
{
|
||||
this.bindingSource1.DataSource = rows;
|
||||
lblBerichtszeitraum.Text = String.Format("{0:dd.MM.yyyy}-{1:dd.MM.yyyy}", statistik.StartDate, statistik.EndDate);
|
||||
this.bindingSource1.DataSource = CreateRows(statistik);
|
||||
}
|
||||
|
||||
// ── Factory ─────────────────────────────────────────────────────────────
|
||||
@@ -58,15 +59,15 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
// ── Auftragsbestand ────────────────────────────────────────────
|
||||
RowInt("0.1",
|
||||
"Anzahl der aus dem vorhergehenden Berichtszeitraum übernommenen offenen Aufträge",
|
||||
tgv.Anzahl01),
|
||||
tgv.AnzahlAlt),
|
||||
|
||||
RowInt("0.2",
|
||||
"Anzahl der im aktuellen Berichtszeitraum erteilten Aufträge",
|
||||
tgv.Anzahl02, TgvReportRowType.Highlighted),
|
||||
tgv.AnzahlNeu, TgvReportRowType.Highlighted),
|
||||
|
||||
RowInt("1.",
|
||||
"Anzahl der insges. erteilten Aufträge (Summe Zeilen 0.1 + 0.2)",
|
||||
tgv.Anzahl1, TgvReportRowType.Highlighted),
|
||||
tgv.AnzahlInsgesamt, TgvReportRowType.Highlighted),
|
||||
|
||||
Row("2.",
|
||||
"Höhe der Geldstrafe in € (gem. Zeile 0.2)",
|
||||
@@ -94,14 +95,14 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
"Summe der nachgewiesenen (Raten) oder Einmalzahlungen in €",
|
||||
tgv.Betrag4_1.ToString("N2")),
|
||||
|
||||
RowInt("4.2.",
|
||||
Row("4.2.",
|
||||
"Anzahl der geleisteten Arbeitsstunden (in TGV)",
|
||||
tgv.Anzahl4_2),
|
||||
tgv.Anzahl4_2.ToString("N2")),
|
||||
|
||||
// ── Hafttage / Aufsuchen ───────────────────────────────────────
|
||||
Row("5.",
|
||||
"Anzahl der vermiedenen Hafttage (nur durch TGV)",
|
||||
tgv.Betrag5.ToString("N2"), TgvReportRowType.Highlighted),
|
||||
tgv.Anzahl5.ToString("N2"), TgvReportRowType.Highlighted),
|
||||
|
||||
RowInt("6.",
|
||||
"Klient wurde durch BGBW aufgesucht (gem. Zeile 0.2)",
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -29,16 +29,9 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
|
||||
DevExpress.XtraReports.UI.XRWatermark xrWatermark1 = new DevExpress.XtraReports.UI.XRWatermark();
|
||||
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
|
||||
this.lblVersion = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblTitel = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblVermLabel = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblVermWert = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblStaLabel = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblStaWert = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblBerLabel = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.lblBerWert = new DevExpress.XtraReports.UI.XRLabel();
|
||||
this.PageHeader = new DevExpress.XtraReports.UI.PageHeaderBand();
|
||||
this.tblHeader = new DevExpress.XtraReports.UI.XRTable();
|
||||
this.tblHeaderRow1 = new DevExpress.XtraReports.UI.XRTableRow();
|
||||
@@ -82,107 +75,41 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
this.paramVermittlungsstelle = new DevExpress.XtraReports.Parameters.Parameter();
|
||||
this.paramStaatsanwaltschaft = new DevExpress.XtraReports.Parameters.Parameter();
|
||||
this.paramBerichtszeitraum = new DevExpress.XtraReports.Parameters.Parameter();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
|
||||
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();
|
||||
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
||||
//
|
||||
// bindingSource1
|
||||
//
|
||||
this.bindingSource1.DataSource = typeof(BeWo.Report.DefaultReports.Straffaelligenhilfe.VgaStatistikReportRow);
|
||||
//
|
||||
// ReportHeader
|
||||
//
|
||||
this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
this.lblVersion,
|
||||
this.lblTitel,
|
||||
this.lblVermLabel,
|
||||
this.lblVermWert,
|
||||
this.lblStaLabel,
|
||||
this.lblStaWert,
|
||||
this.lblBerichtszeitraum,
|
||||
this.xrLabel1,
|
||||
this.lblBerLabel,
|
||||
this.lblBerWert});
|
||||
this.ReportHeader.HeightF = 84F;
|
||||
this.lblTitel});
|
||||
this.ReportHeader.HeightF = 104.6667F;
|
||||
this.ReportHeader.Name = "ReportHeader";
|
||||
//
|
||||
// lblVersion
|
||||
//
|
||||
this.lblVersion.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblVersion.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
|
||||
this.lblVersion.Name = "lblVersion";
|
||||
this.lblVersion.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblVersion.SizeF = new System.Drawing.SizeF(80F, 18F);
|
||||
this.lblVersion.Text = "V 2014.1";
|
||||
//
|
||||
// lblTitel
|
||||
//
|
||||
this.lblTitel.Font = new DevExpress.Drawing.DXFont("Arial", 8F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.lblTitel.Font = new DevExpress.Drawing.DXFont("Arial", 12F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.lblTitel.LocationFloat = new DevExpress.Utils.PointFloat(80F, 0F);
|
||||
this.lblTitel.Name = "lblTitel";
|
||||
this.lblTitel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblTitel.SizeF = new System.Drawing.SizeF(989F, 18F);
|
||||
this.lblTitel.SizeF = new System.Drawing.SizeF(989F, 24.66667F);
|
||||
this.lblTitel.StylePriority.UseFont = false;
|
||||
this.lblTitel.StylePriority.UseTextAlignment = false;
|
||||
this.lblTitel.Text = "Statistik der Ableistung gemeinnütziger Arbeit";
|
||||
this.lblTitel.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
|
||||
//
|
||||
// lblVermLabel
|
||||
//
|
||||
this.lblVermLabel.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblVermLabel.LocationFloat = new DevExpress.Utils.PointFloat(50F, 20F);
|
||||
this.lblVermLabel.Name = "lblVermLabel";
|
||||
this.lblVermLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblVermLabel.SizeF = new System.Drawing.SizeF(319F, 18F);
|
||||
this.lblVermLabel.Text = "Vermittlungsstelle (Ort):";
|
||||
//
|
||||
// lblVermWert
|
||||
//
|
||||
this.lblVermWert.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] {
|
||||
new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[Parameters.Vermittlungsstelle]")});
|
||||
this.lblVermWert.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblVermWert.LocationFloat = new DevExpress.Utils.PointFloat(369F, 20F);
|
||||
this.lblVermWert.Name = "lblVermWert";
|
||||
this.lblVermWert.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblVermWert.SizeF = new System.Drawing.SizeF(300F, 18F);
|
||||
//
|
||||
// lblStaLabel
|
||||
//
|
||||
this.lblStaLabel.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblStaLabel.LocationFloat = new DevExpress.Utils.PointFloat(50F, 40F);
|
||||
this.lblStaLabel.Name = "lblStaLabel";
|
||||
this.lblStaLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblStaLabel.SizeF = new System.Drawing.SizeF(319F, 18F);
|
||||
this.lblStaLabel.Text = "Staatsanwaltschaft / Landgerichtsbezirk:";
|
||||
//
|
||||
// lblStaWert
|
||||
//
|
||||
this.lblStaWert.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] {
|
||||
new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "[Parameters.Staatsanwaltschaft]")});
|
||||
this.lblStaWert.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblStaWert.LocationFloat = new DevExpress.Utils.PointFloat(369F, 40F);
|
||||
this.lblStaWert.Name = "lblStaWert";
|
||||
this.lblStaWert.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblStaWert.SizeF = new System.Drawing.SizeF(300F, 18F);
|
||||
//
|
||||
// lblBerLabel
|
||||
//
|
||||
this.lblBerLabel.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblBerLabel.LocationFloat = new DevExpress.Utils.PointFloat(50F, 60F);
|
||||
this.lblBerLabel.Name = "lblBerLabel";
|
||||
this.lblBerLabel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblBerLabel.SizeF = new System.Drawing.SizeF(319F, 18F);
|
||||
this.lblBerLabel.Text = "Berichtszeitraum:";
|
||||
//
|
||||
// lblBerWert
|
||||
//
|
||||
this.lblBerWert.ExpressionBindings.AddRange(new DevExpress.XtraReports.UI.ExpressionBinding[] {
|
||||
new DevExpress.XtraReports.UI.ExpressionBinding("BeforePrint", "Text", "FormatString(\'{0:dd.MM.yyyy}\', [Parameters.Berichtszeitraum])")});
|
||||
this.lblBerWert.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.lblBerWert.LocationFloat = new DevExpress.Utils.PointFloat(369F, 60F);
|
||||
this.lblBerWert.Name = "lblBerWert";
|
||||
this.lblBerWert.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
|
||||
this.lblBerWert.SizeF = new System.Drawing.SizeF(200F, 18F);
|
||||
//
|
||||
// PageHeader
|
||||
//
|
||||
this.PageHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
|
||||
@@ -434,7 +361,6 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
//
|
||||
// tblDetail
|
||||
//
|
||||
this.tblDetail.AnchorVertical = ((DevExpress.XtraReports.UI.VerticalAnchorStyles)((DevExpress.XtraReports.UI.VerticalAnchorStyles.Top | DevExpress.XtraReports.UI.VerticalAnchorStyles.Bottom)));
|
||||
this.tblDetail.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(166)))), ((int)(((byte)(166)))), ((int)(((byte)(166)))));
|
||||
this.tblDetail.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
|
||||
| DevExpress.XtraPrinting.BorderSide.Right)
|
||||
@@ -562,13 +488,11 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
//
|
||||
// ruleHighlighted
|
||||
//
|
||||
this.ruleHighlighted.Condition = "[RowType] == 1";
|
||||
this.ruleHighlighted.Formatting.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(230)))), ((int)(((byte)(153)))));
|
||||
this.ruleHighlighted.Name = "ruleHighlighted";
|
||||
//
|
||||
// ruleSectionHeader
|
||||
//
|
||||
this.ruleSectionHeader.Condition = "[RowType] == 2";
|
||||
this.ruleSectionHeader.Formatting.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(189)))), ((int)(((byte)(215)))), ((int)(((byte)(238)))));
|
||||
this.ruleSectionHeader.Formatting.Font = new DevExpress.Drawing.DXFont("Arial", 8F, DevExpress.Drawing.DXFontStyle.Bold);
|
||||
this.ruleSectionHeader.Name = "ruleSectionHeader";
|
||||
@@ -617,6 +541,54 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
this.paramBerichtszeitraum.Type = typeof(System.DateTime);
|
||||
this.paramBerichtszeitraum.ValueInfo = "2026-03-20";
|
||||
//
|
||||
// bindingSource1
|
||||
//
|
||||
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[] {
|
||||
@@ -626,8 +598,10 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
this.Detail,
|
||||
this.PageFooter,
|
||||
this.BottomMargin});
|
||||
this.ComponentStorage.AddRange(new System.ComponentModel.IComponent[] {
|
||||
this.bindingSource1});
|
||||
this.DataSource = this.bindingSource1;
|
||||
this.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
|
||||
this.Font = new DevExpress.Drawing.DXFont("Arial", 10F);
|
||||
this.Landscape = true;
|
||||
this.Margins = new DevExpress.Drawing.DXMargins(50F, 50F, 50F, 50F);
|
||||
this.PageHeight = 827;
|
||||
@@ -638,9 +612,11 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
this.paramStaatsanwaltschaft,
|
||||
this.paramBerichtszeitraum});
|
||||
this.Version = "23.2";
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
|
||||
xrWatermark1.Id = "Watermark1";
|
||||
this.Watermarks.Add(xrWatermark1);
|
||||
((System.ComponentModel.ISupportInitialize)(this.tblHeader)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.tblDetail)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
|
||||
|
||||
}
|
||||
@@ -656,16 +632,7 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
private DevExpress.XtraReports.UI.PageHeaderBand PageHeader;
|
||||
private DevExpress.XtraReports.UI.DetailBand Detail;
|
||||
private DevExpress.XtraReports.UI.PageFooterBand PageFooter;
|
||||
|
||||
// Report-Header Labels
|
||||
private DevExpress.XtraReports.UI.XRLabel lblVersion;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblTitel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblVermLabel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblVermWert;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblStaLabel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblStaWert;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblBerLabel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblBerWert;
|
||||
|
||||
// Page-Header Tabelle
|
||||
private DevExpress.XtraReports.UI.XRTable tblHeader;
|
||||
@@ -714,5 +681,10 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
private DevExpress.XtraReports.Parameters.Parameter paramVermittlungsstelle;
|
||||
private DevExpress.XtraReports.Parameters.Parameter paramStaatsanwaltschaft;
|
||||
private DevExpress.XtraReports.Parameters.Parameter paramBerichtszeitraum;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblVermLabel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblStaLabel;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblBerichtszeitraum;
|
||||
private DevExpress.XtraReports.UI.XRLabel xrLabel1;
|
||||
private DevExpress.XtraReports.UI.XRLabel lblBerLabel;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,9 +27,16 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
/// <summary>
|
||||
/// Setzt die Datenquelle des Reports.
|
||||
/// </summary>
|
||||
public void SetReportDataSource(List<VgaStatistikReportRow> rows)
|
||||
public void SetReportDataSource(VgaStatistic efs,
|
||||
VgaStatistic auflage153a,
|
||||
VgaStatistic auflage153aSteuerstraf,
|
||||
VgaStatistic bewOhne,
|
||||
VgaStatistic bewMit,
|
||||
VgaStatistic gnadenverfahren)
|
||||
{
|
||||
this.bindingSource1.DataSource = rows;
|
||||
lblBerichtszeitraum.Text = String.Format("{0:dd.MM.yyyy}-{1:dd.MM.yyyy}", efs.StartDate, efs.EndDate);
|
||||
this.bindingSource1.DataSource = CreateRows(efs, auflage153a, auflage153aSteuerstraf, bewOhne, bewMit, gnadenverfahren);
|
||||
|
||||
}
|
||||
|
||||
// ── Factory ─────────────────────────────────────────────────────────────
|
||||
@@ -55,13 +62,13 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
VgaStatistic gnadenverfahren)
|
||||
{
|
||||
// Kurzform: Zähle eine Eigenschaft über alle 6 Kategorien
|
||||
int Sum(Func<VgaStatistic, int> f) =>
|
||||
decimal Sum(Func<VgaStatistic, decimal> f) =>
|
||||
f(efs) + f(auflage153a) + f(auflage153aSteuerstraf) +
|
||||
f(bewOhne) + f(bewMit) + f(gnadenverfahren);
|
||||
|
||||
// Normale Datenzeile
|
||||
VgaStatistikReportRow Row(string pos, string beschr,
|
||||
Func<VgaStatistic, int> f,
|
||||
Func<VgaStatistic, decimal> f,
|
||||
VgaReportRowType type = VgaReportRowType.Normal) =>
|
||||
VgaStatistikReportRow.FromValues(pos, beschr,
|
||||
f(efs), f(auflage153a), f(auflage153aSteuerstraf),
|
||||
@@ -72,15 +79,15 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
// ── Auftragsbestand ────────────────────────────────────────────
|
||||
Row("0.1",
|
||||
"Anzahl der aus dem vorhergehenden Berichtszeitraum übernommenen offenen Aufträge",
|
||||
s => s.Anzahl01),
|
||||
s => s.AnzahlAlt),
|
||||
|
||||
Row("0.2",
|
||||
"Anzahl der im aktuellen Berichtszeitraum erteilten Aufträge",
|
||||
s => s.Anzahl02, VgaReportRowType.Highlighted),
|
||||
s => s.AnzahlNeu, VgaReportRowType.Highlighted),
|
||||
|
||||
Row("1.",
|
||||
"Anzahl der insges. erteilten Aufträge (Summe Zeilen 0.1 + 0.2)",
|
||||
s => s.Anzahl1, VgaReportRowType.Highlighted),
|
||||
s => s.AnzahlInsgesamt, VgaReportRowType.Highlighted),
|
||||
|
||||
Row("1.1.",
|
||||
"darunter mehrfach erteilte Aufträge zur selben Person und zum selben Aktenzeichen (Fallzahl v. Zeile 1)",
|
||||
@@ -270,21 +277,21 @@ namespace BeWo.Report.DefaultReports.Straffaelligenhilfe
|
||||
/// </summary>
|
||||
internal static VgaStatistikReportRow FromValues(
|
||||
string position, string beschreibung,
|
||||
int valEFS, int valA153, int valA153s, int valBewO, int valBewM, int valGnad,
|
||||
decimal valEFS, decimal valA153, decimal valA153s, decimal valBewO, decimal valBewM, decimal valGnad,
|
||||
VgaReportRowType rowType = VgaReportRowType.Normal)
|
||||
{
|
||||
int total = valEFS + valA153 + valA153s + valBewO + valBewM + valGnad;
|
||||
decimal total = valEFS + valA153 + valA153s + valBewO + valBewM + valGnad;
|
||||
return new VgaStatistikReportRow
|
||||
{
|
||||
Position = position,
|
||||
Beschreibung = beschreibung,
|
||||
ColInsgesamt = total.ToString("N0"),
|
||||
ColEFS = valEFS.ToString("N0"),
|
||||
ColAuflage153a = valA153.ToString("N0"),
|
||||
ColAuflage153aSteuerstraf = valA153s.ToString("N0"),
|
||||
ColBewOhne = valBewO.ToString("N0"),
|
||||
ColBewMit = valBewM.ToString("N0"),
|
||||
ColGnadenverfahren = valGnad.ToString("N0"),
|
||||
ColInsgesamt = total.ToString("0.##"),
|
||||
ColEFS = valEFS.ToString("0.##"),
|
||||
ColAuflage153a = valA153.ToString("0.##"),
|
||||
ColAuflage153aSteuerstraf = valA153s.ToString("0.##"),
|
||||
ColBewOhne = valBewO.ToString("0.##"),
|
||||
ColBewMit = valBewM.ToString("0.##"),
|
||||
ColGnadenverfahren = valGnad.ToString("0.##"),
|
||||
RowType = rowType
|
||||
};
|
||||
}
|
||||
|
||||
@@ -277,6 +277,12 @@
|
||||
<Compile Include="DefaultReports\SBDEmployeeReport.Designer.cs">
|
||||
<DependentUpon>SBDEmployeeReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DefaultReports\Straffaelligenhilfe\AsaStatistikReport.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DefaultReports\Straffaelligenhilfe\AsaStatistikReport.Designer.cs">
|
||||
<DependentUpon>AsaStatistikReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DefaultReports\TeamauslastungNachMitarbeiter.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
@@ -295,17 +301,11 @@
|
||||
<Compile Include="DefaultReports\Straffaelligenhilfe\VgaStatistikReport.Designer.cs">
|
||||
<DependentUpon>VgaStatistikReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DefaultReports\Straffaelligenhilfe\TgvStatistikReport.cs">
|
||||
<Compile Include="DefaultReports\Straffaelligenhilfe\TgvStatistikReport.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DefaultReports\Straffaelligenhilfe\TgvStatistikReport.Designer.cs">
|
||||
<DependentUpon>TgvStatistikReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DefaultReports\Straffaelligenhilfe\AsaStatistikReport.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DefaultReports\Straffaelligenhilfe\AsaStatistikReport.Designer.cs">
|
||||
<DependentUpon>AsaStatistikReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DefaultReports\VorlageReport.cs">
|
||||
<SubType>Component</SubType>
|
||||
@@ -713,6 +713,12 @@
|
||||
<DependentUpon>SBDEmployeeReport.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="DefaultReports\Straffaelligenhilfe\AsaStatistikReport.resx">
|
||||
<DependentUpon>AsaStatistikReport.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="DefaultReports\Straffaelligenhilfe\TgvStatistikReport.resx">
|
||||
<DependentUpon>TgvStatistikReport.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="DefaultReports\TeamauslastungNachMitarbeiter.resx">
|
||||
<DependentUpon>TeamauslastungNachMitarbeiter.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
Reference in New Issue
Block a user