Merge branch 'master' of ssh://float.beyondsoft.de/git/beyondSoft/BeWo into master

This commit is contained in:
Marcel Hirschle
2022-05-10 10:14:18 +02:00
18 changed files with 674 additions and 347 deletions

View File

@@ -134,9 +134,13 @@ namespace GrundsteinEV
foreach (var ap in c2s.ApprovalPeriodList)
{
if (ap.ApprovedBEPerInterval.HasValue)
if (ap.ApprovedBETotal.HasValue)
{
ro.ApprovedFLSTotal = ap.ApprovedBETotal.Value;
ro.ApprovedFLSPerWeekTotal = ap.ApprovedBETotal.Value;
}
else if (ap.ApprovedBEPerInterval.HasValue)
{
ro.ApprovedFLSPerWeekTotal = ap.ApprovedBEPerInterval.Value;
}
}
}

View File

@@ -184,7 +184,7 @@ namespace GrundsteinEV
// xrTableCell2
//
this.xrTableCell2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.FLSQualifiedString")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.FLSQualifiedString", "{0:#.00}")});
this.xrTableCell2.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrTableCell2.Name = "xrTableCell2";
this.xrTableCell2.StylePriority.UseFont = false;

View File

@@ -37,20 +37,24 @@ namespace GrundsteinEV
//sd.Notice5 = String.Format("{0} Teilnehmer", sd.CustomerCount);
hatGruppen = true;
}
if (sd.Minutes == 0)
sd.FLSQualifiedString = "";
else
{
sd.FLSQualifiedString = String.Format("{0:0.##}", sd.Minutes);
pRO.TotalFLMQualified += sd.Minutes;
}
servicesBillable.Add(sd);
}
if (sd.Minutes == 0)
else if (sd.Minutes == 0)
{
sd.StartDateString = "";
sd.FLSQualifiedString = "";
servicesBillable.Add(sd);
}
else
{
sd.FLSQualifiedString = String.Format("{0:0.##}", sd.Minutes);
pRO.TotalFLMQualified += sd.Minutes;
}
}
if (pRO.TotalFLMQualified != 0)
pRO.TotalFLMQualifiedString = String.Format("{0:0.##}", pRO.TotalFLMQualified);

View File

@@ -35,31 +35,32 @@ namespace GrundsteinEV
{
hatGruppen = true;
}
if (sd.Minutes == 0)
sd.FLSQualifiedString = "";
else
{
sd.FLSQualifiedString = String.Format("{0:0.##}", sd.Minutes);
pRO.TotalFLMQualified += sd.Minutes;
}
servicesBillable.Add(sd);
}
if (sd.Minutes == 0)
else if (sd.Minutes == 0)
{
sd.StartDateString = "";
sd.FLSQualifiedString = "";
servicesBillable.Add(sd);
}
else
{
sd.FLSQualifiedString = String.Format("{0:0.##}", sd.Minutes);
pRO.TotalFLMQualified += sd.Minutes;
}
}
}
if (pRO.TotalFLMQualified != 0)
pRO.TotalFLMQualifiedString = String.Format("{0:0.##}", pRO.TotalFLMQualified);
else
pRO.TotalFLMQualifiedString = "";
pRO.Services = servicesBillable;
}
bindingSource1.DataSource = pRO;
}

View File

@@ -50,7 +50,7 @@ namespace GrundsteinEV
this.xrLabel11 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel10 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel6 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel();
this.lblAdresse = new DevExpress.XtraReports.UI.XRLabel();
this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand();
this.Detail1 = new DevExpress.XtraReports.UI.DetailBand();
this.xrTable5 = new DevExpress.XtraReports.UI.XRTable();
@@ -128,7 +128,7 @@ namespace GrundsteinEV
this.xrLabel11,
this.xrLabel10,
this.xrLabel6,
this.xrLabel7});
this.lblAdresse});
this.Page1.Font = new System.Drawing.Font("Verdana", 10F);
this.Page1.HeightF = 473.115F;
this.Page1.Name = "Page1";
@@ -327,19 +327,18 @@ namespace GrundsteinEV
this.xrLabel6.Text = "Telefon: 05222/40951\r\nTelefax: 05222/960873\r\nEmail: info@verein-grundstein.de\r\nFr" +
"au Brokmeier / Frau Wasko";
//
// xrLabel7
// lblAdresse
//
this.xrLabel7.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrLabel7.Font = new System.Drawing.Font("Verdana", 10F);
this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(0F, 118.1667F);
this.xrLabel7.Multiline = true;
this.xrLabel7.Name = "xrLabel7";
this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel7.SizeF = new System.Drawing.SizeF(317F, 70F);
this.xrLabel7.StylePriority.UseBorders = false;
this.xrLabel7.StylePriority.UseFont = false;
this.xrLabel7.Text = "[RecipientOrganisation]\r\n[RecipientContactPerson]\r\n[RecipientDivision]\r\n[Recipien" +
"tStreet]\r\n";
this.lblAdresse.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.lblAdresse.Font = new System.Drawing.Font("Verdana", 10F);
this.lblAdresse.LocationFloat = new DevExpress.Utils.PointFloat(0F, 118.1667F);
this.lblAdresse.Multiline = true;
this.lblAdresse.Name = "lblAdresse";
this.lblAdresse.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblAdresse.SizeF = new System.Drawing.SizeF(317F, 70F);
this.lblAdresse.StylePriority.UseBorders = false;
this.lblAdresse.StylePriority.UseFont = false;
this.lblAdresse.Text = "\r\n";
//
// DetailReport
//
@@ -697,7 +696,7 @@ namespace GrundsteinEV
private DevExpress.XtraReports.UI.XRTableCell xrTableCell44;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell45;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell47;
private DevExpress.XtraReports.UI.XRLabel xrLabel7;
private DevExpress.XtraReports.UI.XRLabel lblAdresse;
private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter1;
private DevExpress.XtraReports.UI.XRLabel xrLabel6;
private DevExpress.XtraReports.UI.XRLabel xrLabel10;

View File

@@ -1,4 +1,5 @@
using System;
using System.Text;
using BeWo.Report;
using BeWo.Report.ReportObjects;
@@ -15,6 +16,31 @@ namespace GrundsteinEV
public void SetReportDataSource(ServiceInvoiceRO pRO)
{
StringBuilder sb = new StringBuilder();
if (!String.IsNullOrEmpty(pRO.RecipientAddressLine1) && !String.IsNullOrEmpty(pRO.RecipientAddressLine1.Trim()) && pRO.RecipientOrganisation.Contains(pRO.CustomerLastName))
{
sb.AppendLine(pRO.RecipientAddressLine1);
}
else if (!String.IsNullOrEmpty(pRO.RecipientOrganisation) && !String.IsNullOrEmpty(pRO.RecipientOrganisation.Trim()))
{
sb.AppendLine(pRO.RecipientOrganisation);
}
if (!String.IsNullOrEmpty(pRO.RecipientContactPerson) && !String.IsNullOrEmpty(pRO.RecipientContactPerson.Trim()))
{
sb.AppendLine(pRO.RecipientContactPerson);
}
if (!String.IsNullOrEmpty(pRO.RecipientDivision) && !String.IsNullOrEmpty(pRO.RecipientDivision.Trim()))
{
sb.AppendLine(pRO.RecipientDivision);
}
if (!String.IsNullOrEmpty(pRO.RecipientStreet) && !String.IsNullOrEmpty(pRO.RecipientStreet.Trim()))
{
sb.AppendLine(pRO.RecipientStreet);
}
lblAdresse.Text = sb.ToString();
this.bindingSource1.DataSource = pRO;
}
}

View File

