Diverse Kundenanpassungen

- Ilka Link Unterschrift
- LH Bad Kreuznach Neuer Bericht Stundenkontrolle
- LH Bad Kreuznach monatliche Unterschrift anzeigen, auch wenn sie mal gelöscht wurde
- LH Frankfurt Oder Anpassungen Ferienbetreuung
This commit is contained in:
2025-10-06 11:02:19 +02:00
parent 115e1a8b86
commit e79b23f8a8
15 changed files with 994 additions and 45 deletions

View File

@@ -338,7 +338,7 @@ CONCAT(p.`LastName`, ', ', p.`FirstName`, ' ', IF(cb2sc.CustomerRefenrenceNumber
if (row[6] != null)
{
String verwendungszweck = row[6].ToString();
if (verwendungszweck.Contains("Niederschwellig"))
{
return "35800";
@@ -349,7 +349,7 @@ CONCAT(p.`LastName`, ', ', p.`FirstName`, ' ', IF(cb2sc.CustomerRefenrenceNumber
}
if (verwendungszweck.Contains("Tagesfahrt"))
{
return "35800";
return "35950";
}
if (verwendungszweck.Contains("Kurzurlaub") || verwendungszweck.Contains("Kurzreise"))
{
@@ -359,6 +359,10 @@ CONCAT(p.`LastName`, ', ', p.`FirstName`, ' ', IF(cb2sc.CustomerRefenrenceNumber
{
return "35900";
}
if (verwendungszweck.Contains("Freizeit"))
{
return "35950";
}
}
return "35800";
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@@ -87,6 +87,7 @@ namespace IlkaLinkAmbulanteHilfen
this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand();
this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand();
this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand();
this.pb_Gloeckner = new DevExpress.XtraReports.UI.XRPictureBox();
this.pb_Sprang = new DevExpress.XtraReports.UI.XRPictureBox();
this.pb_Schneider = new DevExpress.XtraReports.UI.XRPictureBox();
this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel();
@@ -162,7 +163,7 @@ namespace IlkaLinkAmbulanteHilfen
this.Hours = new DevExpress.XtraReports.UI.CalculatedField();
this.TotalFLSBillable = new DevExpress.XtraReports.UI.CalculatedField();
this.formattingRuleZwischensummeSichtbar = new DevExpress.XtraReports.UI.FormattingRule();
this.pb_Gloeckner = new DevExpress.XtraReports.UI.XRPictureBox();
this.pb_DSchild = new DevExpress.XtraReports.UI.XRPictureBox();
((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit();
@@ -924,6 +925,7 @@ namespace IlkaLinkAmbulanteHilfen
// GroupFooter1
//
this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.pb_DSchild,
this.pb_Gloeckner,
this.pb_Sprang,
this.pb_Schneider,
@@ -960,6 +962,15 @@ namespace IlkaLinkAmbulanteHilfen
this.GroupFooter1.KeepTogether = true;
this.GroupFooter1.Name = "GroupFooter1";
//
// pb_Gloeckner
//
this.pb_Gloeckner.ImageSource = new DevExpress.XtraPrinting.Drawing.ImageSource("img", resources.GetString("pb_Gloeckner.ImageSource"));
this.pb_Gloeckner.LocationFloat = new DevExpress.Utils.PointFloat(0F, 195F);
this.pb_Gloeckner.Name = "pb_Gloeckner";
this.pb_Gloeckner.SizeF = new System.Drawing.SizeF(123.9584F, 62.35783F);
this.pb_Gloeckner.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
this.pb_Gloeckner.Visible = false;
//
// pb_Sprang
//
this.pb_Sprang.ImageSource = new DevExpress.XtraPrinting.Drawing.ImageSource("img", resources.GetString("pb_Sprang.ImageSource"));
@@ -1850,14 +1861,14 @@ namespace IlkaLinkAmbulanteHilfen
this.formattingRuleZwischensummeSichtbar.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False;
this.formattingRuleZwischensummeSichtbar.Name = "formattingRuleZwischensummeSichtbar";
//
// pb_Gloeckner
// pb_DSchild
//
this.pb_Gloeckner.ImageSource = new DevExpress.XtraPrinting.Drawing.ImageSource("img", resources.GetString("pb_Gloeckner.ImageSource"));
this.pb_Gloeckner.LocationFloat = new DevExpress.Utils.PointFloat(0F, 195F);
this.pb_Gloeckner.Name = "pb_Gloeckner";
this.pb_Gloeckner.SizeF = new System.Drawing.SizeF(123.9584F, 62.35783F);
this.pb_Gloeckner.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
this.pb_Gloeckner.Visible = false;
this.pb_DSchild.ImageSource = new DevExpress.XtraPrinting.Drawing.ImageSource("img", resources.GetString("pb_DSchild.ImageSource"));
this.pb_DSchild.LocationFloat = new DevExpress.Utils.PointFloat(1.051051F, 190.7881F);
this.pb_DSchild.Name = "pb_DSchild";
this.pb_DSchild.SizeF = new System.Drawing.SizeF(123.9584F, 62.35783F);
this.pb_DSchild.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
this.pb_DSchild.Visible = false;
//
// Quittierungsbeleg
//
@@ -2040,5 +2051,6 @@ namespace IlkaLinkAmbulanteHilfen
private DevExpress.XtraReports.UI.XRPictureBox pb_Preuss;
private DevExpress.XtraReports.UI.XRPictureBox pb_Leybold;
private DevExpress.XtraReports.UI.XRPictureBox pb_Gloeckner;
private DevExpress.XtraReports.UI.XRPictureBox pb_DSchild;
}
}

View File

@@ -175,6 +175,10 @@ namespace IlkaLinkAmbulanteHilfen
{
pb_Gloeckner.Visible = true;
}
else if (pRO.MainAttendant.ToLower().Contains("schild"))
{
pb_DSchild.Visible = true;
}
else
{
pb_Jadczak.Visible = false;
@@ -188,6 +192,7 @@ namespace IlkaLinkAmbulanteHilfen
pb_Leybold.Visible = false;
pb_Preuss.Visible = false;
pb_Gloeckner.Visible = false;
pb_DSchild.Visible = false;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -77,6 +77,12 @@
<Compile Include="Reporting\Reports\LeistungsnachweisEntlastungsbeitrag.Designer.cs">
<DependentUpon>LeistungsnachweisEntlastungsbeitrag.cs</DependentUpon>
</Compile>
<Compile Include="Reporting\Reports\StundenkontrolleAbw.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Reporting\Reports\StundenkontrolleAbw.Designer.cs">
<DependentUpon>StundenkontrolleAbw.cs</DependentUpon>
</Compile>
<Compile Include="Reporting\Reports\QuittierungsbelegMainzBingen.cs">
<SubType>Component</SubType>
</Compile>
@@ -126,6 +132,10 @@
<EmbeddedResource Include="Reporting\Reports\LeistungsnachweisEntlastungsbeitrag.resx">
<DependentUpon>LeistungsnachweisEntlastungsbeitrag.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Reporting\Reports\StundenkontrolleAbw.resx">
<DependentUpon>StundenkontrolleAbw.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Reporting\Reports\QuittierungsbelegMainzBingen.resx">
<DependentUpon>QuittierungsbelegMainzBingen.cs</DependentUpon>
</EmbeddedResource>

View File

@@ -16,6 +16,71 @@ namespace LebenshilfeBadKreuznachFUD.Reporting
{
public class CustomReportCreator : DefaultReportCreator
{
public override XtraReport CreateQueryReport(long queryOid, string queryReportId)
{
if (queryOid == 1000)
{
return CreateStundenkontrolleAbw(CreateQueryRO(queryOid, queryReportId));
}
return base.CreateQueryReport(queryOid, queryReportId);
}
private XtraReport CreateStundenkontrolleAbw(QueryRO qro)
{
if (qro.Rows.Count > 0)
{
DateTime start = DateTime.Now;
start = new DateTime(start.Year, start.Month, 1);
DateTime ende = start.AddMonths(1).AddDays(-1);
DateTime dt = DateTime.Now;
if (DateTime.TryParse(qro.Rows[0].Field1.ToString(), out dt))
{
start = dt;
}
if (DateTime.TryParse(qro.Rows[0].Field2.ToString(), out dt))
{
ende = dt;
}
if (qro.Rows[0].Field3 != null && qro.Rows[0].Field3.ToString() != "0")
{
long c2sOid = Int64.Parse(qro.Rows[0].Field3.ToString());
//var customer = DAOFactory.GenericDAO.LoadByID<Customer>(customerOid.Value);
long? scapOid = null;
var c2s = DAOFactory.GenericDAO.LoadByID<CostBearer2SupportConcept>(c2sOid);
if (c2s.ApprovalPeriodList.Count > 0)
{
scapOid = c2s.ApprovalPeriodList[0].Oid;
}
var ro = MonatlicherSollIstVergleichRO.Create(c2sOid, dt, scapOid, null, 1);
var druck = new StundenkontrolleAbw();
druck.SetReportDataSource(ro);
return druck;
}
//if (customerOid == null)
//{
// XtraReport masterReport = new XtraReport();
// masterReport.CreateDocument();
// var customerList = DAOFactory.GenericDAO.GetAllActive<Customer>();
// foreach (var c in customerList)
// {
// var cRo = ServicesOverviewRO.Create(c.Oid.Value, dt.Month, dt.Year, false, 0, 0, 1, dt.Day, null);
// var seite1 = new Akgg.Kilometerbeleg();
// seite1.SetReportDataSource(cRo);
// seite1.CreateDocument();
// masterReport.Pages.AddRange(seite1.Pages);
// }
// return masterReport;
//}
}
return new XtraReport();
}
public override XtraReport CreateServiceOverviewAllCustomersReport(int month, int year, long orgaOid, long empOid, long? serviceCategoryOid, int startDay, int endDay)
{
@@ -63,11 +128,6 @@ namespace LebenshilfeBadKreuznachFUD.Reporting
{
XtraReport report = null;
if (ro.CustomerLastName == "Fritsch")
{
}
ServicesOverviewRO entlastungRo = ServicesOverviewRO.CopyFromRO(ro);
ServicesOverviewRO sonstigesRo = ServicesOverviewRO.CopyFromRO(ro);

View File

@@ -7,6 +7,7 @@ using BeWo.Report;
using BeWo.Report.ReportObjects;
using BeWo.Service.DCEntityMapper;
using BeWo.Service.Plugins;
using BS.Shared.Core;
using LebenshilfeBadKreuznachFUD.Service;
namespace LebenshilfeBadKreuznachFUD.Reporting.Reports

View File

@@ -1,6 +1,9 @@
using System;
using System.Linq;
using BeWo.Data.Access;
using BeWo.Report;
using BeWo.Report.ReportObjects;
using BS.Shared.Core;
namespace LebenshilfeBadKreuznachFUD.Reporting.Reports
{

View File

@@ -0,0 +1,601 @@
namespace LebenshilfeBadKreuznachFUD.Reporting.Reports
{
partial class StundenkontrolleAbw
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
DevExpress.XtraReports.UI.XRWatermark xrWatermark1 = new DevExpress.XtraReports.UI.XRWatermark();
this.Detail = new DevExpress.XtraReports.UI.DetailBand();
this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand();
this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand();
this.fieldEinzel = new DevExpress.XtraReports.UI.CalculatedField();
this.fieldGruppe = new DevExpress.XtraReports.UI.CalculatedField();
this.ruleBorderUnten = new DevExpress.XtraReports.UI.FormattingRule();
this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand();
this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel();
this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel();
this.lblVorjahr = new DevExpress.XtraReports.UI.XRLabel();
this.xrTable3 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow14 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell41 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell16 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell20 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableRow4 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell7 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell12 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell19 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell18 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell21 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell15 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell17 = new DevExpress.XtraReports.UI.XRTableCell();
this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand();
this.Detail1 = new DevExpress.XtraReports.UI.DetailBand();
this.xrTable1 = new DevExpress.XtraReports.UI.XRTable();
this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow();
this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell13 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell14 = new DevExpress.XtraReports.UI.XRTableCell();
this.xrTableCell25 = new DevExpress.XtraReports.UI.XRTableCell();
this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
//
// Detail
//
this.Detail.HeightF = 0F;
this.Detail.Name = "Detail";
this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F);
this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft;
//
// topMarginBand1
//
this.topMarginBand1.Name = "topMarginBand1";
//
// bottomMarginBand1
//
this.bottomMarginBand1.Name = "bottomMarginBand1";
//
// fieldEinzel
//
this.fieldEinzel.DataMember = "ServiceInvoicePeriods.ServiceInvoiceItems";
this.fieldEinzel.Expression = "Iif([ServiceDescription] == \'Einzelbetreuung\', \'x\', \'\')";
this.fieldEinzel.Name = "fieldEinzel";
//
// fieldGruppe
//
this.fieldGruppe.DataMember = "ServiceInvoicePeriods.ServiceInvoiceItems";
this.fieldGruppe.Expression = "Iif([ServiceDescription] == \'Gruppenbetreuung\', \'x\', \'\')";
this.fieldGruppe.Name = "fieldGruppe";
//
// ruleBorderUnten
//
this.ruleBorderUnten.Condition = "([DataSource.RowCount] == 0)\n Or \n([DataSource.CurrentRowIndex] == [DataSource.Ro" +
"wCount] - 1)";
this.ruleBorderUnten.DataMember = "Services";
this.ruleBorderUnten.Formatting.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.ruleBorderUnten.Name = "ruleBorderUnten";
//
// GroupHeader1
//
this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrLabel1,
this.xrLabel2,
this.xrLabel7,
this.lblVorjahr,
this.xrTable3});
this.GroupHeader1.Name = "GroupHeader1";
//
// xrLabel1
//
this.xrLabel1.Borders = DevExpress.XtraPrinting.BorderSide.Right;
this.xrLabel1.Font = new DevExpress.Drawing.DXFont("Segoe UI", 12F);
this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(174.0383F, 25F);
this.xrLabel1.Name = "xrLabel1";
this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel1.SizeF = new System.Drawing.SizeF(73.00002F, 25F);
this.xrLabel1.StylePriority.UseBorders = false;
this.xrLabel1.StylePriority.UseFont = false;
//
// xrLabel2
//
this.xrLabel2.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)));
this.xrLabel2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "SummeStundenDifKumJahresbeginn")});
this.xrLabel2.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(101.0383F, 25F);
this.xrLabel2.Name = "xrLabel2";
this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel2.SizeF = new System.Drawing.SizeF(73.00002F, 25F);
this.xrLabel2.StylePriority.UseBorders = false;
this.xrLabel2.StylePriority.UseFont = false;
this.xrLabel2.StylePriority.UseTextAlignment = false;
this.xrLabel2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
//
// xrLabel7
//
this.xrLabel7.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
| DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrLabel7.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(101.0383F, 0F);
this.xrLabel7.Name = "xrLabel7";
this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.xrLabel7.SizeF = new System.Drawing.SizeF(73.00002F, 25F);
this.xrLabel7.StylePriority.UseBorders = false;
this.xrLabel7.StylePriority.UseFont = false;
this.xrLabel7.StylePriority.UseTextAlignment = false;
this.xrLabel7.Text = "Übertrag";
this.xrLabel7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
//
// lblVorjahr
//
this.lblVorjahr.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.lblVorjahr.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.lblVorjahr.LocationFloat = new DevExpress.Utils.PointFloat(174.0383F, 0F);
this.lblVorjahr.Name = "lblVorjahr";
this.lblVorjahr.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F);
this.lblVorjahr.SizeF = new System.Drawing.SizeF(73.00116F, 25F);
this.lblVorjahr.StylePriority.UseBorders = false;
this.lblVorjahr.StylePriority.UseFont = false;
this.lblVorjahr.StylePriority.UseTextAlignment = false;
this.lblVorjahr.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
//
// xrTable3
//
this.xrTable3.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top)
| DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTable3.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F, 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(45.82996F, 50F);
this.xrTable3.Name = "xrTable3";
this.xrTable3.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
this.xrTableRow14,
this.xrTableRow4});
this.xrTable3.SizeF = new System.Drawing.SizeF(681.1699F, 50F);
this.xrTable3.StylePriority.UseBorderColor = false;
this.xrTable3.StylePriority.UseBorders = false;
this.xrTable3.StylePriority.UseFont = false;
this.xrTable3.StylePriority.UseTextAlignment = false;
this.xrTable3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
//
// xrTableRow14
//
this.xrTableRow14.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
this.xrTableCell41,
this.xrTableCell16,
this.xrTableCell20,
this.xrTableCell6,
this.xrTableCell8});
this.xrTableRow14.Name = "xrTableRow14";
this.xrTableRow14.StylePriority.UseBackColor = false;
this.xrTableRow14.Weight = 0.0343897370597854D;
//
// xrTableCell41
//
this.xrTableCell41.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell41.Name = "xrTableCell41";
this.xrTableCell41.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F);
this.xrTableCell41.StylePriority.UseBorders = false;
this.xrTableCell41.StylePriority.UseFont = false;
this.xrTableCell41.StylePriority.UsePadding = false;
this.xrTableCell41.StylePriority.UseTextAlignment = false;
this.xrTableCell41.Text = "Monat";
this.xrTableCell41.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
this.xrTableCell41.Weight = 0.084935891491171311D;
//
// xrTableCell16
//
this.xrTableCell16.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell16.Multiline = true;
this.xrTableCell16.Name = "xrTableCell16";
this.xrTableCell16.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F);
this.xrTableCell16.StylePriority.UseBorders = false;
this.xrTableCell16.StylePriority.UseFont = false;
this.xrTableCell16.StylePriority.UsePadding = false;
this.xrTableCell16.StylePriority.UseTextAlignment = false;
this.xrTableCell16.Text = "Plan/Stunden";
this.xrTableCell16.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
this.xrTableCell16.Weight = 0.22461536751086311D;
//
// xrTableCell20
//
this.xrTableCell20.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell20.Multiline = true;
this.xrTableCell20.Name = "xrTableCell20";
this.xrTableCell20.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F);
this.xrTableCell20.StylePriority.UseBorders = false;
this.xrTableCell20.StylePriority.UseFont = false;
this.xrTableCell20.StylePriority.UsePadding = false;
this.xrTableCell20.StylePriority.UseTextAlignment = false;
this.xrTableCell20.Text = "Ist-Stunden";
this.xrTableCell20.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
this.xrTableCell20.Weight = 0.22474678088948383D;
//
// xrTableCell6
//
this.xrTableCell6.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell6.Multiline = true;
this.xrTableCell6.Name = "xrTableCell6";
this.xrTableCell6.StylePriority.UseBorders = false;
this.xrTableCell6.StylePriority.UseFont = false;
this.xrTableCell6.Text = "Abweichung +/-";
this.xrTableCell6.Weight = 0.19294558358324743D;
//
// xrTableCell8
//
this.xrTableCell8.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell8.Multiline = true;
this.xrTableCell8.Name = "xrTableCell8";
this.xrTableCell8.StylePriority.UseBorders = false;
this.xrTableCell8.StylePriority.UseFont = false;
this.xrTableCell8.Text = "Anmerkung";
this.xrTableCell8.Weight = 0.3207100403051642D;
//
// xrTableRow4
//
this.xrTableRow4.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
this.xrTableCell7,
this.xrTableCell12,
this.xrTableCell19,
this.xrTableCell18,
this.xrTableCell21,
this.xrTableCell15,
this.xrTableCell17});
this.xrTableRow4.Name = "xrTableRow4";
this.xrTableRow4.StylePriority.UseBackColor = false;
this.xrTableRow4.Weight = 0.0343897370597854D;
//
// xrTableCell7
//
this.xrTableCell7.CanGrow = false;
this.xrTableCell7.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell7.Multiline = true;
this.xrTableCell7.Name = "xrTableCell7";
this.xrTableCell7.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F);
this.xrTableCell7.StylePriority.UseBorders = false;
this.xrTableCell7.StylePriority.UseFont = false;
this.xrTableCell7.StylePriority.UsePadding = false;
this.xrTableCell7.StylePriority.UseTextAlignment = false;
this.xrTableCell7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
this.xrTableCell7.TextFormatString = "{0:MMM}";
this.xrTableCell7.Weight = 0.084935891491171311D;
//
// xrTableCell12
//
this.xrTableCell12.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell12.Multiline = true;
this.xrTableCell12.Name = "xrTableCell12";
this.xrTableCell12.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F);
this.xrTableCell12.StylePriority.UseBorders = false;
this.xrTableCell12.StylePriority.UseFont = false;
this.xrTableCell12.StylePriority.UsePadding = false;
this.xrTableCell12.StylePriority.UseTextAlignment = false;
this.xrTableCell12.Text = "Monat";
this.xrTableCell12.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
this.xrTableCell12.Weight = 0.11230768375543156D;
//
// xrTableCell19
//
this.xrTableCell19.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell19.Multiline = true;
this.xrTableCell19.Name = "xrTableCell19";
this.xrTableCell19.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F);
this.xrTableCell19.StylePriority.UseBorders = false;
this.xrTableCell19.StylePriority.UseFont = false;
this.xrTableCell19.StylePriority.UsePadding = false;
this.xrTableCell19.StylePriority.UseTextAlignment = false;
this.xrTableCell19.Text = "kumuliert";
this.xrTableCell19.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
this.xrTableCell19.Weight = 0.11230763680531414D;
//
// xrTableCell18
//
this.xrTableCell18.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell18.Multiline = true;
this.xrTableCell18.Name = "xrTableCell18";
this.xrTableCell18.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F);
this.xrTableCell18.StylePriority.UseBorders = false;
this.xrTableCell18.StylePriority.UseFont = false;
this.xrTableCell18.StylePriority.UsePadding = false;
this.xrTableCell18.StylePriority.UseTextAlignment = false;
this.xrTableCell18.Text = "Monat";
this.xrTableCell18.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
this.xrTableCell18.Weight = 0.11230768375543153D;
//
// xrTableCell21
//
this.xrTableCell21.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell21.Multiline = true;
this.xrTableCell21.Name = "xrTableCell21";
this.xrTableCell21.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F);
this.xrTableCell21.StylePriority.UseBorders = false;
this.xrTableCell21.StylePriority.UseFont = false;
this.xrTableCell21.StylePriority.UsePadding = false;
this.xrTableCell21.StylePriority.UseTextAlignment = false;
this.xrTableCell21.Text = "kumuliert";
this.xrTableCell21.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter;
this.xrTableCell21.Weight = 0.11243914408416966D;
//
// xrTableCell15
//
this.xrTableCell15.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell15.Multiline = true;
this.xrTableCell15.Name = "xrTableCell15";
this.xrTableCell15.StylePriority.UseBorders = false;
this.xrTableCell15.StylePriority.UseFont = false;
this.xrTableCell15.Text = "kumuliert";
this.xrTableCell15.Weight = 0.19294558358324743D;
//
// xrTableCell17
//
this.xrTableCell17.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell17.Multiline = true;
this.xrTableCell17.Name = "xrTableCell17";
this.xrTableCell17.StylePriority.UseBorders = false;
this.xrTableCell17.StylePriority.UseFont = false;
this.xrTableCell17.Weight = 0.3207100403051642D;
//
// DetailReport
//
this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
this.Detail1});
this.DetailReport.DataMember = "MonatsZeilen";
this.DetailReport.DataSource = this.bindingSource1;
this.DetailReport.Level = 0;
this.DetailReport.Name = "DetailReport";
//
// Detail1
//
this.Detail1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] {
this.xrTable1});
this.Detail1.HeightF = 24F;
this.Detail1.Name = "Detail1";
//
// xrTable1
//
this.xrTable1.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(45.83003F, 0F);
this.xrTable1.Name = "xrTable1";
this.xrTable1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] {
this.xrTableRow2});
this.xrTable1.SizeF = new System.Drawing.SizeF(681.1698F, 24F);
this.xrTable1.StylePriority.UseBackColor = false;
this.xrTable1.StylePriority.UseBorderColor = false;
this.xrTable1.StylePriority.UseBorders = false;
//
// xrTableRow2
//
this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] {
this.xrTableCell4,
this.xrTableCell5,
this.xrTableCell10,
this.xrTableCell11,
this.xrTableCell13,
this.xrTableCell14,
this.xrTableCell25});
this.xrTableRow2.Name = "xrTableRow2";
this.xrTableRow2.StylePriority.UseFont = false;
this.xrTableRow2.Weight = 0.12000000000000002D;
//
// xrTableCell4
//
this.xrTableCell4.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "MonatsZeilen.MonatStartDate")});
this.xrTableCell4.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell4.Name = "xrTableCell4";
this.xrTableCell4.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F);
this.xrTableCell4.StylePriority.UseBorders = false;
this.xrTableCell4.StylePriority.UseFont = false;
this.xrTableCell4.StylePriority.UsePadding = false;
this.xrTableCell4.StylePriority.UseTextAlignment = false;
this.xrTableCell4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell4.TextFormatString = "{0:MMM}";
this.xrTableCell4.Weight = 0.08494136556211826D;
//
// xrTableCell5
//
this.xrTableCell5.CanShrink = true;
this.xrTableCell5.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "MonatsZeilen.bewilligteStunden", "{0:0.##}")});
this.xrTableCell5.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell5.Multiline = true;
this.xrTableCell5.Name = "xrTableCell5";
this.xrTableCell5.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F);
this.xrTableCell5.StylePriority.UseBorderColor = false;
this.xrTableCell5.StylePriority.UseBorders = false;
this.xrTableCell5.StylePriority.UseFont = false;
this.xrTableCell5.StylePriority.UsePadding = false;
this.xrTableCell5.StylePriority.UseTextAlignment = false;
this.xrTableCell5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell5.Weight = 0.1123076907451402D;
//
// xrTableCell10
//
this.xrTableCell10.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "MonatsZeilen.bewilligteStundenKumuliert")});
this.xrTableCell10.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell10.Multiline = true;
this.xrTableCell10.Name = "xrTableCell10";
this.xrTableCell10.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 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.Text = "xrTableCell24";
this.xrTableCell10.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell10.TextFormatString = "{0:0.0}";
this.xrTableCell10.Weight = 0.11230763205749558D;
//
// xrTableCell11
//
this.xrTableCell11.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "MonatsZeilen.Custom1")});
this.xrTableCell11.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell11.Multiline = true;
this.xrTableCell11.Name = "xrTableCell11";
this.xrTableCell11.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F);
this.xrTableCell11.StylePriority.UseBorderColor = false;
this.xrTableCell11.StylePriority.UseBorders = false;
this.xrTableCell11.StylePriority.UseFont = false;
this.xrTableCell11.StylePriority.UsePadding = false;
this.xrTableCell11.StylePriority.UseTextAlignment = false;
this.xrTableCell11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell11.Weight = 0.11230758510737988D;
//
// xrTableCell13
//
this.xrTableCell13.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] {
new DevExpress.XtraReports.UI.XRBinding("Text", null, "MonatsZeilen.Custom2")});
this.xrTableCell13.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell13.Multiline = true;
this.xrTableCell13.Name = "xrTableCell13";
this.xrTableCell13.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F);
this.xrTableCell13.StylePriority.UseBorderColor = false;
this.xrTableCell13.StylePriority.UseBorders = false;
this.xrTableCell13.StylePriority.UseFont = false;
this.xrTableCell13.StylePriority.UsePadding = false;
this.xrTableCell13.StylePriority.UseTextAlignment = false;
this.xrTableCell13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell13.Weight = 0.11243928018189976D;
//
// xrTableCell14
//
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, "MonatsZeilen.Custom3")});
this.xrTableCell14.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell14.Name = "xrTableCell14";
this.xrTableCell14.StylePriority.UseBorders = false;
this.xrTableCell14.StylePriority.UseFont = false;
this.xrTableCell14.StylePriority.UseTextAlignment = false;
this.xrTableCell14.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell14.Weight = 0.1929398169889949D;
//
// xrTableCell25
//
this.xrTableCell25.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right)
| DevExpress.XtraPrinting.BorderSide.Bottom)));
this.xrTableCell25.Font = new DevExpress.Drawing.DXFont("Segoe UI", 10F);
this.xrTableCell25.Multiline = true;
this.xrTableCell25.Name = "xrTableCell25";
this.xrTableCell25.StylePriority.UseBorders = false;
this.xrTableCell25.StylePriority.UseFont = false;
this.xrTableCell25.StylePriority.UseTextAlignment = false;
this.xrTableCell25.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter;
this.xrTableCell25.Weight = 0.32071006709896221D;
//
// bindingSource1
//
this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.MonatlicherSollIstVergleichRO);
//
// StundenkontrolleAbw
//
this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] {
this.Detail,
this.topMarginBand1,
this.bottomMarginBand1,
this.GroupHeader1,
this.DetailReport});
this.CalculatedFields.AddRange(new DevExpress.XtraReports.UI.CalculatedField[] {
this.fieldEinzel,
this.fieldGruppe});
this.DataSource = this.bindingSource1;
this.DisplayName = "Behandlungsnachweis";
this.ExportOptions.PrintPreview.DefaultFileName = "Spitzabrechnung";
this.Font = new DevExpress.Drawing.DXFont("Segoe UI", 9F, DevExpress.Drawing.DXFontStyle.Regular, DevExpress.Drawing.DXGraphicsUnit.Point, new DevExpress.Drawing.DXFontAdditionalProperty[] {
new DevExpress.Drawing.DXFontAdditionalProperty("GdiCharSet", ((byte)(0)))});
this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] {
this.ruleBorderUnten});
this.Margins = new DevExpress.Drawing.DXMargins(30F, 45F, 100F, 100F);
this.PageHeight = 1169;
this.PageWidth = 827;
this.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.A4;
this.Version = "23.2";
xrWatermark1.Id = "Watermark1";
this.Watermarks.Add(xrWatermark1);
((System.ComponentModel.ISupportInitialize)(this.xrTable3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
}
private DevExpress.XtraReports.UI.DetailBand Detail;
private System.Windows.Forms.BindingSource bindingSource1;
private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1;
private DevExpress.XtraReports.UI.BottomMarginBand bottomMarginBand1;
private DevExpress.XtraReports.UI.CalculatedField fieldEinzel;
private DevExpress.XtraReports.UI.CalculatedField fieldGruppe;
private DevExpress.XtraReports.UI.FormattingRule ruleBorderUnten;
private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1;
private DevExpress.XtraReports.UI.XRTable xrTable3;
private DevExpress.XtraReports.UI.XRTableRow xrTableRow14;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell41;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell16;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell20;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell6;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell8;
private DevExpress.XtraReports.UI.XRTableRow xrTableRow4;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell7;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell12;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell19;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell18;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell21;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell15;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell17;
private DevExpress.XtraReports.UI.DetailReportBand DetailReport;
private DevExpress.XtraReports.UI.DetailBand Detail1;
private DevExpress.XtraReports.UI.XRTable xrTable1;
private DevExpress.XtraReports.UI.XRTableRow xrTableRow2;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell4;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell5;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell10;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell11;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell13;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell14;
private DevExpress.XtraReports.UI.XRTableCell xrTableCell25;
private DevExpress.XtraReports.UI.XRLabel xrLabel1;
private DevExpress.XtraReports.UI.XRLabel xrLabel2;
private DevExpress.XtraReports.UI.XRLabel xrLabel7;
private DevExpress.XtraReports.UI.XRLabel lblVorjahr;
}
}

