EvVereinFürWohnraumhilfe mit PluginLoader

This commit is contained in:
2022-12-27 18:47:27 +01:00
parent 18214691b9
commit 2d2e23d0da
12 changed files with 1080 additions and 912 deletions

View File

@@ -742,6 +742,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MobileEV", "ReportImp\Mobil
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PsychosozialeProjekteSaarpfalz", "ReportImp\PsychosozialeProjekteSaarpfalz\PsychosozialeProjekteSaarpfalz.csproj", "{182599E0-36D9-4804-8904-F28F40A79A5D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EvVereinFürWohnraumhilfe", "ReportImp\EvVereinFürWohnraumhilfe\EvVereinFürWohnraumhilfe.csproj", "{91FEDB73-0198-474D-9269-1034D0558886}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|.NET = Debug|.NET
@@ -9029,6 +9031,30 @@ Global
{182599E0-36D9-4804-8904-F28F40A79A5D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{182599E0-36D9-4804-8904-F28F40A79A5D}.Release|x86.ActiveCfg = Release|Any CPU
{182599E0-36D9-4804-8904-F28F40A79A5D}.Release|x86.Build.0 = Release|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Debug|.NET.ActiveCfg = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Debug|.NET.Build.0 = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Debug|Any CPU.Build.0 = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Debug|x86.ActiveCfg = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Debug|x86.Build.0 = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.DebugRemote|.NET.ActiveCfg = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.DebugRemote|.NET.Build.0 = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.DebugRemote|Any CPU.ActiveCfg = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.DebugRemote|Any CPU.Build.0 = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.DebugRemote|Mixed Platforms.ActiveCfg = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.DebugRemote|Mixed Platforms.Build.0 = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.DebugRemote|x86.ActiveCfg = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.DebugRemote|x86.Build.0 = Debug|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Release|.NET.ActiveCfg = Release|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Release|.NET.Build.0 = Release|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Release|Any CPU.ActiveCfg = Release|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Release|Any CPU.Build.0 = Release|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Release|x86.ActiveCfg = Release|Any CPU
{91FEDB73-0198-474D-9269-1034D0558886}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -9398,6 +9424,7 @@ Global
{284983D5-2982-4A96-87B9-AEE265393D75} = {D8A691C5-146D-4613-86CC-438F02FE9106}
{48BB802C-43AF-4A3D-93F0-AE88A18E155C} = {D8A691C5-146D-4613-86CC-438F02FE9106}
{182599E0-36D9-4804-8904-F28F40A79A5D} = {D8A691C5-146D-4613-86CC-438F02FE9106}
{91FEDB73-0198-474D-9269-1034D0558886} = {D8A691C5-146D-4613-86CC-438F02FE9106}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {FBE985BB-9F0F-4DBB-8F94-ABC37A803FF9}

File diff suppressed because it is too large Load Diff

View File

@@ -2,19 +2,49 @@ using BeWo.Report.ReportObjects;
using DevExpress.XtraReports.UI;
using BS.Shared.Core;
using System;
namespace BeWo.Report.DefaultReports
{
[IDSpecificClass(Identifier = "Sammelrechnung")]
public partial class Sammelrechnung : XtraReport, IBeWoReport<ServiceInvoiceRO>
[IDSpecificClass(Identifier = "SammelrechnungAnhang")]
public partial class SammelrechnungAnhang : XtraReport, IBeWoReport<ServiceInvoiceRO>
{
public Sammelrechnung()
public SammelrechnungAnhang()
{
this.InitializeComponent();
}
public void SetReportDataSource(ServiceInvoiceRO pRO)
{
if (!String.IsNullOrEmpty(pRO.RecipientOrganisation) && pRO.RecipientOrganisation.Contains("LWV Hessen"))
{
pRO.RecipientOrganisation = pRO.RecipientAddressLine1;
}
foreach (var sip in pRO.ServiceInvoicePeriods)
{
if (sip.SupportConceptApprovalPeriod.ServiceCategory.Name.Contains("Monat"))
sip.ApprovedHours = 1;
else
{
DateTime end = sip.SupportConceptApprovalPeriod.EndDate ?? pRO.AccountingPeriodEnd;
DateTime start = sip.SupportConceptApprovalPeriod.StartDate ?? pRO.AccountingPeriodStart;
sip.ApprovedHours = (decimal)(end - start).TotalDays;
}
if (sip.CostBearer2SupportConcept.CustomerReferenceNumber == null)
sip.CostBearer2SupportConcept.CustomerReferenceNumber = "LVG";
if (sip.Notice != null)
{
sip.NotBillableString = String.Format("{0:0.00}", sip.ServiceInvoiceItems[0].NetAmount - Convert.ToDecimal(sip.Notice));
}
else
{
sip.NotBillableString = sip.Claim;
sip.Notice = "0,00";
}
}
this.bindingSource1.DataSource = pRO;
}
}

View File

@@ -1758,6 +1758,9 @@
igAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKAP/Z
</value>
</data>
<metadata name="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="xrPictureBox2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAANoAAABsCAYAAAAMjqyzAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
@@ -1961,7 +1964,4 @@
orWHPX9U/gfRNjPeXWPv5gAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View File

@@ -1,7 +1,7 @@
using BeWo.Report.ReportObjects;
namespace BeWo.CaritasFrankfurt2Reports
namespace EvVereinFürWohnraumhilfe
{
partial class Sammelrechnung2
partial class SammelrechnungTab
{
/// <summary>
/// Required designer variable.
@@ -29,8 +29,8 @@ namespace BeWo.CaritasFrankfurt2Reports
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SammelrechnungTab));
DevExpress.XtraReports.UI.XRSummary xrSummary1 = new DevExpress.XtraReports.UI.XRSummary();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Sammelrechnung2));
this.Detail = new DevExpress.XtraReports.UI.DetailBand();
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
this.ruleRateFactorNull = new DevExpress.XtraReports.UI.FormattingRule();
@@ -41,11 +41,10 @@ namespace BeWo.CaritasFrankfurt2Reports
this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell12 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell19 = new DevExpress.XtraReports.UI.XRTableCell();
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.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel();
@@ -54,18 +53,15 @@ namespace BeWo.CaritasFrankfurt2Reports
this.Detail1 = new DevExpress.XtraReports.UI.DetailBand();
this.xrTable6 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow25 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell38 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell42 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell9 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell45 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell17 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell18 = new DevExpress.XtraReports.UI.XRTableCell();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.fieldMonatskontingent = new DevExpress.XtraReports.UI.CalculatedField();
this.xrTableCell38 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell();
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.xrTable3 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow();
@@ -88,10 +84,12 @@ namespace BeWo.CaritasFrankfurt2Reports
this.xrTableCell48 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell49 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell50 = new DevExpress.XtraReports.UI.XRTableCell();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.fieldMonatskontingent = new DevExpress.XtraReports.UI.CalculatedField();
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
//
// Detail
@@ -117,7 +115,7 @@ namespace BeWo.CaritasFrankfurt2Reports
// topMarginBand1
//
this.topMarginBand1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.topMarginBand1.HeightF = 50F;
this.topMarginBand1.HeightF = 22.91667F;
this.topMarginBand1.Name = "topMarginBand1";
this.topMarginBand1.StylePriority.UseFont = false;
//
@@ -152,8 +150,6 @@ namespace BeWo.CaritasFrankfurt2Reports
this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
this.xrTableCell11,
this.xrTableCell12,
this.xrTableCell19,
this.xrTableCell13,
this.xrTableCell14});
this.xrTableRow2.Name = "xrTableRow2";
this.xrTableRow2.Weight = 0.67999999999999994D;
@@ -171,7 +167,7 @@ namespace BeWo.CaritasFrankfurt2Reports
this.xrTableCell11.StylePriority.UseTextAlignment = false;
this.xrTableCell11.Text = "Gesamtsumme";
this.xrTableCell11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
this.xrTableCell11.Weight = 1.0913838305665564D;
this.xrTableCell11.Weight = 1.4622065868766949D;
//
// xrTableCell12
//
@@ -180,21 +176,7 @@ namespace BeWo.CaritasFrankfurt2Reports
this.xrTableCell12.StylePriority.UseBorders = false;
this.xrTableCell12.StylePriority.UseTextAlignment = false;
this.xrTableCell12.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
this.xrTableCell12.Weight = 0.17859009658374178D;
//
// xrTableCell19
//
this.xrTableCell19.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell19.Name = "xrTableCell19";
this.xrTableCell19.StylePriority.UseBorders = false;
this.xrTableCell19.Weight = 0.19843343981819028D;
//
// xrTableCell13
//
this.xrTableCell13.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell13.Name = "xrTableCell13";
this.xrTableCell13.StylePriority.UseBorders = false;
this.xrTableCell13.Weight = 0.23191895600533544D;
this.xrTableCell12.Weight = 0.23811988033935538D;
//
// xrTableCell14
//
@@ -207,7 +189,7 @@ namespace BeWo.CaritasFrankfurt2Reports
this.xrTableCell14.StylePriority.UseTextAlignment = false;
this.xrTableCell14.Text = "xrTableCell9";
this.xrTableCell14.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell14.Weight = 0.23812039035552138D;
this.xrTableCell14.Weight = 0.2381202461132948D;
//
// ruleNoticeNull
//
@@ -229,6 +211,14 @@ namespace BeWo.CaritasFrankfurt2Reports
this.Page1.StylePriority.UseBorders = false;
this.Page1.StylePriority.UseFont = false;
//
// xrPictureBox1
//
this.xrPictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox1.Image")));
this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(374.9998F, 0F);
this.xrPictureBox1.Name = "xrPictureBox1";
this.xrPictureBox1.SizeF = new System.Drawing.SizeF(674.0001F, 73.75002F);
this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
//
// xrLabel3
//
this.xrLabel3.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Right | DevExpress.XtraPrinting.BorderSide.Bottom)));
@@ -271,7 +261,7 @@ namespace BeWo.CaritasFrankfurt2Reports
// xrLabel7
//
this.xrLabel7.Font = new System.Drawing.Font("Arial", 8F);
this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(2.999973F, 0F);
this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(0F, 10.00001F);
this.xrLabel7.Multiline = true;
this.xrLabel7.Name = "xrLabel7";
this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
@@ -346,6 +336,21 @@ namespace BeWo.CaritasFrankfurt2Reports
this.xrTableRow25.Name = "xrTableRow25";
this.xrTableRow25.Weight = 0.67999999999999994D;
//
// xrTableCell38
//
this.xrTableCell38.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell38.Name = "xrTableCell38";
this.xrTableCell38.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
this.xrTableCell38.StylePriority.UseBorders = false;
this.xrTableCell38.StylePriority.UsePadding = false;
this.xrTableCell38.StylePriority.UseTextAlignment = false;
xrSummary1.Func = DevExpress.XtraReports.UI.SummaryFunc.RecordNumber;
xrSummary1.Running = DevExpress.XtraReports.UI.SummaryRunning.Report;
this.xrTableCell38.Summary = xrSummary1;
this.xrTableCell38.Text = "1";
this.xrTableCell38.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell38.Weight = 0.10634058531450184D;
//
// xrTableCell42
//
this.xrTableCell42.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
@@ -412,11 +417,24 @@ namespace BeWo.CaritasFrankfurt2Reports
this.xrTableCell45.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell45.Weight = 0.13350326965073692D;
//
// xrTableCell1
//
this.xrTableCell1.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ApprovedHours")});
this.xrTableCell1.Name = "xrTableCell1";
this.xrTableCell1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
this.xrTableCell1.StylePriority.UseBorders = false;
this.xrTableCell1.StylePriority.UsePadding = false;
this.xrTableCell1.StylePriority.UseTextAlignment = false;
this.xrTableCell1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell1.Weight = 0.19938885776036786D;
//
// xrTableCell17
//
this.xrTableCell17.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell17.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ApprovedAmount", "{0:c}")});
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.Notice", "{0} €")});
this.xrTableCell17.Name = "xrTableCell17";
this.xrTableCell17.StylePriority.UseBorders = false;
this.xrTableCell17.StylePriority.UseTextAlignment = false;
@@ -436,53 +454,6 @@ namespace BeWo.CaritasFrankfurt2Reports
this.xrTableCell18.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell18.Weight = 0.33289234941870466D;
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServiceInvoiceRO);
//
// fieldMonatskontingent
//
this.fieldMonatskontingent.DataMember = "ServiceInvoicePeriods";
this.fieldMonatskontingent.Expression = "[SupportConceptApprovalPeriod.ApprovedBEPerInterval]/12";
this.fieldMonatskontingent.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal;
this.fieldMonatskontingent.Name = "fieldMonatskontingent";
//
// xrTableCell38
//
this.xrTableCell38.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell38.Name = "xrTableCell38";
this.xrTableCell38.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
this.xrTableCell38.StylePriority.UseBorders = false;
this.xrTableCell38.StylePriority.UsePadding = false;
this.xrTableCell38.StylePriority.UseTextAlignment = false;
xrSummary1.Func = DevExpress.XtraReports.UI.SummaryFunc.RecordNumber;
xrSummary1.Running = DevExpress.XtraReports.UI.SummaryRunning.Report;
this.xrTableCell38.Summary = xrSummary1;
this.xrTableCell38.Text = "1";
this.xrTableCell38.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell38.Weight = 0.10634058531450184D;
//
// xrPictureBox1
//
this.xrPictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox1.Image")));
this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(374.9998F, 0F);
this.xrPictureBox1.Name = "xrPictureBox1";
this.xrPictureBox1.SizeF = new System.Drawing.SizeF(674.0001F, 73.75002F);
this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
//
// xrTableCell1
//
this.xrTableCell1.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ApprovedHours")});
this.xrTableCell1.Name = "xrTableCell1";
this.xrTableCell1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F);
this.xrTableCell1.StylePriority.UseBorders = false;
this.xrTableCell1.StylePriority.UsePadding = false;
this.xrTableCell1.StylePriority.UseTextAlignment = false;
this.xrTableCell1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell1.Weight = 0.19938885776036786D;
//
// GroupHeader1
//
this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
@@ -716,7 +687,18 @@ namespace BeWo.CaritasFrankfurt2Reports
this.xrTableCell50.StylePriority.UseBorders = false;
this.xrTableCell50.Weight = 0.33118939540021597D;
//
// Sammelrechnung2
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServiceInvoiceRO);
//
// fieldMonatskontingent
//
this.fieldMonatskontingent.DataMember = "ServiceInvoicePeriods";
this.fieldMonatskontingent.Expression = "[SupportConceptApprovalPeriod.ApprovedBEPerInterval]/12";
this.fieldMonatskontingent.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal;
this.fieldMonatskontingent.Name = "fieldMonatskontingent";
//
// SammelrechnungTab
//
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
this.Detail,
@@ -735,15 +717,15 @@ namespace BeWo.CaritasFrankfurt2Reports
this.ruleRateFactorNull,
this.ruleNoticeNull});
this.Landscape = true;
this.Margins = new System.Drawing.Printing.Margins(60, 60, 50, 15);
this.Margins = new System.Drawing.Printing.Margins(60, 60, 23, 15);
this.PageHeight = 827;
this.PageWidth = 1169;
this.PaperKind = System.Drawing.Printing.PaperKind.A4;
this.Version = "17.1";
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
}
@@ -773,14 +755,12 @@ namespace BeWo.CaritasFrankfurt2Reports
private DevExpress.XtraReports.UI.XRTableRow xrTableRow2;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell11;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell12;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell13;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell14;
private DevExpress.XtraReports.UI.XRLabel xrLabel3;
private DevExpress.XtraReports.UI.XRLabel xrLabel1;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell17;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell18;
private DevExpress.XtraReports.UI.CalculatedField fieldMonatskontingent;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell19;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell38;
private DevExpress.XtraReports.UI.XRPictureBox xrPictureBox1;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell1;