@@ -48,6 +48,13 @@ namespace PerspektivenEV
this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel();
this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand();
this.Detail1 = new DevExpress.XtraReports.UI.DetailBand();
this.xrTable6 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow25 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell42 = new DevExpress.XtraReports.UI.XRTableCell();
this.lblHourlyRate = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell45 = new DevExpress.XtraReports.UI.XRTableCell();
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.xrTable5 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow23 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell();
@@ -59,15 +66,7 @@ namespace PerspektivenEV
this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell();
this.DetailReport2 = new DevExpress.XtraReports.UI.DetailReportBand();
this.Detail3 = new DevExpress.XtraReports.UI.DetailBand();
this.xrTable6 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow25 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell42 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell45 = new DevExpress.XtraReports.UI.XRTableCell();
this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand();
this.GroupFooter2 = new DevExpress.XtraReports.UI.GroupFooterBand();
this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel();
this.xrTable1 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow6 = new DevExpress.XtraReports.UI.XRTableRow();
@@ -75,8 +74,8 @@ namespace PerspektivenEV
this.xrTableCell9 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.xrTable5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
@@ -266,7 +265,8 @@ namespace PerspektivenEV
//
this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
this.Detail1,
this.DetailReport2});
this.GroupHeader1,
this.GroupFooter2});
this.DetailReport.DataMember = "ServiceInvoicePeriods";
this.DetailReport.DataSource = this.bindingSource1;
this.DetailReport.Level = 0;
@@ -275,12 +275,107 @@ namespace PerspektivenEV
// Detail1
//
this.Detail1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrTable5});
this.xrTable6});
this.Detail1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Detail1.HeightF = 50F;
this.Detail1.HeightF = 25F;
this.Detail1.Name = "Detail1";
this.Detail1.StylePriority.UseFont = false;
//
// xrTable6
//
this.xrTable6.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
this.xrTable6.Name = "xrTable6";
this.xrTable6.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
this.xrTableRow25});
this.xrTable6.SizeF = new System.Drawing.SizeF(631F, 25F);
this.xrTable6.StylePriority.UseFont = false;
//
// xrTableRow25
//
this.xrTableRow25.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
this.xrTableCell2,
this.xrTableCell42,
this.lblHourlyRate,
this.xrTableCell45});
this.xrTableRow25.Name = "xrTableRow25";
this.xrTableRow25.Weight = 1D;
//
// xrTableCell2
//
this.xrTableCell2.BorderColor = System.Drawing.Color.DarkGray;
this.xrTableCell2.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrTableCell2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ApprovedHours", "{0:n2}")});
this.xrTableCell2.Font = new System.Drawing.Font("Calibri", 11F);
this.xrTableCell2.Name = "xrTableCell2";
this.xrTableCell2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
this.xrTableCell2.StylePriority.UseBorderColor = false;
this.xrTableCell2.StylePriority.UseBorders = false;
this.xrTableCell2.StylePriority.UseFont = false;
this.xrTableCell2.StylePriority.UsePadding = false;
this.xrTableCell2.StylePriority.UseTextAlignment = false;
this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
this.xrTableCell2.Weight = 0.57356212115408312D;
//
// xrTableCell42
//
this.xrTableCell42.BorderColor = System.Drawing.Color.DarkGray;
this.xrTableCell42.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrTableCell42.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.Notice")});
this.xrTableCell42.Font = new System.Drawing.Font("Calibri", 11F);
this.xrTableCell42.Name = "xrTableCell42";
this.xrTableCell42.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
this.xrTableCell42.StylePriority.UseBorderColor = false;
this.xrTableCell42.StylePriority.UseBorders = false;
this.xrTableCell42.StylePriority.UseFont = false;
this.xrTableCell42.StylePriority.UsePadding = false;
this.xrTableCell42.StylePriority.UseTextAlignment = false;
this.xrTableCell42.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
this.xrTableCell42.Weight = 1.2396351551486897D;
//
// lblHourlyRate
//
this.lblHourlyRate.BorderColor = System.Drawing.Color.DarkGray;
this.lblHourlyRate.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.lblHourlyRate.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ApprovedBE", "{0:0.00} €")});
this.lblHourlyRate.Font = new System.Drawing.Font("Calibri", 11F);
this.lblHourlyRate.Name = "lblHourlyRate";
this.lblHourlyRate.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
this.lblHourlyRate.StylePriority.UseBorderColor = false;
this.lblHourlyRate.StylePriority.UseBorders = false;
this.lblHourlyRate.StylePriority.UseFont = false;
this.lblHourlyRate.StylePriority.UsePadding = false;
this.lblHourlyRate.StylePriority.UseTextAlignment = false;
this.lblHourlyRate.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.lblHourlyRate.Weight = 0.48943381421226906D;
//
// xrTableCell45
//
this.xrTableCell45.BorderColor = System.Drawing.Color.DarkGray;
this.xrTableCell45.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrTableCell45.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.Claim", "{0:0.00}")});
this.xrTableCell45.Font = new System.Drawing.Font("Calibri", 11F);
this.xrTableCell45.Name = "xrTableCell45";
this.xrTableCell45.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
this.xrTableCell45.StylePriority.UseBorderColor = false;
this.xrTableCell45.StylePriority.UseBorders = false;
this.xrTableCell45.StylePriority.UseFont = false;
this.xrTableCell45.StylePriority.UsePadding = false;
this.xrTableCell45.StylePriority.UseTextAlignment = false;
this.xrTableCell45.Text = "xrTableCell45";
this.xrTableCell45.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell45.Weight = 0.71650711360086339D;
//
// GroupHeader1
//
this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrTable5});
this.GroupHeader1.HeightF = 50F;
this.GroupHeader1.Name = "GroupHeader1";
//
// xrTable5
//
this.xrTable5.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
@@ -436,118 +531,13 @@ namespace PerspektivenEV
this.xrTableCell8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell8.Weight = 0.71650711871826434D;
//
// DetailReport2
// GroupFooter2
//
this.DetailReport2.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
this.Detail3,
this.GroupFooter1});
this.DetailReport2.DataMember = "ServiceInvoicePeriods.ServiceInvoiceItems";
this.DetailReport2.DataSource = this.bindingSource1;
this.DetailReport2.Level = 0;
this.DetailReport2.Name = "DetailReport2";
//
// Detail3
//
this.Detail3.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrTable6});
this.Detail3.HeightF = 25F;
this.Detail3.Name = "Detail3";
//
// xrTable6
//
this.xrTable6.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
this.xrTable6.Name = "xrTable6";
this.xrTable6.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
this.xrTableRow25});
this.xrTable6.SizeF = new System.Drawing.SizeF(631F, 25F);
this.xrTable6.StylePriority.UseFont = false;
//
// xrTableRow25
//
this.xrTableRow25.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
this.xrTableCell2,
this.xrTableCell42,
this.xrTableCell10,
this.xrTableCell45});
this.xrTableRow25.Name = "xrTableRow25";
this.xrTableRow25.Weight = 1D;
//
// xrTableCell2
//
this.xrTableCell2.BorderColor = System.Drawing.Color.DarkGray;
this.xrTableCell2.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrTableCell2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.Hours")});
this.xrTableCell2.Font = new System.Drawing.Font("Calibri", 11F);
this.xrTableCell2.Name = "xrTableCell2";
this.xrTableCell2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
this.xrTableCell2.StylePriority.UseBorderColor = false;
this.xrTableCell2.StylePriority.UseBorders = false;
this.xrTableCell2.StylePriority.UseFont = false;
this.xrTableCell2.StylePriority.UsePadding = false;
this.xrTableCell2.StylePriority.UseTextAlignment = false;
this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
this.xrTableCell2.Weight = 0.57356212115408312D;
//
// xrTableCell42
//
this.xrTableCell42.BorderColor = System.Drawing.Color.DarkGray;
this.xrTableCell42.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrTableCell42.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.ServiceDescription")});
this.xrTableCell42.Font = new System.Drawing.Font("Calibri", 11F);
this.xrTableCell42.Name = "xrTableCell42";
this.xrTableCell42.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
this.xrTableCell42.StylePriority.UseBorderColor = false;
this.xrTableCell42.StylePriority.UseBorders = false;
this.xrTableCell42.StylePriority.UseFont = false;
this.xrTableCell42.StylePriority.UsePadding = false;
this.xrTableCell42.StylePriority.UseTextAlignment = false;
this.xrTableCell42.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
this.xrTableCell42.Weight = 1.2396351551486897D;
//
// xrTableCell10
//
this.xrTableCell10.BorderColor = System.Drawing.Color.DarkGray;
this.xrTableCell10.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrTableCell10.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.HourlyRate", "{0:0.00} €")});
this.xrTableCell10.Font = new System.Drawing.Font("Calibri", 11F);
this.xrTableCell10.Name = "xrTableCell10";
this.xrTableCell10.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
this.xrTableCell10.StylePriority.UseBorderColor = false;
this.xrTableCell10.StylePriority.UseBorders = false;
this.xrTableCell10.StylePriority.UseFont = false;
this.xrTableCell10.StylePriority.UsePadding = false;
this.xrTableCell10.StylePriority.UseTextAlignment = false;
this.xrTableCell10.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell10.Weight = 0.48943381421226906D;
//
// xrTableCell45
//
this.xrTableCell45.BorderColor = System.Drawing.Color.DarkGray;
this.xrTableCell45.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrTableCell45.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.NetAmount", "{0:0.00} €")});
this.xrTableCell45.Font = new System.Drawing.Font("Calibri", 11F);
this.xrTableCell45.Name = "xrTableCell45";
this.xrTableCell45.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
this.xrTableCell45.StylePriority.UseBorderColor = false;
this.xrTableCell45.StylePriority.UseBorders = false;
this.xrTableCell45.StylePriority.UseFont = false;
this.xrTableCell45.StylePriority.UsePadding = false;
this.xrTableCell45.StylePriority.UseTextAlignment = false;
this.xrTableCell45.Text = "xrTableCell45";
this.xrTableCell45.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell45.Weight = 0.71650711360086339D;
//
// GroupFooter1
//
this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.GroupFooter2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrLabel5,
this.xrTable1});
this.GroupFooter1.HeightF = 123.9583F;
this.GroupFooter1.Name = "GroupFooter1";
this.GroupFooter2.HeightF = 100F;
this.GroupFooter2.Name = "GroupFooter2";
//
// xrLabel5
//
@@ -555,7 +545,7 @@ namespace PerspektivenEV
this.xrLabel5.Borders = DevExpress.XtraPrinting.BorderSide.Bottom;
this.xrLabel5.BorderWidth = 2F;
this.xrLabel5.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(0F, 88.43752F);
this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(0F, 78.02086F);
this.xrLabel5.Name = "xrLabel5";
this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel5.SizeF = new System.Drawing.SizeF(631F, 20F);
@@ -567,7 +557,7 @@ namespace PerspektivenEV
//
// xrTable1
//
this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 55.20833F);
this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 44.79167F);
this.xrTable1.Name = "xrTable1";
this.xrTable1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
this.xrTableRow6});
@@ -599,7 +589,6 @@ namespace PerspektivenEV
this.xrTableCell3.StylePriority.UseFont = false;
this.xrTableCell3.StylePriority.UsePadding = false;
this.xrTableCell3.StylePriority.UseTextAlignment = false;
this.xrTableCell3.Text = "SUMME:";
this.xrTableCell3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
this.xrTableCell3.Weight = 1.8131973371050596D;
//
@@ -664,8 +653,9 @@ namespace PerspektivenEV
this.PaperKind = System.Drawing.Printing.PaperKind.A4;
this.Version = "17.1";
this.Watermark.Image = ((System.Drawing.Image)(resources.GetObject("Sammelrechnung.Watermark.Image")));
((System.ComponentModel.ISupportInitialize)(this.xrTable5)).EndInit();
this.Watermark.PageRange = "1";
((System.ComponentModel.ISupportInitialize)(this.xrTable6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
@@ -690,19 +680,16 @@ namespace PerspektivenEV
private DevExpress.XtraReports.UI.XRTableRow xrTableRow23;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell37;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell36;
private DevExpress.XtraReports.UI.DetailReportBand DetailReport2;
private DevExpress.XtraReports.UI.DetailBand Detail3;
private DevExpress.XtraReports.UI.XRTable xrTable6;
private DevExpress.XtraReports.UI.XRTableRow xrTableRow25;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell42;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell45;
private DevExpress.XtraReports.UI.XRLabel lblAdresse;
private DevExpress.XtraReports.UI.FormattingRule ruleNoticeNull;
private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter1;
private DevExpress.XtraReports.UI.XRLabel xrLabel1;
private DevExpress.XtraReports.UI.XRLabel xrLabel6;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell7;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell10;
private DevExpress.XtraReports.UI.XRTableCell lblHourlyRate;
private DevExpress.XtraReports.UI.XRTable xrTable1;
private DevExpress.XtraReports.UI.XRTableRow xrTableRow6;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell3;
@@ -718,5 +705,7 @@ namespace PerspektivenEV
private DevExpress.XtraReports.UI.XRTableCell xrTableCell2;
private DevExpress.XtraReports.UI.XRLabel xrLabel5;
private DevExpress.XtraReports.UI.XRLabel xrLabel7;
private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1;
private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter2;
}
}

