LebenshilfeBadKreuznachWohnstaette/Kassenbestand - mit Query

This commit is contained in:
2025-07-04 12:52:55 +02:00
parent cec2701328
commit 69a5a57e76
6 changed files with 809 additions and 38 deletions

View File

@@ -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

View File

@@ -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
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,22 +467,6 @@ 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;
// }
}
}

View File

@@ -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<QueryRO>
{
public Kassenbestand()
{
InitializeComponent();
}
public void SetReportDataSource(QueryRO pRO)
{
DateTime abfrageMonat = new DateTime(DateTime.Now.Year, 1, 1);
DateTime letztesDatum = DateTime.MinValue;
Dictionary<long, Kasse> oid2Kasse = new Dictionary<long, Kasse>();
List<Kasse> kassen = new List<Kasse>();
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<BargeldtransaktionDC>();
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<BargeldtransaktionDC> Transaktionen { get; set; }
}
}
}

View File

@@ -0,0 +1,485 @@
using BeWo.Report.ReportObjects;
namespace LebenshilfeBadKreuznachWohnstaette
{
partial class Kassenbestand
{
/// <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);
}
#region Designer generated code
/// <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();
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;
}
}

View File

@@ -0,0 +1,123 @@
<?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>
<metadata name="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View File

@@ -61,6 +61,12 @@
<Compile Include="AdditionalServiceBookingReport.Designer.cs">
<DependentUpon>AdditionalServiceBookingReport.cs</DependentUpon>
</Compile>
<Compile Include="Kassenbestand.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Kassenbestand.designer.cs">
<DependentUpon>Kassenbestand.cs</DependentUpon>
</Compile>
<Compile Include="NotizenReport.cs">
<SubType>Component</SubType>
</Compile>
@@ -97,6 +103,9 @@
<EmbeddedResource Include="AdditionalServiceBookingReport.resx">
<DependentUpon>AdditionalServiceBookingReport.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Kassenbestand.resx">
<DependentUpon>Kassenbestand.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="NotizenReport.resx">
<DependentUpon>NotizenReport.cs</DependentUpon>
<SubType>Designer</SubType>