View File

@@ -5,12 +5,12 @@ using DevExpress.XtraReports.UI;
using BS.Shared.Core;
using System;
namespace BeWo.CaritasFrankfurt2Reports
namespace EvVereinFürWohnraumhilfe
{
[IDSpecificClass(Identifier = "Sammelrechnung")]
public partial class Sammelrechnung2 : XtraReport, IBeWoReport<ServiceInvoiceRO>
public partial class SammelrechnungTab : XtraReport, IBeWoReport<ServiceInvoiceRO>
{
public Sammelrechnung2()
public SammelrechnungTab()
{
this.InitializeComponent();
}
@@ -30,8 +30,15 @@ namespace BeWo.CaritasFrankfurt2Reports
sip.ApprovedHours = (decimal)(end - start).TotalDays;
}
if (sip.CostBearer2SupportConcept.CustomerReferenceNumber == null)
sip.CostBearer2SupportConcept.CustomerReferenceNumber = "LVG";
}
this.bindingSource1.DataSource = pRO;
//var anhang = new SammelrechnungAnhang();
//xrSubreport1.ReportSource = anhang;
//anhang.SetReportDataSource(pRO);
this.bindingSource1.DataSource = pRO;
}
}
}

View File

@@ -0,0 +1,92 @@
using System;
using System.Collections.Generic;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Report;
using BeWo.Report.DefaultReports;
using BeWo.Report.ReportObjects;
using BeWo.Service.DCEntityMapper;
using BS.Shared.DataContracts;
using DevExpress.XtraReports.UI;
namespace EvVereinFürWohnraumhilfe
{
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);
}
return CreateInvoiceReport(dcList);
}
return new XtraReport();
}
private XtraReport CreateInvoiceReport(List<ServiceInvoiceDC> invoices)
{
XtraReport allReports = null;
foreach (var iDC in invoices)
{
XtraReport invoiceReport = null;
if (iDC.InvoiceBase.InvoiceId == "Sammelrechnung")
{
var seite1 = new SammelrechnungTab();
var ro = ServiceInvoiceRO.Create(iDC);
seite1.SetReportDataSource(ro);
seite1.CreateDocument();
foreach (var sip in ro.ServiceInvoicePeriods)
{
var newro = ServiceInvoiceRO.Create(iDC);
newro.ServiceInvoicePeriods = new List<ServiceInvoicePeriodRO>();
newro.ServiceInvoicePeriods.Add(sip);
var anhang = new SammelrechnungAnhang();
anhang.SetReportDataSource(newro);
anhang.CreateDocument();
seite1.Pages.AddRange(anhang.Pages);
}
invoiceReport = seite1;
}
else
{
IBeWoReport<ServiceInvoiceRO> singleReport = FindReportImp<ServiceInvoiceRO>(iDC.InvoiceBase.InvoiceId);
singleReport.SetReportDataSource(ServiceInvoiceRO.Create(iDC));
((XtraReport)singleReport).CreateDocument();
invoiceReport = singleReport as XtraReport;
}
if (allReports == null)
allReports = invoiceReport;
else
((XtraReport)allReports).Pages.AddRange(invoiceReport.Pages);
}
return allReports as XtraReport;
}
}
}