View File

@@ -49,24 +49,13 @@ namespace PerspektivenEV
}
lblAdresse.Text = sb.ToString();
var newSip = new ServiceInvoicePeriodRO();
lblHourlyRate.Text = pRO.ServiceInvoicePeriods[0].ServiceInvoiceItems[0].HourlyRate.ToString();
foreach (var sip in pRO.ServiceInvoicePeriods)
{
var newItem = new ServiceInvoiceItemRO();
foreach (var item in sip.ServiceInvoiceItems)
{
newItem.UnitCount += item.UnitCount;
newItem.NetAmount += item.NetAmount;
newItem.ServiceDescription = item.ServiceDescription;
}
newSip.ServiceInvoiceItems.Add(newItem);
sip.ApprovedBE = sip.ApprovedBE.Replace("(", "");
sip.ApprovedBE = sip.ApprovedBE.Replace(" FLS)", "");
}
pRO.ServiceInvoicePeriods = new List<ServiceInvoicePeriodRO>();
pRO.ServiceInvoicePeriods.Add(newSip);
this.bindingSource1.DataSource = pRO;
}

View File

@@ -32,6 +32,7 @@ namespace PerspektivenEV
DevExpress.XtraReports.UI.XRSummary xrSummary1 = new DevExpress.XtraReports.UI.XRSummary();
DevExpress.XtraReports.UI.XRSummary xrSummary2 = new DevExpress.XtraReports.UI.XRSummary();
DevExpress.XtraReports.UI.XRSummary xrSummary3 = new DevExpress.XtraReports.UI.XRSummary();
DevExpress.XtraReports.UI.XRSummary xrSummary4 = new DevExpress.XtraReports.UI.XRSummary();
this.Detail = new DevExpress.XtraReports.UI.DetailBand();
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
this.ruleRateFactorNull = new DevExpress.XtraReports.UI.FormattingRule();
@@ -40,6 +41,8 @@ namespace PerspektivenEV
this.xrPageInfo2 = new DevExpress.XtraReports.UI.XRPageInfo();
this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand();
this.Detail1 = new DevExpress.XtraReports.UI.DetailBand();
this.DetailReport1 = new DevExpress.XtraReports.UI.DetailReportBand();
this.Detail2 = new DevExpress.XtraReports.UI.DetailBand();
this.xrTable6 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow25 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell33 = new DevExpress.XtraReports.UI.XRTableCell();
@@ -51,7 +54,7 @@ namespace PerspektivenEV
this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell17 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell18 = new DevExpress.XtraReports.UI.XRTableCell();
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.GroupHeader2 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.xrTable5 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell30 = new DevExpress.XtraReports.UI.XRTableCell();
@@ -73,7 +76,11 @@ namespace PerspektivenEV
this.xrTableCell20 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell21 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell22 = new DevExpress.XtraReports.UI.XRTableCell();
this.GroupFooter = new DevExpress.XtraReports.UI.GroupFooterBand();
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.lblHeader = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel();
this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand();
this.xrTable1 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell();
@@ -82,11 +89,8 @@ namespace PerspektivenEV
this.xrTableCell13 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell14 = new DevExpress.XtraReports.UI.XRTableCell();
this.ruleNoticeNull = new DevExpress.XtraReports.UI.FormattingRule();
this.Page1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.lblHeader = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel();
this.fieldMonatskontingent = new DevExpress.XtraReports.UI.CalculatedField();
this.fieldBetreuungsbeginn = new DevExpress.XtraReports.UI.CalculatedField();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.xrTable6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable5)).BeginInit();
@@ -143,7 +147,7 @@ namespace PerspektivenEV
//
this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
this.Detail1,
this.GroupHeader1});
this.DetailReport1});
this.DetailReport.DataMember = "ServiceInvoicePeriods";
this.DetailReport.DataSource = this.bindingSource1;
this.DetailReport.Level = 0;
@@ -151,15 +155,33 @@ namespace PerspektivenEV
//
// Detail1
//
this.Detail1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrTable6});
this.Detail1.Font = new System.Drawing.Font("Arial", 11F);
this.Detail1.HeightF = 18F;
this.Detail1.HeightF = 0F;
this.Detail1.Name = "Detail1";
this.Detail1.StylePriority.UseFont = false;
this.Detail1.StylePriority.UseTextAlignment = false;
this.Detail1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
//
// DetailReport1
//
this.DetailReport1.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
this.Detail2,
this.GroupHeader2,
this.GroupHeader1,
this.GroupFooter1});
this.DetailReport1.DataMember = "ServiceInvoicePeriods.ServiceInvoiceItems";
this.DetailReport1.DataSource = this.bindingSource1;
this.DetailReport1.Level = 0;
this.DetailReport1.Name = "DetailReport1";
this.DetailReport1.PageBreak = DevExpress.XtraReports.UI.PageBreak.BeforeBandExceptFirstEntry;
//
// Detail2
//
this.Detail2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrTable6});
this.Detail2.HeightF = 18F;
this.Detail2.Name = "Detail2";
//
// xrTable6
//
this.xrTable6.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
@@ -210,7 +232,7 @@ namespace PerspektivenEV
this.xrTableCell42.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell42.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.Customer.LastNameFirstName")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.ServiceDescription")});
this.xrTableCell42.Font = new System.Drawing.Font("Arial", 8F);
this.xrTableCell42.Name = "xrTableCell42";
this.xrTableCell42.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
@@ -228,7 +250,7 @@ namespace PerspektivenEV
this.xrTableCell8.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell8.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.CostBearer2SupportConcept.CustomerReferenceNumber")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.Notice")});
this.xrTableCell8.Font = new System.Drawing.Font("Arial", 8F);
this.xrTableCell8.Name = "xrTableCell8";
this.xrTableCell8.StylePriority.UseBorders = false;
@@ -242,12 +264,13 @@ namespace PerspektivenEV
//
this.xrTableCell34.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell34.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.AccountingPeriodEnd", "{0:dd.MM.yyyy}")});
this.xrTableCell34.Font = new System.Drawing.Font("Arial", 8F);
this.xrTableCell34.Name = "xrTableCell34";
this.xrTableCell34.StylePriority.UseBorders = false;
this.xrTableCell34.StylePriority.UseFont = false;
this.xrTableCell34.StylePriority.UseTextAlignment = false;
this.xrTableCell34.Text = "[CostBearer2SupportConcept.ApprovedEndDate!dd.MM.yy]";
this.xrTableCell34.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell34.Weight = 0.24966908926408551D;
//
@@ -255,6 +278,8 @@ namespace PerspektivenEV
//
this.xrTableCell3.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell3.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.fieldBetreuungsbeginn", "{0:dd.MM.yyyy}")});
this.xrTableCell3.Font = new System.Drawing.Font("Arial", 8F);
this.xrTableCell3.Name = "xrTableCell3";
this.xrTableCell3.StylePriority.UseBorders = false;
@@ -269,7 +294,7 @@ namespace PerspektivenEV
this.xrTableCell45.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell45.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.SupportConceptApprovalPeriod.ApprovedBEPerInterval", "{0:#}")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.UnitDescription")});
this.xrTableCell45.Font = new System.Drawing.Font("Arial", 8F);
this.xrTableCell45.Name = "xrTableCell45";
this.xrTableCell45.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
@@ -278,7 +303,6 @@ namespace PerspektivenEV
this.xrTableCell45.StylePriority.UseFont = false;
this.xrTableCell45.StylePriority.UsePadding = false;
this.xrTableCell45.StylePriority.UseTextAlignment = false;
this.xrTableCell45.Text = "xrTableCell45";
this.xrTableCell45.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell45.Weight = 0.33289210448805817D;
//
@@ -287,12 +311,14 @@ namespace PerspektivenEV
this.xrTableCell10.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell10.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.fieldMonatskontingent", "{0:0.00}")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.UnitCount", "{0:0.00}")});
this.xrTableCell10.Font = new System.Drawing.Font("Arial", 8F);
this.xrTableCell10.Name = "xrTableCell10";
this.xrTableCell10.StylePriority.UseBorders = false;
this.xrTableCell10.StylePriority.UseFont = false;
this.xrTableCell10.StylePriority.UseTextAlignment = false;
this.xrTableCell10.Text = "xrTableCell10";
this.xrTableCell10.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
this.xrTableCell10.Weight = 0.33289210047693363D;
//
// xrTableCell17
@@ -315,7 +341,7 @@ namespace PerspektivenEV
this.xrTableCell18.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell18.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.Claim")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.GrossAmount")});
this.xrTableCell18.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Bold);
this.xrTableCell18.Name = "xrTableCell18";
this.xrTableCell18.StylePriority.UseBorders = false;
@@ -324,13 +350,13 @@ namespace PerspektivenEV
this.xrTableCell18.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell18.Weight = 0.332892002330651D;
//
// GroupHeader1
// GroupHeader2
//
this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.GroupHeader2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrTable5});
this.GroupHeader1.HeightF = 36F;
this.GroupHeader1.Name = "GroupHeader1";
this.GroupHeader1.RepeatEveryPage = true;
this.GroupHeader2.HeightF = 36F;
this.GroupHeader2.Name = "GroupHeader2";
this.GroupHeader2.RepeatEveryPage = true;
//
// xrTable5
//
@@ -575,14 +601,79 @@ namespace PerspektivenEV
this.xrTableCell22.StylePriority.UseBorders = false;
this.xrTableCell22.Weight = 0.33118914272283523D;
//
// GroupFooter
// GroupHeader1
//
this.GroupFooter.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.lblHeader,
this.xrLabel3,
this.xrLabel2});
this.GroupHeader1.HeightF = 75F;
this.GroupHeader1.Level = 1;
this.GroupHeader1.Name = "GroupHeader1";
this.GroupHeader1.PageBreak = DevExpress.XtraReports.UI.PageBreak.BeforeBandExceptFirstEntry;
//
// lblHeader
//
this.lblHeader.BackColor = System.Drawing.Color.Transparent;
this.lblHeader.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.lblHeader.CanShrink = true;
this.lblHeader.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.Notice")});
this.lblHeader.Font = new System.Drawing.Font("Arial", 9F);
this.lblHeader.LocationFloat = new DevExpress.Utils.PointFloat(408.8752F, 10.00001F);
this.lblHeader.Multiline = true;
this.lblHeader.Name = "lblHeader";
this.lblHeader.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblHeader.SizeF = new System.Drawing.SizeF(355.8332F, 39.99999F);
this.lblHeader.StylePriority.UseBackColor = false;
this.lblHeader.StylePriority.UseBorders = false;
this.lblHeader.StylePriority.UseFont = false;
this.lblHeader.StylePriority.UseTextAlignment = false;
this.lblHeader.Text = "Betreutes Wohnen ";
this.lblHeader.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
//
// xrLabel3
//
this.xrLabel3.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrLabel3.Font = new System.Drawing.Font("Arial", 9F);
this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(938.0004F, 10.00001F);
this.xrLabel3.Name = "xrLabel3";
this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel3.SizeF = new System.Drawing.SizeF(130.4999F, 25F);
this.xrLabel3.StylePriority.UseBackColor = false;
this.xrLabel3.StylePriority.UseBorders = false;
this.xrLabel3.StylePriority.UseFont = false;
this.xrLabel3.StylePriority.UseForeColor = false;
this.xrLabel3.StylePriority.UseTextAlignment = false;
this.xrLabel3.Text = " [InvoiceBase.AccountingPeriodEnd!MMMM yyyy]";
this.xrLabel3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrLabel3.WordWrap = false;
//
// xrLabel2
//
this.xrLabel2.BackColor = System.Drawing.Color.Transparent;
this.xrLabel2.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrLabel2.Font = new System.Drawing.Font("Arial", 9F);
this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 10.00001F);
this.xrLabel2.Multiline = true;
this.xrLabel2.Name = "xrLabel2";
this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel2.SizeF = new System.Drawing.SizeF(254.5001F, 39.99999F);
this.xrLabel2.StylePriority.UseBackColor = false;
this.xrLabel2.StylePriority.UseBorders = false;
this.xrLabel2.StylePriority.UseFont = false;
this.xrLabel2.StylePriority.UseTextAlignment = false;
this.xrLabel2.Text = "Perspektiven e.V.\r\nAlberusstraße 5, 61440 Oberursel";
this.xrLabel2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
this.xrLabel2.WordWrap = false;
//
// GroupFooter1
//
this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrTable1});
this.GroupFooter.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Bold);
this.GroupFooter.HeightF = 25F;
this.GroupFooter.Name = "GroupFooter";
this.GroupFooter.StylePriority.UseFont = false;
this.GroupFooter1.HeightF = 18F;
this.GroupFooter1.Name = "GroupFooter1";
this.GroupFooter1.PageBreak = DevExpress.XtraReports.UI.PageBreak.AfterBandExceptLastEntry;
//
// xrTable1
//
@@ -628,7 +719,7 @@ namespace PerspektivenEV
this.xrTableCell23.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell23.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.SupportConceptApprovalPeriod.ApprovedBEPerInterval")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.UnitDescription")});
this.xrTableCell23.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Bold);
this.xrTableCell23.Name = "xrTableCell23";
this.xrTableCell23.StylePriority.UseBorders = false;
@@ -645,7 +736,7 @@ namespace PerspektivenEV
this.cellTotalPerMonth.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.cellTotalPerMonth.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.fieldMonatskontingent")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.UnitCount")});
this.cellTotalPerMonth.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Bold);
this.cellTotalPerMonth.Name = "cellTotalPerMonth";
this.cellTotalPerMonth.StylePriority.UseBorders = false;
@@ -670,12 +761,14 @@ namespace PerspektivenEV
this.xrTableCell14.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell14.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "GrossClaim")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.GrossAmount")});
this.xrTableCell14.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Bold);
this.xrTableCell14.Name = "xrTableCell14";
this.xrTableCell14.StylePriority.UseBorders = false;
this.xrTableCell14.StylePriority.UseFont = false;
this.xrTableCell14.StylePriority.UseTextAlignment = false;
xrSummary4.FormatString = "{0:#.00}";
this.xrTableCell14.Summary = xrSummary4;
this.xrTableCell14.Text = "xrTableCell9";
this.xrTableCell14.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell14.Weight = 0.23812008704613302D;
@@ -686,71 +779,6 @@ namespace PerspektivenEV
this.ruleNoticeNull.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False;
this.ruleNoticeNull.Name = "ruleNoticeNull";
//
// Page1
//
this.Page1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.lblHeader,
this.xrLabel3,
this.xrLabel2});
this.Page1.Font = new System.Drawing.Font("Arial", 10F);
this.Page1.HeightF = 60F;
this.Page1.Name = "Page1";
this.Page1.StylePriority.UseBorders = false;
this.Page1.StylePriority.UseFont = false;
//
// lblHeader
//
this.lblHeader.BackColor = System.Drawing.Color.Transparent;
this.lblHeader.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.lblHeader.CanShrink = true;
this.lblHeader.Font = new System.Drawing.Font("Arial", 9F);
this.lblHeader.LocationFloat = new DevExpress.Utils.PointFloat(409.375F, 10.00001F);
this.lblHeader.Multiline = true;
this.lblHeader.Name = "lblHeader";
this.lblHeader.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblHeader.SizeF = new System.Drawing.SizeF(355.8332F, 39.99999F);
this.lblHeader.StylePriority.UseBackColor = false;
this.lblHeader.StylePriority.UseBorders = false;
this.lblHeader.StylePriority.UseFont = false;
this.lblHeader.StylePriority.UseTextAlignment = false;
this.lblHeader.Text = "Betreutes Wohnen ";
this.lblHeader.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
//
// xrLabel3
//
this.xrLabel3.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrLabel3.Font = new System.Drawing.Font("Arial", 9F);
this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(938.5001F, 10.00001F);
this.xrLabel3.Name = "xrLabel3";
this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel3.SizeF = new System.Drawing.SizeF(130.4999F, 25F);
this.xrLabel3.StylePriority.UseBackColor = false;
this.xrLabel3.StylePriority.UseBorders = false;
this.xrLabel3.StylePriority.UseFont = false;
this.xrLabel3.StylePriority.UseForeColor = false;
this.xrLabel3.StylePriority.UseTextAlignment = false;
this.xrLabel3.Text = "[AccountingPeriodStart!MMMM yyyy]";
this.xrLabel3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrLabel3.WordWrap = false;
//
// xrLabel2
//
this.xrLabel2.BackColor = System.Drawing.Color.Transparent;
this.xrLabel2.Borders = DevExpress.XtraPrinting.BorderSide.None;
this.xrLabel2.Font = new System.Drawing.Font("Arial", 9F);
this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(0.4998843F, 10.00001F);
this.xrLabel2.Multiline = true;
this.xrLabel2.Name = "xrLabel2";
this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel2.SizeF = new System.Drawing.SizeF(254.5001F, 39.99999F);
this.xrLabel2.StylePriority.UseBackColor = false;
this.xrLabel2.StylePriority.UseBorders = false;
this.xrLabel2.StylePriority.UseFont = false;
this.xrLabel2.StylePriority.UseTextAlignment = false;
this.xrLabel2.Text = "Perspektiven e.V.\r\nAlberusstraße 5, 61440 Oberursel";
this.xrLabel2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
this.xrLabel2.WordWrap = false;
//
// fieldMonatskontingent
//
this.fieldMonatskontingent.DataMember = "ServiceInvoicePeriods";
@@ -758,6 +786,14 @@ namespace PerspektivenEV
this.fieldMonatskontingent.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal;
this.fieldMonatskontingent.Name = "fieldMonatskontingent";
//
// fieldBetreuungsbeginn
//
this.fieldBetreuungsbeginn.DataMember = "ServiceInvoicePeriods.ServiceInvoiceItems";
this.fieldBetreuungsbeginn.Expression = "Iif([AccountingPeriodStart] < AddYears(Now(), -1000), ?, [AccountingPeriodStart])" +
"";
this.fieldBetreuungsbeginn.FieldType = DevExpress.XtraReports.UI.FieldType.DateTime;
this.fieldBetreuungsbeginn.Name = "fieldBetreuungsbeginn";
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServiceInvoiceRO);
@@ -769,11 +805,10 @@ namespace PerspektivenEV
this.ReportHeader,
this.topMarginBand1,
this.bottomMarginBand1,
this.GroupFooter,
this.Page1,
this.DetailReport});
this.CalculatedFields.AddRange(new DevExpress.XtraReports.UI.CalculatedField[] {
this.fieldMonatskontingent});
this.fieldMonatskontingent,
this.fieldBetreuungsbeginn});
this.DataSource = this.bindingSource1;
this.ExportOptions.PrintPreview.DefaultFileName = "Spitzabrechnung";
this.Font = new System.Drawing.Font("Verdana", 10F);
@@ -801,8 +836,6 @@ namespace PerspektivenEV
private DevExpress.XtraReports.UI.FormattingRule ruleRateFactorNull;
private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1;
private DevExpress.XtraReports.UI.BottomMarginBand bottomMarginBand1;
private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter;
private DevExpress.XtraReports.UI.GroupHeaderBand Page1;
private DevExpress.XtraReports.UI.XRLabel xrLabel2;
private DevExpress.XtraReports.UI.DetailReportBand DetailReport;
private DevExpress.XtraReports.UI.DetailBand Detail1;
@@ -842,7 +875,6 @@ namespace PerspektivenEV
private DevExpress.XtraReports.UI.XRTableCell xrTableCell21;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell22;
private DevExpress.XtraReports.UI.XRLabel lblHeader;
private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1;
private DevExpress.XtraReports.UI.XRPageInfo xrPageInfo2;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell33;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell30;
@@ -851,5 +883,11 @@ namespace PerspektivenEV
private DevExpress.XtraReports.UI.XRTableCell xrTableCell37;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell36;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell23;
private DevExpress.XtraReports.UI.DetailReportBand DetailReport1;
private DevExpress.XtraReports.UI.DetailBand Detail2;
private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader2;
private DevExpress.XtraReports.UI.CalculatedField fieldBetreuungsbeginn;
private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1;
private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter1;
}
}

