From 69a5a57e76237e5fbb1c4d1fb338aa8b7286d392 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Fri, 4 Jul 2025 12:52:55 +0200 Subject: [PATCH] LebenshilfeBadKreuznachWohnstaette/Kassenbestand - mit Query --- ...ersicht und Summe aller Kassen im Monat.txt | 9 + .../CustomServiceRecordStatisticFactory.cs | 43 +- .../Kassenbestand.cs | 178 +++++++ .../Kassenbestand.designer.cs | 485 ++++++++++++++++++ .../Kassenbestand.resx | 123 +++++ .../LebenshilfeBadKreuznachWohnstaette.csproj | 9 + 6 files changed, 809 insertions(+), 38 deletions(-) create mode 100644 Queries/Kassenbestand - Übersicht und Summe aller Kassen im Monat.txt create mode 100644 ReportImp/LebenshilfeBadKreuznachWohnstaette/Kassenbestand.cs create mode 100644 ReportImp/LebenshilfeBadKreuznachWohnstaette/Kassenbestand.designer.cs create mode 100644 ReportImp/LebenshilfeBadKreuznachWohnstaette/Kassenbestand.resx diff --git a/Queries/Kassenbestand - Übersicht und Summe aller Kassen im Monat.txt b/Queries/Kassenbestand - Übersicht und Summe aller Kassen im Monat.txt new file mode 100644 index 000000000..f772cec2c --- /dev/null +++ b/Queries/Kassenbestand - Übersicht und Summe aller Kassen im Monat.txt @@ -0,0 +1,9 @@ +-- Bei Lebenshilfe Bad Kreuznach Wohnstätte 9696466498 (APP3) +-- Bericht "Kassenbestand" muss noch in Customer.dll ergänzt und in Query angegeben werden + +SELECT bk.Oid, bk.Kassenname, bt.ZahlungsTyp, bt.Betrag, bt.Zahlungsdatum, bk.ObjectTid, ':Monat_Start', bt.InsTs + FROM bargeldtransaktion bt + JOIN bargeldkasse bk ON bt.BargeldkassenOid = bk.Oid + WHERE bk.isactive = 1 +Query: +'100', '24', '0', 'Kassenbestand', 'SELECT bk.Oid, bk.Kassenname, bt.ZahlungsTyp, bt.Betrag, bt.Zahlungsdatum, bk.ObjectTid, \':Monat_Start\', bt.InsTs\n FROM bargeldtransaktion bt \n JOIN bargeldkasse bk ON bt.BargeldkassenOid = bk.Oid \n where bk.isactive = 1\n \n ', 'direct', NULL, NULL, NULL, '1', '1', NULL, NULL, 'LebenshilfeBadKreuznachWohnstaette.Kassenbestand', NULL, NULL diff --git a/ReportImp/LebenshilfeBadKreuznachFUD/Statistics/CustomServiceRecordStatisticFactory.cs b/ReportImp/LebenshilfeBadKreuznachFUD/Statistics/CustomServiceRecordStatisticFactory.cs index 2351d2b88..bd3b07c4b 100644 --- a/ReportImp/LebenshilfeBadKreuznachFUD/Statistics/CustomServiceRecordStatisticFactory.cs +++ b/ReportImp/LebenshilfeBadKreuznachFUD/Statistics/CustomServiceRecordStatisticFactory.cs @@ -438,30 +438,15 @@ namespace LebenshilfeBadKreuznachFUD.Statistics { decimal preis = 0; - - String sdName = sr.ServiceDescription.Name.ToLower(); - - //if (sdName == "einzelbetreuung") - //{ - //String key = String.Format("{0}_{1}_{2}", sr.ServiceDescription.ServiceCategory.Name, sr.ServiceDescription.Name, sr.Start.m); - - //if (!preisFuerEinzelbetreuung.ContainsKey(key)) - //{ - //var neuerPreis = GetPreisVonServiceDescription(sr.ServiceDescription, sr.Start.Value); - //} - - preis = GetPreisVonServiceDescription(sr.ServiceDescription, sr.Start.Value) ?? 0; - preis *= (sr.RoundedDuration/60); - //} - //} - - var fahrtkosten = GetPreis("Fahrtkostenpauschale", sr.Start.Value); //Einmal Fahrtkosten pro Termin - + preis = GetPreisVonServiceDescription(sr.ServiceDescription, sr.Start.Value) ?? 0; + preis *= (sr.RoundedDuration/60); + var fahrtkosten = GetPreis("Hausbesuchspauschale", sr.Start.Value); //Einmal Fahrtkosten pro Tag an dem ein Termin stattgefunden hat var firstOfMonthDt = new DateTime(statisticsDate.Year, statisticsDate.Month, 1); if (sr.Start >= firstOfMonthDt && sr.Start < firstOfMonthDt.AddMonths(1)) { periodStats.AmountConsumedThisInterval += preis; + if (!periodStats.ServiceRecords.Any(r => r.ServiceRecordOid != sr.Oid && r.ServiceDescription.CategoryName.ToLower().StartsWith("entlastung") && r.Start.HasValue && r.Start.Value.Date == sr.Start.Value.Date)) periodStats.AmountConsumedThisInterval += fahrtkosten; } if (sr.GroupEmployeeCount.HasValue) @@ -469,8 +454,6 @@ namespace LebenshilfeBadKreuznachFUD.Statistics preis /= sr.GroupEmployeeCount.Value; } - - periodStats.AmountConsumedTotal += preis; periodStats.AmountConsumedTotal += fahrtkosten; @@ -484,23 +467,7 @@ namespace LebenshilfeBadKreuznachFUD.Statistics { periodStats.Custom4 = preis + (periodStats.Custom4 ?? 0); } - //var oidKey = periodStats.SupportConceptApprovalPeriod.SupportConceptApprovalPeriodOid.Value; - - - - - // if (!oid2BetragVorjahrAb17.ContainsKey(oidKey) && periodStats.SupportConceptApprovalPeriod.ServiceCategory != null) - //{ - // decimal restVorjahr = 0; - // decimal restVorVorjahr = 0; - // BerechneRestBetragVorjahr(sr.CustomerOid.Value, periodStats.SupportConceptApprovalPeriod.StartDate.Value.Year, periodStats.SupportConceptApprovalPeriod.ServiceCategory.Name, out restVorjahr, out restVorVorjahr); - // oid2BetragVorjahrAb17[oidKey] = restVorjahr; - // oid2BetragVorjahr16[oidKey] = restVorVorjahr; - // } - - - - } + } } public decimal GetPreis(String preisBezeichnung, DateTime datum) diff --git a/ReportImp/LebenshilfeBadKreuznachWohnstaette/Kassenbestand.cs b/ReportImp/LebenshilfeBadKreuznachWohnstaette/Kassenbestand.cs new file mode 100644 index 000000000..0a930acfa --- /dev/null +++ b/ReportImp/LebenshilfeBadKreuznachWohnstaette/Kassenbestand.cs @@ -0,0 +1,178 @@ +using System; +using System.Linq; +using System.Text; +using BS.Shared; +using BS.Shared.Extensions; +using BeWo.Report; +using BeWo.Report.ReportObjects; +using BeWo.Data.Entities; +using BeWo.Data.Access; +using System.Collections.Generic; +using System.Windows.Forms.VisualStyles; +using BS.Shared.Core; +using BS.Shared.Services; +using BS.Shared.DataContracts; +using BeWo.Service.DCEntityMapper; +using BeWo.Service.Plugins; +using BeWo.Service.ServiceImplementations; + +namespace LebenshilfeBadKreuznachWohnstaette +{ + [IDSpecificClass(Identifier = "Kassenbestand")] + public partial class Kassenbestand : DevExpress.XtraReports.UI.XtraReport, IBeWoReport + { + + public Kassenbestand() + { + InitializeComponent(); + } + + public void SetReportDataSource(QueryRO pRO) + { + DateTime abfrageMonat = new DateTime(DateTime.Now.Year, 1, 1); + DateTime letztesDatum = DateTime.MinValue; + + Dictionary oid2Kasse = new Dictionary(); + List kassen = new List(); + + + if (pRO.Rows != null) + { + if (pRO.Rows.Count > 0 && pRO.Rows[0].Field7 != null) + { + DateTime.TryParse(pRO.Rows[0].Field7.ToString(), out abfrageMonat); + } + foreach (var row in pRO.Rows) + { + + long oid = Int64.Parse(row.Field1.ToString()); + + Kasse kto = null; + + if (!oid2Kasse.ContainsKey(oid)) + { + kto = new Kasse(); + kto.Transaktionen = new List(); + kto.Name = String.Format("{0}", row.Field2); + + kassen.Add(kto); + + oid2Kasse.Add(oid, kto); + } + else + { + kto = oid2Kasse[oid]; + } + + BargeldtransaktionDC dc = new BargeldtransaktionDC(); + + if (row.Field3 != null && (bool) row.Field3) + { + dc.Zahlungstyp = Zahlungstyp.Auszahlung; + + } + else + { + dc.Zahlungstyp = Zahlungstyp.Einzahlung; + } + decimal betrag = 0; + if (row.Field4 != null) + { + Decimal.TryParse(row.Field4.ToString(), out betrag); + } + dc.Betrag = betrag; + + + + DateTime zahlungsdatum = DateTime.MinValue; + if (row.Field5 != null) + { + if (DateTime.TryParse(row.Field5.ToString(), out zahlungsdatum)) + { + dc.Zahlungsdatum = zahlungsdatum; + } + + } + DateTime insts = DateTime.MinValue; + if (row.Field8 != null) + { + if (DateTime.TryParse(row.Field8.ToString(), out insts)) + { + if (insts > letztesDatum) + { + letztesDatum = insts; + } + } + + } + + kto.Transaktionen.Add(dc); + + } + } + + decimal gesamt = 0; + decimal hauptkassegesamt = 0; + int rowIdx = 1; + QueryRO newRo = new QueryRO(); + + var stichtag = abfrageMonat.AddMonths(1); + + foreach (var kto in kassen.OrderBy(k => k.Name)) + { + QueryRO.Row row = new QueryRO.Row(); + newRo.Rows.Add(row); + + row.Field1 = String.Format("{0}", rowIdx++); + row.Field2 = kto.Name; + + decimal kassenBetrag = GetGesamtBetrag(kto, stichtag); + + gesamt += kassenBetrag; + row.Field3 = String.Format("{0:c}", kassenBetrag); + } + + + if (letztesDatum == DateTime.MinValue) + { + letztesDatum = DateTime.Now; + } + lblLetzterStand.Text = String.Format("{0:MMMM yyyy}", abfrageMonat); + + + lblGesamt.Text = String.Format("{0:c}", gesamt); + + this.bindingSource1.DataSource = newRo; + } + + private decimal GetGesamtBetrag(Kasse kto, DateTime stichtag) + { + decimal kassenBetrag = 0; + foreach (var t in kto.Transaktionen) + { + if (t.Zahlungsdatum.HasValue && t.Zahlungsdatum < stichtag) + { + if (t.Zahlungstyp == Zahlungstyp.Einzahlung) + { + kassenBetrag += t.Betrag ?? 0; + } + else + { + kassenBetrag -= t.Betrag ?? 0; + } + } + } + + return kassenBetrag; + } + + internal class Kasse + { + public String Name { get; set; } + public decimal Betrag { get; set; } + public List Transaktionen { get; set; } + } + + } + +} diff --git a/ReportImp/LebenshilfeBadKreuznachWohnstaette/Kassenbestand.designer.cs b/ReportImp/LebenshilfeBadKreuznachWohnstaette/Kassenbestand.designer.cs new file mode 100644 index 000000000..b3318bd62 --- /dev/null +++ b/ReportImp/LebenshilfeBadKreuznachWohnstaette/Kassenbestand.designer.cs @@ -0,0 +1,485 @@ +using BeWo.Report.ReportObjects; +namespace LebenshilfeBadKreuznachWohnstaette +{ + partial class Kassenbestand + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.Detail = new DevExpress.XtraReports.UI.DetailBand(); + this.Detail1 = new DevExpress.XtraReports.UI.DetailBand(); + this.xrTable5 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow5 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell21 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell22 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell24 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel(); + this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand(); + this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand(); + this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); + this.xrTable3 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow3 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell(); + this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand(); + this.lblLetzterStand = new DevExpress.XtraReports.UI.XRLabel(); + this.pageFooterBand1 = new DevExpress.XtraReports.UI.PageFooterBand(); + this.xrPageInfo2 = new DevExpress.XtraReports.UI.XRPageInfo(); + this.xrPageInfo1 = new DevExpress.XtraReports.UI.XRPageInfo(); + this.Title = new DevExpress.XtraReports.UI.XRControlStyle(); + this.FieldCaption = new DevExpress.XtraReports.UI.XRControlStyle(); + this.PageInfo = new DevExpress.XtraReports.UI.XRControlStyle(); + this.DataField = new DevExpress.XtraReports.UI.XRControlStyle(); + this.fieldFLS = new DevExpress.XtraReports.UI.CalculatedField(); + this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand(); + this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand(); + this.fieldStdWoche = new DevExpress.XtraReports.UI.CalculatedField(); + this.fieldHilfebedarf = new DevExpress.XtraReports.UI.CalculatedField(); + this.fieldDirLeiProzent = new DevExpress.XtraReports.UI.CalculatedField(); + this.fieldFachkraftProzent = new DevExpress.XtraReports.UI.CalculatedField(); + this.GroupHeader2 = new DevExpress.XtraReports.UI.GroupHeaderBand(); + this.GroupFooter2 = new DevExpress.XtraReports.UI.GroupFooterBand(); + this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); + this.lblGesamt = new DevExpress.XtraReports.UI.XRLabel(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).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; + // + // Detail1 + // + this.Detail1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable5}); + this.Detail1.HeightF = 25F; + this.Detail1.KeepTogetherWithDetailReports = true; + this.Detail1.Name = "Detail1"; + this.Detail1.StylePriority.UseFont = false; + // + // xrTable5 + // + this.xrTable5.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable5.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTable5.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable5.Name = "xrTable5"; + this.xrTable5.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 3, 0, 0, 100F); + this.xrTable5.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow5}); + this.xrTable5.SizeF = new System.Drawing.SizeF(550F, 25F); + this.xrTable5.StylePriority.UseBorders = false; + this.xrTable5.StylePriority.UseFont = false; + this.xrTable5.StylePriority.UsePadding = false; + this.xrTable5.StylePriority.UseTextAlignment = false; + this.xrTable5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + // + // xrTableRow5 + // + this.xrTableRow5.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell21, + this.xrTableCell22, + this.xrTableCell24}); + this.xrTableRow5.Name = "xrTableRow5"; + this.xrTableRow5.Weight = 1D; + // + // xrTableCell21 + // + this.xrTableCell21.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Rows.Field1")}); + this.xrTableCell21.Multiline = true; + this.xrTableCell21.Name = "xrTableCell21"; + this.xrTableCell21.StylePriority.UseTextAlignment = false; + this.xrTableCell21.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell21.Weight = 0.22156566730822536D; + // + // xrTableCell22 + // + this.xrTableCell22.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Rows.Field2")}); + this.xrTableCell22.Name = "xrTableCell22"; + this.xrTableCell22.StylePriority.UseTextAlignment = false; + this.xrTableCell22.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell22.Weight = 1.7725253587178085D; + // + // xrTableCell24 + // + this.xrTableCell24.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Rows.Field3")}); + this.xrTableCell24.Name = "xrTableCell24"; + this.xrTableCell24.StylePriority.UseFont = false; + this.xrTableCell24.StylePriority.UseTextAlignment = false; + this.xrTableCell24.Text = "xrTableCell14"; + this.xrTableCell24.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell24.Weight = 0.44313129888000868D; + // + // xrLabel13 + // + this.xrLabel13.Font = new System.Drawing.Font("Arial", 14F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline)))); + this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(0F, 10.00001F); + this.xrLabel13.Name = "xrLabel13"; + this.xrLabel13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel13.SizeF = new System.Drawing.SizeF(550.0002F, 23F); + this.xrLabel13.StylePriority.UseFont = false; + this.xrLabel13.StylePriority.UseTextAlignment = false; + this.xrLabel13.Text = "Bargeldkassenbestand"; + this.xrLabel13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + // + // DetailReport + // + this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail1, + this.GroupFooter1}); + this.DetailReport.DataMember = "Rows"; + this.DetailReport.DataSource = this.bindingSource1; + this.DetailReport.Level = 0; + this.DetailReport.Name = "DetailReport"; + // + // GroupFooter1 + // + this.GroupFooter1.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.GroupFooter1.HeightF = 0F; + this.GroupFooter1.Name = "GroupFooter1"; + this.GroupFooter1.StylePriority.UseFont = false; + // + // bindingSource1 + // + this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.QueryRO); + // + // xrTable3 + // + this.xrTable3.BackColor = System.Drawing.Color.LightGray; + 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 System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrTable3.LocationFloat = new DevExpress.Utils.PointFloat(0.0002543131F, 0F); + this.xrTable3.Name = "xrTable3"; + this.xrTable3.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 3, 0, 0, 100F); + this.xrTable3.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow3}); + this.xrTable3.SizeF = new System.Drawing.SizeF(550F, 40F); + this.xrTable3.StylePriority.UseBackColor = false; + this.xrTable3.StylePriority.UseBorders = false; + this.xrTable3.StylePriority.UseFont = false; + this.xrTable3.StylePriority.UsePadding = false; + this.xrTable3.StylePriority.UseTextAlignment = false; + this.xrTable3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrTableRow3 + // + this.xrTableRow3.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell2, + this.xrTableCell3, + this.xrTableCell8}); + this.xrTableRow3.Name = "xrTableRow3"; + this.xrTableRow3.Weight = 1.1162794658854165D; + // + // xrTableCell2 + // + this.xrTableCell2.Multiline = true; + this.xrTableCell2.Name = "xrTableCell2"; + this.xrTableCell2.Text = "Nr."; + this.xrTableCell2.Weight = 0.22156572539016617D; + // + // xrTableCell3 + // + this.xrTableCell3.Multiline = true; + this.xrTableCell3.Name = "xrTableCell3"; + this.xrTableCell3.StylePriority.UseTextAlignment = false; + this.xrTableCell3.Text = "Kassenname"; + this.xrTableCell3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell3.Weight = 1.7725258540908375D; + // + // xrTableCell8 + // + this.xrTableCell8.Name = "xrTableCell8"; + this.xrTableCell8.StylePriority.UseTextAlignment = false; + this.xrTableCell8.Text = "Betrag"; + this.xrTableCell8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell8.Weight = 0.44313146335503756D; + // + // ReportHeader + // + this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.lblLetzterStand, + this.xrLabel13}); + this.ReportHeader.HeightF = 80F; + this.ReportHeader.Name = "ReportHeader"; + // + // lblLetzterStand + // + this.lblLetzterStand.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.lblLetzterStand.LocationFloat = new DevExpress.Utils.PointFloat(0.0002543131F, 32.99999F); + this.lblLetzterStand.Name = "lblLetzterStand"; + this.lblLetzterStand.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblLetzterStand.SizeF = new System.Drawing.SizeF(550.0002F, 23F); + this.lblLetzterStand.StylePriority.UseFont = false; + this.lblLetzterStand.StylePriority.UseTextAlignment = false; + this.lblLetzterStand.Text = "Übersicht Treuhandkonten ABW"; + this.lblLetzterStand.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + // + // pageFooterBand1 + // + this.pageFooterBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrPageInfo2, + this.xrPageInfo1}); + this.pageFooterBand1.HeightF = 48F; + this.pageFooterBand1.Name = "pageFooterBand1"; + // + // xrPageInfo2 + // + this.xrPageInfo2.Font = new System.Drawing.Font("Arial", 8F); + this.xrPageInfo2.Format = "Seite {0} von {1}"; + this.xrPageInfo2.LocationFloat = new DevExpress.Utils.PointFloat(450F, 25F); + this.xrPageInfo2.Name = "xrPageInfo2"; + this.xrPageInfo2.SizeF = new System.Drawing.SizeF(100.0001F, 23F); + this.xrPageInfo2.StyleName = "PageInfo"; + this.xrPageInfo2.StylePriority.UseFont = false; + this.xrPageInfo2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; + // + // xrPageInfo1 + // + this.xrPageInfo1.Font = new System.Drawing.Font("Arial", 8F); + this.xrPageInfo1.Format = "Abfragedatum: {0:dddd, d. MMMM yyyy}"; + this.xrPageInfo1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 25F); + this.xrPageInfo1.Name = "xrPageInfo1"; + this.xrPageInfo1.PageInfo = DevExpress.XtraPrinting.PageInfo.DateTime; + this.xrPageInfo1.SizeF = new System.Drawing.SizeF(450.0002F, 23F); + this.xrPageInfo1.StyleName = "PageInfo"; + this.xrPageInfo1.StylePriority.UseFont = false; + // + // Title + // + this.Title.BackColor = System.Drawing.Color.White; + this.Title.BorderColor = System.Drawing.SystemColors.ControlText; + this.Title.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.Title.BorderWidth = 1F; + this.Title.Font = new System.Drawing.Font("Times New Roman", 24F); + this.Title.ForeColor = System.Drawing.Color.Black; + this.Title.Name = "Title"; + // + // FieldCaption + // + this.FieldCaption.BackColor = System.Drawing.Color.White; + this.FieldCaption.BorderColor = System.Drawing.SystemColors.ControlText; + this.FieldCaption.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.FieldCaption.BorderWidth = 1F; + this.FieldCaption.Font = new System.Drawing.Font("Times New Roman", 10F, System.Drawing.FontStyle.Bold); + this.FieldCaption.ForeColor = System.Drawing.Color.Black; + this.FieldCaption.Name = "FieldCaption"; + // + // PageInfo + // + this.PageInfo.BackColor = System.Drawing.Color.White; + this.PageInfo.BorderColor = System.Drawing.SystemColors.ControlText; + this.PageInfo.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.PageInfo.BorderWidth = 1F; + this.PageInfo.Font = new System.Drawing.Font("Times New Roman", 8F); + this.PageInfo.ForeColor = System.Drawing.Color.Black; + this.PageInfo.Name = "PageInfo"; + // + // DataField + // + this.DataField.BackColor = System.Drawing.Color.White; + this.DataField.BorderColor = System.Drawing.SystemColors.ControlText; + this.DataField.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.DataField.BorderWidth = 1F; + this.DataField.Font = new System.Drawing.Font("Times New Roman", 8F); + this.DataField.ForeColor = System.Drawing.SystemColors.ControlText; + this.DataField.Name = "DataField"; + // + // fieldFLS + // + this.fieldFLS.DataMember = "FLSReportGroups"; + this.fieldFLS.DataSource = this.bindingSource1; + this.fieldFLS.Expression = "[TotalFLM] / 60"; + this.fieldFLS.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal; + this.fieldFLS.Name = "fieldFLS"; + // + // topMarginBand1 + // + this.topMarginBand1.Name = "topMarginBand1"; + // + // bottomMarginBand1 + // + this.bottomMarginBand1.HeightF = 50F; + this.bottomMarginBand1.Name = "bottomMarginBand1"; + // + // fieldStdWoche + // + this.fieldStdWoche.DataMember = "Rows.ChildRows1"; + this.fieldStdWoche.Expression = "[Field4]"; + this.fieldStdWoche.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal; + this.fieldStdWoche.Name = "fieldStdWoche"; + // + // fieldHilfebedarf + // + this.fieldHilfebedarf.DataMember = "Rows.ChildRows1"; + this.fieldHilfebedarf.Expression = "[Field5]"; + this.fieldHilfebedarf.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal; + this.fieldHilfebedarf.Name = "fieldHilfebedarf"; + // + // fieldDirLeiProzent + // + this.fieldDirLeiProzent.DataMember = "Rows.ChildRows1"; + this.fieldDirLeiProzent.Expression = "[Field8]"; + this.fieldDirLeiProzent.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal; + this.fieldDirLeiProzent.Name = "fieldDirLeiProzent"; + // + // fieldFachkraftProzent + // + this.fieldFachkraftProzent.DataMember = "Rows.ChildRows1"; + this.fieldFachkraftProzent.Expression = "[Field11]"; + this.fieldFachkraftProzent.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal; + this.fieldFachkraftProzent.Name = "fieldFachkraftProzent"; + // + // GroupHeader2 + // + this.GroupHeader2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable3}); + this.GroupHeader2.HeightF = 40F; + this.GroupHeader2.Name = "GroupHeader2"; + // + // GroupFooter2 + // + this.GroupFooter2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel2, + this.lblGesamt}); + this.GroupFooter2.HeightF = 23F; + this.GroupFooter2.Level = 1; + this.GroupFooter2.Name = "GroupFooter2"; + // + // xrLabel2 + // + this.xrLabel2.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrLabel2.Name = "xrLabel2"; + this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 3, 0, 0, 100F); + this.xrLabel2.SizeF = new System.Drawing.SizeF(449.9999F, 23F); + this.xrLabel2.StylePriority.UseBorders = false; + this.xrLabel2.StylePriority.UseFont = false; + this.xrLabel2.StylePriority.UsePadding = false; + this.xrLabel2.StylePriority.UseTextAlignment = false; + this.xrLabel2.Text = "Gesamt:"; + this.xrLabel2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + // + // lblGesamt + // + this.lblGesamt.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.lblGesamt.LocationFloat = new DevExpress.Utils.PointFloat(450F, 0F); + this.lblGesamt.Name = "lblGesamt"; + this.lblGesamt.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 3, 0, 0, 100F); + this.lblGesamt.SizeF = new System.Drawing.SizeF(100.0002F, 23F); + this.lblGesamt.StylePriority.UseBorders = false; + this.lblGesamt.StylePriority.UseFont = false; + this.lblGesamt.StylePriority.UsePadding = false; + this.lblGesamt.StylePriority.UseTextAlignment = false; + this.lblGesamt.Text = "0,00"; + this.lblGesamt.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + // + // Bargeldkassensaldo + // + this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail, + this.DetailReport, + this.ReportHeader, + this.pageFooterBand1, + this.topMarginBand1, + this.bottomMarginBand1, + this.GroupHeader2, + this.GroupFooter2}); + this.CalculatedFields.AddRange(new DevExpress.XtraReports.UI.CalculatedField[] { + this.fieldStdWoche, + this.fieldHilfebedarf, + this.fieldDirLeiProzent, + this.fieldFachkraftProzent}); + this.DataSource = this.bindingSource1; + this.DisplayName = "Bargeldkassensaldo"; + this.Margins = new System.Drawing.Printing.Margins(100, 100, 100, 50); + this.PageHeight = 1169; + this.PageWidth = 827; + this.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.A4; + this.StyleSheet.AddRange(new DevExpress.XtraReports.UI.XRControlStyle[] { + this.Title, + this.FieldCaption, + this.PageInfo, + this.DataField}); + this.Version = "13.2"; + ((System.ComponentModel.ISupportInitialize)(this.xrTable5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); + + } + + #endregion + + private DevExpress.XtraReports.UI.DetailBand Detail; + private System.Windows.Forms.BindingSource bindingSource1; + private DevExpress.XtraReports.UI.DetailBand Detail1; + private DevExpress.XtraReports.UI.DetailReportBand DetailReport; + private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader; + private DevExpress.XtraReports.UI.PageFooterBand pageFooterBand1; + private DevExpress.XtraReports.UI.XRPageInfo xrPageInfo2; + private DevExpress.XtraReports.UI.XRPageInfo xrPageInfo1; + private DevExpress.XtraReports.UI.XRControlStyle Title; + private DevExpress.XtraReports.UI.XRControlStyle FieldCaption; + private DevExpress.XtraReports.UI.XRControlStyle PageInfo; + private DevExpress.XtraReports.UI.XRControlStyle DataField; + private DevExpress.XtraReports.UI.CalculatedField fieldFLS; + private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1; + private DevExpress.XtraReports.UI.BottomMarginBand bottomMarginBand1; + private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter1; + private DevExpress.XtraReports.UI.XRLabel xrLabel13; + private DevExpress.XtraReports.UI.XRTable xrTable3; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow3; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell3; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell8; + private DevExpress.XtraReports.UI.XRTable xrTable5; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow5; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell21; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell22; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell24; + private DevExpress.XtraReports.UI.CalculatedField fieldStdWoche; + private DevExpress.XtraReports.UI.CalculatedField fieldHilfebedarf; + private DevExpress.XtraReports.UI.CalculatedField fieldDirLeiProzent; + private DevExpress.XtraReports.UI.CalculatedField fieldFachkraftProzent; + private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader2; + private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter2; + private DevExpress.XtraReports.UI.XRLabel lblGesamt; + private DevExpress.XtraReports.UI.XRLabel xrLabel2; + private DevExpress.XtraReports.UI.XRLabel lblLetzterStand; + } +} diff --git a/ReportImp/LebenshilfeBadKreuznachWohnstaette/Kassenbestand.resx b/ReportImp/LebenshilfeBadKreuznachWohnstaette/Kassenbestand.resx new file mode 100644 index 000000000..d25f3eba2 --- /dev/null +++ b/ReportImp/LebenshilfeBadKreuznachWohnstaette/Kassenbestand.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/ReportImp/LebenshilfeBadKreuznachWohnstaette/LebenshilfeBadKreuznachWohnstaette.csproj b/ReportImp/LebenshilfeBadKreuznachWohnstaette/LebenshilfeBadKreuznachWohnstaette.csproj index ff28b5d30..eb4b355b0 100644 --- a/ReportImp/LebenshilfeBadKreuznachWohnstaette/LebenshilfeBadKreuznachWohnstaette.csproj +++ b/ReportImp/LebenshilfeBadKreuznachWohnstaette/LebenshilfeBadKreuznachWohnstaette.csproj @@ -61,6 +61,12 @@ AdditionalServiceBookingReport.cs + + Component + + + Kassenbestand.cs + Component @@ -97,6 +103,9 @@ AdditionalServiceBookingReport.cs + + Kassenbestand.cs + NotizenReport.cs Designer