View File

@@ -48,18 +48,27 @@
<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="CollectiveBillingReport2.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="CollectiveBillingReport2.Designer.cs">
<DependentUpon>CollectiveBillingReport2.cs</DependentUpon>
</Compile>
<Compile Include="CustomReportCreator.cs" />
<Compile Include="InvoiceCustomerReport.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="InvoiceCustomerReport.Designer.cs">
<DependentUpon>InvoiceCustomerReport.cs</DependentUpon>
</Compile>
<Compile Include="Invoicing\CollectiveInvoiceCreation.cs" />
<Compile Include="Invoicing\CustomInvoiceFactory.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
@@ -81,6 +90,10 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="CollectiveBillingReport.resx">
<DependentUpon>CollectiveBillingReport.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="CollectiveBillingReport2.resx">
<DependentUpon>CollectiveBillingReport2.cs</DependentUpon>
</EmbeddedResource>
@@ -90,5 +103,6 @@
</EmbeddedResource>
<EmbeddedResource Include="Properties\licenses.licx" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -32,7 +32,18 @@ namespace EvVereinF
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InvoiceCustomerReport));
this.Detail = new DevExpress.XtraReports.UI.DetailBand();
this.xrLabel6 = new DevExpress.XtraReports.UI.XRLabel();
this.xrRichText1 = new DevExpress.XtraReports.UI.XRRichText();
this.lblMahnung1 = new DevExpress.XtraReports.UI.XRLabel();
this.xrRichText2 = new DevExpress.XtraReports.UI.XRRichText();
this.xrRichText3 = new DevExpress.XtraReports.UI.XRRichText();
this.lblMahnung2 = new DevExpress.XtraReports.UI.XRLabel();
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
this.lblBetreff = new DevExpress.XtraReports.UI.XRLabel();
this.lblEigenanteile = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel11 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel9 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel();
this.lblAddress = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel();
@@ -40,33 +51,19 @@ namespace EvVereinF
this.lblNutzung = new DevExpress.XtraReports.UI.XRLabel();
this.ruleRateFactorNull = new DevExpress.XtraReports.UI.FormattingRule();
this.ReportFooter = new DevExpress.XtraReports.UI.ReportFooterBand();
this.xrLabel17 = new DevExpress.XtraReports.UI.XRLabel();
this.xrPictureBox2 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel10 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel12 = new DevExpress.XtraReports.UI.XRLabel();
this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand();
this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand();
this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel9 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel11 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel();
this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand();
this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel();
this.lblEigenanteile = new DevExpress.XtraReports.UI.XRLabel();
this.lblBetreff = new DevExpress.XtraReports.UI.XRLabel();
this.xrPictureBox2 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel();
this.Zahlziel = new DevExpress.XtraReports.UI.CalculatedField();
this.xrLabel17 = new DevExpress.XtraReports.UI.XRLabel();
this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand();
this.Detail1 = new DevExpress.XtraReports.UI.DetailBand();
this.xrLabel6 = new DevExpress.XtraReports.UI.XRLabel();
this.xrRichText1 = new DevExpress.XtraReports.UI.XRRichText();
this.lblMahnung1 = new DevExpress.XtraReports.UI.XRLabel();
this.xrRichText2 = new DevExpress.XtraReports.UI.XRRichText();
this.xrRichText3 = new DevExpress.XtraReports.UI.XRRichText();
this.lblMahnung2 = new DevExpress.XtraReports.UI.XRLabel();
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.xrLabel16 = new DevExpress.XtraReports.UI.XRLabel();
this.xrTable1 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow9 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell();
@@ -75,6 +72,7 @@ namespace EvVereinF
this.xrTableCell14 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell12 = new DevExpress.XtraReports.UI.XRTableCell();
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.xrTable3 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow10 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell15 = new DevExpress.XtraReports.UI.XRTableCell();
@@ -83,9 +81,11 @@ namespace EvVereinF
this.xrTableCell18 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell19 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell20 = new DevExpress.XtraReports.UI.XRTableCell();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.xrLabel16 = new DevExpress.XtraReports.UI.XRLabel();
this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand();
this.xrLabel18 = new DevExpress.XtraReports.UI.XRLabel();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.xrLabel12 = new DevExpress.XtraReports.UI.XRLabel();
((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrRichText3)).BeginInit();
@@ -108,6 +108,66 @@ namespace EvVereinF
this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
//
// xrLabel6
//
this.xrLabel6.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel6.LocationFloat = new DevExpress.Utils.PointFloat(3.178914E-05F, 0F);
this.xrLabel6.Multiline = true;
this.xrLabel6.Name = "xrLabel6";
this.xrLabel6.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel6.SizeF = new System.Drawing.SizeF(666.9999F, 58.66669F);
this.xrLabel6.StylePriority.UseFont = false;
this.xrLabel6.Text = "Sie zahlen bzw. haben Eigenanteile für die Nutzung unserer Wohnung in [RecipientS" +
"treet], [RecipientPostCode] [RecipientTown] zahlen müssen. Ihr Konto bei uns ist" +
" leider noch nicht ausgeglichen.";
//
// xrRichText1
//
this.xrRichText1.Font = new System.Drawing.Font("Arial", 11F);
this.xrRichText1.LocationFloat = new DevExpress.Utils.PointFloat(3.178914E-05F, 63.54148F);
this.xrRichText1.Name = "xrRichText1";
this.xrRichText1.SerializableRtfString = resources.GetString("xrRichText1.SerializableRtfString");
this.xrRichText1.SizeF = new System.Drawing.SizeF(666.1637F, 21.08331F);
//
// lblMahnung1
//
this.lblMahnung1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblMahnung1.LocationFloat = new DevExpress.Utils.PointFloat(3.178914E-05F, 96.7708F);
this.lblMahnung1.Multiline = true;
this.lblMahnung1.Name = "lblMahnung1";
this.lblMahnung1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblMahnung1.SizeF = new System.Drawing.SizeF(666.9999F, 83.66663F);
this.lblMahnung1.StylePriority.UseFont = false;
this.lblMahnung1.Text = resources.GetString("lblMahnung1.Text");
//
// xrRichText2
//
this.xrRichText2.Font = new System.Drawing.Font("Arial", 11F);
this.xrRichText2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 203.2292F);
this.xrRichText2.Name = "xrRichText2";
this.xrRichText2.SerializableRtfString = resources.GetString("xrRichText2.SerializableRtfString");
this.xrRichText2.SizeF = new System.Drawing.SizeF(666.1637F, 86.54163F);
//
// xrRichText3
//
this.xrRichText3.Font = new System.Drawing.Font("Arial", 11F);
this.xrRichText3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 301.6666F);
this.xrRichText3.Name = "xrRichText3";
this.xrRichText3.SerializableRtfString = resources.GetString("xrRichText3.SerializableRtfString");
this.xrRichText3.SizeF = new System.Drawing.SizeF(666.1637F, 28.37497F);
//
// lblMahnung2
//
this.lblMahnung2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblMahnung2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 96.7708F);
this.lblMahnung2.Multiline = true;
this.lblMahnung2.Name = "lblMahnung2";
this.lblMahnung2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblMahnung2.SizeF = new System.Drawing.SizeF(666.9999F, 106.4584F);
this.lblMahnung2.StylePriority.UseFont = false;
this.lblMahnung2.Text = resources.GetString("lblMahnung2.Text");
this.lblMahnung2.Visible = false;
//
// ReportHeader
//
this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
@@ -126,6 +186,68 @@ namespace EvVereinF
this.ReportHeader.Name = "ReportHeader";
this.ReportHeader.StylePriority.UseFont = false;
//
// lblBetreff
//
this.lblBetreff.BackColor = System.Drawing.Color.Transparent;
this.lblBetreff.CanShrink = true;
this.lblBetreff.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
this.lblBetreff.LocationFloat = new DevExpress.Utils.PointFloat(0F, 269.5833F);
this.lblBetreff.Name = "lblBetreff";
this.lblBetreff.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblBetreff.SizeF = new System.Drawing.SizeF(650F, 20F);
this.lblBetreff.StylePriority.UseBackColor = false;
this.lblBetreff.StylePriority.UseFont = false;
this.lblBetreff.Text = "1. Mahnung";
this.lblBetreff.WordWrap = false;
//
// lblEigenanteile
//
this.lblEigenanteile.BackColor = System.Drawing.Color.Transparent;
this.lblEigenanteile.CanShrink = true;
this.lblEigenanteile.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
this.lblEigenanteile.LocationFloat = new DevExpress.Utils.PointFloat(3.178914E-05F, 249.5833F);
this.lblEigenanteile.Name = "lblEigenanteile";
this.lblEigenanteile.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblEigenanteile.SizeF = new System.Drawing.SizeF(650F, 20F);
this.lblEigenanteile.StylePriority.UseBackColor = false;
this.lblEigenanteile.StylePriority.UseFont = false;
this.lblEigenanteile.Text = "Ihre Eigenanteile";
this.lblEigenanteile.WordWrap = false;
//
// xrLabel11
//
this.xrLabel11.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(463.9167F, 70.58334F);
this.xrLabel11.Multiline = true;
this.xrLabel11.Name = "xrLabel11";
this.xrLabel11.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel11.SizeF = new System.Drawing.SizeF(213.0833F, 89.33334F);
this.xrLabel11.StylePriority.UseFont = false;
this.xrLabel11.Text = "Betreutes Wohnen für junge Erwachsene\r\nAneta Süß\r\nTel:\t069 408958 210\r\nFax:\t069 4" +
"08958 270\r\nE-Mail: \taneta.suess@evvfwh.de ";
//
// xrLabel9
//
this.xrLabel9.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(463.9167F, 26.04167F);
this.xrLabel9.Multiline = true;
this.xrLabel9.Name = "xrLabel9";
this.xrLabel9.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel9.SizeF = new System.Drawing.SizeF(213.0833F, 44.54168F);
this.xrLabel9.StylePriority.UseFont = false;
this.xrLabel9.Text = "Lindleystraße 15\r\n60314 Frankfurt am Main";
//
// xrLabel7
//
this.xrLabel7.Font = new System.Drawing.Font("Segoe UI", 6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(0F, 26.04167F);
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(351.375F, 28.91668F);
this.xrLabel7.StylePriority.UseFont = false;
this.xrLabel7.Text = " Ev. Verein für Wohnraumhilfe | Lindleystr. 15 | 60314 Frankfurt am Main";
//
// xrLabel1
//
this.xrLabel1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
@@ -212,6 +334,24 @@ namespace EvVereinF
this.ReportFooter.Name = "ReportFooter";
this.ReportFooter.StylePriority.UseFont = false;
//
// xrLabel17
//
this.xrLabel17.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel17.LocationFloat = new DevExpress.Utils.PointFloat(0F, 179.2084F);
this.xrLabel17.Name = "xrLabel17";
this.xrLabel17.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel17.SizeF = new System.Drawing.SizeF(200F, 17F);
this.xrLabel17.StylePriority.UseFont = false;
this.xrLabel17.Text = "Aneta Süß";
//
// xrPictureBox2
//
this.xrPictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox2.Image")));
this.xrPictureBox2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 101.7085F);
this.xrPictureBox2.Name = "xrPictureBox2";
this.xrPictureBox2.SizeF = new System.Drawing.SizeF(152.6039F, 77.49997F);
this.xrPictureBox2.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
//
// xrLabel8
//
this.xrLabel8.CanShrink = true;
@@ -233,16 +373,6 @@ namespace EvVereinF
this.xrLabel10.StylePriority.UseFont = false;
this.xrLabel10.Text = "Mit freundlichen Grüßen";
//
// xrLabel12
//
this.xrLabel12.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel12.LocationFloat = new DevExpress.Utils.PointFloat(0F, 196.2085F);
this.xrLabel12.Name = "xrLabel12";
this.xrLabel12.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel12.SizeF = new System.Drawing.SizeF(292F, 17.00002F);
this.xrLabel12.StylePriority.UseFont = false;
this.xrLabel12.Text = "Leitung Betreutes Wohnen für junge Erwachsene";
//
// topMarginBand1
//
this.topMarginBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
@@ -250,6 +380,14 @@ namespace EvVereinF
this.topMarginBand1.HeightF = 144F;
this.topMarginBand1.Name = "topMarginBand1";
//
// xrPictureBox1
//
this.xrPictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox1.Image")));
this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 45.41833F);
this.xrPictureBox1.Name = "xrPictureBox1";
this.xrPictureBox1.SizeF = new System.Drawing.SizeF(674.0001F, 73.75002F);
this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
//
// bottomMarginBand1
//
this.bottomMarginBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
@@ -259,59 +397,16 @@ namespace EvVereinF
this.bottomMarginBand1.HeightF = 112F;
this.bottomMarginBand1.Name = "bottomMarginBand1";
//
// xrPictureBox1
// xrLabel15
//
this.xrPictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox1.Image")));
this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 45.41833F);
this.xrPictureBox1.Name = "xrPictureBox1";
this.xrPictureBox1.SizeF = new System.Drawing.SizeF(674.0001F, 73.75002F);
this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
//
// xrLabel7
//
this.xrLabel7.Font = new System.Drawing.Font("Segoe UI", 6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(0F, 26.04167F);
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(351.375F, 28.91668F);
this.xrLabel7.StylePriority.UseFont = false;
this.xrLabel7.Text = " Ev. Verein für Wohnraumhilfe | Lindleystr. 15 | 60314 Frankfurt am Main";
//
// xrLabel9
//
this.xrLabel9.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(463.9167F, 26.04167F);
this.xrLabel9.Multiline = true;
this.xrLabel9.Name = "xrLabel9";
this.xrLabel9.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel9.SizeF = new System.Drawing.SizeF(213.0833F, 44.54168F);
this.xrLabel9.StylePriority.UseFont = false;
this.xrLabel9.Text = "Lindleystraße 15\r\n60314 Frankfurt am Main";
//
// xrLabel11
//
this.xrLabel11.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(463.9167F, 70.58334F);
this.xrLabel11.Multiline = true;
this.xrLabel11.Name = "xrLabel11";
this.xrLabel11.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel11.SizeF = new System.Drawing.SizeF(213.0833F, 89.33334F);
this.xrLabel11.StylePriority.UseFont = false;
this.xrLabel11.Text = "Betreutes Wohnen für junge Erwachsene\r\nAneta Süß\r\nTel:\t069 408958 210\r\nFax:\t069 4" +
"08958 270\r\nE-Mail: \taneta.suess@evvfwh.de ";
//
// xrLabel13
//
this.xrLabel13.Font = new System.Drawing.Font("Segoe UI", 6F);
this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(0F, 28.24999F);
this.xrLabel13.Multiline = true;
this.xrLabel13.Name = "xrLabel13";
this.xrLabel13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel13.SizeF = new System.Drawing.SizeF(217.7501F, 36.20834F);
this.xrLabel13.StylePriority.UseFont = false;
this.xrLabel13.Text = "Ev. Verein für Wohnraumhilfe in Frankfurt am Main e.V\r\nLindleystr. 15, 60314 Fran" +
"kfurt am Main";
this.xrLabel15.Font = new System.Drawing.Font("Segoe UI", 6F);
this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(441.5848F, 28.24999F);
this.xrLabel15.Multiline = true;
this.xrLabel15.Name = "xrLabel15";
this.xrLabel15.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel15.SizeF = new System.Drawing.SizeF(209.2514F, 36.20834F);
this.xrLabel15.StylePriority.UseFont = false;
this.xrLabel15.Text = "Besondere Vertreter gem. § 30 BGB:\r\nRebekka Georgi, Heinz Gonther";
//
// xrLabel14
//
@@ -325,68 +420,23 @@ namespace EvVereinF
this.xrLabel14.Text = "AG Frankfurt am Main VR 8389\r\nVorstand: Pfarrer Dr. Michael Frase\r\nStellvertreter" +
"in: Karin Kühn";
//
// xrLabel15
// xrLabel13
//
this.xrLabel15.Font = new System.Drawing.Font("Segoe UI", 6F);
this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(441.5848F, 28.24999F);
this.xrLabel15.Multiline = true;
this.xrLabel15.Name = "xrLabel15";
this.xrLabel15.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel15.SizeF = new System.Drawing.SizeF(209.2514F, 36.20834F);
this.xrLabel15.StylePriority.UseFont = false;
this.xrLabel15.Text = "Besondere Vertreter gem. § 30 BGB:\r\nRebekka Georgi, Heinz Gonther";
//
// lblEigenanteile
//
this.lblEigenanteile.BackColor = System.Drawing.Color.Transparent;
this.lblEigenanteile.CanShrink = true;
this.lblEigenanteile.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
this.lblEigenanteile.LocationFloat = new DevExpress.Utils.PointFloat(3.178914E-05F, 249.5833F);
this.lblEigenanteile.Name = "lblEigenanteile";
this.lblEigenanteile.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblEigenanteile.SizeF = new System.Drawing.SizeF(650F, 20F);
this.lblEigenanteile.StylePriority.UseBackColor = false;
this.lblEigenanteile.StylePriority.UseFont = false;
this.lblEigenanteile.Text = "Ihre Eigenanteile";
this.lblEigenanteile.WordWrap = false;
//
// lblBetreff
//
this.lblBetreff.BackColor = System.Drawing.Color.Transparent;
this.lblBetreff.CanShrink = true;
this.lblBetreff.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
this.lblBetreff.LocationFloat = new DevExpress.Utils.PointFloat(0F, 269.5833F);
this.lblBetreff.Name = "lblBetreff";
this.lblBetreff.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblBetreff.SizeF = new System.Drawing.SizeF(650F, 20F);
this.lblBetreff.StylePriority.UseBackColor = false;
this.lblBetreff.StylePriority.UseFont = false;
this.lblBetreff.Text = "1. Mahnung";
this.lblBetreff.WordWrap = false;
//
// xrPictureBox2
//
this.xrPictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox2.Image")));
this.xrPictureBox2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 101.7085F);
this.xrPictureBox2.Name = "xrPictureBox2";
this.xrPictureBox2.SizeF = new System.Drawing.SizeF(152.6039F, 77.49997F);
this.xrPictureBox2.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
this.xrLabel13.Font = new System.Drawing.Font("Segoe UI", 6F);
this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(0F, 28.24999F);
this.xrLabel13.Multiline = true;
this.xrLabel13.Name = "xrLabel13";
this.xrLabel13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel13.SizeF = new System.Drawing.SizeF(217.7501F, 36.20834F);
this.xrLabel13.StylePriority.UseFont = false;
this.xrLabel13.Text = "Ev. Verein für Wohnraumhilfe in Frankfurt am Main e.V\r\nLindleystr. 15, 60314 Fran" +
"kfurt am Main";
//
// Zahlziel
//
this.Zahlziel.Expression = "AddDays([InvoiceDateTime],14)";
this.Zahlziel.Name = "Zahlziel";
//
// xrLabel17
//
this.xrLabel17.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel17.LocationFloat = new DevExpress.Utils.PointFloat(0F, 179.2084F);
this.xrLabel17.Name = "xrLabel17";
this.xrLabel17.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel17.SizeF = new System.Drawing.SizeF(200F, 17F);
this.xrLabel17.StylePriority.UseFont = false;
this.xrLabel17.Text = "Aneta Süß";
//
// DetailReport
//
this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
@@ -406,85 +456,6 @@ namespace EvVereinF
this.Detail1.HeightF = 25F;
this.Detail1.Name = "Detail1";
//
// xrLabel6
//
this.xrLabel6.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel6.LocationFloat = new DevExpress.Utils.PointFloat(3.178914E-05F, 0F);
this.xrLabel6.Multiline = true;
this.xrLabel6.Name = "xrLabel6";
this.xrLabel6.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel6.SizeF = new System.Drawing.SizeF(666.9999F, 58.66669F);
this.xrLabel6.StylePriority.UseFont = false;
this.xrLabel6.Text = "Sie zahlen bzw. haben Eigenanteile für die Nutzung unserer Wohnung in [RecipientS" +
"treet], [RecipientPostCode] [RecipientTown] zahlen müssen. Ihr Konto bei uns ist" +
" leider noch nicht ausgeglichen.";
//
// xrRichText1
//
this.xrRichText1.Font = new System.Drawing.Font("Arial", 11F);
this.xrRichText1.LocationFloat = new DevExpress.Utils.PointFloat(3.178914E-05F, 63.54148F);
this.xrRichText1.Name = "xrRichText1";
this.xrRichText1.SerializableRtfString = resources.GetString("xrRichText1.SerializableRtfString");
this.xrRichText1.SizeF = new System.Drawing.SizeF(666.1637F, 21.08331F);
//
// lblMahnung1
//
this.lblMahnung1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblMahnung1.LocationFloat = new DevExpress.Utils.PointFloat(3.178914E-05F, 96.7708F);
this.lblMahnung1.Multiline = true;
this.lblMahnung1.Name = "lblMahnung1";
this.lblMahnung1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblMahnung1.SizeF = new System.Drawing.SizeF(666.9999F, 83.66663F);
this.lblMahnung1.StylePriority.UseFont = false;
this.lblMahnung1.Text = resources.GetString("lblMahnung1.Text");
//
// xrRichText2
//
this.xrRichText2.Font = new System.Drawing.Font("Arial", 11F);
this.xrRichText2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 203.2292F);
this.xrRichText2.Name = "xrRichText2";
this.xrRichText2.SerializableRtfString = resources.GetString("xrRichText2.SerializableRtfString");
this.xrRichText2.SizeF = new System.Drawing.SizeF(666.1637F, 86.54163F);
//
// xrRichText3
//
this.xrRichText3.Font = new System.Drawing.Font("Arial", 11F);
this.xrRichText3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 301.6666F);
this.xrRichText3.Name = "xrRichText3";
this.xrRichText3.SerializableRtfString = resources.GetString("xrRichText3.SerializableRtfString");
this.xrRichText3.SizeF = new System.Drawing.SizeF(666.1637F, 28.37497F);
//
// lblMahnung2
//
this.lblMahnung2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblMahnung2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 96.7708F);
this.lblMahnung2.Multiline = true;
this.lblMahnung2.Name = "lblMahnung2";
this.lblMahnung2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblMahnung2.SizeF = new System.Drawing.SizeF(666.9999F, 106.4584F);
this.lblMahnung2.StylePriority.UseFont = false;
this.lblMahnung2.Text = resources.GetString("lblMahnung2.Text");
this.lblMahnung2.Visible = false;
//
// GroupHeader1
//
this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrTable3,
this.xrLabel16});
this.GroupHeader1.HeightF = 100F;
this.GroupHeader1.Name = "GroupHeader1";
//
// xrLabel16
//
this.xrLabel16.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel16.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
this.xrLabel16.Multiline = true;
this.xrLabel16.Name = "xrLabel16";
this.xrLabel16.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel16.SizeF = new System.Drawing.SizeF(666.9999F, 58.66669F);
this.xrLabel16.StylePriority.UseFont = false;
this.xrLabel16.Text = resources.GetString("xrLabel16.Text");
//
// xrTable1
//
this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
@@ -608,6 +579,14 @@ namespace EvVereinF
this.xrTableCell12.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell12.Weight = 1.0152204985905673D;
//
// GroupHeader1
//
this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrTable3,
this.xrLabel16});
this.GroupHeader1.HeightF = 100F;
this.GroupHeader1.Name = "GroupHeader1";
//
// xrTable3
//
this.xrTable3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 75F);
@@ -725,9 +704,16 @@ namespace EvVereinF
this.xrTableCell20.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight;
this.xrTableCell20.Weight = 1.0152204985905673D;
//
// bindingSource1
// xrLabel16
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.InvoiceCustomerRO);
this.xrLabel16.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel16.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
this.xrLabel16.Multiline = true;
this.xrLabel16.Name = "xrLabel16";
this.xrLabel16.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel16.SizeF = new System.Drawing.SizeF(666.9999F, 58.66669F);
this.xrLabel16.StylePriority.UseFont = false;
this.xrLabel16.Text = resources.GetString("xrLabel16.Text");
//
// GroupFooter1
//
@@ -748,6 +734,20 @@ namespace EvVereinF
this.xrLabel18.Text = "Aus diesem Grund kündigen wir fristlos zum [Zahlziel!dd.MM.yyyy]. Bitte entfernen" +
" Sie Ihr Eigentum aus unserer Wohnung. \r\n\r\nWir bedauern sehr, dass wir diesen We" +
"g gehen müssen.";
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.InvoiceCustomerRO);
//
// xrLabel12
//
this.xrLabel12.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrLabel12.LocationFloat = new DevExpress.Utils.PointFloat(0F, 196.2085F);
this.xrLabel12.Name = "xrLabel12";
this.xrLabel12.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel12.SizeF = new System.Drawing.SizeF(292F, 17.00002F);
this.xrLabel12.StylePriority.UseFont = false;
this.xrLabel12.Text = "Leitung Betreutes Wohnen für junge Erwachsene";
//
// InvoiceCustomerReport
//
@@ -788,7 +788,6 @@ namespace EvVereinF
private DevExpress.XtraReports.UI.XRLabel xrLabel4;
private DevExpress.XtraReports.UI.XRLabel lblNutzung;
private DevExpress.XtraReports.UI.ReportFooterBand ReportFooter;
private DevExpress.XtraReports.UI.XRLabel xrLabel12;
private DevExpress.XtraReports.UI.XRLabel xrLabel10;
private DevExpress.XtraReports.UI.FormattingRule ruleRateFactorNull;
private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1;
@@ -836,5 +835,6 @@ namespace EvVereinF
private DevExpress.XtraReports.UI.XRTableCell xrTableCell20;
private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter1;
private DevExpress.XtraReports.UI.XRLabel xrLabel18;
private DevExpress.XtraReports.UI.XRLabel xrLabel12;
}
}