View File

@@ -7,7 +7,7 @@ using BS.Shared.Core;
namespace PerspektivenEV
{
[IDSpecificClass(Identifier = "Sammelrechnung")]
[IDSpecificClass(Identifier = "SammelrechnungAnhang")]
public partial class SammelrechnungTab : XtraReport, IBeWoReport<ServiceInvoiceRO>
{
public SammelrechnungTab()
@@ -18,35 +18,25 @@ namespace PerspektivenEV
public void SetReportDataSource(ServiceInvoiceRO pRO)
{
decimal totalPerMonth = 0;
pRO.ServiceInvoicePeriods.Sort((a, b) => a.Customer.LastNameFirstName.CompareTo(b.Customer.LastNameFirstName));
DateTime abrechnungsMonatEnde = pRO.AccountingPeriodEnd;
if (pRO.ServiceInvoicePeriods != null)
{
foreach (var sip in pRO.ServiceInvoicePeriods)
{
if (sip.SupportConceptApprovalPeriod != null && sip.SupportConceptApprovalPeriod.ApprovedBEPerInterval.HasValue)
{
var month = sip.SupportConceptApprovalPeriod.ApprovedBEPerInterval.Value / 12m;
totalPerMonth += month;
}
if (sip.CostBearer2SupportConcept != null)
{
sip.SupportConceptApprovalPeriod.Notice = String.Format("{0:dd.MM.yyyy} - {1:dd.MM.yyyy}",
sip.CostBearer2SupportConcept.StartDate, pRO.AccountingPeriodEnd);
if (pRO.ServiceInvoicePeriods[0].CostBearer2SupportConcept.ServiceRecords[0].ServiceDescription.ServiceCategory.Name.Contains("HTK"))
lblHeader.Text = "Betreutes Wohnen für Menschen mit psychischer Erkrankung im Hochtaunuskreis";
else if (pRO.ServiceInvoicePeriods[0].CostBearer2SupportConcept.ServiceRecords[0].ServiceDescription.ServiceCategory.Name.Contains("FFM"))
lblHeader.Text = "Betreutes Wohnen Frankfurt/M.";
else if (pRO.ServiceInvoicePeriods[0].CostBearer2SupportConcept.ServiceRecords[0].ServiceDescription.ServiceCategory.Name.Contains("Tagesstätte"))
lblHeader.Text = "Betreutes Wohnen für Menschen mit körperlicher-/ Sinnesbehinderung";
}
}
}
cellTotalPerMonth.Text = String.Format("{0:0.00}", totalPerMonth);
if (pRO.ServiceInvoicePeriods != null)
{
foreach (var sip in pRO.ServiceInvoicePeriods)
{
if (sip.Notice.Contains("Hochtaunuskreis"))
sip.Notice = "Betreutes Wohnen für Menschen mit psychischer Erkrankung im Hochtaunuskreis";
else if (sip.Notice.Contains("Frankfurt"))
sip.Notice = "Betreutes Wohnen Frankfurt/M.";
else if (sip.Notice.Contains("Körperbehinderte"))
sip.Notice = "Betreutes Wohnen für Menschen mit körperlicher-/ Sinnesbehinderung";
sip.ServiceInvoiceItems.Sort((a, b) => a.ServiceDescription.CompareTo(b.ServiceDescription));
}
}
this.bindingSource1.DataSource = pRO;
cellTotalPerMonth.Text = String.Format("{0:0.00}", totalPerMonth);
this.bindingSource1.DataSource = pRO;
}
}
}
}

