BetreutesWohnenWoellReports/QuittierungsbelegPflege - neue Leistungskat/neuer Beleg

This commit is contained in:
2025-02-07 13:06:14 +01:00
parent b98caeea5f
commit 112cd25261
4 changed files with 70 additions and 498 deletions

View File

@@ -98,7 +98,8 @@ namespace BeWo.BetreutesWohnenWoellReports
ServicesOverviewRO flsRo = ServicesOverviewRO.CopyFromRO(ro);
ServicesOverviewRO aslRo = ServicesOverviewRO.CopyFromRO(ro);
ServicesOverviewRO pflegeRo = ServicesOverviewRO.CopyFromRO(ro);
ServicesOverviewRO entlastungRo = ServicesOverviewRO.CopyFromRO(ro);
ServicesOverviewRO pflegeRo = ServicesOverviewRO.CopyFromRO(ro);
if (ro.Services != null)
{
@@ -110,14 +111,17 @@ namespace BeWo.BetreutesWohnenWoellReports
{
flsRo.Services.Add(s);
}
else if (s.ServiceCategory.ToLower().Contains("eb niedrigschwelliges angebot"))
else if (s.ServiceCategory.ToLower().Contains("eb niedrigschwelliges angebot") || s.ServiceCategory.ToLower().Contains("entlastungsbetrag"))
{
pflegeRo.Services.Add(s);
}
else if (s.ServiceCategory.ToLower().Contains("pflegesachleistung"))
{
pflegeRo.Services.Add(s);
entlastungRo.Services.Add(s);
}
else
{
aslRo.Services.Add(s);
}
}
}
@@ -125,10 +129,11 @@ namespace BeWo.BetreutesWohnenWoellReports
report = AddReportToReport<QuittierungsbelegFLS>(report, flsRo);
report = AddReportToReport<QuittierungsbelegASL>(report, aslRo);
report = AddReportToReport<QuittierungsbelegPflege>(report, pflegeRo);
report = AddReportToReport<QuittierungsbelegPflege>(report, entlastungRo);
//report = AddReportToReport(report, eingliederungshilfe);
//report = AddReportToReport(report, eingliederungshilfe);
if (report == null)
if (report == null)
report = new XtraReport();
return report;
}

View File

@@ -5,6 +5,7 @@ using System.ComponentModel;
using DevExpress.XtraReports.UI;
using BeWo.Report.ReportObjects;
using BeWo.Report;
using System.Linq;
namespace BeWo.BetreutesWohnenWoellReports
{
@@ -21,7 +22,6 @@ namespace BeWo.BetreutesWohnenWoellReports
if (pRO.Services != null)
{
List<ServicesOverviewRO.ServiceDetail> servicesBillable = new List<ServicesOverviewRO.ServiceDetail>();
foreach (ServicesOverviewRO.ServiceDetail s in pRO.Services)
{
if (s.IsBillable)
@@ -30,7 +30,12 @@ namespace BeWo.BetreutesWohnenWoellReports
servicesBillable.Add(s);
}
}
if (servicesBillable.Any(s => s.ServiceCategory.ToLower().Contains("pflegesachleistung")))
{
lblUeberschrift1.Text = "Quittierungsbeleg \nPflegesachleistung";
lblUeberschrift2.Text = "nach §36, 45a SGB XI";
}
pRO.ReferenceNumber = pRO.CostBearer2SupportConceptList.FirstOrDefault(c => c.CostBearer.Organisation.Name == servicesBillable[0].CostBearer).CustomerReferenceNumber;
pRO.Services = servicesBillable;
}

View File