View File

@@ -0,0 +1,114 @@
using System;
using System.Collections.Generic;
using System.Linq;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Report.ReportObjects;
using BeWo.Service.DCEntityMapper;
using BeWo.Service.Invoicing;
using BeWo.Service.Plugins;
using BS.Shared;
using BS.Shared.Core;
using BS.Shared.DataContracts;
using BS.Shared.DataContracts.Compact;
using BS.Shared.Extensions;
using BS.Shared.Services;
namespace EvVereinFürWohnraumhilfe.Invoicing
{
public class CollectiveInvoiceCreation : InvoiceCreation
{
private DateTime? accountingPeriodStart = null;
private DateTime? accountingPeriodEnd = null;
public override void SetInvoiceId(ServiceInvoice invoice)
{
invoice.InvoiceBase.InvoiceId = "Sammelrechnung";
invoice.InvoiceBase.InvoiceTypeText = "Sammelrechnung LWV";
}
public override void SetServiceInvoicePeriods(ServiceInvoice invoice, CostBearer2SupportConcept costBearer2SupportConcept, DateTimeSpan invoicePeriod, List<ServiceRecordDC> serviceRecords)
{
var invoiceAccountingPeriodSpan = new DateTimeSpan
{
StartDateTime = invoice.InvoiceBase.AccountingPeriodStart.Value,
EndDateTime = invoice.InvoiceBase.AccountingPeriodEnd.Value
};
foreach (SupportConceptApprovalPeriod iPeriod in costBearer2SupportConcept.ApprovalPeriodList)
{
SupportConceptApprovalPeriodDC approvalPeriodDC = MapperFactory.SupportConceptApprovalPeriodDC_SupportConceptApprovalPeriod.MapToNewDC(iPeriod);
if (approvalPeriodDC.Span.EndDateTime < invoiceAccountingPeriodSpan.StartDateTime || approvalPeriodDC.Span.StartDateTime > invoiceAccountingPeriodSpan.EndDate)
{
continue;
}
ServiceInvoicePeriod serviceInvoicePeriod = CreateServiceInvoicePeriod(approvalPeriodDC, invoiceAccountingPeriodSpan);
serviceInvoicePeriod.SupportConceptApprovalPeriod = iPeriod;
serviceInvoicePeriod.Customer = costBearer2SupportConcept.SupportConcept.Customer;
CostBearer costBearer = costBearer2SupportConcept.CostBearer;
List<CostRatePeriodDC> costRates = MapperFactory.CostRatePeriodDC_CostRatePeriod.MapToNewDCs(costBearer.CostRatePeriods);
CostRatePeriodDC serviceUnit = costRates.GetCostRatePeriodForDate(CostRatePeriodType.MinutesPerServiceUnit, DateTime.Now);
serviceInvoicePeriod.ServiceUnitName = serviceUnit.UnitName;
Calculations calc = PluginLoader.FindClass<Calculations>(_SpecificID) ?? Calculations.GetInstance(_SpecificID);
decimal amountPerUnit;
decimal unitCount;
serviceInvoicePeriod.ApprovedFixedAmount = calc.GetApprovedFixedAmountForPeriod(approvalPeriodDC, serviceInvoicePeriod.Start.Value, serviceInvoicePeriod.End.Value, out amountPerUnit, out unitCount);
if (!serviceInvoicePeriod.ApprovedFixedAmount.HasValue)
{
serviceInvoicePeriod.ApprovedHours = calc.GetApprovedHoursForPeriod(approvalPeriodDC,
costRates,
serviceInvoicePeriod.Start.Value,
serviceInvoicePeriod.End.Value);
if (serviceInvoicePeriod.ApprovedHours.HasValue)
serviceInvoicePeriod.ApprovedBE = serviceUnit.GetHoursInBE(serviceInvoicePeriod.ApprovedHours.Value);
serviceInvoicePeriod.ApprovedAmountDefaultHourlyRate = calc.GetApprovedAmountDefaultHourlyRateForPeriod(approvalPeriodDC,
costRates,
serviceInvoicePeriod.Start,
serviceInvoicePeriod.End);
}
SetInvoiceItems(invoice, serviceInvoicePeriod, approvalPeriodDC, costBearer2SupportConcept, invoicePeriod, serviceRecords);
CheckMaxApprovedAmount(invoice, serviceInvoicePeriod, approvalPeriodDC, costBearer2SupportConcept, invoicePeriod, serviceRecords);
if (serviceInvoicePeriod.InvoiceItemList.Count > 0)
{
invoice.ServiceInvoicePeriodList.Add(serviceInvoicePeriod);
}
}
if (invoice.ServiceInvoicePeriodList.Count > 0)
{
decimal cor = 0;
for (int i = invoice.ServiceInvoicePeriodList.Count - 1; i >= 0; i--)
{
var sip = invoice.ServiceInvoicePeriodList[i];
if (sip.SupportConceptApprovalPeriod.ServiceCategory == null)
{
cor = sip.InvoiceItemList[0].AmountTotal.Value;
var cb2scOid = sip.SupportConceptApprovalPeriod.CostBearer2SupportConcept.Oid;
var sipOther = invoice.ServiceInvoicePeriodList.Where(s => s.SupportConceptApprovalPeriod.CostBearer2SupportConcept.Oid == cb2scOid);
var sipCor = sipOther.FirstOrDefault(s => s.SupportConceptApprovalPeriod.ServiceCategory != null);
if (sipCor != null && cor != 0)
{
sipCor.InvoiceItemList[0].AmountTotal += cor;
sipCor.InvoiceItemList[0].GrossAmountTotal += cor;
sipCor.Notice = String.Format("{0:0.00}", cor);
invoice.ServiceInvoicePeriodList.Remove(sip);
}
}
}
}
}
}
}

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using BeWo.Service.Invoicing;
using BS.Shared.DataContracts;
using BS.Shared.DataContracts.Compact;
namespace EvVereinFürWohnraumhilfe.Invoicing
{
public class CustomInvoiceFactory : InvoiceFactory
{
public override InvoiceCreation CreateInvoiceCreator(string specificId, string tenant, Dictionary<CompactSupportConceptDC, List<ServiceRecordDC>> supportConcepts2ServiceRecords)
{
foreach (var key in supportConcepts2ServiceRecords.Keys)
{
if (!String.IsNullOrEmpty(key.CostBearer) && key.CostBearer.Contains("LWV Hessen"))
{
return new CollectiveInvoiceCreation();
}
}
return new InvoiceCreation();
}
}
}