View File

@@ -0,0 +1,71 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Report;
using BeWo.Report.ReportObjects;
using BeWo.Service.DCEntityMapper;
using BS.Shared.DataContracts;
using DevExpress.XtraReports.Design;
using DevExpress.XtraReports.UI;
namespace PerspektivenEV
{
public class CustomReportCreator : DefaultReportCreator
{
public override XtraReport CreateServiceInvoiceReport(string dcIds, long? invoiceBaseOid)
{
if (String.IsNullOrEmpty(dcIds) && invoiceBaseOid.HasValue)
{
var serviceInvoice = DAOFactory.SearchDAO.GetServiceInvoiceByInvoiceBaseOid(invoiceBaseOid.Value);
dcIds = String.Format("{0}", serviceInvoice.Oid);
}
if (!string.IsNullOrEmpty(dcIds))
{
var dcList = new List<ServiceInvoiceDC>();
var dcidStrs = dcIds.Split(';');
foreach (var oidStr in dcidStrs)
{
var oid = long.Parse(oidStr);
var invoice = DAOFactory.GenericDAO.LoadByID<ServiceInvoice>(oid);
var dc = MapperFactory.ServiceInvoiceDC_ServiceInvoice.MapToNewDC(invoice);
dcList.Add(dc);
}
IBeWoReport<ServiceInvoiceRO> allReports = null;
foreach (var iDC in dcList)
{
IBeWoReport<ServiceInvoiceRO> singleReport = FindReportImp<ServiceInvoiceRO>(iDC.InvoiceBase.InvoiceId);
var ro = ServiceInvoiceRO.Create(iDC);
singleReport.SetReportDataSource(ro);
((XtraReport)singleReport).CreateDocument();
if (iDC.InvoiceBase.InvoiceId == "Sammelrechnung")
{
var anhang = new SammelrechnungTab();
anhang.SetReportDataSource(ro);
anhang.CreateDocument();
((XtraReport)singleReport).Pages.AddRange(((XtraReport)anhang).Pages);
}
if (allReports == null)
allReports = singleReport;
else
((XtraReport)allReports).Pages.AddRange(((XtraReport)singleReport).Pages);
}
return allReports as XtraReport;
}
return new XtraReport();
}
}
}