View File

@@ -0,0 +1,64 @@
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using BeWo.Data.Access;
using BeWo.Data.Entities;
using BeWo.Report;
using BeWo.Report.ReportObjects;
using BeWo.Service.ServiceImplementations;
using BS.Shared;
using BS.Shared.Core;
using BS.Shared.DataContracts;
using DevExpress.XtraReports.UI;
namespace LebenshilfeBadKreuznachFUD.Reporting.Reports
{
public partial class StundenkontrolleAbw : XtraReport, IBeWoReport<MonatlicherSollIstVergleichRO>
{
public StundenkontrolleAbw()
{
this.InitializeComponent();
}
public void SetReportDataSource(MonatlicherSollIstVergleichRO pRO)
{
if (pRO.MonatsZeilen != null && pRO.MonatsZeilen.Count > 0)
{
decimal bewStdKum = 0;
if (pRO.MonatsZeilen.Any(m => m.MonatStartDate.Year == pRO.EndDate.AddYears(-1).Year && m.MonatStartDate.Month == 12))
{
var lastYear = pRO.MonatsZeilen.Where(m => m.MonatStartDate.Year == pRO.EndDate.AddYears(-1).Year && m.MonatStartDate.Month == 12).FirstOrDefault();
bewStdKum = -lastYear.StundenDifferenzKumuliert ?? 0;
}
decimal istStdKum = 0;
pRO.MonatsZeilen = pRO.MonatsZeilen.Where(m => m.MonatStartDate.Year == pRO.EndDate.Year).OrderBy(m => m.MonatStartDate).ToList();
foreach (var mz in pRO.MonatsZeilen)
{
bewStdKum += mz.bewilligteStunden;
mz.bewilligteStundenKumuliert = bewStdKum;
istStdKum += mz.erbrachteStunden;
mz.erbrachteStundenKumuliert = istStdKum;
mz.StundenDifferenzKumuliert = mz.erbrachteStundenKumuliert - mz.bewilligteStundenKumuliert;
if (mz.MonatStartDate > pRO.EndDate)
{
mz.Custom1 = "";
mz.Custom2 = "";
mz.Custom3 = "";
}
else
{
mz.Custom1 = String.Format("{0:0.0}", mz.erbrachteStunden);
mz.Custom2 = String.Format("{0:0.0}", mz.erbrachteStundenKumuliert);
mz.Custom3 = String.Format("{0:0.0}", mz.StundenDifferenzKumuliert);
}
}
}
lblVorjahr.Text = String.Format("{0:yyyy}", pRO.EndDate.AddYears(-1));
this.bindingSource1.DataSource = pRO;
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -345,6 +345,7 @@ namespace LebenshilfeFrankfurtOder.Invoicing
var bookings = DAOFactory.SearchDAO.GetAdditionalServiceBookings(22, start, end);
Dictionary<int, int> dayCount = new Dictionary<int, int>();
int teilnameCount = 0;
foreach (var ab in bookings)
{
bool nimmtTeil = false;
@@ -352,27 +353,33 @@ namespace LebenshilfeFrankfurtOder.Invoicing
{
if (c2a.Participated)
{
nimmtTeil = true;
}
if (!dayCount.ContainsKey(ab.StartDate.Value.Day))
{
dayCount.Add(ab.StartDate.Value.Day, 0);
}
dayCount[ab.StartDate.Value.Day]++;
teilnameCount++;
}
}
if (nimmtTeil)
{
if (!dayCount.ContainsKey(ab.StartDate.Value.Day))
{
dayCount.Add(ab.StartDate.Value.Day, 0);
}
//if (nimmtTeil)
//{
// if (!dayCount.ContainsKey(ab.StartDate.Value.Day))
// {
// dayCount.Add(ab.StartDate.Value.Day, 0);
// }
dayCount[ab.StartDate.Value.Day]++;
}
// dayCount[ab.StartDate.Value.Day]++;
//}
}
if (dayCount.Count > 0)
{
var ii = new InvoiceItem();
var ii = new InvoiceItem();
ii.AmountPerUnit = FrankfurtOderHelper.PREIS_HORT_FERIENBETREUUNG;
ii.UnitCount = dayCount.Count;
ii.AmountPerUnit = FrankfurtOderHelper.GetPreisFerienbetreuung(start);
ii.UnitCount = teilnameCount;
ii.AmountTotal = ii.AmountPerUnit * ii.UnitCount;
ii.ItemPeriodStart = start;
ii.ItemPeriodEnd = end;
@@ -522,7 +529,7 @@ namespace LebenshilfeFrankfurtOder.Invoicing
{
var ii = new InvoiceItem();
ii.AmountPerUnit = FrankfurtOderHelper.PREIS_HORT_FERIENBETREUUNG;
ii.AmountPerUnit = FrankfurtOderHelper.GetPreisFerienbetreuung(start);
ii.UnitCount = anzahlFerien;
ii.AmountTotal = ii.AmountPerUnit * ii.UnitCount;
ii.ItemPeriodStart = start;

View File

@@ -83,7 +83,7 @@ namespace LebenshilfeFrankfurtOder
decimal betrag1 = FrankfurtOderHelper.PREIS_HORT_BIS_3_KINDER;
decimal betrag2 = FrankfurtOderHelper.PREIS_HORT_AB_4_KINDER;
decimal betrag3 = FrankfurtOderHelper.PREIS_HORT_AB_6_KINDER;
decimal betrag5 = FrankfurtOderHelper.PREIS_HORT_FERIENBETREUUNG;
decimal betrag5 = FrankfurtOderHelper.GetPreisFerienbetreuung(pRO.AccountingPeriodStart);
decimal gesamt1 = 0;
decimal gesamt2 = 0;
@@ -99,7 +99,7 @@ namespace LebenshilfeFrankfurtOder
{
klientenNamen = sip.Notice;
}
foreach (var ii in sip.ServiceInvoiceItems)
{
if (ii.ServiceDescription.Contains("3"))
@@ -125,7 +125,7 @@ namespace LebenshilfeFrankfurtOder
}
else if (ii.ServiceDescription.Contains("Ferien"))
{
anzahl5 = ii.UnitCount ?? 0;
anzahl5 = ii.UnitCount ?? 0;
betrag5 = ii.AmountPerUnit ?? betrag5;
gesamt5 = ii.NetAmount ?? 0;

View File

@@ -19,10 +19,12 @@ namespace LebenshilfeFrankfurtOder.Utils
public static decimal PREIS_HORT_BIS_3_KINDER = 129.44m;
public static decimal PREIS_HORT_AB_4_KINDER = 204.44m;
public static decimal PREIS_HORT_AB_6_KINDER = 323.48m;
public static decimal PREIS_HORT_FERIENBETREUUNG = 529.29m;
public static AbsenceTimeCount CalculateAbsenceTimes(CompactCustomerDC customer, DateTime date, bool nurTagesstruktur)
{
var bereitsGezaehltJahr = new Dictionary<string, bool>();
var bereitsGezaehltMonat = new Dictionary<string, bool>();
AbsenceTimeCount count = new AbsenceTimeCount();
if (customer.AbsenceTimes == null)
@@ -36,17 +38,19 @@ namespace LebenshilfeFrankfurtOder.Utils
var name = at.Reason.Description.ToLower();
DateTime dt = at.Start.Value;
DateTime end = new DateTime(date.Year, date.Month, 1).AddMonths(1);
DateTime ersteDesFolgeMonats = new DateTime(date.Year, date.Month, 1).AddMonths(1);
DateTime end = ersteDesFolgeMonats;
if (at.End.HasValue && at.End.Value < end)
{
end = at.End.Value;
}
while (dt <= end)
while (dt <= end && dt < ersteDesFolgeMonats)
{
if (dt.DayOfWeek != DayOfWeek.Saturday && dt.DayOfWeek != DayOfWeek.Sunday)
{
String key = String.Format("{0:dd.MM.yyyy}", dt);
if (dt.Year == date.Year)
{
if (name.Contains("corona"))
@@ -55,7 +59,15 @@ namespace LebenshilfeFrankfurtOder.Utils
}
else
{
count.TageAbwesendImJahr++;
if (!bereitsGezaehltJahr.ContainsKey(key))
{
count.TageAbwesendImJahr++;
bereitsGezaehltJahr.Add(key, true);
}
else
{
int test = 0;
}
}
}
@@ -65,15 +77,21 @@ namespace LebenshilfeFrankfurtOder.Utils
if (name.Contains("corona"))
{
count.TageAnwesendImMonat++;
if (!bereitsGezaehltMonat.ContainsKey(key))
{
count.TageAnwesendImMonat++;
bereitsGezaehltMonat.Add(key, true);
}
}
else
{
count.TageAbwesendImMonat++;
if (!bereitsGezaehltMonat.ContainsKey(key))
{
count.TageAnwesendImMonat++;
bereitsGezaehltMonat.Add(key, true);
}
}
}
}
@@ -86,8 +104,22 @@ namespace LebenshilfeFrankfurtOder.Utils
}
//row.AbsenceTimeMonthCount = monthCount;
//row.AbsenceTimeYearCount = yearCount;
//var list = bereitsGezaehltJahr.Keys.ToList();
//var dateList = new List<DateTime>();
//foreach (var item in list)
//{
// dateList.Add(DateTime.Parse(item));
//}
//String test2 = "";
//foreach (var item in dateList.OrderBy(a => a))
//{
// test2 += String.Format("{0:dd.MM.yyyy}", item) + "\n";
//}
return count;
}
@@ -189,6 +221,33 @@ namespace LebenshilfeFrankfurtOder.Utils
return saetze;
}
public static decimal GetPreisFerienbetreuung(DateTime dt)
{
var cat = DAOFactory.SearchDAO.FindServiceCategoryByName("Alternatives Hort u. Ferienangebot");
if (cat != null)
{
var descList = DAOFactory.SearchDAO.FindServiceDescriptionForCategory(cat.Oid.Value);
foreach (var sd in descList)
{
if (sd.Name == "Ferienbetreuung")
{
var crps = MapperFactory.CostRatePeriodDC_CostRatePeriod.MapToNewDCs(sd.CostRatePeriods);
decimal ts = 0;
var cr = crps.GetCostRatePeriodForDate(CostRatePeriodType.AmountOfMoney, dt);
if (cr != null && cr.CostRateValue.HasValue)
{
return cr.CostRateValue.Value;
}
}
}
}
return 0;
}
public static void GetWstTagessaetze(String catName, DateTime dt, out decimal anwesend, out decimal abwesend)
{
anwesend = 0;