From d598853f3c2c5b4767adebc53565c36a1e404a28 Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Mon, 11 Sep 2023 15:27:50 +0200 Subject: [PATCH 1/5] MH: KCM FK --- .../KcmGmbH/Invoicing/SettlementInvoiceCreation.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ReportImp/KcmGmbH/Invoicing/SettlementInvoiceCreation.cs b/ReportImp/KcmGmbH/Invoicing/SettlementInvoiceCreation.cs index a54fec726..631ec96c8 100644 --- a/ReportImp/KcmGmbH/Invoicing/SettlementInvoiceCreation.cs +++ b/ReportImp/KcmGmbH/Invoicing/SettlementInvoiceCreation.cs @@ -47,7 +47,18 @@ namespace KcmGmbH.Invoicing var factorInSpanList = relDC.CostBearer.CostRatePeriods.GetSpans(CostRatePeriodType.RateFactor, start, end).ToList(); if (factorInSpanList.Count > 1) return false; - return true; + + foreach (var sr in GetBillableServiceRecords(c2s)) + { + if (IsServiceRecordBillable(sr) && sr.DurationMinutes > 0) + { + if (sr.ServiceDescription.Name.ToLower().Contains("fehlkontakt") || (sr.ServiceDescription.ProzentAbrechnung.HasValue && sr.ServiceDescription.ProzentAbrechnung.Value < 100)) + { + return false; + } + } + } + return true; } public override bool IsServiceRecordBillable(ServiceRecord iRecord) From 362c28abeb23d7d5be2be6bd52d3e4a891391b21 Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Tue, 12 Sep 2023 09:23:20 +0200 Subject: [PATCH 2/5] MH: Mobile 2. Taetigkeitsnachweis--Version --- ReportImp/MobileEV/CustomReportCreator.cs | 341 +++---- ReportImp/MobileEV/MobileEV.csproj | 10 + .../MobileEV/Taetigkeitsnachweis.Designer.cs | 4 +- .../TaetigkeitsnachweisAbSept2023.Designer.cs | 901 ++++++++++++++++++ .../MobileEV/TaetigkeitsnachweisAbSept2023.cs | 83 ++ .../TaetigkeitsnachweisAbSept2023.resx | 123 +++ 6 files changed, 1291 insertions(+), 171 deletions(-) create mode 100644 ReportImp/MobileEV/TaetigkeitsnachweisAbSept2023.Designer.cs create mode 100644 ReportImp/MobileEV/TaetigkeitsnachweisAbSept2023.cs create mode 100644 ReportImp/MobileEV/TaetigkeitsnachweisAbSept2023.resx diff --git a/ReportImp/MobileEV/CustomReportCreator.cs b/ReportImp/MobileEV/CustomReportCreator.cs index 44356d4fb..62e0454e1 100644 --- a/ReportImp/MobileEV/CustomReportCreator.cs +++ b/ReportImp/MobileEV/CustomReportCreator.cs @@ -1,174 +1,177 @@ -using BeWo.Data.Access; -using BeWo.Data.Entities; -using BeWo.Report; -using BeWo.Report.ReportObjects; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Report; +using BeWo.Report.ReportObjects; using BeWo.Service.DCEntityMapper; using BS.Shared.DataContracts; -using DevExpress.XtraReports.UI; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace MobileEV -{ - public class CustomReportCreator : DefaultReportCreator +using DevExpress.XtraReports.UI; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace MobileEV +{ + public class CustomReportCreator : DefaultReportCreator { - public override XtraReport CreateSettlementReport(string dcId, long? invoiceBaseOid) - { - long result; - Settlement2DC lSettlementDC; - string cbName; - if (invoiceBaseOid.HasValue && invoiceBaseOid.Value > 0) - { - long invoiceOid = invoiceBaseOid.Value; - var ib = DAOFactory.GenericDAO.LoadByID(invoiceOid); - cbName = ib.CostBearer2SupportConcept.CostBearer.Organisation.Name; - } - else - { - Int64.TryParse(dcId, out result); - lSettlementDC = MapperFactory.SettlementDC_SettlementInvoice.MapToNewDC(DAOFactory.GenericDAO.LoadByID(result)); - cbName = lSettlementDC.RecipientOrganisation; + public override XtraReport CreateSettlementReport(string dcId, long? invoiceBaseOid) + { + long result; + Settlement2DC lSettlementDC; + string cbName; + if (invoiceBaseOid.HasValue && invoiceBaseOid.Value > 0) + { + long invoiceOid = invoiceBaseOid.Value; + var ib = DAOFactory.GenericDAO.LoadByID(invoiceOid); + cbName = ib.CostBearer2SupportConcept.CostBearer.Organisation.Name; + } + else + { + Int64.TryParse(dcId, out result); + lSettlementDC = MapperFactory.SettlementDC_SettlementInvoice.MapToNewDC(DAOFactory.GenericDAO.LoadByID(result)); + cbName = lSettlementDC.RecipientOrganisation; } - if (cbName.Contains("Landschaftsverband Westfalen-Lippe") || cbName == "LWL") - return base.CreateSettlementReport(dcId, invoiceBaseOid, true); - - return base.CreateSettlementReport(dcId, invoiceBaseOid, false); - } - - - public override XtraReport CreateServiceOverviewAllCustomersReport(int month, int year, long orgaOid, long empOid, long? serviceCategoryOid, int startDay, int endDay) - { - List lROs = ServicesOverviewRO.Create(month, year, orgaOid, empOid, startDay, endDay); - - if (lROs.Count > 0) - { - var rootReport = CreateServicesOverviewReportForRo(lROs[0], serviceCategoryOid); - if (!lROs[0].Costbearer.Contains("Stadt Dortmund")) - rootReport.CreateDocument(); - - for (int i = 1; i < lROs.Count; i++) - { - var lNext = CreateServicesOverviewReportForRo(lROs[i], serviceCategoryOid); - if (!lROs[i].Costbearer.Contains("Stadt Dortmund")) - lNext.CreateDocument(); - rootReport.Pages.AddRange(lNext.Pages); - } - - return rootReport; - } - return new XtraReport(); - } - - public override XtraReport CreateServiceOverviewSingleCustomerReport(long customerOid, int month, int year, long orgaOid, long empOid, long? serviceCategoryOid, int startDay, int endDay) - { - var ro = ServicesOverviewRO.Create(customerOid, month, year, false, orgaOid, empOid, startDay, endDay, serviceCategoryOid); - return CreateServicesOverviewReportForRo(ro, serviceCategoryOid); - } - public override XtraReport CreateServiceOverviewReportForCustomers(IList customerOids, int month, int year, long? orgaOid, long? empOid, long? serviceCategoryOid, int startDay, int endDay, bool nurFehlende) - { - var roList = new List(); - - foreach (var coid in customerOids) - { - var ro = ServicesOverviewRO.Create(coid, month, year, true, orgaOid ?? 0, empOid ?? 0, startDay, endDay, serviceCategoryOid); - if (ro != null) - { - roList.Add(ro); - } - } - - if (roList.Count > 0) - { - var rootReport = CreateServicesOverviewReportForRo(roList[0], serviceCategoryOid); - if (!roList[0].Costbearer.Contains("Stadt Dortmund")) - rootReport.CreateDocument(); - - for (int i = 1; i < roList.Count; i++) - { - var lNext = CreateServicesOverviewReportForRo(roList[i], serviceCategoryOid); - if (!roList[i].Costbearer.Contains("Stadt Dortmund")) - lNext.CreateDocument(); - rootReport.Pages.AddRange(lNext.Pages); - } - - return rootReport; - } - return new XtraReport(); - - } - - private XtraReport CreateServicesOverviewReportForRo(ServicesOverviewRO ro, long? serviceCategoryOid) - { - //IBeWoReport report = null; - String kt = ""; - if (!String.IsNullOrWhiteSpace(ro.Costbearer)) - kt = ro.Costbearer.Trim(); - - - if (kt == "Stadt Dortmund") - { - XtraReport report = null; - - var leistungsnachweisRO = ServicesOverviewRO.CopyFromRO(ro); - leistungsnachweisRO.Services = ro.Services; - var taetigkeitsnachweisRO = ServicesOverviewRO.CopyFromRO(ro); - taetigkeitsnachweisRO.Services = ro.Services; - - report = AddReportToReport(report, leistungsnachweisRO); - report = AddReportToReport(report, taetigkeitsnachweisRO); - - //report = new Leistungsnachweis(); - //var xReport = report as XtraReport; - - //var taetigkeitsnachweis = new Taetigkeitsnachweis(); - //taetigkeitsnachweis.SetReportDataSource(taetigkeitsnachweisRO); - - //xReport.Pages.AddRange((taetigkeitsnachweis as XtraReport).Pages); - - //xReport.CreateDocument(); - return report; - } - else - { - IBeWoReport report = null; - - if (report == null) - report = new Quittierungsbeleg(); - - report.SetReportDataSource(ro); - - return report as XtraReport; - } - - } - - private XtraReport AddReportToReport(XtraReport report, ServicesOverviewRO ro) where T : XtraReport, IBeWoReport, new() - { - if (ro.Services.Count > 0) - { - if (report == null) - { - report = new T(); - ((T)report).SetReportDataSource(ro); - - } - else - { - if (report.Pages.Count == 0) - report.CreateDocument(); - - XtraReport newReport = new T(); - ((T)newReport).SetReportDataSource(ro); - - newReport.CreateDocument(); - report.Pages.AddRange(newReport.Pages); - } - } - return report; - } - } -} + if (cbName.Contains("Landschaftsverband Westfalen-Lippe") || cbName == "LWL") + return base.CreateSettlementReport(dcId, invoiceBaseOid, true); + + return base.CreateSettlementReport(dcId, invoiceBaseOid, false); + } + + + public override XtraReport CreateServiceOverviewAllCustomersReport(int month, int year, long orgaOid, long empOid, long? serviceCategoryOid, int startDay, int endDay) + { + List lROs = ServicesOverviewRO.Create(month, year, orgaOid, empOid, startDay, endDay); + + if (lROs.Count > 0) + { + var rootReport = CreateServicesOverviewReportForRo(lROs[0], serviceCategoryOid); + if (!lROs[0].Costbearer.Contains("Stadt Dortmund")) + rootReport.CreateDocument(); + + for (int i = 1; i < lROs.Count; i++) + { + var lNext = CreateServicesOverviewReportForRo(lROs[i], serviceCategoryOid); + if (!lROs[i].Costbearer.Contains("Stadt Dortmund")) + lNext.CreateDocument(); + rootReport.Pages.AddRange(lNext.Pages); + } + + return rootReport; + } + return new XtraReport(); + } + + public override XtraReport CreateServiceOverviewSingleCustomerReport(long customerOid, int month, int year, long orgaOid, long empOid, long? serviceCategoryOid, int startDay, int endDay) + { + var ro = ServicesOverviewRO.Create(customerOid, month, year, false, orgaOid, empOid, startDay, endDay, serviceCategoryOid); + return CreateServicesOverviewReportForRo(ro, serviceCategoryOid); + } + public override XtraReport CreateServiceOverviewReportForCustomers(IList customerOids, int month, int year, long? orgaOid, long? empOid, long? serviceCategoryOid, int startDay, int endDay, bool nurFehlende) + { + var roList = new List(); + + foreach (var coid in customerOids) + { + var ro = ServicesOverviewRO.Create(coid, month, year, true, orgaOid ?? 0, empOid ?? 0, startDay, endDay, serviceCategoryOid); + if (ro != null) + { + roList.Add(ro); + } + } + + if (roList.Count > 0) + { + var rootReport = CreateServicesOverviewReportForRo(roList[0], serviceCategoryOid); + if (!roList[0].Costbearer.Contains("Stadt Dortmund")) + rootReport.CreateDocument(); + + for (int i = 1; i < roList.Count; i++) + { + var lNext = CreateServicesOverviewReportForRo(roList[i], serviceCategoryOid); + if (!roList[i].Costbearer.Contains("Stadt Dortmund")) + lNext.CreateDocument(); + rootReport.Pages.AddRange(lNext.Pages); + } + + return rootReport; + } + return new XtraReport(); + + } + + private XtraReport CreateServicesOverviewReportForRo(ServicesOverviewRO ro, long? serviceCategoryOid) + { + //IBeWoReport report = null; + String kt = ""; + if (!String.IsNullOrWhiteSpace(ro.Costbearer)) + kt = ro.Costbearer.Trim(); + + + if (kt == "Stadt Dortmund") + { + XtraReport report = null; + + var leistungsnachweisRO = ServicesOverviewRO.CopyFromRO(ro); + leistungsnachweisRO.Services = ro.Services; + var taetigkeitsnachweisRO = ServicesOverviewRO.CopyFromRO(ro); + taetigkeitsnachweisRO.Services = ro.Services; + + report = AddReportToReport(report, leistungsnachweisRO); + if(ro.StartDate >= new DateTime(2023, 09, 01)) + report = AddReportToReport(report, taetigkeitsnachweisRO); + else + report = AddReportToReport(report, taetigkeitsnachweisRO); + + //report = new Leistungsnachweis(); + //var xReport = report as XtraReport; + + //var taetigkeitsnachweis = new Taetigkeitsnachweis(); + //taetigkeitsnachweis.SetReportDataSource(taetigkeitsnachweisRO); + + //xReport.Pages.AddRange((taetigkeitsnachweis as XtraReport).Pages); + + //xReport.CreateDocument(); + return report; + } + else + { + IBeWoReport report = null; + + if (report == null) + report = new Quittierungsbeleg(); + + report.SetReportDataSource(ro); + + return report as XtraReport; + } + + } + + private XtraReport AddReportToReport(XtraReport report, ServicesOverviewRO ro) where T : XtraReport, IBeWoReport, new() + { + if (ro.Services.Count > 0) + { + if (report == null) + { + report = new T(); + ((T)report).SetReportDataSource(ro); + + } + else + { + if (report.Pages.Count == 0) + report.CreateDocument(); + + XtraReport newReport = new T(); + ((T)newReport).SetReportDataSource(ro); + + newReport.CreateDocument(); + report.Pages.AddRange(newReport.Pages); + } + } + return report; + } + } +} diff --git a/ReportImp/MobileEV/MobileEV.csproj b/ReportImp/MobileEV/MobileEV.csproj index fb51c850d..c6ce67ff7 100644 --- a/ReportImp/MobileEV/MobileEV.csproj +++ b/ReportImp/MobileEV/MobileEV.csproj @@ -64,6 +64,12 @@ Sammelrechnung.cs + + Component + + + TaetigkeitsnachweisAbSept2023.cs + Component @@ -128,6 +134,10 @@ Sammelrechnung.cs + + TaetigkeitsnachweisAbSept2023.cs + Designer + Taetigkeitsnachweis.cs Designer diff --git a/ReportImp/MobileEV/Taetigkeitsnachweis.Designer.cs b/ReportImp/MobileEV/Taetigkeitsnachweis.Designer.cs index e8464e97d..58abef743 100644 --- a/ReportImp/MobileEV/Taetigkeitsnachweis.Designer.cs +++ b/ReportImp/MobileEV/Taetigkeitsnachweis.Designer.cs @@ -246,9 +246,9 @@ namespace MobileEV this.picSignature.Borders = DevExpress.XtraPrinting.BorderSide.None; this.picSignature.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { new DevExpress.XtraReports.UI.XRBinding("Tag", null, "Services.Signature")}); - this.picSignature.LocationFloat = new DevExpress.Utils.PointFloat(37.22203F, 3.178914E-05F); + this.picSignature.LocationFloat = new DevExpress.Utils.PointFloat(6.357829E-05F, 3.178914E-05F); this.picSignature.Name = "picSignature"; - this.picSignature.SizeF = new System.Drawing.SizeF(407.0374F, 36.66667F); + this.picSignature.SizeF = new System.Drawing.SizeF(229F, 36.66667F); this.picSignature.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage; this.picSignature.StylePriority.UseBorders = false; this.picSignature.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.picSignature_BeforePrint); diff --git a/ReportImp/MobileEV/TaetigkeitsnachweisAbSept2023.Designer.cs b/ReportImp/MobileEV/TaetigkeitsnachweisAbSept2023.Designer.cs new file mode 100644 index 000000000..42cc19715 --- /dev/null +++ b/ReportImp/MobileEV/TaetigkeitsnachweisAbSept2023.Designer.cs @@ -0,0 +1,901 @@ +using BeWo.Report.ReportObjects; +namespace MobileEV +{ + partial class TaetigkeitsnachweisAbSept2023 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components; + + /// + /// 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.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand(); + this.Detail1 = new DevExpress.XtraReports.UI.DetailBand(); + this.xrTable2 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow6 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell12 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell13 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell14 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell15 = new DevExpress.XtraReports.UI.XRTableCell(); + this.picSignature = new DevExpress.XtraReports.UI.XRPictureBox(); + this.xrTableCell39 = new DevExpress.XtraReports.UI.XRTableCell(); + this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand(); + this.xrTable1 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow9 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell33 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell32 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell34 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell35 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell36 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell37 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell38 = new DevExpress.XtraReports.UI.XRTableCell(); + this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); + this.formattingRuleStartDate = new DevExpress.XtraReports.UI.FormattingRule(); + this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand(); + this.xrLabel27 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel28 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel26 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel25 = new DevExpress.XtraReports.UI.XRLabel(); + this.formattingRuleServiceDesc = new DevExpress.XtraReports.UI.FormattingRule(); + this.formattingRuleCostBearer = new DevExpress.XtraReports.UI.FormattingRule(); + this.formattingRuleEmployeeName = new DevExpress.XtraReports.UI.FormattingRule(); + this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand(); + this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel20 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel21 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel23 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel22 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel24 = new DevExpress.XtraReports.UI.XRLabel(); + this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand(); + this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); + this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand(); + this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox(); + this.xrTable3 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow10 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell40 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell41 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell42 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell44 = new DevExpress.XtraReports.UI.XRTableCell(); + this.lblUnterschriftKlient = new DevExpress.XtraReports.UI.XRLabel(); + this.fieldKontaktArt = new DevExpress.XtraReports.UI.CalculatedField(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); + // + // Detail + // + this.Detail.Expanded = false; + 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; + // + // DetailReport + // + this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail1, + this.GroupHeader1}); + this.DetailReport.DataMember = "Services"; + this.DetailReport.DataSource = this.bindingSource1; + this.DetailReport.Level = 0; + this.DetailReport.Name = "DetailReport"; + this.DetailReport.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.DetailReport.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // Detail1 + // + this.Detail1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable2}); + this.Detail1.HeightF = 36.66669F; + this.Detail1.Name = "Detail1"; + this.Detail1.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.Detail1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrTable2 + // + this.xrTable2.BorderColor = System.Drawing.Color.Black; + this.xrTable2.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable2.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable2.Name = "xrTable2"; + this.xrTable2.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTable2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow6}); + this.xrTable2.SizeF = new System.Drawing.SizeF(1097.792F, 36.66669F); + this.xrTable2.StylePriority.UseFont = false; + this.xrTable2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrTableRow6 + // + this.xrTableRow6.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell2, + this.xrTableCell10, + this.xrTableCell12, + this.xrTableCell13, + this.xrTableCell14, + this.xrTableCell15, + this.xrTableCell39}); + this.xrTableRow6.Name = "xrTableRow6"; + this.xrTableRow6.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTableRow6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableRow6.Weight = 1D; + // + // xrTableCell2 + // + this.xrTableCell2.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.StartDate", "{0:dd.MM.yy}")}); + this.xrTableCell2.Font = new System.Drawing.Font("Arial", 10F); + this.xrTableCell2.Name = "xrTableCell2"; + this.xrTableCell2.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell2.StylePriority.UseBorders = false; + this.xrTableCell2.StylePriority.UseFont = false; + this.xrTableCell2.StylePriority.UsePadding = false; + this.xrTableCell2.StylePriority.UseTextAlignment = false; + this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell2.Weight = 0.094696981389528381D; + // + // xrTableCell10 + // + this.xrTableCell10.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell10.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.StartDateMinutes", "{0:HH:mm\' Uhr\'}")}); + this.xrTableCell10.Font = new System.Drawing.Font("Arial", 10F); + this.xrTableCell10.Multiline = true; + this.xrTableCell10.Name = "xrTableCell10"; + this.xrTableCell10.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell10.StylePriority.UseBorders = false; + this.xrTableCell10.StylePriority.UseFont = false; + this.xrTableCell10.StylePriority.UsePadding = false; + this.xrTableCell10.StylePriority.UseTextAlignment = false; + this.xrTableCell10.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell10.Weight = 0.10404207673618091D; + // + // xrTableCell12 + // + this.xrTableCell12.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Right | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell12.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.EndDateMinutes", "{0:HH:mm\' Uhr\'}")}); + this.xrTableCell12.Font = new System.Drawing.Font("Arial", 10F); + this.xrTableCell12.Multiline = true; + this.xrTableCell12.Name = "xrTableCell12"; + this.xrTableCell12.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell12.StylePriority.UseBorders = false; + this.xrTableCell12.StylePriority.UseFont = false; + this.xrTableCell12.StylePriority.UsePadding = false; + this.xrTableCell12.StylePriority.UseTextAlignment = false; + this.xrTableCell12.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell12.Weight = 0.10404207673618091D; + // + // xrTableCell13 + // + this.xrTableCell13.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Right | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell13.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.Minutes", "{0:0.00}")}); + this.xrTableCell13.Font = new System.Drawing.Font("Arial", 10F); + this.xrTableCell13.Name = "xrTableCell13"; + this.xrTableCell13.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + 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.MiddleLeft; + this.xrTableCell13.Weight = 0.10404207673618091D; + // + // xrTableCell14 + // + this.xrTableCell14.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Right | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell14.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.ServiceDescription")}); + this.xrTableCell14.Font = new System.Drawing.Font("Arial", 10F); + this.xrTableCell14.Name = "xrTableCell14"; + this.xrTableCell14.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell14.StylePriority.UseBorders = false; + this.xrTableCell14.StylePriority.UseFont = false; + this.xrTableCell14.StylePriority.UsePadding = false; + this.xrTableCell14.StylePriority.UseTextAlignment = false; + this.xrTableCell14.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell14.Weight = 0.21099152472336874D; + // + // xrTableCell15 + // + this.xrTableCell15.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Right | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell15.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.picSignature}); + this.xrTableCell15.Font = new System.Drawing.Font("Arial", 10F); + this.xrTableCell15.Name = "xrTableCell15"; + this.xrTableCell15.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell15.StylePriority.UseBorders = false; + this.xrTableCell15.StylePriority.UseFont = false; + this.xrTableCell15.StylePriority.UsePadding = false; + this.xrTableCell15.StylePriority.UseTextAlignment = false; + this.xrTableCell15.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell15.Weight = 0.2382376505443205D; + // + // picSignature + // + this.picSignature.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.picSignature.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Tag", null, "Services.Signature")}); + this.picSignature.LocationFloat = new DevExpress.Utils.PointFloat(37.22203F, 3.178914E-05F); + this.picSignature.Name = "picSignature"; + this.picSignature.SizeF = new System.Drawing.SizeF(407.0374F, 36.66667F); + this.picSignature.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage; + this.picSignature.StylePriority.UseBorders = false; + this.picSignature.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.picSignature_BeforePrint); + // + // xrTableCell39 + // + this.xrTableCell39.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Right | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell39.Font = new System.Drawing.Font("Arial", 10F); + this.xrTableCell39.Name = "xrTableCell39"; + this.xrTableCell39.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell39.StylePriority.UseBorders = false; + this.xrTableCell39.StylePriority.UseFont = false; + this.xrTableCell39.StylePriority.UsePadding = false; + this.xrTableCell39.StylePriority.UseTextAlignment = false; + this.xrTableCell39.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell39.Weight = 0.2382376505443205D; + // + // GroupHeader1 + // + this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable1}); + this.GroupHeader1.HeightF = 36.66669F; + this.GroupHeader1.Name = "GroupHeader1"; + this.GroupHeader1.RepeatEveryPage = true; + // + // xrTable1 + // + this.xrTable1.BorderColor = System.Drawing.Color.Black; + this.xrTable1.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable1.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable1.Name = "xrTable1"; + this.xrTable1.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTable1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow9}); + this.xrTable1.SizeF = new System.Drawing.SizeF(1097.792F, 36.66669F); + this.xrTable1.StylePriority.UseFont = false; + this.xrTable1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrTableRow9 + // + this.xrTableRow9.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell33, + this.xrTableCell32, + this.xrTableCell34, + this.xrTableCell35, + this.xrTableCell36, + this.xrTableCell37, + this.xrTableCell38}); + this.xrTableRow9.Name = "xrTableRow9"; + this.xrTableRow9.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTableRow9.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableRow9.Weight = 1D; + // + // xrTableCell33 + // + this.xrTableCell33.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell33.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrTableCell33.Name = "xrTableCell33"; + this.xrTableCell33.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell33.StylePriority.UseBorders = false; + this.xrTableCell33.StylePriority.UseFont = false; + this.xrTableCell33.StylePriority.UsePadding = false; + this.xrTableCell33.StylePriority.UseTextAlignment = false; + this.xrTableCell33.Text = "Datum"; + this.xrTableCell33.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableCell33.Weight = 0.094696981389528381D; + // + // xrTableCell32 + // + this.xrTableCell32.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell32.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrTableCell32.Multiline = true; + this.xrTableCell32.Name = "xrTableCell32"; + this.xrTableCell32.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell32.StylePriority.UseBorders = false; + this.xrTableCell32.StylePriority.UseFont = false; + this.xrTableCell32.StylePriority.UsePadding = false; + this.xrTableCell32.StylePriority.UseTextAlignment = false; + this.xrTableCell32.Text = "Uhrzeit\r\nvon"; + this.xrTableCell32.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableCell32.Weight = 0.10404207673618091D; + // + // xrTableCell34 + // + this.xrTableCell34.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell34.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrTableCell34.Multiline = true; + this.xrTableCell34.Name = "xrTableCell34"; + this.xrTableCell34.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell34.StylePriority.UseBorders = false; + this.xrTableCell34.StylePriority.UseFont = false; + this.xrTableCell34.StylePriority.UsePadding = false; + this.xrTableCell34.StylePriority.UseTextAlignment = false; + this.xrTableCell34.Text = "\r\nbis"; + this.xrTableCell34.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableCell34.Weight = 0.10404207673618091D; + // + // xrTableCell35 + // + this.xrTableCell35.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell35.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrTableCell35.Name = "xrTableCell35"; + this.xrTableCell35.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell35.StylePriority.UseBorders = false; + this.xrTableCell35.StylePriority.UseFont = false; + this.xrTableCell35.StylePriority.UsePadding = false; + this.xrTableCell35.StylePriority.UseTextAlignment = false; + this.xrTableCell35.Text = "Geleistete FLS"; + this.xrTableCell35.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableCell35.Weight = 0.10404207673618091D; + // + // xrTableCell36 + // + this.xrTableCell36.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell36.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrTableCell36.Name = "xrTableCell36"; + this.xrTableCell36.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell36.StylePriority.UseBorders = false; + this.xrTableCell36.StylePriority.UseFont = false; + this.xrTableCell36.StylePriority.UsePadding = false; + this.xrTableCell36.StylePriority.UseTextAlignment = false; + this.xrTableCell36.Text = "Tätigkeit *"; + this.xrTableCell36.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableCell36.Weight = 0.21099152472336874D; + // + // xrTableCell37 + // + this.xrTableCell37.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell37.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrTableCell37.Name = "xrTableCell37"; + this.xrTableCell37.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell37.StylePriority.UseBorders = false; + this.xrTableCell37.StylePriority.UseFont = false; + this.xrTableCell37.StylePriority.UsePadding = false; + this.xrTableCell37.Text = "Unterschrift Personen-sorgeberechtigte/r **"; + this.xrTableCell37.Weight = 0.2382376505443205D; + // + // xrTableCell38 + // + this.xrTableCell38.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell38.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrTableCell38.Name = "xrTableCell38"; + this.xrTableCell38.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell38.StylePriority.UseBorders = false; + this.xrTableCell38.StylePriority.UseFont = false; + this.xrTableCell38.StylePriority.UsePadding = false; + this.xrTableCell38.Text = "Name und Unterschrift der Fachkraft"; + this.xrTableCell38.Weight = 0.2382376505443205D; + // + // bindingSource1 + // + this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO); + // + // formattingRuleStartDate + // + this.formattingRuleStartDate.Condition = "[StartDate2] < [StartDate]"; + this.formattingRuleStartDate.DataMember = "ServicesDouble"; + this.formattingRuleStartDate.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.formattingRuleStartDate.Name = "formattingRuleStartDate"; + // + // ReportHeader + // + this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel27, + this.xrLabel28, + this.xrLabel26, + this.xrLabel25}); + this.ReportHeader.HeightF = 31.45835F; + this.ReportHeader.Name = "ReportHeader"; + // + // xrLabel27 + // + this.xrLabel27.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrLabel27.ForeColor = System.Drawing.Color.Black; + this.xrLabel27.LocationFloat = new DevExpress.Utils.PointFloat(533.889F, 0F); + this.xrLabel27.Multiline = true; + this.xrLabel27.Name = "xrLabel27"; + this.xrLabel27.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel27.SizeF = new System.Drawing.SizeF(169.9999F, 20F); + this.xrLabel27.StylePriority.UseFont = false; + this.xrLabel27.StylePriority.UseForeColor = false; + this.xrLabel27.StylePriority.UseTextAlignment = false; + this.xrLabel27.Text = "Aktenzeichen JHD"; + this.xrLabel27.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel28 + // + this.xrLabel28.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; + this.xrLabel28.BorderWidth = 2F; + this.xrLabel28.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrLabel28.ForeColor = System.Drawing.Color.Black; + this.xrLabel28.LocationFloat = new DevExpress.Utils.PointFloat(703.889F, 0F); + this.xrLabel28.Multiline = true; + this.xrLabel28.Name = "xrLabel28"; + this.xrLabel28.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel28.SizeF = new System.Drawing.SizeF(265.1387F, 20F); + this.xrLabel28.StylePriority.UseBorders = false; + this.xrLabel28.StylePriority.UseBorderWidth = false; + this.xrLabel28.StylePriority.UseFont = false; + this.xrLabel28.StylePriority.UseForeColor = false; + this.xrLabel28.StylePriority.UseTextAlignment = false; + this.xrLabel28.Text = "[ReferenceNumber]"; + this.xrLabel28.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel26 + // + this.xrLabel26.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; + this.xrLabel26.BorderWidth = 2F; + this.xrLabel26.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrLabel26.ForeColor = System.Drawing.Color.Black; + this.xrLabel26.LocationFloat = new DevExpress.Utils.PointFloat(170.0001F, 0F); + this.xrLabel26.Multiline = true; + this.xrLabel26.Name = "xrLabel26"; + this.xrLabel26.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel26.SizeF = new System.Drawing.SizeF(265.1387F, 20F); + this.xrLabel26.StylePriority.UseBorders = false; + this.xrLabel26.StylePriority.UseBorderWidth = false; + this.xrLabel26.StylePriority.UseFont = false; + this.xrLabel26.StylePriority.UseForeColor = false; + this.xrLabel26.StylePriority.UseTextAlignment = false; + this.xrLabel26.Text = "[CustomerLastName], [CustomerFirstName]"; + this.xrLabel26.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel25 + // + this.xrLabel25.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrLabel25.ForeColor = System.Drawing.Color.Black; + this.xrLabel25.LocationFloat = new DevExpress.Utils.PointFloat(9.536743E-05F, 0F); + this.xrLabel25.Multiline = true; + this.xrLabel25.Name = "xrLabel25"; + this.xrLabel25.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel25.SizeF = new System.Drawing.SizeF(169.9999F, 20F); + this.xrLabel25.StylePriority.UseFont = false; + this.xrLabel25.StylePriority.UseForeColor = false; + this.xrLabel25.StylePriority.UseTextAlignment = false; + this.xrLabel25.Text = "Klient: Name, Vorname"; + this.xrLabel25.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // formattingRuleServiceDesc + // + this.formattingRuleServiceDesc.Condition = "[StartDate2] < [StartDate]"; + this.formattingRuleServiceDesc.DataMember = "ServicesDouble"; + this.formattingRuleServiceDesc.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.formattingRuleServiceDesc.Name = "formattingRuleServiceDesc"; + // + // formattingRuleCostBearer + // + this.formattingRuleCostBearer.Condition = "[StartDate2] < [StartDate]"; + this.formattingRuleCostBearer.DataMember = "ServicesDouble"; + this.formattingRuleCostBearer.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.formattingRuleCostBearer.Name = "formattingRuleCostBearer"; + // + // formattingRuleEmployeeName + // + this.formattingRuleEmployeeName.Condition = "[StartDate2] < [StartDate]"; + this.formattingRuleEmployeeName.DataMember = "ServicesDouble"; + this.formattingRuleEmployeeName.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.formattingRuleEmployeeName.Name = "formattingRuleEmployeeName"; + // + // topMarginBand1 + // + this.topMarginBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel2, + this.xrLabel20, + this.xrLabel21, + this.xrLabel23, + this.xrLabel22, + this.xrLabel24}); + this.topMarginBand1.HeightF = 100F; + this.topMarginBand1.Name = "topMarginBand1"; + // + // xrLabel2 + // + this.xrLabel2.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel2.ForeColor = System.Drawing.Color.Black; + this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(6.357829E-05F, 29.99999F); + this.xrLabel2.Multiline = true; + this.xrLabel2.Name = "xrLabel2"; + this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel2.SizeF = new System.Drawing.SizeF(435.1387F, 20F); + this.xrLabel2.StylePriority.UseFont = false; + this.xrLabel2.StylePriority.UseForeColor = false; + this.xrLabel2.StylePriority.UseTextAlignment = false; + this.xrLabel2.Text = "Tätigkeitsnachweis Ambulante Hilfen"; + this.xrLabel2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel20 + // + this.xrLabel20.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel20.ForeColor = System.Drawing.Color.Black; + this.xrLabel20.LocationFloat = new DevExpress.Utils.PointFloat(435.1388F, 29.99997F); + this.xrLabel20.Multiline = true; + this.xrLabel20.Name = "xrLabel20"; + this.xrLabel20.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel20.SizeF = new System.Drawing.SizeF(46.87515F, 20.00001F); + this.xrLabel20.StylePriority.UseFont = false; + this.xrLabel20.StylePriority.UseForeColor = false; + this.xrLabel20.StylePriority.UseTextAlignment = false; + this.xrLabel20.Text = "Monat:"; + this.xrLabel20.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel21 + // + this.xrLabel21.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; + this.xrLabel21.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Month")}); + this.xrLabel21.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel21.ForeColor = System.Drawing.Color.Black; + this.xrLabel21.LocationFloat = new DevExpress.Utils.PointFloat(482.0139F, 29.99997F); + this.xrLabel21.Multiline = true; + this.xrLabel21.Name = "xrLabel21"; + this.xrLabel21.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel21.SizeF = new System.Drawing.SizeF(159.3751F, 20.00001F); + this.xrLabel21.StylePriority.UseBorders = false; + this.xrLabel21.StylePriority.UseFont = false; + this.xrLabel21.StylePriority.UseForeColor = false; + this.xrLabel21.StylePriority.UseTextAlignment = false; + this.xrLabel21.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel23 + // + this.xrLabel23.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; + this.xrLabel23.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Year")}); + this.xrLabel23.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel23.ForeColor = System.Drawing.Color.Black; + this.xrLabel23.LocationFloat = new DevExpress.Utils.PointFloat(703.889F, 29.99997F); + this.xrLabel23.Multiline = true; + this.xrLabel23.Name = "xrLabel23"; + this.xrLabel23.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel23.SizeF = new System.Drawing.SizeF(159.3751F, 20.00001F); + this.xrLabel23.StylePriority.UseBorders = false; + this.xrLabel23.StylePriority.UseFont = false; + this.xrLabel23.StylePriority.UseForeColor = false; + this.xrLabel23.StylePriority.UseTextAlignment = false; + this.xrLabel23.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel22 + // + this.xrLabel22.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel22.ForeColor = System.Drawing.Color.Black; + this.xrLabel22.LocationFloat = new DevExpress.Utils.PointFloat(657.0139F, 29.99997F); + this.xrLabel22.Multiline = true; + this.xrLabel22.Name = "xrLabel22"; + this.xrLabel22.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel22.SizeF = new System.Drawing.SizeF(46.87515F, 20.00001F); + this.xrLabel22.StylePriority.UseFont = false; + this.xrLabel22.StylePriority.UseForeColor = false; + this.xrLabel22.StylePriority.UseTextAlignment = false; + this.xrLabel22.Text = "Jahr:"; + this.xrLabel22.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel24 + // + this.xrLabel24.Font = new System.Drawing.Font("Arial", 9F); + this.xrLabel24.ForeColor = System.Drawing.Color.Black; + this.xrLabel24.LocationFloat = new DevExpress.Utils.PointFloat(9.28243E-05F, 50F); + this.xrLabel24.Multiline = true; + this.xrLabel24.Name = "xrLabel24"; + this.xrLabel24.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel24.SizeF = new System.Drawing.SizeF(1099F, 20.00001F); + this.xrLabel24.StylePriority.UseFont = false; + this.xrLabel24.StylePriority.UseForeColor = false; + this.xrLabel24.StylePriority.UseTextAlignment = false; + this.xrLabel24.Text = "MOBILE – Selbstbestimmtes Leben Behinderter e. V., Märkische Str. 239 a, 44141 Do" + + "rtmund"; + this.xrLabel24.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomCenter; + // + // bottomMarginBand1 + // + this.bottomMarginBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel4, + this.xrLabel3, + this.xrLabel1}); + this.bottomMarginBand1.HeightF = 80.90678F; + this.bottomMarginBand1.Name = "bottomMarginBand1"; + // + // xrLabel4 + // + this.xrLabel4.Font = new System.Drawing.Font("Arial", 9F); + this.xrLabel4.ForeColor = System.Drawing.Color.Black; + this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(9.202121E-05F, 43.42103F); + this.xrLabel4.Multiline = true; + this.xrLabel4.Name = "xrLabel4"; + this.xrLabel4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel4.SizeF = new System.Drawing.SizeF(1089F, 16.71051F); + this.xrLabel4.StylePriority.UseFont = false; + this.xrLabel4.StylePriority.UseForeColor = false; + this.xrLabel4.StylePriority.UseTextAlignment = false; + this.xrLabel4.Text = " ** Sollte der/die Personensorgeberechtigte den Termin nicht gegenzeichnen, sollt" + + "e dies mit der angegebenen Begründung der Eltern separat dokumentiert werden. \r\n" + + " \r\n"; + this.xrLabel4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel3 + // + this.xrLabel3.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel3.ForeColor = System.Drawing.Color.Black; + this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 26.71051F); + this.xrLabel3.Multiline = true; + this.xrLabel3.Name = "xrLabel3"; + this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel3.SizeF = new System.Drawing.SizeF(1089F, 16.71051F); + this.xrLabel3.StylePriority.UseFont = false; + this.xrLabel3.StylePriority.UseForeColor = false; + this.xrLabel3.StylePriority.UseTextAlignment = false; + this.xrLabel3.Text = " Nach vorheriger Vereinbarung: Gruppenangebot, Kontakt Jugendamt, Kontakt Kita" + + "/Schule, Kontakt medizinische/therapeutische Fachkräfte, Kontakt Ämter/Behörden"; + this.xrLabel3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel1 + // + this.xrLabel1.Font = new System.Drawing.Font("Arial", 9F); + this.xrLabel1.ForeColor = System.Drawing.Color.Black; + this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 9.999995F); + this.xrLabel1.Multiline = true; + this.xrLabel1.Name = "xrLabel1"; + this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel1.SizeF = new System.Drawing.SizeF(1089F, 16.71051F); + this.xrLabel1.StylePriority.UseFont = false; + this.xrLabel1.StylePriority.UseForeColor = false; + this.xrLabel1.StylePriority.UseTextAlignment = false; + this.xrLabel1.Text = " * Persönlicher Klientenkontakt, (video)telefonischer Klientenkontakt, Hilfeplan" + + "ung, Fehlkontakt\r\n \r\n"; + this.xrLabel1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // GroupFooter1 + // + this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrPictureBox1, + this.xrTable3, + this.lblUnterschriftKlient}); + this.GroupFooter1.HeightF = 142.2562F; + this.GroupFooter1.KeepTogether = true; + this.GroupFooter1.Name = "GroupFooter1"; + // + // xrPictureBox1 + // + this.xrPictureBox1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Image", null, "EmployeeSignature")}); + this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(9.536743E-05F, 85.00182F); + this.xrPictureBox1.Name = "xrPictureBox1"; + this.xrPictureBox1.SizeF = new System.Drawing.SizeF(271.8471F, 37.25439F); + this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage; + // + // xrTable3 + // + this.xrTable3.BorderColor = System.Drawing.Color.Black; + this.xrTable3.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable3.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTable3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable3.Name = "xrTable3"; + this.xrTable3.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTable3.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow10}); + this.xrTable3.SizeF = new System.Drawing.SizeF(408.1251F, 36.66669F); + this.xrTable3.StylePriority.UseFont = false; + this.xrTable3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrTableRow10 + // + this.xrTableRow10.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell40, + this.xrTableCell41, + this.xrTableCell42, + this.xrTableCell44}); + this.xrTableRow10.Name = "xrTableRow10"; + this.xrTableRow10.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTableRow10.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableRow10.Weight = 1D; + // + // xrTableCell40 + // + this.xrTableCell40.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell40.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrTableCell40.Name = "xrTableCell40"; + this.xrTableCell40.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 4, 100F); + this.xrTableCell40.StylePriority.UseBorders = false; + this.xrTableCell40.StylePriority.UseFont = false; + this.xrTableCell40.StylePriority.UsePadding = false; + this.xrTableCell40.StylePriority.UseTextAlignment = false; + this.xrTableCell40.Text = "Summe"; + this.xrTableCell40.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft; + this.xrTableCell40.Weight = 0.094696981389528381D; + // + // xrTableCell41 + // + this.xrTableCell41.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; + this.xrTableCell41.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrTableCell41.Multiline = true; + this.xrTableCell41.Name = "xrTableCell41"; + this.xrTableCell41.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell41.StylePriority.UseBorders = false; + this.xrTableCell41.StylePriority.UseFont = false; + this.xrTableCell41.StylePriority.UsePadding = false; + this.xrTableCell41.StylePriority.UseTextAlignment = false; + this.xrTableCell41.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableCell41.Weight = 0.10404207673618091D; + // + // xrTableCell42 + // + this.xrTableCell42.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Right | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell42.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrTableCell42.Multiline = true; + this.xrTableCell42.Name = "xrTableCell42"; + this.xrTableCell42.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 0, 100F); + this.xrTableCell42.StylePriority.UseBorders = false; + this.xrTableCell42.StylePriority.UseFont = false; + this.xrTableCell42.StylePriority.UsePadding = false; + this.xrTableCell42.StylePriority.UseTextAlignment = false; + this.xrTableCell42.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableCell42.Weight = 0.10404207673618091D; + // + // xrTableCell44 + // + this.xrTableCell44.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell44.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "TotalFLMBillable", "{0:0.00}")}); + this.xrTableCell44.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold); + this.xrTableCell44.Name = "xrTableCell44"; + this.xrTableCell44.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 0, 2, 4, 100F); + this.xrTableCell44.StylePriority.UseBorders = false; + this.xrTableCell44.StylePriority.UseFont = false; + this.xrTableCell44.StylePriority.UsePadding = false; + this.xrTableCell44.StylePriority.UseTextAlignment = false; + this.xrTableCell44.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft; + this.xrTableCell44.Weight = 0.10404207673618091D; + // + // lblUnterschriftKlient + // + this.lblUnterschriftKlient.Borders = DevExpress.XtraPrinting.BorderSide.Top; + this.lblUnterschriftKlient.Font = new System.Drawing.Font("Arial", 10F); + this.lblUnterschriftKlient.LocationFloat = new DevExpress.Utils.PointFloat(0F, 122.2562F); + this.lblUnterschriftKlient.Name = "lblUnterschriftKlient"; + this.lblUnterschriftKlient.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.lblUnterschriftKlient.SizeF = new System.Drawing.SizeF(271.8472F, 20F); + this.lblUnterschriftKlient.StylePriority.UseBackColor = false; + this.lblUnterschriftKlient.StylePriority.UseBorders = false; + this.lblUnterschriftKlient.StylePriority.UseFont = false; + this.lblUnterschriftKlient.StylePriority.UsePadding = false; + this.lblUnterschriftKlient.StylePriority.UseTextAlignment = false; + this.lblUnterschriftKlient.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + // + // fieldKontaktArt + // + this.fieldKontaktArt.DataMember = "Services"; + this.fieldKontaktArt.Expression = "Iif([IsGroup], \'GR\', \'E\')"; + this.fieldKontaktArt.FieldType = DevExpress.XtraReports.UI.FieldType.String; + this.fieldKontaktArt.Name = "fieldKontaktArt"; + // + // TaetigkeitsnachweisAbSept2023 + // + this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail, + this.DetailReport, + this.ReportHeader, + this.topMarginBand1, + this.bottomMarginBand1, + this.GroupFooter1}); + this.CalculatedFields.AddRange(new DevExpress.XtraReports.UI.CalculatedField[] { + this.fieldKontaktArt}); + this.DataSource = this.bindingSource1; + this.Font = new System.Drawing.Font("Arial", 10F); + this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] { + this.formattingRuleStartDate, + this.formattingRuleServiceDesc, + this.formattingRuleCostBearer, + this.formattingRuleEmployeeName}); + this.Margins = new System.Drawing.Printing.Margins(36, 34, 100, 81); + this.PageHeight = 827; + this.PageWidth = 1169; + this.PaperKind = System.Drawing.Printing.PaperKind.A4Rotated; + this.Version = "17.1"; + ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).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.DetailReportBand DetailReport; + private DevExpress.XtraReports.UI.DetailBand Detail1; + private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader; + private DevExpress.XtraReports.UI.FormattingRule formattingRuleStartDate; + private DevExpress.XtraReports.UI.FormattingRule formattingRuleServiceDesc; + private DevExpress.XtraReports.UI.FormattingRule formattingRuleCostBearer; + private DevExpress.XtraReports.UI.FormattingRule formattingRuleEmployeeName; + private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1; + private DevExpress.XtraReports.UI.BottomMarginBand bottomMarginBand1; + private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1; + private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter1; + private DevExpress.XtraReports.UI.CalculatedField fieldKontaktArt; + private DevExpress.XtraReports.UI.XRLabel lblUnterschriftKlient; + private DevExpress.XtraReports.UI.XRLabel xrLabel2; + private DevExpress.XtraReports.UI.XRLabel xrLabel20; + private DevExpress.XtraReports.UI.XRLabel xrLabel21; + private DevExpress.XtraReports.UI.XRLabel xrLabel23; + private DevExpress.XtraReports.UI.XRLabel xrLabel22; + private DevExpress.XtraReports.UI.XRLabel xrLabel24; + private DevExpress.XtraReports.UI.XRLabel xrLabel25; + private DevExpress.XtraReports.UI.XRLabel xrLabel26; + private DevExpress.XtraReports.UI.XRLabel xrLabel27; + private DevExpress.XtraReports.UI.XRLabel xrLabel28; + private DevExpress.XtraReports.UI.XRTable xrTable1; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow9; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell33; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell32; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell34; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell35; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell36; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell37; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell38; + private DevExpress.XtraReports.UI.XRTable xrTable2; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow6; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell10; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell12; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell13; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell14; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell15; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell39; + private DevExpress.XtraReports.UI.XRTable xrTable3; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow10; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell40; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell41; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell42; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell44; + private DevExpress.XtraReports.UI.XRLabel xrLabel1; + private DevExpress.XtraReports.UI.XRLabel xrLabel3; + private DevExpress.XtraReports.UI.XRLabel xrLabel4; + private DevExpress.XtraReports.UI.XRPictureBox picSignature; + private DevExpress.XtraReports.UI.XRPictureBox xrPictureBox1; + } +} diff --git a/ReportImp/MobileEV/TaetigkeitsnachweisAbSept2023.cs b/ReportImp/MobileEV/TaetigkeitsnachweisAbSept2023.cs new file mode 100644 index 000000000..34854a38e --- /dev/null +++ b/ReportImp/MobileEV/TaetigkeitsnachweisAbSept2023.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.IO; +using System.Text.RegularExpressions; +using BeWo.Report; +using BeWo.Report.ReportObjects; +using BS.Shared.Core; +using DevExpress.XtraReports.UI; + +namespace MobileEV +{ + public partial class TaetigkeitsnachweisAbSept2023 : XtraReport, IBeWoReport + { + public TaetigkeitsnachweisAbSept2023() + { + InitializeComponent(); + } + + public void SetReportDataSource(ServicesOverviewRO pRO) + { + + // Get calling method name + //StackTrace stackTrace = new StackTrace(); + //Debug.WriteLine(stackTrace.GetFrame(1).GetMethod().Name); + + bool hatGruppen = false; + + //if (pRO == null) + // return; + + if (pRO.Services != null) + { + List servicesBillable = new List(); + pRO.TotalFLMBillable = 0; + foreach (var sd in pRO.Services) + { + if (sd.IsBillable && sd.ServiceCategory == "SPFH 1" || sd.IsBillable && sd.ServiceCategory == "SPFH 2") + { + sd.Minutes /= 60; + pRO.TotalFLMBillable += sd.Minutes; + ServicesOverviewRO.CreateSignatureString(sd); + if (sd.IsGroup) + { + //sd.Notice5 = String.Format("{0} Teilnehmer", sd.CustomerCount); + hatGruppen = true; + } + servicesBillable.Add(sd); + } + } + pRO.Services = servicesBillable; + } + + bindingSource1.DataSource = pRO; + } + + private void picSignature_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) + { + XRPictureBox xrBox = sender as XRPictureBox; + //var test = this.GetCurrent + string base64String = xrBox.Tag as string; + if (!String.IsNullOrWhiteSpace(base64String)) + { + var base64Data = Regex.Match(base64String, @"data:image/(?.+?),(?.+)").Groups["data"].Value; + var binData = Convert.FromBase64String(base64Data); + Image img = ByteArrayToImage(binData); + xrBox.Image = Utils.CropImage(img); + } + else + { + xrBox.Image = null; + } + } + + public Image ByteArrayToImage(byte[] byteArrayIn) + { + using(var memoryStream = new MemoryStream(byteArrayIn)) + { + return Image.FromStream(memoryStream); + } + } + } +} diff --git a/ReportImp/MobileEV/TaetigkeitsnachweisAbSept2023.resx b/ReportImp/MobileEV/TaetigkeitsnachweisAbSept2023.resx new file mode 100644 index 000000000..19e908bd3 --- /dev/null +++ b/ReportImp/MobileEV/TaetigkeitsnachweisAbSept2023.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 + + + 21, 17 + + \ No newline at end of file From f679dc54a4393c904a07df6334807ce19be20d88 Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Tue, 12 Sep 2023 12:56:47 +0200 Subject: [PATCH 3/5] =?UTF-8?q?MH:=20KannAllesWeissAlles=20Adress=C3=BCber?= =?UTF-8?q?pr=C3=BCfung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Reporting/KannAllesWeissAllesRO.cs | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/ReportImp/AWOMuensterlandRecklinghausen/Reporting/KannAllesWeissAllesRO.cs b/ReportImp/AWOMuensterlandRecklinghausen/Reporting/KannAllesWeissAllesRO.cs index a592c6724..7810cd0be 100644 --- a/ReportImp/AWOMuensterlandRecklinghausen/Reporting/KannAllesWeissAllesRO.cs +++ b/ReportImp/AWOMuensterlandRecklinghausen/Reporting/KannAllesWeissAllesRO.cs @@ -583,19 +583,24 @@ namespace AWOMuensterlandRecklinghausen.Reporting fax = kostentraegerKontaktperson.Contacts.FirstOrDefault(c => c.Type == BS.Shared.ContactType.business_Fax); } - cr.KostentraegerAnsprechpartnerKontaktdaten = new KostentraegerAnsprechpartnerKontaktdaten() + //cr.KostentraegerAnsprechpartnerKontaktdaten = new KostentraegerAnsprechpartnerKontaktdaten() + var ktKontakt = new KostentraegerAnsprechpartnerKontaktdaten(); + ktKontakt.Person = kostentraegerKontaktperson; + ktKontakt.LastNameFirstName = kostentraegerKontaktperson.LastName + ", " + kostentraegerKontaktperson.FirstName; + if (kostentraegerKontaktperson.Address != null) { - Person = kostentraegerKontaktperson, - LastNameFirstName = kostentraegerKontaktperson.LastName + ", " + kostentraegerKontaktperson.FirstName, - Strasse = kostentraegerKontaktperson.Address.Street, - Ort = kostentraegerKontaktperson.Address.Town, - Postleitzahl = kostentraegerKontaktperson.Address.PostalCode, - Mailadresse = mail != null && mail.Value != null ? mail.Value : "", - Telefonnummer = telefon != null && telefon.Value != null ? telefon.Value : "", - Handynummer = mobil != null && mobil.Value != null ? mobil.Value : "", - Fax = fax != null && fax.Value != null ? fax.Value : "", - }; - if (kostentraegerKontaktperson.Sex == BS.Shared.Sex.Male) + ktKontakt.Strasse = kostentraegerKontaktperson.Address.Street; + ktKontakt.Ort = kostentraegerKontaktperson.Address.Town; + ktKontakt.Postleitzahl = kostentraegerKontaktperson.Address.PostalCode; + } + ktKontakt.Mailadresse = mail != null && mail.Value != null ? mail.Value : ""; + ktKontakt.Telefonnummer = telefon != null && telefon.Value != null ? telefon.Value : ""; + ktKontakt.Handynummer = mobil != null && mobil.Value != null ? mobil.Value : ""; + ktKontakt.Fax = fax != null && fax.Value != null ? fax.Value : ""; + + cr.KostentraegerAnsprechpartnerKontaktdaten = ktKontakt; + + if(kostentraegerKontaktperson.Sex == BS.Shared.Sex.Male) { cr.KostentraegerAnsprechpartnerKontaktdaten.Gender = "m"; } From 1b4595dbf918db41ba1b2deefd9968b3af6e159a Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 13 Sep 2023 01:39:27 +0200 Subject: [PATCH 4/5] CustomerListReport --- BeWo/ServiceProxy/Generated.cs | 72 ++++ BeWo/View/Controls/DPCtrlDay.cs | 2 +- .../Navigation/CustomerNavigationView.xaml | 1 + .../Navigation/CustomerNavigationView.xaml.cs | 13 + BeWo/View/Navigation/MainNavigationView.xaml | 3 + .../Navigation/MainNavigationView.xaml.cs | 9 + Report/AbstractReportCreator.cs | 4 +- Report/DefaultReportCreator.cs | 9 + .../CustomerListReport.Designer.cs | 335 ++++++++++++++++++ Report/DefaultReports/CustomerListReport.cs | 23 ++ Report/DefaultReports/CustomerListReport.resx | 123 +++++++ .../QueryListReport.Designer.cs | 1 + Report/Report.csproj | 11 + Report/ReportObjects/CustomerListRO.cs | 35 ++ ...CustomMitarbeiterstundenkontoBerechnung.cs | 4 +- .../AkggMid/Mitarbeiterarbeitszeitkonto.cs | 105 ++++-- .../ServiceContracts/IReportService.cs | 33 ++ .../ReportServiceImp.cs | 44 +++ 18 files changed, 804 insertions(+), 23 deletions(-) create mode 100644 Report/DefaultReports/CustomerListReport.Designer.cs create mode 100644 Report/DefaultReports/CustomerListReport.cs create mode 100644 Report/DefaultReports/CustomerListReport.resx create mode 100644 Report/ReportObjects/CustomerListRO.cs diff --git a/BeWo/ServiceProxy/Generated.cs b/BeWo/ServiceProxy/Generated.cs index 10109f040..d3e6b4812 100644 --- a/BeWo/ServiceProxy/Generated.cs +++ b/BeWo/ServiceProxy/Generated.cs @@ -9031,6 +9031,38 @@ namespace BeWo.ServiceProxy [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateInvoiceListReport", ReplyAction="http://tempuri.org/IReportService/CreateInvoiceListReportResponse")] [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateInvoiceListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] System.IO.MemoryStream CreateInvoiceListReport(System.Collections.Generic.List invoiceBaseOids); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateCustomerListReport", ReplyAction="http://tempuri.org/IReportService/CreateCustomerListReportResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateCustomerListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.IO.MemoryStream CreateCustomerListReport(System.Collections.Generic.List oids); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateSupportConceptListReport", ReplyAction="http://tempuri.org/IReportService/CreateSupportConceptListReportResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateSupportConceptListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.IO.MemoryStream CreateSupportConceptListReport(System.Collections.Generic.List oids); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreatePersonListReport", ReplyAction="http://tempuri.org/IReportService/CreatePersonListReportResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreatePersonListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.IO.MemoryStream CreatePersonListReport(System.Collections.Generic.List oids); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateEmployeeListReport", ReplyAction="http://tempuri.org/IReportService/CreateEmployeeListReportResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateEmployeeListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.IO.MemoryStream CreateEmployeeListReport(System.Collections.Generic.List oids); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateOrganisationListReport", ReplyAction="http://tempuri.org/IReportService/CreateOrganisationListReportResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateOrganisationListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.IO.MemoryStream CreateOrganisationListReport(System.Collections.Generic.List oids); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateTeamListReport", ReplyAction="http://tempuri.org/IReportService/CreateTeamListReportResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateTeamListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.IO.MemoryStream CreateTeamListReport(System.Collections.Generic.List oids); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateUserListReport", ReplyAction="http://tempuri.org/IReportService/CreateUserListReportResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateUserListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.IO.MemoryStream CreateUserListReport(System.Collections.Generic.List oids); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateUSerGroupListReport", ReplyAction="http://tempuri.org/IReportService/CreateUSerGroupListReportResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateUSerGroupListReportBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.IO.MemoryStream CreateUSerGroupListReport(System.Collections.Generic.List oids); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] @@ -9151,6 +9183,46 @@ namespace BeWo.ServiceProxy { return base.Channel.CreateInvoiceListReport(invoiceBaseOids); } + + public System.IO.MemoryStream CreateCustomerListReport(System.Collections.Generic.List oids) + { + return base.Channel.CreateCustomerListReport(oids); + } + + public System.IO.MemoryStream CreateSupportConceptListReport(System.Collections.Generic.List oids) + { + return base.Channel.CreateSupportConceptListReport(oids); + } + + public System.IO.MemoryStream CreatePersonListReport(System.Collections.Generic.List oids) + { + return base.Channel.CreatePersonListReport(oids); + } + + public System.IO.MemoryStream CreateEmployeeListReport(System.Collections.Generic.List oids) + { + return base.Channel.CreateEmployeeListReport(oids); + } + + public System.IO.MemoryStream CreateOrganisationListReport(System.Collections.Generic.List oids) + { + return base.Channel.CreateOrganisationListReport(oids); + } + + public System.IO.MemoryStream CreateTeamListReport(System.Collections.Generic.List oids) + { + return base.Channel.CreateTeamListReport(oids); + } + + public System.IO.MemoryStream CreateUserListReport(System.Collections.Generic.List oids) + { + return base.Channel.CreateUserListReport(oids); + } + + public System.IO.MemoryStream CreateUSerGroupListReport(System.Collections.Generic.List oids) + { + return base.Channel.CreateUSerGroupListReport(oids); + } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] diff --git a/BeWo/View/Controls/DPCtrlDay.cs b/BeWo/View/Controls/DPCtrlDay.cs index 97f7e33e2..b99b930f1 100644 --- a/BeWo/View/Controls/DPCtrlDay.cs +++ b/BeWo/View/Controls/DPCtrlDay.cs @@ -84,7 +84,7 @@ namespace BeWo.View.Controls c.Foreground = Brushes.Red; c.Text = "ÜS"; c.ToolTip = (dc == null) ? string.Format("Überstunden:\t{0:0.00}\nAuszahlung:\t{1}\nBemerkung:\t{2}", - info.OverTime.Betrag, info.OverTime.Auszahlungsart.Name, info.OverTime.Notice) : null; + info.OverTime.Betrag, info.OverTime.Auszahlungsart?.Name, info.OverTime.Notice) : null; if (info.DayOfWeek == DayOfWeek.Saturday || info.DayOfWeek == DayOfWeek.Sunday) c.Background = new SolidColorBrush(ColorExtensions.FromHexString("EFEFEF")); diff --git a/BeWo/View/Navigation/CustomerNavigationView.xaml b/BeWo/View/Navigation/CustomerNavigationView.xaml index e147197ec..c35972a2e 100644 --- a/BeWo/View/Navigation/CustomerNavigationView.xaml +++ b/BeWo/View/Navigation/CustomerNavigationView.xaml @@ -168,6 +168,7 @@ DeleteObject="mainNavigationView_DeleteObject" ArchiveObject="mainNavigationView_ArchiveObject" ExcelExport="mainNavigationView_ExcelExport" + Print="mainNavigationView_Print" DeleteDemands="DeleteAll, CustomerView_Delete" CreateDemands="CreateAll, CustomerView_Create" ShowDetailsPanel="True" diff --git a/BeWo/View/Navigation/CustomerNavigationView.xaml.cs b/BeWo/View/Navigation/CustomerNavigationView.xaml.cs index ce5e8d3b1..d9a41ad80 100644 --- a/BeWo/View/Navigation/CustomerNavigationView.xaml.cs +++ b/BeWo/View/Navigation/CustomerNavigationView.xaml.cs @@ -454,5 +454,18 @@ namespace BeWo.View.Navigation }); }); } + + private void mainNavigationView_Print(object sender, EventArgs> e) + { + var oids = e.Data.Cast().Select(c => c.CustomerOid).ToList(); + + ServiceFacade.DoReportServiceAsync(s => s.CreateCustomerListReport(oids), r => + { + this.Dispatch(() => + { + BeWoUtils.ShowReportWindow(r, Translator.Translate("Klienten")); + }); + }); + } } } \ No newline at end of file diff --git a/BeWo/View/Navigation/MainNavigationView.xaml b/BeWo/View/Navigation/MainNavigationView.xaml index 7a125f7b1..3d6524b11 100644 --- a/BeWo/View/Navigation/MainNavigationView.xaml +++ b/BeWo/View/Navigation/MainNavigationView.xaml @@ -105,6 +105,9 @@ Excel Export + + Liste drucken + diff --git a/BeWo/View/Navigation/MainNavigationView.xaml.cs b/BeWo/View/Navigation/MainNavigationView.xaml.cs index d343722c2..94323a6fc 100644 --- a/BeWo/View/Navigation/MainNavigationView.xaml.cs +++ b/BeWo/View/Navigation/MainNavigationView.xaml.cs @@ -108,6 +108,8 @@ namespace BeWo.View.Navigation public event EventHandler>> ExcelExport; + public event EventHandler>> Print; + public event OpenObjectDelegate OpenObject; public event ReloadDataDelegate OnReloadData; @@ -610,6 +612,13 @@ namespace BeWo.View.Navigation ExcelExport(this, new EventArgs>(objectListBox.ItemsSource as IEnumerable)); } + private void linkPrint_RequestNavigate(object sender, RequestNavigateEventArgs e) + { + if (Print != null) + Print(this, new EventArgs>(objectListBox.ItemsSource as IEnumerable)); + e.Handled = true; + } + private void objectHistoryListBox_MouseDoubleClick(object sender, MouseButtonEventArgs e) { OnOpenObject(); diff --git a/Report/AbstractReportCreator.cs b/Report/AbstractReportCreator.cs index e3aa0abf5..f6f50cae5 100644 --- a/Report/AbstractReportCreator.cs +++ b/Report/AbstractReportCreator.cs @@ -104,5 +104,7 @@ namespace BeWo.Report public abstract XtraReport CreateVertretungsPlanungReport(DateTime start, int ansicht); public abstract XtraReport CreateValidationMessageListReport(DateTime startDate, DateTime endDate); - } + + public abstract XtraReport CreateCustomerListReport(List oids); + } } \ No newline at end of file diff --git a/Report/DefaultReportCreator.cs b/Report/DefaultReportCreator.cs index dacf44122..9435453ab 100644 --- a/Report/DefaultReportCreator.cs +++ b/Report/DefaultReportCreator.cs @@ -1193,6 +1193,15 @@ namespace BeWo.Report report.SetReportDataSource(ValidationMessageListRO.Create(startDate, endDate, DAOFactory.SearchDAO.GetValidationMessagesForMonth(startDate, endDate).ToList())); + return report as XtraReport; + } + + public override XtraReport CreateCustomerListReport(List oids) + { + var ro = CustomerListRO.Create(oids); + IBeWoReport report = FindReportImp(); + report.SetReportDataSource(ro); + return report as XtraReport; } } diff --git a/Report/DefaultReports/CustomerListReport.Designer.cs b/Report/DefaultReports/CustomerListReport.Designer.cs new file mode 100644 index 000000000..5e7120e46 --- /dev/null +++ b/Report/DefaultReports/CustomerListReport.Designer.cs @@ -0,0 +1,335 @@ +namespace BeWo.Report.DefaultReports +{ + partial class CustomerListReport + { + /// + /// 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.xrTable1 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell9 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell7 = new DevExpress.XtraReports.UI.XRTableCell(); + this.TopMargin = new DevExpress.XtraReports.UI.TopMarginBand(); + this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); + this.BottomMargin = new DevExpress.XtraReports.UI.BottomMarginBand(); + this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand(); + this.Detail1 = new DevExpress.XtraReports.UI.DetailBand(); + this.xrTable2 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell(); + this.Einzahlungstextsichtbarkeitsformatierungsregel = new DevExpress.XtraReports.UI.FormattingRule(); + this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell(); + this.Auszahlungstextsichtbarkeitsformatierungsregel = new DevExpress.XtraReports.UI.FormattingRule(); + this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell(); + this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); + this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); + this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); + // + // Detail + // + this.Detail.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable1}); + this.Detail.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Detail.HeightF = 25F; + this.Detail.Name = "Detail"; + this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.Detail.StylePriority.UseFont = false; + this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrTable1 + // + this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable1.Name = "xrTable1"; + this.xrTable1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow1}); + this.xrTable1.SizeF = new System.Drawing.SizeF(700F, 25F); + this.xrTable1.StylePriority.UseFont = false; + // + // xrTableRow1 + // + this.xrTableRow1.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top))); + this.xrTableRow1.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell9, + this.xrTableCell1, + this.xrTableCell2, + this.xrTableCell7}); + this.xrTableRow1.Name = "xrTableRow1"; + this.xrTableRow1.StylePriority.UseBorders = false; + this.xrTableRow1.Weight = 0.59999992675782143D; + // + // xrTableCell9 + // + this.xrTableCell9.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell9.Name = "xrTableCell9"; + this.xrTableCell9.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F); + this.xrTableCell9.StylePriority.UseBorders = false; + this.xrTableCell9.StylePriority.UsePadding = false; + this.xrTableCell9.StylePriority.UseTextAlignment = false; + this.xrTableCell9.Text = "Nachname"; + this.xrTableCell9.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell9.Weight = 0.69230768057016234D; + // + // xrTableCell1 + // + this.xrTableCell1.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell1.Name = "xrTableCell1"; + this.xrTableCell1.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F); + this.xrTableCell1.StylePriority.UseBorders = false; + this.xrTableCell1.StylePriority.UsePadding = false; + this.xrTableCell1.StylePriority.UseTextAlignment = false; + this.xrTableCell1.Text = "Vorname"; + this.xrTableCell1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell1.Weight = 0.69230768057016223D; + // + // xrTableCell2 + // + this.xrTableCell2.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell2.Name = "xrTableCell2"; + this.xrTableCell2.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F); + this.xrTableCell2.StylePriority.UseBorders = false; + this.xrTableCell2.StylePriority.UsePadding = false; + this.xrTableCell2.StylePriority.UseTextAlignment = false; + this.xrTableCell2.Text = "Rolle"; + this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell2.Weight = 0.69230769817645732D; + // + // xrTableCell7 + // + this.xrTableCell7.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell7.Name = "xrTableCell7"; + this.xrTableCell7.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F); + this.xrTableCell7.StylePriority.UseBorders = false; + this.xrTableCell7.StylePriority.UsePadding = false; + this.xrTableCell7.StylePriority.UseTextAlignment = false; + this.xrTableCell7.Text = "Notiz"; + this.xrTableCell7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell7.Weight = 1.1538461714524488D; + // + // TopMargin + // + this.TopMargin.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.TopMargin.HeightF = 100F; + this.TopMargin.Name = "TopMargin"; + this.TopMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.TopMargin.StylePriority.UseFont = false; + this.TopMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel1 + // + this.xrLabel1.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrLabel1.Name = "xrLabel1"; + this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel1.SizeF = new System.Drawing.SizeF(650F, 37.33331F); + this.xrLabel1.StylePriority.UseFont = false; + this.xrLabel1.Text = "[Employee.FirstName] [Employee.LastName]"; + // + // BottomMargin + // + this.BottomMargin.HeightF = 74F; + this.BottomMargin.Name = "BottomMargin"; + this.BottomMargin.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.BottomMargin.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // DetailReport + // + this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail1}); + this.DetailReport.DataMember = "CustomerList"; + this.DetailReport.DataSource = this.bindingSource1; + this.DetailReport.Level = 0; + this.DetailReport.Name = "DetailReport"; + // + // Detail1 + // + this.Detail1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable2}); + this.Detail1.HeightF = 25F; + this.Detail1.Name = "Detail1"; + // + // xrTable2 + // + this.xrTable2.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable2.Name = "xrTable2"; + this.xrTable2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow2}); + this.xrTable2.SizeF = new System.Drawing.SizeF(700F, 25F); + this.xrTable2.StylePriority.UseBorders = false; + this.xrTable2.StylePriority.UseFont = false; + // + // xrTableRow2 + // + this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell10, + this.xrTableCell4, + this.xrTableCell5, + this.xrTableCell8}); + this.xrTableRow2.Name = "xrTableRow2"; + this.xrTableRow2.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 3, 0, 100F); + this.xrTableRow2.StylePriority.UsePadding = false; + this.xrTableRow2.Weight = 1D; + // + // xrTableCell10 + // + this.xrTableCell10.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "CustomerList.Customer.LastName", "{0:dd.MM.yyyy}")}); + this.xrTableCell10.Name = "xrTableCell10"; + this.xrTableCell10.StylePriority.UsePadding = false; + this.xrTableCell10.StylePriority.UseTextAlignment = false; + this.xrTableCell10.Text = "xrTableCell10"; + this.xrTableCell10.Weight = 0.69230768057016234D; + // + // xrTableCell4 + // + this.xrTableCell4.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "CustomerList.Customer.FirstName", "{0:c}")}); + this.xrTableCell4.FormattingRules.Add(this.Einzahlungstextsichtbarkeitsformatierungsregel); + this.xrTableCell4.Name = "xrTableCell4"; + this.xrTableCell4.StylePriority.UsePadding = false; + this.xrTableCell4.StylePriority.UseTextAlignment = false; + this.xrTableCell4.Text = "xrTableCell4"; + this.xrTableCell4.Weight = 0.69230768057016223D; + // + // Einzahlungstextsichtbarkeitsformatierungsregel + // + this.Einzahlungstextsichtbarkeitsformatierungsregel.Condition = "[Einzahlung] == 0"; + this.Einzahlungstextsichtbarkeitsformatierungsregel.DataMember = "Transaktionen"; + this.Einzahlungstextsichtbarkeitsformatierungsregel.Formatting.ForeColor = System.Drawing.Color.Transparent; + this.Einzahlungstextsichtbarkeitsformatierungsregel.Name = "Einzahlungstextsichtbarkeitsformatierungsregel"; + // + // xrTableCell5 + // + this.xrTableCell5.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "CustomerList.Rolle", "{0:c}")}); + this.xrTableCell5.FormattingRules.Add(this.Auszahlungstextsichtbarkeitsformatierungsregel); + this.xrTableCell5.Name = "xrTableCell5"; + this.xrTableCell5.StylePriority.UsePadding = false; + this.xrTableCell5.StylePriority.UseTextAlignment = false; + this.xrTableCell5.Text = "xrTableCell5"; + this.xrTableCell5.Weight = 0.69230769817645732D; + // + // Auszahlungstextsichtbarkeitsformatierungsregel + // + this.Auszahlungstextsichtbarkeitsformatierungsregel.Condition = "[Auszahlung] == 0"; + this.Auszahlungstextsichtbarkeitsformatierungsregel.DataMember = "Transaktionen"; + this.Auszahlungstextsichtbarkeitsformatierungsregel.Formatting.ForeColor = System.Drawing.Color.Transparent; + this.Auszahlungstextsichtbarkeitsformatierungsregel.Name = "Auszahlungstextsichtbarkeitsformatierungsregel"; + // + // xrTableCell8 + // + this.xrTableCell8.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "CustomerList.Notiz")}); + this.xrTableCell8.Multiline = true; + this.xrTableCell8.Name = "xrTableCell8"; + this.xrTableCell8.StylePriority.UsePadding = false; + this.xrTableCell8.StylePriority.UseTextAlignment = false; + this.xrTableCell8.Weight = 1.1538461714524493D; + // + // bindingSource1 + // + this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.CustomerListRO); + // + // xrLabel2 + // + this.xrLabel2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 37.33332F); + this.xrLabel2.Name = "xrLabel2"; + this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel2.SizeF = new System.Drawing.SizeF(650F, 25.66666F); + this.xrLabel2.StylePriority.UseFont = false; + this.xrLabel2.Text = "Zugeordnete Klient:innen"; + // + // GroupHeader1 + // + this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel2, + this.xrLabel1}); + this.GroupHeader1.HeightF = 70F; + this.GroupHeader1.Name = "GroupHeader1"; + // + // EmployeeCustomerListReport + // + this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail, + this.TopMargin, + this.BottomMargin, + this.DetailReport, + this.GroupHeader1}); + this.DataSource = this.bindingSource1; + this.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] { + this.Einzahlungstextsichtbarkeitsformatierungsregel, + this.Auszahlungstextsichtbarkeitsformatierungsregel}); + this.Margins = new System.Drawing.Printing.Margins(75, 75, 100, 74); + this.Version = "17.1"; + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); + + } + + #endregion + + private DevExpress.XtraReports.UI.DetailBand Detail; + private DevExpress.XtraReports.UI.TopMarginBand TopMargin; + private DevExpress.XtraReports.UI.BottomMarginBand BottomMargin; + private DevExpress.XtraReports.UI.DetailReportBand DetailReport; + private DevExpress.XtraReports.UI.DetailBand Detail1; + private System.Windows.Forms.BindingSource bindingSource1; + private DevExpress.XtraReports.UI.XRTable xrTable1; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell2; + private DevExpress.XtraReports.UI.XRTable xrTable2; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell4; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell5; + private DevExpress.XtraReports.UI.XRLabel xrLabel1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell9; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell10; + private DevExpress.XtraReports.UI.FormattingRule Einzahlungstextsichtbarkeitsformatierungsregel; + private DevExpress.XtraReports.UI.FormattingRule Auszahlungstextsichtbarkeitsformatierungsregel; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell7; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell8; + private DevExpress.XtraReports.UI.XRLabel xrLabel2; + private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1; + } +} diff --git a/Report/DefaultReports/CustomerListReport.cs b/Report/DefaultReports/CustomerListReport.cs new file mode 100644 index 000000000..6498c8d49 --- /dev/null +++ b/Report/DefaultReports/CustomerListReport.cs @@ -0,0 +1,23 @@ +using System.Linq; +using BeWo.Report.ReportObjects; + +namespace BeWo.Report.DefaultReports +{ + public partial class CustomerListReport : DevExpress.XtraReports.UI.XtraReport, IBeWoReport + { + public CustomerListReport() + { + InitializeComponent(); + } + + public void SetReportDataSource(CustomerListRO pRO) + { + //if (pRO.Transaktionen != null) + //{ + // pRO.Transaktionen = pRO.Transaktionen.OrderBy(o => o.Belegdatum).ToList(); + //} + + bindingSource1.DataSource = pRO; + } + } +} diff --git a/Report/DefaultReports/CustomerListReport.resx b/Report/DefaultReports/CustomerListReport.resx new file mode 100644 index 000000000..76cdda25e --- /dev/null +++ b/Report/DefaultReports/CustomerListReport.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/Report/DefaultReports/QueryListReport.Designer.cs b/Report/DefaultReports/QueryListReport.Designer.cs index 68842ee62..eda799c04 100644 --- a/Report/DefaultReports/QueryListReport.Designer.cs +++ b/Report/DefaultReports/QueryListReport.Designer.cs @@ -148,6 +148,7 @@ namespace BeWo.Report.DefaultReports // xrTableCell5 // this.xrTableCell5.Name = "xrTableCell5"; + this.xrTableCell5.Text = " "; this.xrTableCell5.Weight = 1D; // // bindingSource1 diff --git a/Report/Report.csproj b/Report/Report.csproj index 30a1e71b3..fd68b2e09 100644 --- a/Report/Report.csproj +++ b/Report/Report.csproj @@ -136,6 +136,12 @@ BudgetnachweisAnhang.cs + + Component + + + CustomerListReport.cs + Component @@ -431,6 +437,7 @@ + @@ -489,6 +496,10 @@ BudgetnachweisAnhang.cs Designer + + CustomerListReport.cs + Designer + RatingReport.cs Designer diff --git a/Report/ReportObjects/CustomerListRO.cs b/Report/ReportObjects/CustomerListRO.cs new file mode 100644 index 000000000..52b33d3a6 --- /dev/null +++ b/Report/ReportObjects/CustomerListRO.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.DCEntityMapper; +using BS.Shared.Core; +using BS.Shared.DataContracts.Compact; + +namespace BeWo.Report.ReportObjects +{ + public class CustomerListRO : AbstractBeWoReportObject + { + public List CustomerList { get; set; } + + public static CustomerListRO Create(List oids) + { + var ro = new CustomerListRO(); + ro.CustomerList = new List(); + + var customers = DAOFactory.GenericDAO.LoadByIDs(oids); + var dclist = MapperFactory.CustomerDC_Customer.MapToNewDCs(customers); + + foreach (var item in dclist) + { + var customerRO = CustomerDataRO.Create(item); + ro.CustomerList.Add(customerRO); + } + return ro; + } + + + } + +} diff --git a/ReportImp/AkggMid/CustomMitarbeiterstundenkontoBerechnung.cs b/ReportImp/AkggMid/CustomMitarbeiterstundenkontoBerechnung.cs index 871f39922..c45707ea5 100644 --- a/ReportImp/AkggMid/CustomMitarbeiterstundenkontoBerechnung.cs +++ b/ReportImp/AkggMid/CustomMitarbeiterstundenkontoBerechnung.cs @@ -111,6 +111,7 @@ namespace AkggMid { return true; } + public override MitarbeiterstundenkontoRO.DayDetail CreateDayDetail(DateTime date, MitarbeiterstundenkontoRO.EmployeeDetail ed) { var dd = base.CreateDayDetail(date, ed); @@ -122,7 +123,8 @@ namespace AkggMid return dd; } - public override MitarbeiterstundenkontoRO.EmployeeDetail BerechneUeberstundenBis(MitarbeiterstundenkontoRO.EmployeeDetail edOrig, IList records, DateTime monat, out decimal? ueberstunden, out decimal alteExtraUeberstunden) + + public override MitarbeiterstundenkontoRO.EmployeeDetail BerechneUeberstundenBis(MitarbeiterstundenkontoRO.EmployeeDetail edOrig, IList records, DateTime monat, out decimal? ueberstunden, out decimal alteExtraUeberstunden) { DateTime stichTag = new DateTime(2023, 9, 1); diff --git a/ReportImp/AkggMid/Mitarbeiterarbeitszeitkonto.cs b/ReportImp/AkggMid/Mitarbeiterarbeitszeitkonto.cs index 1e9050ef9..32ff91df5 100644 --- a/ReportImp/AkggMid/Mitarbeiterarbeitszeitkonto.cs +++ b/ReportImp/AkggMid/Mitarbeiterarbeitszeitkonto.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using BeWo.Data.Entities; using BeWo.Report; using BeWo.Report.ReportObjects; @@ -21,10 +22,14 @@ namespace AkggMid { var msb = new CustomMitarbeiterstundenkontoBerechnung(); msb.CreateReport(pRO); - + foreach (var ed in pRO.EmployeeDetailList) { - var c = ed.Employee.GetValidContractForDate(pRO.ReportStartDate); + var c = ed.Employee.GetValidContractForDate(pRO.ReportEndDate); + if (c == null) + { + c = ed.Employee.GetValidContractForDate(pRO.ReportStartDate); + } if (c != null) { if (c.MonthlyTotalHours.HasValue) @@ -42,46 +47,106 @@ namespace AkggMid // Alles in Custom6 / 7 / 8 / 9 schreiben foreach (var empDetail in pRO.EmployeeDetailList) { + var newDayList = new List(); + foreach (var day in empDetail.Days) { + + if (day.AbsenceTimes != null && day.AbsenceTimes.Count > 0) + { + var hours = day.HoursSick + day.HoursInVacation; + + empDetail.StundenGesamtIst += hours; + } + + if (day.ServiceRecords != null && day.ServiceRecords.Count > 0) + { + foreach (var sr in day.ServiceRecords) + { + var dd = new MitarbeiterstundenkontoRO.DayDetail(); + dd.Date = day.Date; + dd.ServiceRecords = new List(); + dd.ServiceRecords.Add(sr); + newDayList.Add(dd); + } + } + else + { + newDayList.Add(day); + } + + + } + empDetail.Days = newDayList; + foreach (var day in empDetail.Days) + { + string custom6 = ""; string custom7 = ""; string custom8 = ""; string custom9 = ""; if (day.AbsenceTimes != null && day.AbsenceTimes.Count > 0) - { + { var hours = day.HoursSick + day.HoursInVacation; - custom7 = day.AbsenceTimes[0].AbsenceReason.Description + "\n"; - custom9 += string.Format("{0:0.00}\n", hours); - empDetail.StundenGesamtIst += hours; + custom7 = day.AbsenceTimes[0].AbsenceReason.Description; + custom9 += string.Format("{0:0.00}", hours); } - if (day.ServiceRecords != null) - { - if (day.IstFeiertag) + if (day.IstFeiertag) + { + custom6 = "keine*r"; + + if (custom7.Length > 0) { - custom6 += "keine*r\n"; - custom7 += day.Feiertag.Name + "\n"; - custom8 += "-\n"; - } - + custom7 += "\n"; + } + custom7 += day.Feiertag.Name; + custom8 = "-"; + } + if (day.ServiceRecords != null && day.ServiceRecords.Count > 0) + { foreach (var sr in day.ServiceRecords) { + if (custom7.Length > 0) + { + custom7 += "\n"; + } custom7 += sr.ServiceDescription.ServiceCategory.Name + "\n"; + + if (custom8.Length > 0) + { + custom8 += "\n"; + } custom8 += sr.ServiceDescription.Name + "\n"; if (sr.Group != null && sr.GroupRoundedDuration.HasValue && sr.GroupPersonCount.HasValue && sr.GroupPersonCount.Value > 1) - { - foreach (var gsr in sr.Group.ServiceRecordList) - { + { + foreach (var gsr in sr.Group.ServiceRecordList) + { + if (custom6.Length > 0) + { + custom6 += "\n"; + } custom6 += gsr.SupportConcept != null ? gsr.SupportConcept.Customer.Person.FirstNameLastName + "\n" : ""; } - + if (custom9.Length > 0) + { + custom9 += "\n"; + } custom9 += string.Format("{0:0.00}\n", sr.GroupRoundedDuration / 60); } else - { + { + if (custom6.Length > 0) + { + custom6 += "\n"; + } custom6 += sr.SupportConcept != null ? sr.SupportConcept.Customer.Person.FirstNameLastName + "\n" : "keine*r\n"; + + if (custom9.Length > 0) + { + custom9 += "\n"; + } custom9 += string.Format("{0:0.00}\n", sr.RoundedDuration / 60); } } @@ -92,7 +157,7 @@ namespace AkggMid day.Custom8 = custom8; day.Custom9 = custom9; } - } + } this.bindingSource1.DataSource = pRO; } diff --git a/ReportService/ServiceContracts/IReportService.cs b/ReportService/ServiceContracts/IReportService.cs index 0d3d97ced..bbe1b3845 100644 --- a/ReportService/ServiceContracts/IReportService.cs +++ b/ReportService/ServiceContracts/IReportService.cs @@ -82,5 +82,38 @@ namespace ReportingService.ServiceContracts [FaultContract(typeof(BeWoFault))] [OperationContract] MemoryStream CreateInvoiceListReport(List invoiceBaseOids); + + + [FaultContract(typeof(BeWoFault))] + [OperationContract] + MemoryStream CreateCustomerListReport(List oids); + + [FaultContract(typeof(BeWoFault))] + [OperationContract] + MemoryStream CreateSupportConceptListReport(List oids); + + [FaultContract(typeof(BeWoFault))] + [OperationContract] + MemoryStream CreatePersonListReport(List oids); + + [FaultContract(typeof(BeWoFault))] + [OperationContract] + MemoryStream CreateEmployeeListReport(List oids); + + [FaultContract(typeof(BeWoFault))] + [OperationContract] + MemoryStream CreateOrganisationListReport(List oids); + + [FaultContract(typeof(BeWoFault))] + [OperationContract] + MemoryStream CreateTeamListReport(List oids); + + [FaultContract(typeof(BeWoFault))] + [OperationContract] + MemoryStream CreateUserListReport(List oids); + + [FaultContract(typeof(BeWoFault))] + [OperationContract] + MemoryStream CreateUSerGroupListReport(List oids); } } \ No newline at end of file diff --git a/ReportService/ServiceImplementations/ReportServiceImp.cs b/ReportService/ServiceImplementations/ReportServiceImp.cs index 2f1047a0d..aeb193d00 100644 --- a/ReportService/ServiceImplementations/ReportServiceImp.cs +++ b/ReportService/ServiceImplementations/ReportServiceImp.cs @@ -131,6 +131,9 @@ namespace ReportingService.ServiceImplementations private static MemoryStream CreateReportStream(XtraReport pReport) { + if (pReport == null) + return null; + pReport.CreateDocument(); var resultStream = new MemoryStream(); @@ -333,5 +336,46 @@ namespace ReportingService.ServiceImplementations { return null; } + + public MemoryStream CreateCustomerListReport(List oids) + { + var reportCreator = GetReportCreator(); + return CreateReportStream(reportCreator.CreateCustomerListReport(oids)); + } + + public MemoryStream CreateSupportConceptListReport(List oids) + { + return null; + } + + public MemoryStream CreatePersonListReport(List oids) + { + return null; + } + + public MemoryStream CreateEmployeeListReport(List oids) + { + return null; + } + + public MemoryStream CreateOrganisationListReport(List oids) + { + return null; + } + + public MemoryStream CreateTeamListReport(List oids) + { + return null; + } + + public MemoryStream CreateUserListReport(List oids) + { + return null; + } + + public MemoryStream CreateUSerGroupListReport(List oids) + { + return null; + } } } \ No newline at end of file From 0abc8d6ac10f9dc55c790a2538fad0f4eafb2ce2 Mon Sep 17 00:00:00 2001 From: Marcel Hirschle Date: Wed, 13 Sep 2023 09:39:10 +0200 Subject: [PATCH 5/5] MH: ASB Poolabrechnung --- .../AsbRheinErftDuerenSBD.csproj | 2 +- .../Invoicing/CustomInvoiceFactory.cs | 2 +- ...oiceCreation.cs => PoolInvoiceCreation.cs} | 36 ++++++++++++++----- 3 files changed, 30 insertions(+), 10 deletions(-) rename ReportImp/AsbRheinErftDuerenSBD/Invoicing/{ChristophorusPoolInvoiceCreation.cs => PoolInvoiceCreation.cs} (86%) diff --git a/ReportImp/AsbRheinErftDuerenSBD/AsbRheinErftDuerenSBD.csproj b/ReportImp/AsbRheinErftDuerenSBD/AsbRheinErftDuerenSBD.csproj index 7c07a5d91..b2aab6888 100644 --- a/ReportImp/AsbRheinErftDuerenSBD/AsbRheinErftDuerenSBD.csproj +++ b/ReportImp/AsbRheinErftDuerenSBD/AsbRheinErftDuerenSBD.csproj @@ -74,7 +74,7 @@ - + Component diff --git a/ReportImp/AsbRheinErftDuerenSBD/Invoicing/CustomInvoiceFactory.cs b/ReportImp/AsbRheinErftDuerenSBD/Invoicing/CustomInvoiceFactory.cs index 48e3286c0..54a5ccdc3 100644 --- a/ReportImp/AsbRheinErftDuerenSBD/Invoicing/CustomInvoiceFactory.cs +++ b/ReportImp/AsbRheinErftDuerenSBD/Invoicing/CustomInvoiceFactory.cs @@ -24,7 +24,7 @@ namespace AsbRheinErftDuerenSBD.Invoicing return new CustomInvoiceCreationAldenhoven(); } else if (sc.CostBearer.Contains("Sozialamt Düren Pools")) - return new ChristophorusPoolInvoiceCreation(); + return new PoolInvoiceCreation(); //else if (sc.CostBearer.Contains("Sozialamt Kreis Düren")) //{ // return new CustomInvoiceCreationAldenhoven(); diff --git a/ReportImp/AsbRheinErftDuerenSBD/Invoicing/ChristophorusPoolInvoiceCreation.cs b/ReportImp/AsbRheinErftDuerenSBD/Invoicing/PoolInvoiceCreation.cs similarity index 86% rename from ReportImp/AsbRheinErftDuerenSBD/Invoicing/ChristophorusPoolInvoiceCreation.cs rename to ReportImp/AsbRheinErftDuerenSBD/Invoicing/PoolInvoiceCreation.cs index 78d87c47b..352af478e 100644 --- a/ReportImp/AsbRheinErftDuerenSBD/Invoicing/ChristophorusPoolInvoiceCreation.cs +++ b/ReportImp/AsbRheinErftDuerenSBD/Invoicing/PoolInvoiceCreation.cs @@ -10,7 +10,7 @@ using System.Linq; namespace AsbRheinErftDuerenSBD.Invoicing { - public class ChristophorusPoolInvoiceCreation : InvoiceCreation + public class PoolInvoiceCreation : InvoiceCreation { public override void SetInvoiceId(ServiceInvoice invoice) { @@ -42,11 +42,11 @@ namespace AsbRheinErftDuerenSBD.Invoicing if (team == null) return; - var anzFK = 0; + decimal anzFK = 0; var preiseFK = DAOFactory.GenericDAO.GetAllActive().FirstOrDefault(sc => sc.Name == "Pool - Fachkraft (FK)").CostRatePeriods.ToList(); - var anzHK = 0; + decimal anzHK = 0; var preiseHK = DAOFactory.GenericDAO.GetAllActive().FirstOrDefault(sc => sc.Name == "Pool-Nichtfachkraft (HK)").CostRatePeriods.ToList(); - var anzHKTeilzeit = 0; + decimal anzHKTeilzeit = 0; var preiseHKTeilzeit = DAOFactory.GenericDAO.GetAllActive().FirstOrDefault(sc => sc.Name == "Pool-Nichtfachkraft(HK)").CostRatePeriods.ToList(); var employee = MapperFactory.EmployeeDC_Employee.MapToNewDCs(DAOFactory.GenericDAO.GetActiveByIDs(team.Member.Select(m => m.EmployeeOid).ToList())); @@ -55,16 +55,26 @@ namespace AsbRheinErftDuerenSBD.Invoicing foreach (var e in employee) { - if (allServiceRecords.Any(s => s.EmployeeOid == e.EmployeeOid && s.ServiceDescription.ServiceCategory.Name.ToLower().Contains("poolpauschale"))) + var sr = allServiceRecords.FirstOrDefault(s => s.EmployeeOid == e.EmployeeOid && s.ServiceDescription.ServiceCategory.Name.ToLower().Contains("poolpauschale")); + if (sr != null) { serviceInvoicePeriod.Notice += e.FirstName + " " + e.LastName + ", "; + // Wenn Mitarbeiter erst Mitte oder 3/4 des Monats angefangen hat, wird der Anteil um 50 bzw 75% verringert if (e.LastName.Contains("Bugla") && e.FirstName.Contains("Frank")) // Hier Ausnahme, also Teilzeit-MA, einfügen - anzHKTeilzeit++; + { + anzHKTeilzeit += VerringerungUeberpruefen(sr); + } else if (e.IsQualified.HasValue && e.IsQualified.Value) - anzFK++; + { + anzFK += VerringerungUeberpruefen(sr); + + } else if (!e.IsQualified.HasValue || e.IsQualified.HasValue && !e.IsQualified.Value) - anzHK++; + { + anzHK += VerringerungUeberpruefen(sr); + + } } } if (!serviceInvoicePeriod.Notice.IsNullOrEmpty()) @@ -126,6 +136,16 @@ namespace AsbRheinErftDuerenSBD.Invoicing } } + private decimal VerringerungUeberpruefen(ServiceRecord sr) + { + if (sr.ServiceDescription.Name.Contains("50%")) + return 0.5m; + else if (sr.ServiceDescription.Name.Contains("25%")) + return 0.25m; + else + return 1m; + } + private static decimal GetPreis(DateTime datum, List preise) { var preis = 0.0m;