View File

@@ -22,7 +22,60 @@ namespace PerspektivenEV.Invoicing
private DateTime? accountingPeriodStart = null;
private DateTime? accountingPeriodEnd = null;
public override List<ServiceInvoiceDC> GenerateServiceInvoices(long costBearerOid, DateTimeSpan invoicePeriod, Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>> supportConcepts2ServiceRecords)
public override void SetInvoiceId(ServiceInvoice invoice)
{
invoice.InvoiceBase.InvoiceId = "Sammelrechnung";
//invoice.InvoiceBase.InvoiceTypeText = "Text in Rechnungsübersicht";
}
//public override List<ServiceInvoiceDC> GenerateServiceInvoices(long costBearerOid, DateTimeSpan invoicePeriod, Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>> supportConcepts2ServiceRecords)
//{
// var newSc2SrList = new Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>>();
// foreach (var key in supportConcepts2ServiceRecords.Keys)
// {
// if (key.IsApproved)
// {
// newSc2SrList.Add(key, supportConcepts2ServiceRecords[key]);
// }
// }
// List<Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>>> liste = new List<Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>>>();
// liste.Add(new Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>>());
// liste.Add(new Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>>());
// liste.Add(new Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>>());
// foreach (var item in newSc2SrList)
// {
// if (item.Value.Count!= 0 && item.Value != null && item.Value[0].ServiceDescription.Category != null)
// {
// if (item.Value[0].ServiceDescription.Category.Name.Contains("HTK"))
// liste[0].Add(item.Key, item.Value);
// else if (item.Value[0].ServiceDescription.Category.Name.Contains("FFM"))
// liste[1].Add(item.Key, item.Value);
// else if (item.Value[0].ServiceDescription.Category.Name.Contains("Tagesstätte"))
// liste[2].Add(item.Key, item.Value);
// }
// }
// var costBearer = DAOFactory.GenericDAO.LoadByID<CostBearer>(costBearerOid);
// var invoiceList = new List<ServiceInvoice>();
// var result = new List<ServiceInvoiceDC>();
// ServiceInvoice invoice;
// foreach (var list in liste)
// {
// invoice = CreateCollectiveBilling(costBearer, invoicePeriod, list);
// if (invoice != null)
// invoiceList.Add(invoice);
// result = invoiceList.Select(item => MapperFactory.ServiceInvoiceDC_ServiceInvoice.MapToNewDC(item)).ToList();
// }
// return result.Count > 1 ? result.OrderBy(i => i.InvoiceBase.CustomerLastName).ToList() : result;
//}
public override void SetCollectiveBillingServiceInvoicePeriods(ServiceInvoice invoice, DateTimeSpan invoicePeriod, Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>> supportConcepts2ServiceRecords)
{
var newSc2SrList = new Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>>();
@@ -34,41 +87,163 @@ namespace PerspektivenEV.Invoicing
}
}
List<Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>>> liste = new List<Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>>>();
liste.Add(new Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>>());
liste.Add(new Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>>());
liste.Add(new Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>>());
Dictionary<String, List<Abrechnungsdaten>> cat2Daten = new Dictionary<string, List<Abrechnungsdaten>>();
foreach (var item in newSc2SrList)
{
if (item.Value.Count!= 0 && item.Value != null && item.Value[0].ServiceDescription.Category != null)
var c2s = DAOFactory.GenericDAO.LoadByID<CostBearer2SupportConcept>(item.Key.CostBearerRelOids[0]);
foreach (var ap in c2s.ApprovalPeriodList)
{
if (item.Value[0].ServiceDescription.Category.Name.Contains("HTK"))
liste[0].Add(item.Key, item.Value);
else if (item.Value[0].ServiceDescription.Category.Name.Contains("FFM"))
liste[1].Add(item.Key, item.Value);
else if (item.Value[0].ServiceDescription.Category.Name.Contains("Tagesstätte"))
liste[2].Add(item.Key, item.Value);
if (ap.EndDate >= invoicePeriod.StartDateTime && ap.StartDate <= invoicePeriod.EndDate && ap.ServiceCategory != null)
{
String key = ap.ServiceCategory.Name;
if (!cat2Daten.ContainsKey(key))
{
cat2Daten.Add(key, new List<Abrechnungsdaten>());
}
var daten = new Abrechnungsdaten();
daten.CategoryName = key;
daten.AbrechnungsStartDate = invoicePeriod.StartDate;
daten.AbrechnungsEndDate = invoicePeriod.EndDate;
daten.CompactSupportConcept = item.Key;
daten.CostBearer2SupportConcept = c2s;
daten.SupportConceptApprovalPeriod = ap;
cat2Daten[key].Add(daten);
}
}
}
var costBearer = DAOFactory.GenericDAO.LoadByID<CostBearer>(costBearerOid);
var invoiceList = new List<ServiceInvoice>();
var result = new List<ServiceInvoiceDC>();
ServiceInvoice invoice;
foreach (var list in liste)
foreach (var categoryName in cat2Daten.Keys)
{
invoice = CreateCollectiveBilling(costBearer, invoicePeriod, list);
if (invoice != null)
invoiceList.Add(invoice);
result = invoiceList.Select(item => MapperFactory.ServiceInvoiceDC_ServiceInvoice.MapToNewDC(item)).ToList();
var datenListe = cat2Daten[categoryName];
var sip = ErstelleServiceInvoicePeriod(invoicePeriod, categoryName, datenListe);
invoice.ServiceInvoicePeriodList.Add(sip);
}
return result.Count > 1 ? result.OrderBy(i => i.InvoiceBase.CustomerLastName).ToList() : result;
}
private ServiceInvoicePeriod ErstelleServiceInvoicePeriod(DateTimeSpan invoicePeriod, String category, List<Abrechnungsdaten> datenListe)
{
var items = ErstelleInvoiceItems(datenListe);
ServiceInvoicePeriod period = new ServiceInvoicePeriod();
period.Start = invoicePeriod.StartDate;
period.End = invoicePeriod.EndDate;
if (category.Contains("HTK"))
period.Notice = "Betreutes Wohnen im Hochtaunuskreis";
else if (category.Contains("FFM"))
period.Notice = "Betreutes Wohnen Frankfurt/M.";
else if (category.Contains("Tagesstätte"))
period.Notice = "Betreutes Wohnen Körperbehinderte";
else
period.Notice = category;
period.ApprovedHours = 0;
period.ApprovedBE = 0;
period.Claim = 0;
period.InvoiceItemList = items;
foreach (var item in items)
{
period.ApprovedHours += item.UnitCount;
period.ApprovedBE = item.AmountPerUnit;
period.Claim += item.AmountTotal;
}
//period.ApprovedHours
return period;
}
private List<InvoiceItem> ErstelleInvoiceItems(List<Abrechnungsdaten> datenListe)
{
var items = new List<InvoiceItem>();
foreach (var daten in datenListe)
{
var item = CreateInvoiceItem(daten);
if (item.AmountTotal > 0)
{
items.Add(item);
}
}
return items.OrderBy(i => i.ItemDescription).ToList();
}
private InvoiceItem CreateInvoiceItem(Abrechnungsdaten daten)
{
var calc = new CustomCalculations();
DateTime start = daten.AbrechnungsStartDate;
DateTime end = daten.AbrechnungsEndDate;
if (daten.SupportConceptApprovalPeriod.StartDate > start)
start = daten.SupportConceptApprovalPeriod.StartDate.Value;
if (daten.SupportConceptApprovalPeriod.EndDate < end)
end = daten.SupportConceptApprovalPeriod.EndDate.Value;
var monate = DateTimeUtils.GetTotalMonths(start, end);
var c2sDc = MapperFactory.SupportConceptCostBearerRelDC_CostBearer2SupportConcept.MapToNewDC(daten.CostBearer2SupportConcept);
var scapDc = MapperFactory.SupportConceptApprovalPeriodDC_SupportConceptApprovalPeriod.MapToNewDC(daten.SupportConceptApprovalPeriod);
var stundenProMonat = calc.GetApprovedHoursForPeriod(c2sDc, scapDc, null, new DateTime(start.Year, start.Month, 1), new DateTime(start.Year, start.Month, 1).AddMonths(1).AddDays(-1), false) ?? 0;
var abrechnungsMonate = monate.GanzeMonate * stundenProMonat;
if (monate.RestTageAnfang > 0)
{
if (start.Day > 15)
abrechnungsMonate += stundenProMonat / 2;
else if (start.Day > 1)
abrechnungsMonate += stundenProMonat;
}
if (monate.RestTageEnde > 0)
{
if (end.Day > 15)
abrechnungsMonate += stundenProMonat;
else
abrechnungsMonate += stundenProMonat / 2;
}
abrechnungsMonate = Math.Round(abrechnungsMonate, 2, MidpointRounding.AwayFromZero);
decimal hourlyRate = 0;
if (accountingPeriodStart.HasValue)
{
var crp = c2sDc.CostBearer.CostRatePeriods.GetCostRatePeriodForDate(CostRatePeriodType.HourlyRate,
accountingPeriodStart.Value);
if (crp != null && crp.CostRateValue.HasValue)
hourlyRate = crp.CostRateValue.Value;
}
String customerName = daten.CompactSupportConcept.CustomerName;
String aktenzeichen = daten.CostBearer2SupportConcept.CustomerReferenceNumber;
DateTime? bewilligtBis = daten.CompactSupportConcept.EndDate;
DateTime beginn = daten.CostBearer2SupportConcept.SupportConcept.Customer.AssistanceBegin ?? DateTime.MinValue;
decimal jahreskontingent = calc.GetJahreskontingent(scapDc);
var ii = new InvoiceItem
{
ItemPeriodStart = beginn,
ItemPeriodEnd = bewilligtBis,
AccountingInterval = AccountingIntervalType.Monthly,
AmountPerUnit = hourlyRate,
UnitCount = abrechnungsMonate,
ItemDescription = customerName,
UnitDescription = String.Format("{0:0.##}", jahreskontingent),
Notice = aktenzeichen,
MaxApprovedUnitCount = jahreskontingent
};
ii.AmountTotal = ii.UnitCount * ii.AmountPerUnit;
ii.GrossAmountTotal = ii.AmountTotal;
return ii;
}
public override void SetInvoiceBaseData(int invoiceCounter, ServiceInvoice invoice, CostBearer costBearer, DateTimeSpan invoicePeriod,
IList<CompactSupportConceptDC> supportConceptList)
@@ -81,13 +256,6 @@ namespace PerspektivenEV.Invoicing
base.SetInvoiceBaseData(invoiceCounter, invoice, costBearer, invoicePeriod, supportConceptList);
}
public override void SetInvoiceItems(ServiceInvoice invoice, ServiceInvoicePeriod serviceInvoicePeriod,
SupportConceptApprovalPeriodDC supportConceptApprovalPeriod, CostBearer2SupportConcept cb2sc,
DateTimeSpan invoicePeriod, List<ServiceRecordDC> serviceRecords)
{
CreateFixedAmounts(serviceInvoicePeriod, supportConceptApprovalPeriod, cb2sc);
}
public override void CreateFixedAmounts(ServiceInvoicePeriod serviceInvoicePeriod, SupportConceptApprovalPeriodDC scap, CostBearer2SupportConcept cb2sc)
{
var calc = new CustomCalculations();
@@ -148,12 +316,19 @@ namespace PerspektivenEV.Invoicing
ii.GrossAmountTotal = ii.AmountTotal;
serviceInvoicePeriod.InvoiceItemList.Add(ii);
}
}
public class Abrechnungsdaten
{
public String CategoryName { get; set; }
public override IList<InvoiceItem> CreateInvoiceItems(List<ServiceRecordDC> serviceRecordsInPeriod, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap,
Calculations calc)
{
return base.CreateInvoiceItems(serviceRecordsInPeriod, invoicePeriod, scap, calc);
}
public CompactSupportConceptDC CompactSupportConcept { get; set; }
public CostBearer2SupportConcept CostBearer2SupportConcept { get; set; }
public SupportConceptApprovalPeriod SupportConceptApprovalPeriod { get; set; }
public DateTime AbrechnungsStartDate { get; internal set; }
public DateTime AbrechnungsEndDate { get; internal set; }
}
}