View File

@@ -141,7 +141,7 @@ namespace BeWo.Service.Plugins
//t = "8828216586"; // Caritas Aachen
//t = "7062943632"; // ABW Elsebrock
//t = "3956369664"; // LH Wetterau
t = "3984525482"; // API Berlin
//t = "3984525482"; // API Berlin
//t = "9975231461"; // Selwo
//t = "8181286349"; // BeWo am Rhein
//t = "4595275645"; // Eigenständig
@@ -221,7 +221,7 @@ namespace BeWo.Service.Plugins
//t = "7817461089"; // FAB e.V. (Familienarbeit und Beratung e.V.)
//t = "5207911843"; // Pro Balance
//t = "8619663355"; // HSH Cologne
t = "1652658918"; // LH Frankfurt Oder
//t = "1652658918"; // LH Frankfurt Oder
//t = "7696927868"; // Kuhring Betreuung
//t = "6251348980"; // BeWo Gün
//t = "6782533512"; // LH Dorsten
@@ -315,7 +315,7 @@ namespace BeWo.Service.Plugins
//t = "4858885375"; // BewoTrio
//t = "9734214365"; // Wegfinder Rhein-Ruhr
//t = "1011478760"; // Autismus Köln/Bonn e.V.
t = "8184278271"; // Ambulant Betreutes Wohnen Stephan Schillings
//t = "8184278271"; // Ambulant Betreutes Wohnen Stephan Schillings
//t = "2576513996"; // TRIAS Ambulante Sozialarbeit Schön + Schön-Uhlmann GbR
//t = "9518001524"; // Sozialpädagogische Praxis Astrid Schnödewind
//t = "1048483934"; // Frauenhaus e.V. EWFRA - Wohnprojekt für Frauen
@@ -331,11 +331,12 @@ namespace BeWo.Service.Plugins
//t = "9815376800"; // Haus Dülken GmbH + Co. KG
//t = "6917917884"; // AMBEWO Müller/Gerhards
//t = "5240630948"; // Caritasverband der Diözese Rottenburg-Stuttgart e.V. - Rechtsträger der Caritas Heilbronn Hohenlohe e.V.
//t = "7748694330"; //Caritasverband der Diözese Rottenburg-Stuttgart e.V. als Rechtsträger der Caritas Ludwigsburg-Waiblingen-Enz
//t = "7748694330"; // Caritasverband der Diözese Rottenburg-Stuttgart e.V. als Rechtsträger der Caritas Ludwigsburg-Waiblingen-Enz
//t = "5578206856"; // SHK Service GmbH
//t = "1508800817"; // Behindert na und e.V.
//t = "4351087063"; // MOBILE e.V. - Selbstbestimmtes Leben
//t = "1262219859"; // Psychosoziale Projekte Saarpfalz
t = "2986016022"; // Ev Verein für Wohnraumhilfe Frankfurt a.M.
return t;
#else