@@ -31,6 +31,7 @@ namespace BeWo.BetreutesWohnenWoellReports
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(QuittierungsbelegPflege));
DevExpress.XtraReports.UI.XRWatermark xrWatermark1 = new DevExpress.XtraReports.UI.XRWatermark();
this.Detail = new DevExpress.XtraReports.UI.DetailBand();
this.xrTableServiceRecords1 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow();
@@ -54,10 +55,9 @@ namespace BeWo.BetreutesWohnenWoellReports
this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
this.formattingRuleStartDate = new DevExpress.XtraReports.UI.FormattingRule();
this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand();
this.xrLabel11 = new DevExpress.XtraReports.UI.XRLabel();
this.lblUeberschrift2 = new DevExpress.XtraReports.UI.XRLabel();
this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel29 = new DevExpress.XtraReports.UI.XRLabel();
@@ -72,7 +72,7 @@ namespace BeWo.BetreutesWohnenWoellReports
this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel12 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel();
this.lblUeberschrift1 = new DevExpress.XtraReports.UI.XRLabel();
this.formattingRuleServiceDesc = new DevExpress.XtraReports.UI.FormattingRule();
this.formattingRuleCostBearer = new DevExpress.XtraReports.UI.FormattingRule();
this.formattingRuleEmployeeName = new DevExpress.XtraReports.UI.FormattingRule();
@@ -80,6 +80,7 @@ namespace BeWo.BetreutesWohnenWoellReports
this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand();
this.fieldAbrechenbareMinuten = new DevExpress.XtraReports.UI.CalculatedField();
this.fieldFLSBillable = new DevExpress.XtraReports.UI.CalculatedField();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.xrTableServiceRecords1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
@@ -99,7 +100,7 @@ namespace BeWo.BetreutesWohnenWoellReports
this.xrTableServiceRecords1.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
| DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableServiceRecords1.Font = new System.Drawing.Font("Arial", 8F);
this.xrTableServiceRecords1.Font = new DevExpress.Drawing.DXFont("Arial", 8F);
this.xrTableServiceRecords1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
this.xrTableServiceRecords1.Name = "xrTableServiceRecords1";
this.xrTableServiceRecords1.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
@@ -118,7 +119,8 @@ namespace BeWo.BetreutesWohnenWoellReports
this.xrTableCell4,
this.xrTableCell9,
this.xrTableCell12});
this.xrTableRow2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrTableRow2.Font = new DevExpress.Drawing.DXFont("Arial", 12F, DevExpress.Drawing.DXFontStyle.Bold, DevExpress.Drawing.DXGraphicsUnit.Point, new DevExpress.Drawing.DXFontAdditionalProperty[] {
new DevExpress.Drawing.DXFontAdditionalProperty("GdiCharSet", ((byte)(0)))});
this.xrTableRow2.Name = "xrTableRow2";
this.xrTableRow2.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
this.xrTableRow2.StylePriority.UseFont = false;
@@ -189,7 +191,8 @@ namespace BeWo.BetreutesWohnenWoellReports
this.xrTable3.BorderColor = System.Drawing.Color.Black;
this.xrTable3.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTable3.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.xrTable3.Font = new DevExpress.Drawing.DXFont("Arial", 9.75F, DevExpress.Drawing.DXFontStyle.Regular, DevExpress.Drawing.DXGraphicsUnit.Point, new DevExpress.Drawing.DXFontAdditionalProperty[] {
new DevExpress.Drawing.DXFontAdditionalProperty("GdiCharSet", ((byte)(0)))});
this.xrTable3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F);
this.xrTable3.Name = "xrTable3";
this.xrTable3.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
@@ -272,7 +275,7 @@ namespace BeWo.BetreutesWohnenWoellReports
this.xrLabel5,
this.xrLabel4,
this.xrLabel3});
this.GroupFooter1.Font = new System.Drawing.Font("Arial", 9.75F);
this.GroupFooter1.Font = new DevExpress.Drawing.DXFont("Arial", 9.75F);
this.GroupFooter1.HeightF = 130F;
this.GroupFooter1.KeepTogether = true;
this.GroupFooter1.Name = "GroupFooter1";
@@ -282,7 +285,7 @@ namespace BeWo.BetreutesWohnenWoellReports
//
this.xrLabel10.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "fieldFLSBillable", "{0:0.##}")});
this.xrLabel10.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold);
this.xrLabel10.Font = new DevExpress.Drawing.DXFont("Arial", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel10.LocationFloat = new DevExpress.Utils.PointFloat(539.9999F, 36F);
this.xrLabel10.Name = "xrLabel10";
this.xrLabel10.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 5, 0, 0, 100F);
@@ -339,7 +342,7 @@ namespace BeWo.BetreutesWohnenWoellReports
//
this.xrLabel4.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "TotalFLMBillable", "{0:0.##}")});
this.xrLabel4.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold);
this.xrLabel4.Font = new DevExpress.Drawing.DXFont("Arial", 10F, DevExpress.Drawing.DXFontStyle.Bold);
this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(539.9999F, 0F);
this.xrLabel4.Name = "xrLabel4";
this.xrLabel4.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 5, 0, 0, 100F);
@@ -359,10 +362,6 @@ namespace BeWo.BetreutesWohnenWoellReports
this.xrLabel3.StylePriority.UseFont = false;
this.xrLabel3.Text = "Summe unmittelbarer Betreuungsleistungen in Minuten";
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO);
//
// formattingRuleStartDate
//
this.formattingRuleStartDate.Condition = "[StartDate2] < [StartDate]";
@@ -373,7 +372,7 @@ namespace BeWo.BetreutesWohnenWoellReports
// ReportHeader
//
this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrLabel11,
this.lblUeberschrift2,
this.xrPictureBox1,
this.xrLabel2,
this.xrLabel29,
@@ -388,28 +387,29 @@ namespace BeWo.BetreutesWohnenWoellReports
this.xrLabel14,
this.xrLabel13,
this.xrLabel12,
this.xrLabel1});
this.ReportHeader.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblUeberschrift1});
this.ReportHeader.Font = new DevExpress.Drawing.DXFont("Arial", 12F, DevExpress.Drawing.DXFontStyle.Regular, DevExpress.Drawing.DXGraphicsUnit.Point, new DevExpress.Drawing.DXFontAdditionalProperty[] {
new DevExpress.Drawing.DXFontAdditionalProperty("GdiCharSet", ((byte)(0)))});
this.ReportHeader.HeightF = 340F;
this.ReportHeader.Name = "ReportHeader";
this.ReportHeader.StylePriority.UseFont = false;
//
// xrLabel11
// lblUeberschrift2
//
this.xrLabel11.Font = new System.Drawing.Font("Arial", 12F);
this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(0F, 55F);
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(279F, 40F);
this.xrLabel11.StylePriority.UseFont = false;
this.xrLabel11.StylePriority.UseTextAlignment = false;
this.xrLabel11.Text = "gem. §§ 45a, 45b SGB XI";
this.xrLabel11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
this.lblUeberschrift2.Font = new DevExpress.Drawing.DXFont("Arial", 12F);
this.lblUeberschrift2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 55F);
this.lblUeberschrift2.Multiline = true;
this.lblUeberschrift2.Name = "lblUeberschrift2";
this.lblUeberschrift2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblUeberschrift2.SizeF = new System.Drawing.SizeF(279F, 40F);
this.lblUeberschrift2.StylePriority.UseFont = false;
this.lblUeberschrift2.StylePriority.UseTextAlignment = false;
this.lblUeberschrift2.Text = "gem. §§ 45a, 45b SGB XI";
this.lblUeberschrift2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
//
// xrPictureBox1
//
this.xrPictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox1.Image")));
this.xrPictureBox1.ImageSource = new DevExpress.XtraPrinting.Drawing.ImageSource("img", resources.GetString("xrPictureBox1.ImageSource"));
this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(441.0001F, 0F);
this.xrPictureBox1.Name = "xrPictureBox1";
this.xrPictureBox1.SizeF = new System.Drawing.SizeF(233.9999F, 170F);
@@ -544,18 +544,18 @@ namespace BeWo.BetreutesWohnenWoellReports
this.xrLabel12.StylePriority.UseFont = false;
this.xrLabel12.Text = "Name Kunde/in:";
//
// xrLabel1
// lblUeberschrift1
//
this.xrLabel1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 15F);
this.xrLabel1.Multiline = true;
this.xrLabel1.Name = "xrLabel1";
this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel1.SizeF = new System.Drawing.SizeF(279F, 40F);
this.xrLabel1.StylePriority.UseFont = false;
this.xrLabel1.StylePriority.UseTextAlignment = false;
this.xrLabel1.Text = "Quittierungsbeleg\r\nAngebote zur Unterstützung";
this.xrLabel1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft;
this.lblUeberschrift1.Font = new DevExpress.Drawing.DXFont("Arial", 12F, DevExpress.Drawing.DXFontStyle.Bold);
this.lblUeberschrift1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 15F);
this.lblUeberschrift1.Multiline = true;
this.lblUeberschrift1.Name = "lblUeberschrift1";
this.lblUeberschrift1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblUeberschrift1.SizeF = new System.Drawing.SizeF(279F, 40F);
this.lblUeberschrift1.StylePriority.UseFont = false;
this.lblUeberschrift1.StylePriority.UseTextAlignment = false;
this.lblUeberschrift1.Text = "Quittierungsbeleg\r\nAngebote zur Unterstützung";
this.lblUeberschrift1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft;
//
// formattingRuleServiceDesc
//
@@ -580,7 +580,7 @@ namespace BeWo.BetreutesWohnenWoellReports
//
// topMarginBand1
//
this.topMarginBand1.Font = new System.Drawing.Font("Times New Roman", 9.75F);
this.topMarginBand1.Font = new DevExpress.Drawing.DXFont("Times New Roman", 9.75F);
this.topMarginBand1.HeightF = 50F;
this.topMarginBand1.Name = "topMarginBand1";
this.topMarginBand1.StylePriority.UseFont = false;
@@ -603,6 +603,10 @@ namespace BeWo.BetreutesWohnenWoellReports
this.fieldFLSBillable.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal;
this.fieldFLSBillable.Name = "fieldFLSBillable";
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO);
//
// QuittierungsbelegPflege
//
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
@@ -620,13 +624,15 @@ namespace BeWo.BetreutesWohnenWoellReports
this.formattingRuleServiceDesc,
this.formattingRuleCostBearer,
this.formattingRuleEmployeeName});
this.Margins = new System.Drawing.Printing.Margins(75, 75, 50, 30);
this.Margins = new DevExpress.Drawing.DXMargins(75F, 75F, 50F, 30F);
this.PageHeight = 1169;
this.PageWidth = 827;
this.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.A4;
this.SnapGridSize = 9F;
this.SnappingMode = DevExpress.XtraReports.UI.SnappingMode.SnapToGrid;
this.Version = "17.1";
this.Version = "23.2";
xrWatermark1.Id = "Watermark1";
this.Watermarks.Add(xrWatermark1);
((System.ComponentModel.ISupportInitialize)(this.xrTableServiceRecords1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
@@ -646,7 +652,7 @@ namespace BeWo.BetreutesWohnenWoellReports
private DevExpress.XtraReports.UI.XRTableCell xrTableCell16;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell17;
private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader;
private DevExpress.XtraReports.UI.XRLabel xrLabel1;
private DevExpress.XtraReports.UI.XRLabel lblUeberschrift1;
private DevExpress.XtraReports.UI.XRTable xrTableServiceRecords1;
private DevExpress.XtraReports.UI.XRTableRow xrTableRow2;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell3;
@@ -684,6 +690,6 @@ namespace BeWo.BetreutesWohnenWoellReports
private DevExpress.XtraReports.UI.XRLabel xrLabel8;
private DevExpress.XtraReports.UI.CalculatedField fieldFLSBillable;
private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter1;
private DevExpress.XtraReports.UI.XRLabel xrLabel11;
private DevExpress.XtraReports.UI.XRLabel lblUeberschrift2;
}
}

File diff suppressed because one or more lines are too long