View File

@@ -18,6 +18,11 @@ namespace PerspektivenEV.Invoicing
private DateTime? accountingPeriodStart = null;
private DateTime? accountingPeriodEnd = null;
public override void SetInvoiceId(ServiceInvoice invoice)
{
invoice.InvoiceBase.InvoiceId = "Selbstzahler";
//invoice.InvoiceBase.InvoiceTypeText = "Text in Rechnungsübersicht";
}
public override void SetInvoiceBaseData(int invoiceCounter, ServiceInvoice invoice, CostBearer costBearer, DateTimeSpan invoicePeriod,
IList<CompactSupportConceptDC> supportConceptList)

View File

@@ -48,6 +48,13 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="CollectiveBillingReport.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="CollectiveBillingReport.Designer.cs">
<DependentUpon>CollectiveBillingReport.cs</DependentUpon>
</Compile>
<Compile Include="CustomReportCreator.cs" />
<Compile Include="Invoicing\CollectiveInvoiceCreation.cs" />
<Compile Include="Invoicing\CustomInvoiceFactory.cs" />
<Compile Include="Invoicing\SelbstzahlerInvoiceCreation.cs" />
@@ -87,6 +94,9 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="CollectiveBillingReport.resx">
<DependentUpon>CollectiveBillingReport.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="CollectiveBillingReportTab.resx">
<DependentUpon>CollectiveBillingReportTab.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -146,6 +146,30 @@ namespace PerspektivenEV.Service
return flsProWoche * 4.34m;
}
public decimal GetJahreskontingent(SupportConceptApprovalPeriodDC scap)
{
if (scap.ApprovedBEInterval.HasValue && scap.ApprovedBEPerInterval.HasValue)
{
if (scap.ApprovedBEInterval.Value == SupportConceptApprovalInterval.Monthly)
{
return scap.ApprovedBEPerInterval.Value * 12;
}
else if (scap.ApprovedBEInterval.Value == SupportConceptApprovalInterval.Quarterly)
{
return scap.ApprovedBEPerInterval.Value * 4;
}
else if (scap.ApprovedBEInterval.Value == SupportConceptApprovalInterval.HalfYearly)
{
return scap.ApprovedBEPerInterval.Value * 2;
}
else if (scap.ApprovedBEInterval.Value == SupportConceptApprovalInterval.Yearly)
{
return scap.ApprovedBEPerInterval.Value;
}
}
return 0;
}
}

View File

@@ -2,10 +2,12 @@ using System;
using System.Text;
using BeWo.Report;
using BeWo.Report.ReportObjects;
using BS.Shared.Core;
using DevExpress.XtraReports.UI;
namespace PerspektivenEV
{
[IDSpecificClass(Identifier = "Selbstzahler")]
public partial class ServiceInvoiceReport : XtraReport, IBeWoReport<ServiceInvoiceRO>
{
public ServiceInvoiceReport()

View File

@@ -383,7 +383,7 @@ namespace VkmMenden
this.xrTableCell21.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrTableCell21.StylePriority.UsePadding = false;
this.xrTableCell21.StylePriority.UseTextAlignment = false;
this.xrTableCell21.Text = "marc.brumberg@vkm-menden.de";
this.xrTableCell21.Text = "kolja.kuepper@vkm-menden.de";
this.xrTableCell21.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
this.xrTableCell21.Weight = 0.31012402011277251D;
//

View File

@@ -3314,7 +3314,7 @@
<value>ewBcAHIAdABmADEAXABkAGUAZgBmADAAewBcAGYAbwBuAHQAdABiAGwAewBcAGYAMAAgAEMAYQBsAGkAYgByAGkAOwB9AHsAXABmADEAIABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBtAGEAbgA7AH0AewBcAGYAMgAgAFQAYQB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uAGQAZQBuAGsAbwBuAHQAZQBuAH0AXAB1AGwAXABmADIAXABmAHMAMQA0AFwAYwBmADEAXABwAGEAcgBcAHAAYQByAGQAXABwAGwAYQBpAG4AXABzADEAXABxAGMAXAB0AHEAYwBcAHQAeAA0ADUAMwA2AFwAdABxAHIAXAB0AHgAOQAwADcAMgBcAGIAXABmADIAXABmAHMAMQA0AFwAYwBmADEAXABwAGEAcgBcAHAAYQByAGQAXABwAGwAYQBpAG4AXABxAGMAewBcAGkAXABmADIAXABmAHMAMQA0AFwAYwBmADEAIABNAGUAbgBkAGUAbgBlAHIAIABCAGEAbgBrACAAZQBHAH0AXABiAFwAaQBcAGYAMgBcAGYAcwAxADQAXABjAGYAMQBcAHAAYQByAFwAcABhAHIAZABcAHAAbABhAGkAbgBcAHEAYwB7AFwAZgAyAFwAZgBzADEANABcAGMAZgAxACAASQBCAEEATgA6ACAARABFADEAOQAgADQANAA3ADYAIAAxADMAMQAyACAAMAA0ADMANAAgADYAOAA4ADUAIAAwADAAfQBcAGYAMgBcAGYAcwAxADQAXABjAGYAMQBcAHAAYQByAFwAcABhAHIAZABcAHAAbABhAGkAbgBcAHEAYwB7AFwAZgAyAFwAZgBzADEANABcAGMAZgAxACAAQgBJAEMAOgAgAEcARQBOAE8ARABFAE0AMQBNAEUATgB9AFwAbABhAG4AZwAxADAAMwAxAFwAbABhAG4AZwBmAGUAMQAwADMAMQBcAGYAcwAyADAAXABjAGYAMQBcAHAAYQByAH0A</value>
</data>
<data name="xrRichText1.SerializableRtfString" xml:space="preserve">
<value>ewBcAHIAdABmADEAXABkAGUAZgBmADAAewBcAGYAbwBuAHQAdABiAGwAewBcAGYAMAAgAEMAYQBsAGkAYgByAGkAOwB9AHsAXABmADEAIABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBtAGEAbgA7AH0AewBcAGYAMgAgAFQAYQBoAG8AbQBhADsAfQB9AHsAXABjAG8AbABvAHIAdABiAGwAIAA7AFwAcgBlAGQAMABcAGcAcgB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indingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>