diff --git a/ReportImp/DiakonieMoenchengladbach/Calculations/CustomGroupDurationCalculator.cs b/ReportImp/DiakonieMoenchengladbach/Calculations/CustomGroupDurationCalculator.cs new file mode 100644 index 000000000..c12e4220d --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Calculations/CustomGroupDurationCalculator.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using BeWo.Service.Plugins; +using BS.Shared.Core; +using BS.Shared.DataContracts; +using BS.Shared.Services; + +namespace TemplateNeuKunde.Calculations +{ + //public class CustomGroupDurationCalculator : GroupDurationCalculator + //{ + // public override GroupDurationDC CalculateGroupDuration(int personCount, int employeeCount, decimal totalDuration) + // { + // return new GroupDurationDC() + // { + // SingleDuration = (totalDuration / personCount) * employeeCount, + // TotalDuration = totalDuration + // }; + // } + + //} +} diff --git a/ReportImp/DiakonieMoenchengladbach/Calculations/DefaultCalculations.cs b/ReportImp/DiakonieMoenchengladbach/Calculations/DefaultCalculations.cs new file mode 100644 index 000000000..906e9d981 --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Calculations/DefaultCalculations.cs @@ -0,0 +1,25 @@ +using System; + +namespace TemplateNeuKunde.Calculations +{ + + //public class DefaultCalculations : BS.Shared.Services.Calculations + //{ + // public override int GetRoundedDuration(int minuteInterval, decimal durationInMinutes) + // { + // decimal lRoundedDuration = durationInMinutes; + + // if (minuteInterval > 0 && durationInMinutes >= 5) + // { + // lRoundedDuration = durationInMinutes % minuteInterval != 0 + // ? durationInMinutes + (minuteInterval - (durationInMinutes % minuteInterval)) + // : durationInMinutes; + // } + + // return (int)Math.Round(lRoundedDuration, 0, MidpointRounding.AwayFromZero); + // } + + + + //} +} \ No newline at end of file diff --git a/ReportImp/DiakonieMoenchengladbach/DiakonieMoenchengladbach.csproj b/ReportImp/DiakonieMoenchengladbach/DiakonieMoenchengladbach.csproj new file mode 100644 index 000000000..3973b9b2c --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/DiakonieMoenchengladbach.csproj @@ -0,0 +1,121 @@ + + + + + Debug + AnyCPU + {191A4CB3-947D-4C9B-89E9-7D66ED6F670B} + Library + Properties + DiakonieMoenchengladbach + 9278042291_Reports + v4.7.2 + 512 + + + + true + full + false + ..\..\CustomerDlls\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + ..\..\CustomerDlls\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + True + True + Resources.resx + + + + + Component + + + ServiceInvoiceReport.cs + + + + + + + + + + + {B0D73E3D-4AE7-4024-93A6-DB1F46D7CCEE} + Data + + + {40d8b312-ea64-49e3-a31a-5e57ed4d5654} + Report + + + {094331c3-ecee-4c89-bbfd-4c9ded89f0ef} + Service + + + {2f50b83d-a3f0-4ec4-979a-3f9b7e3d8ed4} + Shared + + + + + + + + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + ServiceInvoiceReport.cs + + + + \ No newline at end of file diff --git a/ReportImp/DiakonieMoenchengladbach/Invoicing/CustomInvoiceCreation.cs b/ReportImp/DiakonieMoenchengladbach/Invoicing/CustomInvoiceCreation.cs new file mode 100644 index 000000000..7d5aee1ec --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Invoicing/CustomInvoiceCreation.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Report.ReportObjects; +using BeWo.Service.DCEntityMapper; +using BeWo.Service.Invoicing; +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts; +using BS.Shared.Extensions; +using BS.Shared.Services; +using Service.Invoicing; + +namespace TemplateNeuKunde.Invoicing +{ + // public class CustomInvoiceCreation : InvoiceCreation + //{ + // //public override void SetInvoiceId(ServiceInvoice invoice) + // //{ + // // //invoice.InvoiceBase.InvoiceId = "SBD"; + // // //invoice.InvoiceBase.InvoiceTypeText = ""; + // //} + + + // // //Setze für Selbstzahler die Adresse des Klienten + // // public override void SetRecipientInformation(ServiceInvoice serviceInvoice, CostBearer costBearer) + // // { + // // if (costBearer.Organisation.Name == "Selbstzahler") + // // { + // // serviceInvoice.InvoiceBase.RecipientOrganisationOid = costBearer.Organisation.Oid; + + // // if (serviceInvoice.InvoiceBase.CostBearer2SupportConcept != null) + // // { + // // var cust = serviceInvoice.InvoiceBase.CostBearer2SupportConcept.SupportConcept.Customer; + + // // if (cust.Person.InvoiceAddress != null) + // // { + // // serviceInvoice.InvoiceBase.RecipientAddress = cust.Person.InvoiceAddress.CopyToNew(); + // // } + // // else if (cust.Person.Address != null) + // // { + // // serviceInvoice.InvoiceBase.RecipientAddress = cust.Person.Address.CopyToNew(); + // // } + + // // serviceInvoice.InvoiceBase.RecipientPersonFirstName = cust.Person.FirstName; + // // serviceInvoice.InvoiceBase.RecipientPersonLastName = cust.Person.LastName; + // // serviceInvoice.InvoiceBase.RecipientCustomerOid = cust.Oid; + // // } + // // } + // // } + // } +} diff --git a/ReportImp/DiakonieMoenchengladbach/Invoicing/CustomInvoiceFactory.cs b/ReportImp/DiakonieMoenchengladbach/Invoicing/CustomInvoiceFactory.cs new file mode 100644 index 000000000..261ac0d43 --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Invoicing/CustomInvoiceFactory.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.Invoicing; +using BS.Shared.DataContracts; +using BS.Shared.DataContracts.Compact; + +namespace TemplateNeuKunde.Invoicing +{ + public class CustomInvoiceFactory : InvoiceFactory + { + // public override InvoiceCreation CreateInvoiceCreator(string specificId, string tenant, Dictionary> supportConcepts2ServiceRecords) + // { + ////Hier einkommentieren, wenn die Rechnungserstellung von einer bestimmten Kategorie einer Bewilligung abhängt + //foreach (var item in supportConcepts2ServiceRecords) + //{ + // var csc = item.Key; + // var cb2sc = DAOFactory.GenericDAO.LoadByID(csc.CostBearerRelOids[0]); + + // foreach (var scap in cb2sc.ApprovalPeriodList) + // { + // if (scap.ServiceCategory != null) + // { + // var ic = GetInvoiceCreatorForCategory(scap.ServiceCategory.Name); + // if (ic != null) + // return ic; + // } + // } + //} + + ////Hier einkommentieren, wenn die Rechnungserstellung von einer bestimmten Kategorie oder Organisation eines ServiceRecords abhängt + //foreach (var list in supportConcepts2ServiceRecords.Values) + // { + // foreach (var sr in list) + // { + // //Hier wird Kategorie geprüft + // var ic = GetInvoiceCreatorForCategory(sr.ServiceDescription.Category.Name); + // if (ic != null) + // return ic; + + // //Hier wird Organisation geprüft + // if (sr.CostBearer.Name.ToLower().Contains("selbstzahler")) + // { + // return new CustomInvoiceCreation(); + // } + // } + // } + + + // return base.CreateInvoiceCreator(specificId, tenant, supportConcepts2ServiceRecords); + // } + + // private InvoiceCreation GetInvoiceCreatorForCategory(String catName) + // { + // if (!String.IsNullOrEmpty(catName)) + // { + // String cat = catName.ToLower().Trim(); + // if (cat.IndexOf("assistenz") >= 0) + // return new CustomInvoiceCreation(); + // } + // return null; + // } + } +} diff --git a/ReportImp/DiakonieMoenchengladbach/Invoicing/CustomLWLDiggaBerechnung.cs b/ReportImp/DiakonieMoenchengladbach/Invoicing/CustomLWLDiggaBerechnung.cs new file mode 100644 index 000000000..3d4dcc3af --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Invoicing/CustomLWLDiggaBerechnung.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.DCEntityMapper; +using BeWo.Service.Invoicing; +using BeWo.Service.Plugins; +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts; +using BS.Shared.Extensions; +using BS.Shared.Services; + +namespace TemplateNeuKunde.Invoicing +{ + public class CustomLWLDiggaBerechnung : LWLDiggaBerechnung + { + public override void InitBerechnung() + { + //this.Umstellungsdatum = new DateTime(2025, 1, 1); + } + } +} diff --git a/ReportImp/DiakonieMoenchengladbach/Properties/AssemblyInfo.cs b/ReportImp/DiakonieMoenchengladbach/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..930888dd6 --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("KundeXyz")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("KundeXyz")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("c1fed668-adb9-47e0-b589-1389618e1b6e")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, +// indem Sie "*" wie unten gezeigt eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ReportImp/DiakonieMoenchengladbach/Properties/Resources.Designer.cs b/ReportImp/DiakonieMoenchengladbach/Properties/Resources.Designer.cs new file mode 100644 index 000000000..27cb816f9 --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +namespace DiakonieMoenchengladbach.Properties { + using System; + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert + // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("DiakonieMoenchengladbach.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/ReportImp/DiakonieMoenchengladbach/Properties/Resources.resx b/ReportImp/DiakonieMoenchengladbach/Properties/Resources.resx new file mode 100644 index 000000000..1af7de150 --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Properties/Resources.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/ReportImp/DiakonieMoenchengladbach/Properties/licenses.licx b/ReportImp/DiakonieMoenchengladbach/Properties/licenses.licx new file mode 100644 index 000000000..d59547a61 --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Properties/licenses.licx @@ -0,0 +1 @@ +DevExpress.XtraReports.UI.XtraReport, DevExpress.XtraReports.v23.2, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a diff --git a/ReportImp/DiakonieMoenchengladbach/Reporting/CustomMitarbeiterstundenkontoBerechnung.cs b/ReportImp/DiakonieMoenchengladbach/Reporting/CustomMitarbeiterstundenkontoBerechnung.cs new file mode 100644 index 000000000..8b32a2d7b --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Reporting/CustomMitarbeiterstundenkontoBerechnung.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using BeWo.Data.Entities; +using BeWo.Report.ReportObjects; + +using BS.Shared.Extensions; + + +namespace TemplateNeuKunde.Reporting +{ + public class CustomMitarbeiterstundenkontoBerechnung : MitarbeiterstundenkontoBerechnung + { + //Wenn halbe Feiertage konfiguriert werden sollen, muss diese Methode auch im VacationService einkommentiert werden + //public override decimal GetFeiertagsFaktor(DateTime start) + //{ + // if (start.Month == 12) + // { + // if (start.Day == 24 || start.Day == 31) + // { + // return 0.5m; + // } + // } + + // return base.GetFeiertagsFaktor(start); + //} + } +} diff --git a/ReportImp/DiakonieMoenchengladbach/Reporting/CustomReportCreator.cs b/ReportImp/DiakonieMoenchengladbach/Reporting/CustomReportCreator.cs new file mode 100644 index 000000000..3e064654a --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Reporting/CustomReportCreator.cs @@ -0,0 +1,201 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Report; +using BeWo.Report.DefaultReports; +using BeWo.Report.ReportObjects; +using BeWo.Service.DCEntityMapper; +using DevExpress.XtraReports.UI; + +namespace TemplateNeuKunde.Reporting +{ + //public class CustomReportCreator : DefaultReportCreator + //{ + // //Einkommentiere für LWL Prüfliste, ZAD Nummer und ServiceDescription ergänzen + + + // //SQL Queries: + // //INSERT INTO `query` (`Oid`,`Tid`,`Type`,`Title`,`SQL`,`Notice`,`InsTs`,`InsUser`,`UdpUser`,`Version`,`IsActive`,`SystemEntryID`,`UserGroupOids`,`ReportTypeName`,`FileName`,`ExportTitle`) + // //VALUES(500,24,0,'LWL Quittierungsbelege','select \':Von\', \':Bis\', \':Klient/in\'','direct', NULL, NULL, NULL,1,1, NULL,'1', NULL, NULL, NULL); + + // //INSERT INTO `parameter` (`Oid`,`QueryOid`,`Tid`,`Name`,`Type`,`DbType`,`InsTs`,`InsUser`,`UdpUser`,`Version`,`IsActive`,`SystemEntryID`) VALUES(4,500,25,'Von_Bis',5, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + // //INSERT INTO `parameter` (`Oid`,`QueryOid`,`Tid`,`Name`,`Type`,`DbType`,`InsTs`,`InsUser`,`UdpUser`,`Version`,`IsActive`,`SystemEntryID`) VALUES(5,500,25,'Klient/in',2, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + + // //public override XtraReport CreateQueryReport(long queryOid, string queryReportId) + // //{ + // // if (queryOid == 500) + // // { + // // return CreateLwlPruefliste(CreateQueryRO(queryOid, queryReportId)); + + // // } + // // return base.CreateQueryReport(queryOid, queryReportId); + // //} + + // //private LwlPruefliste CreateLwlPruefliste(QueryRO queryRo) + // //{ + // // var liste = new LwlPruefliste(); + + // // if (queryRo.Rows.Count > 0) + // // { + // // DateTime start = DateTime.MaxValue; + // // DateTime end = DateTime.MinValue; + + // // if (queryRo.Rows[0].Field1 != null) + // // { + // // DateTime.TryParse(queryRo.Rows[0].Field1.ToString(), out start); + // // } + // // if (queryRo.Rows[0].Field2 != null) + // // { + // // DateTime.TryParse(queryRo.Rows[0].Field2.ToString(), out end); + // // } + // // long? customerOid = null; + // // if (queryRo.Rows[0].Field3.ToString() == "0") + // // { + // // var masterReport = new LwlPruefliste(); + // // //masterReport.CreateDocument(); + + // // var customerList = DAOFactory.GenericDAO.GetAllActive(); + // // var customerListOrd = customerList.OrderBy(c => c.Person.LastNameFirstName).ToList(); + // // foreach (var c in customerListOrd) + // // { + // // var ro = LwlPrueflisteRO.Create(start, end, "9011113", c.Oid); + // // if (ro.ServiceRecords != null && ro.ServiceRecords.Count > 0) + // // { + // // try + // // { + // // liste = new LwlPruefliste(); + // // liste.SetReportDataSource(ro); + // // liste.CreateDocument(); + // // masterReport.Pages.AddRange(liste.Pages); + // // } + // // catch + // // { + // // // ignore - z.B. kein Hilfeplan + // // } + // // } + // // } + // // return (LwlPruefliste)masterReport; + // // } + + // // if (queryRo.Rows[0].Field3 != null) + // // { + // // if (Int64.TryParse(queryRo.Rows[0].Field3.ToString(), out var oidOut)) + // // { + // // customerOid = oidOut; + // // } + // // var ro = LwlPrueflisteRO.Create(start, end, "9011113", customerOid); + // // liste.SetReportDataSource(ro); + // // return liste; + // // } + // // } + + // // return liste; + // //} + + + // //Einkommentiere für LWL 2. Seite mit Anhang für Budgetnachweise + // //public override XtraReport CreateSettlementReport(string dcId, long? invoiceBaseOid) + // //{ + // // return base.CreateSettlementReport(dcId, invoiceBaseOid, true); + // //} + + + // //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); + // // rootReport.CreateDocument(); + + // // for (int i = 1; i < lROs.Count; i++) + // // { + // // var lNext = CreateServicesOverviewReportForRo(lROs[i], serviceCategoryOid); + // // 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); + // // rootReport.CreateDocument(); + + // // for (int i = 1; i < roList.Count; i++) + // // { + // // var lNext = CreateServicesOverviewReportForRo(roList[i], serviceCategoryOid); + // // lNext.CreateDocument(); + // // rootReport.Pages.AddRange(lNext.Pages); + // // } + + // // return rootReport; + // // } + // // return new XtraReport(); + + // //} + //public override XtraReport CreateReportForServicesOverviewRo(ServicesOverviewRO ro, String reportId) + //{ + // return CreateServicesOverviewReportForRo(ro, null); + //} + + // //private XtraReport CreateServicesOverviewReportForRo(ServicesOverviewRO ro, long? serviceCategoryOid) + // //{ + // // IBeWoReport report = null; + // // String kt = ""; + // // if (!String.IsNullOrWhiteSpace(ro.Costbearer)) + // // kt = ro.Costbearer.Trim(); + + // // String function = ""; + // // if (ro.CostBearer2SupportConceptList != null) + // // { + // // foreach (var c2s in ro.CostBearer2SupportConceptList) + // // { + // // if (c2s.CostBearer.Organisation.Function != null && !String.IsNullOrWhiteSpace(ro.Costbearer) && c2s.CostBearer.Organisation.Name == ro.Costbearer) + // // function = c2s.CostBearer.Organisation.Function.Value; + // // } + // // } + + // // if (kt == "Kreisverwaltung Mainz-Bingen") + // // report = new AlzeyTeilhabe.StundenzettelBi2(); + + // // if (report == null && function == "Kostenträger Soziotherapie") + // // report = new StundenzettelSoziotherapie(); + + // // if (report == null) + // // report = new AlzeyTeilhabe.StundenzettelWo(); + + // // report.SetReportDataSource(ro); + + // // return report as XtraReport; + // //} + + //} +} diff --git a/ReportImp/DiakonieMoenchengladbach/Reporting/ServiceInvoiceReport.Designer.cs b/ReportImp/DiakonieMoenchengladbach/Reporting/ServiceInvoiceReport.Designer.cs new file mode 100644 index 000000000..297ee161e --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Reporting/ServiceInvoiceReport.Designer.cs @@ -0,0 +1,954 @@ +using BeWo.Report.ReportObjects; +namespace DiakonieMoenchengladbach +{ + partial class ServiceInvoiceReport + { + /// + /// 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); + } + + + /// + /// 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(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ServiceInvoiceReport)); + this.Detail = new DevExpress.XtraReports.UI.DetailBand(); + this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand(); + this.lblAdresse = new DevExpress.XtraReports.UI.XRLabel(); + this.RecipientPostCodeAndTown = new DevExpress.XtraReports.UI.XRLabel(); + this.ruleRateFactorNull = new DevExpress.XtraReports.UI.FormattingRule(); + this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand(); + this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand(); + this.Page1 = new DevExpress.XtraReports.UI.GroupHeaderBand(); + this.xrLabel6 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); + this.tableHeader = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow23 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell37 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell35 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell33 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell36 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell38 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell34 = new DevExpress.XtraReports.UI.XRTableCell(); + this.lblNettoStunden = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel16 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel(); + this.lblAktenzeichen = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); + this.lblAbrechnungTitel = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); + this.lbl2 = new DevExpress.XtraReports.UI.XRLabel(); + this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand(); + this.Detail1 = new DevExpress.XtraReports.UI.DetailBand(); + this.DetailReport1 = new DevExpress.XtraReports.UI.DetailReportBand(); + this.Detail2 = new DevExpress.XtraReports.UI.DetailBand(); + this.xrTable6 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow25 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell42 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell43 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell44 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell45 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell46 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell47 = new DevExpress.XtraReports.UI.XRTableCell(); + this.ReportFooter = new DevExpress.XtraReports.UI.ReportFooterBand(); + this.lblAbrechnungstext = new DevExpress.XtraReports.UI.XRLabel(); + this.lblAbrechnungstext2 = new DevExpress.XtraReports.UI.XRLabel(); + this.lblAbrechnungstext3 = new DevExpress.XtraReports.UI.XRLabel(); + this.lblBemerkung = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel10 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrRichText1 = new DevExpress.XtraReports.UI.XRRichText(); + this.xrRichText2 = new DevExpress.XtraReports.UI.XRRichText(); + this.xrRichText3 = new DevExpress.XtraReports.UI.XRRichText(); + this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); + this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel11 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel9 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel12 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrRichText4 = new DevExpress.XtraReports.UI.XRRichText(); + this.xrRichText5 = new DevExpress.XtraReports.UI.XRRichText(); + this.xrRichText6 = new DevExpress.XtraReports.UI.XRRichText(); + ((System.ComponentModel.ISupportInitialize)(this.tableHeader)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); + // + // Detail + // + this.Detail.HeightF = 0F; + this.Detail.Name = "Detail"; + this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // ReportHeader + // + this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrRichText3, + this.xrRichText2, + this.lblAdresse, + this.RecipientPostCodeAndTown}); + this.ReportHeader.Font = new DevExpress.Drawing.DXFont("Verdana", 10F); + this.ReportHeader.HeightF = 144.8542F; + this.ReportHeader.Name = "ReportHeader"; + this.ReportHeader.StylePriority.UseFont = false; + // + // lblAdresse + // + this.lblAdresse.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.lblAdresse.LocationFloat = new DevExpress.Utils.PointFloat(0F, 49.47917F); + this.lblAdresse.Multiline = true; + this.lblAdresse.Name = "lblAdresse"; + this.lblAdresse.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblAdresse.SizeF = new System.Drawing.SizeF(317F, 66.95836F); + this.lblAdresse.StylePriority.UseFont = false; + this.lblAdresse.Text = "8[RecipientOrganisation]\r\n8[RecipientDivision]\r\n8[RecipientStreet]"; + // + // RecipientPostCodeAndTown + // + this.RecipientPostCodeAndTown.CanShrink = true; + this.RecipientPostCodeAndTown.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.RecipientPostCodeAndTown.LocationFloat = new DevExpress.Utils.PointFloat(6.357829E-05F, 127.8542F); + this.RecipientPostCodeAndTown.Name = "RecipientPostCodeAndTown"; + this.RecipientPostCodeAndTown.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.RecipientPostCodeAndTown.ProcessNullValues = DevExpress.XtraReports.UI.ValueSuppressType.SuppressAndShrink; + this.RecipientPostCodeAndTown.SizeF = new System.Drawing.SizeF(292F, 17F); + this.RecipientPostCodeAndTown.StylePriority.UseFont = false; + this.RecipientPostCodeAndTown.Text = "7[RecipientPostCodeAndTown]"; + // + // ruleRateFactorNull + // + this.ruleRateFactorNull.Condition = "[RateFactorText2] == ?"; + this.ruleRateFactorNull.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.ruleRateFactorNull.Name = "ruleRateFactorNull"; + // + // topMarginBand1 + // + this.topMarginBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrRichText1}); + this.topMarginBand1.HeightF = 171.375F; + this.topMarginBand1.Name = "topMarginBand1"; + // + // bottomMarginBand1 + // + this.bottomMarginBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrRichText6, + this.xrRichText5, + this.xrRichText4}); + this.bottomMarginBand1.HeightF = 109.0417F; + this.bottomMarginBand1.Name = "bottomMarginBand1"; + // + // Page1 + // + this.Page1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel9, + this.xrLabel7, + this.xrLabel14, + this.xrLabel11, + this.xrLabel13, + this.xrLabel5, + this.xrLabel6, + this.xrLabel1, + this.tableHeader, + this.lblNettoStunden, + this.xrLabel16, + this.xrLabel15, + this.lblAktenzeichen, + this.xrLabel2, + this.lblAbrechnungTitel, + this.xrLabel4, + this.xrLabel3, + this.lbl2}); + this.Page1.HeightF = 369.5F; + this.Page1.Name = "Page1"; + this.Page1.StylePriority.UseFont = false; + // + // xrLabel6 + // + this.xrLabel6.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "InvoiceNumber")}); + this.xrLabel6.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.xrLabel6.LocationFloat = new DevExpress.Utils.PointFloat(473.4583F, 50.3334F); + this.xrLabel6.Multiline = true; + this.xrLabel6.Name = "xrLabel6"; + this.xrLabel6.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel6.SizeF = new System.Drawing.SizeF(240F, 16F); + this.xrLabel6.StylePriority.UseFont = false; + this.xrLabel6.TextFormatString = "Rechnungsnr.: {0}"; + // + // xrLabel1 + // + this.xrLabel1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "BusinessPartnerId")}); + this.xrLabel1.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(473.4583F, 66.33339F); + 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(240F, 16F); + this.xrLabel1.StylePriority.UseFont = false; + this.xrLabel1.Text = "xrLabel1"; + this.xrLabel1.TextFormatString = "GP-Nr.: {0}"; + // + // tableHeader + // + this.tableHeader.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.tableHeader.LocationFloat = new DevExpress.Utils.PointFloat(69.16669F, 344.5F); + this.tableHeader.Name = "tableHeader"; + this.tableHeader.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow23}); + this.tableHeader.SizeF = new System.Drawing.SizeF(580.8333F, 25F); + this.tableHeader.StylePriority.UseFont = false; + this.tableHeader.Visible = false; + // + // xrTableRow23 + // + this.xrTableRow23.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell37, + this.xrTableCell35, + this.xrTableCell33, + this.xrTableCell36, + this.xrTableCell38, + this.xrTableCell34}); + this.xrTableRow23.Name = "xrTableRow23"; + this.xrTableRow23.Weight = 1D; + // + // xrTableCell37 + // + this.xrTableCell37.BackColor = System.Drawing.Color.Gainsboro; + this.xrTableCell37.BorderColor = System.Drawing.Color.DarkGray; + this.xrTableCell37.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell37.Name = "xrTableCell37"; + this.xrTableCell37.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell37.StylePriority.UseBackColor = false; + this.xrTableCell37.StylePriority.UseBorderColor = false; + this.xrTableCell37.StylePriority.UseBorders = false; + this.xrTableCell37.StylePriority.UsePadding = false; + this.xrTableCell37.StylePriority.UseTextAlignment = false; + this.xrTableCell37.Text = "Leistung"; + this.xrTableCell37.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell37.Weight = 1.0492984987080445D; + // + // xrTableCell35 + // + this.xrTableCell35.BackColor = System.Drawing.Color.Gainsboro; + this.xrTableCell35.BorderColor = System.Drawing.Color.DarkGray; + this.xrTableCell35.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell35.Name = "xrTableCell35"; + this.xrTableCell35.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell35.StylePriority.UseBackColor = false; + this.xrTableCell35.StylePriority.UseBorderColor = false; + this.xrTableCell35.StylePriority.UseBorders = false; + this.xrTableCell35.StylePriority.UsePadding = false; + this.xrTableCell35.StylePriority.UseTextAlignment = false; + this.xrTableCell35.Text = "Satz"; + this.xrTableCell35.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell35.Weight = 0.23245943032832414D; + // + // xrTableCell33 + // + this.xrTableCell33.BackColor = System.Drawing.Color.Gainsboro; + this.xrTableCell33.BorderColor = System.Drawing.Color.DarkGray; + this.xrTableCell33.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell33.Name = "xrTableCell33"; + this.xrTableCell33.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell33.StylePriority.UseBackColor = false; + this.xrTableCell33.StylePriority.UseBorderColor = false; + this.xrTableCell33.StylePriority.UseBorders = false; + this.xrTableCell33.StylePriority.UsePadding = false; + this.xrTableCell33.StylePriority.UseTextAlignment = false; + this.xrTableCell33.Text = "Stunden"; + this.xrTableCell33.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell33.Weight = 0.2893277257020575D; + // + // xrTableCell36 + // + this.xrTableCell36.BackColor = System.Drawing.Color.Gainsboro; + this.xrTableCell36.BorderColor = System.Drawing.Color.DarkGray; + this.xrTableCell36.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell36.Name = "xrTableCell36"; + this.xrTableCell36.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell36.StylePriority.UseBackColor = false; + this.xrTableCell36.StylePriority.UseBorderColor = false; + this.xrTableCell36.StylePriority.UseBorders = false; + this.xrTableCell36.StylePriority.UsePadding = false; + this.xrTableCell36.StylePriority.UseTextAlignment = false; + this.xrTableCell36.Text = "Betrag"; + this.xrTableCell36.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell36.Weight = 0.26310971709438763D; + // + // xrTableCell38 + // + this.xrTableCell38.BackColor = System.Drawing.Color.Gainsboro; + this.xrTableCell38.BorderColor = System.Drawing.Color.DarkGray; + this.xrTableCell38.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell38.Name = "xrTableCell38"; + this.xrTableCell38.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell38.StylePriority.UseBackColor = false; + this.xrTableCell38.StylePriority.UseBorderColor = false; + this.xrTableCell38.StylePriority.UseBorders = false; + this.xrTableCell38.StylePriority.UsePadding = false; + this.xrTableCell38.StylePriority.UseTextAlignment = false; + this.xrTableCell38.Text = "pausch Fakt."; + this.xrTableCell38.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell38.Weight = 0.42042083402151886D; + // + // xrTableCell34 + // + this.xrTableCell34.BackColor = System.Drawing.Color.Gainsboro; + this.xrTableCell34.BorderColor = System.Drawing.Color.DarkGray; + this.xrTableCell34.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell34.Name = "xrTableCell34"; + this.xrTableCell34.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell34.StylePriority.UseBackColor = false; + this.xrTableCell34.StylePriority.UseBorderColor = false; + this.xrTableCell34.StylePriority.UseBorders = false; + this.xrTableCell34.StylePriority.UsePadding = false; + this.xrTableCell34.StylePriority.UseTextAlignment = false; + this.xrTableCell34.Text = "Gesamt"; + this.xrTableCell34.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell34.Weight = 0.31923915575667006D; + // + // lblNettoStunden + // + this.lblNettoStunden.Font = new DevExpress.Drawing.DXFont("arial", 11F, DevExpress.Drawing.DXFontStyle.Bold); + this.lblNettoStunden.LocationFloat = new DevExpress.Utils.PointFloat(480.9161F, 295F); + this.lblNettoStunden.Name = "lblNettoStunden"; + this.lblNettoStunden.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblNettoStunden.SizeF = new System.Drawing.SizeF(106.6244F, 17F); + this.lblNettoStunden.StylePriority.UseFont = false; + // + // xrLabel16 + // + this.xrLabel16.BackColor = System.Drawing.Color.Transparent; + this.xrLabel16.CanShrink = true; + this.xrLabel16.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.xrLabel16.LocationFloat = new DevExpress.Utils.PointFloat(50F, 193F); + this.xrLabel16.Name = "xrLabel16"; + this.xrLabel16.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel16.SizeF = new System.Drawing.SizeF(354.5408F, 16F); + this.xrLabel16.StylePriority.UseBackColor = false; + this.xrLabel16.StylePriority.UseFont = false; + this.xrLabel16.Text = "Name, Vorname, Geb.Datum"; + this.xrLabel16.WordWrap = false; + // + // xrLabel15 + // + this.xrLabel15.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(404.5408F, 295F); + this.xrLabel15.Name = "xrLabel15"; + this.xrLabel15.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel15.SizeF = new System.Drawing.SizeF(76.37531F, 17F); + this.xrLabel15.StylePriority.UseFont = false; + this.xrLabel15.Text = "wurden"; + // + // lblAktenzeichen + // + this.lblAktenzeichen.BackColor = System.Drawing.Color.Transparent; + this.lblAktenzeichen.CanShrink = true; + this.lblAktenzeichen.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.lblAktenzeichen.LocationFloat = new DevExpress.Utils.PointFloat(50F, 235F); + this.lblAktenzeichen.Name = "lblAktenzeichen"; + this.lblAktenzeichen.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblAktenzeichen.SizeF = new System.Drawing.SizeF(370.8333F, 16F); + this.lblAktenzeichen.StylePriority.UseBackColor = false; + this.lblAktenzeichen.StylePriority.UseFont = false; + this.lblAktenzeichen.Text = "Aktenzeichen des Landschaftsverbandes Rheinland"; + this.lblAktenzeichen.WordWrap = false; + // + // xrLabel2 + // + this.xrLabel2.BackColor = System.Drawing.Color.Transparent; + this.xrLabel2.CanShrink = true; + this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 175F); + this.xrLabel2.Name = "xrLabel2"; + this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel2.SizeF = new System.Drawing.SizeF(50F, 16F); + this.xrLabel2.StylePriority.UseBackColor = false; + this.xrLabel2.StylePriority.UseFont = false; + this.xrLabel2.Text = "Für: "; + this.xrLabel2.WordWrap = false; + // + // lblAbrechnungTitel + // + this.lblAbrechnungTitel.BackColor = System.Drawing.Color.Transparent; + this.lblAbrechnungTitel.CanShrink = true; + this.lblAbrechnungTitel.Font = new DevExpress.Drawing.DXFont("arial", 11F, DevExpress.Drawing.DXFontStyle.Bold); + this.lblAbrechnungTitel.LocationFloat = new DevExpress.Utils.PointFloat(0F, 137.2917F); + this.lblAbrechnungTitel.Name = "lblAbrechnungTitel"; + this.lblAbrechnungTitel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblAbrechnungTitel.SizeF = new System.Drawing.SizeF(650F, 16F); + this.lblAbrechnungTitel.StylePriority.UseBackColor = false; + this.lblAbrechnungTitel.StylePriority.UseFont = false; + this.lblAbrechnungTitel.Text = "Abrechnung über Dienstleistungsstunden im Betreuten Wohnen nach § 67 SGB XII"; + this.lblAbrechnungTitel.WordWrap = false; + // + // xrLabel4 + // + this.xrLabel4.BackColor = System.Drawing.Color.Transparent; + this.xrLabel4.CanShrink = true; + this.xrLabel4.Font = new DevExpress.Drawing.DXFont("arial", 14F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(50F, 218F); + 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(269.7935F, 17F); + this.xrLabel4.StylePriority.UseBackColor = false; + this.xrLabel4.StylePriority.UseFont = false; + this.xrLabel4.Text = "[CustomerReferenceNumber]"; + this.xrLabel4.WordWrap = false; + // + // xrLabel3 + // + this.xrLabel3.BackColor = System.Drawing.Color.Transparent; + this.xrLabel3.CanShrink = true; + this.xrLabel3.Font = new DevExpress.Drawing.DXFont("arial", 11F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(50F, 175F); + this.xrLabel3.Name = "xrLabel3"; + this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel3.SizeF = new System.Drawing.SizeF(560.4169F, 16F); + this.xrLabel3.StylePriority.UseBackColor = false; + this.xrLabel3.StylePriority.UseFont = false; + this.xrLabel3.Text = "[CustomerLastName], [CustomerFirstName] * [CustomerBirthdate!dd.MM.yyyy]"; + this.xrLabel3.WordWrap = false; + // + // lbl2 + // + this.lbl2.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.lbl2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 315F); + this.lbl2.Multiline = true; + this.lbl2.Name = "lbl2"; + this.lbl2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lbl2.SizeF = new System.Drawing.SizeF(686.9998F, 29.50003F); + this.lbl2.StylePriority.UseFont = false; + this.lbl2.Text = "Dienstleistungsstunden als unmittelbare Betreuungsleistungen des Betreuten Wohnen" + + "s erbracht."; + // + // DetailReport + // + this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail1, + this.DetailReport1}); + this.DetailReport.DataMember = "ServiceInvoicePeriods"; + this.DetailReport.DataSource = this.bindingSource1; + this.DetailReport.Level = 0; + this.DetailReport.Name = "DetailReport"; + // + // Detail1 + // + this.Detail1.HeightF = 0F; + this.Detail1.Name = "Detail1"; + // + // DetailReport1 + // + this.DetailReport1.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail2}); + this.DetailReport1.DataMember = "ServiceInvoicePeriods.ServiceInvoiceItems"; + this.DetailReport1.DataSource = this.bindingSource1; + this.DetailReport1.Level = 0; + this.DetailReport1.Name = "DetailReport1"; + // + // Detail2 + // + this.Detail2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable6}); + this.Detail2.HeightF = 25F; + this.Detail2.Name = "Detail2"; + this.Detail2.Visible = false; + // + // xrTable6 + // + this.xrTable6.Font = new DevExpress.Drawing.DXFont("Verdana", 8.25F, DevExpress.Drawing.DXFontStyle.Regular, DevExpress.Drawing.DXGraphicsUnit.Point, new DevExpress.Drawing.DXFontAdditionalProperty[] { + new DevExpress.Drawing.DXFontAdditionalProperty("GdiCharSet", ((byte)(0)))}); + this.xrTable6.LocationFloat = new DevExpress.Utils.PointFloat(69.16663F, 0F); + this.xrTable6.Name = "xrTable6"; + this.xrTable6.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow25}); + this.xrTable6.SizeF = new System.Drawing.SizeF(580.8334F, 25F); + this.xrTable6.StylePriority.UseFont = false; + // + // xrTableRow25 + // + this.xrTableRow25.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell42, + this.xrTableCell43, + this.xrTableCell44, + this.xrTableCell45, + this.xrTableCell46, + this.xrTableCell47}); + this.xrTableRow25.Name = "xrTableRow25"; + this.xrTableRow25.Weight = 1D; + // + // xrTableCell42 + // + this.xrTableCell42.BorderColor = System.Drawing.Color.DarkGray; + this.xrTableCell42.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell42.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.ServiceDescription")}); + this.xrTableCell42.Name = "xrTableCell42"; + this.xrTableCell42.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell42.StylePriority.UseBorderColor = false; + this.xrTableCell42.StylePriority.UseBorders = false; + this.xrTableCell42.StylePriority.UsePadding = false; + this.xrTableCell42.StylePriority.UseTextAlignment = false; + this.xrTableCell42.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell42.Weight = 1.0492986282909975D; + // + // xrTableCell43 + // + this.xrTableCell43.BorderColor = System.Drawing.Color.DarkGray; + this.xrTableCell43.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell43.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.HourlyRate", "{0:0.00}")}); + this.xrTableCell43.Name = "xrTableCell43"; + this.xrTableCell43.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell43.StylePriority.UseBorderColor = false; + this.xrTableCell43.StylePriority.UseBorders = false; + this.xrTableCell43.StylePriority.UsePadding = false; + this.xrTableCell43.StylePriority.UseTextAlignment = false; + this.xrTableCell43.Text = "xrTableCell43"; + this.xrTableCell43.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell43.Weight = 0.23245943032832414D; + // + // xrTableCell44 + // + this.xrTableCell44.BorderColor = System.Drawing.Color.DarkGray; + 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, "ServiceInvoicePeriods.ServiceInvoiceItems.Hours", "{0:0.##}")}); + this.xrTableCell44.Name = "xrTableCell44"; + this.xrTableCell44.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell44.StylePriority.UseBorderColor = false; + this.xrTableCell44.StylePriority.UseBorders = false; + this.xrTableCell44.StylePriority.UsePadding = false; + this.xrTableCell44.StylePriority.UseTextAlignment = false; + this.xrTableCell44.Text = "xrTableCell44"; + this.xrTableCell44.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell44.Weight = 0.2893277257020575D; + // + // xrTableCell45 + // + this.xrTableCell45.BorderColor = System.Drawing.Color.DarkGray; + this.xrTableCell45.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell45.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.NetAmount", "{0:0.00}")}); + this.xrTableCell45.Name = "xrTableCell45"; + this.xrTableCell45.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell45.StylePriority.UseBorderColor = false; + this.xrTableCell45.StylePriority.UseBorders = false; + this.xrTableCell45.StylePriority.UsePadding = false; + this.xrTableCell45.StylePriority.UseTextAlignment = false; + this.xrTableCell45.Text = "xrTableCell45"; + this.xrTableCell45.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell45.Weight = 0.26310971709438763D; + // + // xrTableCell46 + // + this.xrTableCell46.BorderColor = System.Drawing.Color.DarkGray; + this.xrTableCell46.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell46.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.RateFactor")}); + this.xrTableCell46.Name = "xrTableCell46"; + this.xrTableCell46.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell46.StylePriority.UseBorderColor = false; + this.xrTableCell46.StylePriority.UseBorders = false; + this.xrTableCell46.StylePriority.UsePadding = false; + this.xrTableCell46.StylePriority.UseTextAlignment = false; + this.xrTableCell46.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell46.Weight = 0.42042083402151886D; + // + // xrTableCell47 + // + this.xrTableCell47.BorderColor = System.Drawing.Color.DarkGray; + this.xrTableCell47.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell47.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.GrossAmount")}); + this.xrTableCell47.Name = "xrTableCell47"; + this.xrTableCell47.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell47.StylePriority.UseBorderColor = false; + this.xrTableCell47.StylePriority.UseBorders = false; + this.xrTableCell47.StylePriority.UsePadding = false; + this.xrTableCell47.StylePriority.UseTextAlignment = false; + this.xrTableCell47.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell47.Weight = 0.31923915575667006D; + // + // ReportFooter + // + this.ReportFooter.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel12, + this.xrLabel8, + this.lblAbrechnungstext, + this.lblAbrechnungstext2, + this.lblAbrechnungstext3, + this.lblBemerkung, + this.xrLabel10}); + this.ReportFooter.HeightF = 336.3924F; + this.ReportFooter.Name = "ReportFooter"; + // + // lblAbrechnungstext + // + this.lblAbrechnungstext.LocationFloat = new DevExpress.Utils.PointFloat(0F, 10.00001F); + this.lblAbrechnungstext.Multiline = true; + this.lblAbrechnungstext.Name = "lblAbrechnungstext"; + this.lblAbrechnungstext.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblAbrechnungstext.SizeF = new System.Drawing.SizeF(499.9168F, 25F); + this.lblAbrechnungstext.StylePriority.UseFont = false; + this.lblAbrechnungstext.Text = "Hieraus ergibt sich eine Forderung von xxx Std. x xx,xx €"; + // + // lblAbrechnungstext2 + // + this.lblAbrechnungstext2.Font = new DevExpress.Drawing.DXFont("Verdana", 10F, DevExpress.Drawing.DXFontStyle.Bold); + this.lblAbrechnungstext2.LocationFloat = new DevExpress.Utils.PointFloat(499.9168F, 10.00001F); + this.lblAbrechnungstext2.Multiline = true; + this.lblAbrechnungstext2.Name = "lblAbrechnungstext2"; + this.lblAbrechnungstext2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblAbrechnungstext2.SizeF = new System.Drawing.SizeF(40.70889F, 25F); + this.lblAbrechnungstext2.StylePriority.UseFont = false; + this.lblAbrechnungstext2.StylePriority.UseTextAlignment = false; + this.lblAbrechnungstext2.Text = "="; + this.lblAbrechnungstext2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + // + // lblAbrechnungstext3 + // + this.lblAbrechnungstext3.BorderDashStyle = DevExpress.XtraPrinting.BorderDashStyle.Double; + this.lblAbrechnungstext3.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; + this.lblAbrechnungstext3.BorderWidth = 7F; + this.lblAbrechnungstext3.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "NetClaim")}); + this.lblAbrechnungstext3.Font = new DevExpress.Drawing.DXFont("Verdana", 10F, DevExpress.Drawing.DXFontStyle.Bold); + this.lblAbrechnungstext3.LocationFloat = new DevExpress.Utils.PointFloat(540.6257F, 10.00001F); + this.lblAbrechnungstext3.Multiline = true; + this.lblAbrechnungstext3.Name = "lblAbrechnungstext3"; + this.lblAbrechnungstext3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblAbrechnungstext3.SizeF = new System.Drawing.SizeF(119.7906F, 25F); + this.lblAbrechnungstext3.StylePriority.UseBorderDashStyle = false; + this.lblAbrechnungstext3.StylePriority.UseBorders = false; + this.lblAbrechnungstext3.StylePriority.UseBorderWidth = false; + this.lblAbrechnungstext3.StylePriority.UseFont = false; + this.lblAbrechnungstext3.StylePriority.UseTextAlignment = false; + this.lblAbrechnungstext3.Text = "644,40 EUR"; + this.lblAbrechnungstext3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + // + // lblBemerkung + // + this.lblBemerkung.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.lblBemerkung.LocationFloat = new DevExpress.Utils.PointFloat(6.357829E-05F, 54.79164F); + this.lblBemerkung.Multiline = true; + this.lblBemerkung.Name = "lblBemerkung"; + this.lblBemerkung.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblBemerkung.SizeF = new System.Drawing.SizeF(676.9999F, 120.1249F); + this.lblBemerkung.StylePriority.UseFont = false; + this.lblBemerkung.StylePriority.UseTextAlignment = false; + this.lblBemerkung.Text = resources.GetString("lblBemerkung.Text"); + this.lblBemerkung.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopJustify; + // + // xrLabel10 + // + this.xrLabel10.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.xrLabel10.LocationFloat = new DevExpress.Utils.PointFloat(0F, 304.8091F); + this.xrLabel10.Multiline = true; + this.xrLabel10.Name = "xrLabel10"; + this.xrLabel10.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel10.SizeF = new System.Drawing.SizeF(676.9999F, 31.58331F); + this.xrLabel10.StylePriority.UseFont = false; + this.xrLabel10.Text = "Unterschrift und Stempel des Anbieters"; + // + // xrRichText1 + // + this.xrRichText1.Font = new DevExpress.Drawing.DXFont("Verdana", 10F); + this.xrRichText1.LocationFloat = new DevExpress.Utils.PointFloat(473.4583F, 28.75001F); + this.xrRichText1.Name = "xrRichText1"; + this.xrRichText1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrRichText1.SerializableRtfString = resources.GetString("xrRichText1.SerializableRtfString"); + this.xrRichText1.SizeF = new System.Drawing.SizeF(240F, 120F); + // + // xrRichText2 + // + this.xrRichText2.Font = new DevExpress.Drawing.DXFont("Verdana", 10F); + this.xrRichText2.LocationFloat = new DevExpress.Utils.PointFloat(6.357829E-05F, 26.47912F); + this.xrRichText2.Name = "xrRichText2"; + this.xrRichText2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrRichText2.SerializableRtfString = resources.GetString("xrRichText2.SerializableRtfString"); + this.xrRichText2.SizeF = new System.Drawing.SizeF(358.4166F, 23F); + // + // xrRichText3 + // + this.xrRichText3.Font = new DevExpress.Drawing.DXFont("Verdana", 10F); + this.xrRichText3.LocationFloat = new DevExpress.Utils.PointFloat(473.4583F, 26.47915F); + this.xrRichText3.Name = "xrRichText3"; + this.xrRichText3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrRichText3.SerializableRtfString = resources.GetString("xrRichText3.SerializableRtfString"); + this.xrRichText3.SizeF = new System.Drawing.SizeF(240F, 109.0417F); + // + // bindingSource1 + // + this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServiceInvoiceRO); + // + // xrLabel14 + // + this.xrLabel14.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "AccountingPeriodEnd", "{0:dd.MM.yyyy}")}); + this.xrLabel14.Font = new DevExpress.Drawing.DXFont("arial", 11F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(297.9164F, 294.9999F); + this.xrLabel14.Name = "xrLabel14"; + this.xrLabel14.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel14.SizeF = new System.Drawing.SizeF(106.6244F, 17F); + this.xrLabel14.StylePriority.UseFont = false; + // + // xrLabel11 + // + this.xrLabel11.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "AccountingPeriodStart", "{0:dd.MM.yyyy}")}); + this.xrLabel11.Font = new DevExpress.Drawing.DXFont("arial", 11F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(140.9584F, 294.9999F); + this.xrLabel11.Name = "xrLabel11"; + this.xrLabel11.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel11.SizeF = new System.Drawing.SizeF(106.6244F, 17F); + this.xrLabel11.StylePriority.UseFont = false; + // + // xrLabel13 + // + this.xrLabel13.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(247.5827F, 294.9999F); + this.xrLabel13.Name = "xrLabel13"; + this.xrLabel13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel13.SizeF = new System.Drawing.SizeF(50.33365F, 17F); + this.xrLabel13.StylePriority.UseFont = false; + this.xrLabel13.Text = "bis"; + // + // xrLabel5 + // + this.xrLabel5.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(0F, 295F); + this.xrLabel5.Name = "xrLabel5"; + this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel5.SizeF = new System.Drawing.SizeF(140.9584F, 17F); + this.xrLabel5.StylePriority.UseFont = false; + this.xrLabel5.Text = "Im Zeitraum vom"; + // + // xrLabel7 + // + this.xrLabel7.BackColor = System.Drawing.Color.Transparent; + this.xrLabel7.CanShrink = true; + this.xrLabel7.Font = new DevExpress.Drawing.DXFont("arial", 11F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(0F, 153.2916F); + this.xrLabel7.Name = "xrLabel7"; + this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel7.SizeF = new System.Drawing.SizeF(650F, 16F); + this.xrLabel7.StylePriority.UseBackColor = false; + this.xrLabel7.StylePriority.UseFont = false; + this.xrLabel7.Text = "Zeitraum: [ServiceInvoicePeriods.CostBearer2SupportConcept.StartDate!dd.MM.yyyy] " + + " - [ServiceInvoicePeriods.CostBearer2SupportConcept.EndDate]"; + this.xrLabel7.WordWrap = false; + // + // xrLabel9 + // + this.xrLabel9.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "InvoiceDate")}); + this.xrLabel9.Font = new DevExpress.Drawing.DXFont("arial", 11F); + this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(473.4582F, 34.33342F); + this.xrLabel9.Multiline = true; + this.xrLabel9.Name = "xrLabel9"; + this.xrLabel9.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel9.SizeF = new System.Drawing.SizeF(240F, 16F); + this.xrLabel9.StylePriority.UseFont = false; + this.xrLabel9.TextFormatString = "Rechnungsdatum: {0}"; + // + // xrLabel8 + // + this.xrLabel8.BackColor = System.Drawing.Color.Transparent; + this.xrLabel8.CanShrink = true; + this.xrLabel8.Font = new DevExpress.Drawing.DXFont("arial", 12F); + this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(0F, 231.8751F); + this.xrLabel8.Name = "xrLabel8"; + this.xrLabel8.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel8.SizeF = new System.Drawing.SizeF(140.9584F, 16F); + this.xrLabel8.StylePriority.UseBackColor = false; + this.xrLabel8.StylePriority.UseFont = false; + this.xrLabel8.Text = "i.V. B.Bloschak"; + this.xrLabel8.WordWrap = false; + // + // xrLabel12 + // + this.xrLabel12.BackColor = System.Drawing.Color.Transparent; + this.xrLabel12.CanShrink = true; + this.xrLabel12.Font = new DevExpress.Drawing.DXFont("arial", 8F); + this.xrLabel12.LocationFloat = new DevExpress.Utils.PointFloat(0F, 247.8751F); + this.xrLabel12.Name = "xrLabel12"; + this.xrLabel12.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel12.SizeF = new System.Drawing.SizeF(140.9584F, 16F); + this.xrLabel12.StylePriority.UseBackColor = false; + this.xrLabel12.StylePriority.UseFont = false; + this.xrLabel12.Text = "Fachbereichstleitung"; + this.xrLabel12.WordWrap = false; + // + // xrRichText4 + // + this.xrRichText4.Font = new DevExpress.Drawing.DXFont("Verdana", 10F); + this.xrRichText4.LocationFloat = new DevExpress.Utils.PointFloat(23.95833F, 24.37502F); + this.xrRichText4.Name = "xrRichText4"; + this.xrRichText4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrRichText4.SerializableRtfString = resources.GetString("xrRichText4.SerializableRtfString"); + this.xrRichText4.SizeF = new System.Drawing.SizeF(235.8334F, 74.66673F); + // + // xrRichText5 + // + this.xrRichText5.Font = new DevExpress.Drawing.DXFont("Verdana", 10F); + this.xrRichText5.LocationFloat = new DevExpress.Utils.PointFloat(259.7917F, 24.37502F); + this.xrRichText5.Name = "xrRichText5"; + this.xrRichText5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrRichText5.SerializableRtfString = resources.GetString("xrRichText5.SerializableRtfString"); + this.xrRichText5.SizeF = new System.Drawing.SizeF(240.1251F, 74.66673F); + // + // xrRichText6 + // + this.xrRichText6.Font = new DevExpress.Drawing.DXFont("Verdana", 10F); + this.xrRichText6.LocationFloat = new DevExpress.Utils.PointFloat(500.9583F, 24.37496F); + this.xrRichText6.Name = "xrRichText6"; + this.xrRichText6.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrRichText6.SerializableRtfString = resources.GetString("xrRichText6.SerializableRtfString"); + this.xrRichText6.SizeF = new System.Drawing.SizeF(202.5F, 74.66673F); + // + // ServiceInvoiceReport + // + this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail, + this.ReportHeader, + this.topMarginBand1, + this.bottomMarginBand1, + this.Page1, + this.DetailReport, + this.ReportFooter}); + this.ComponentStorage.AddRange(new System.ComponentModel.IComponent[] { + this.bindingSource1}); + this.DataSource = this.bindingSource1; + this.ExportOptions.PrintPreview.DefaultFileName = "Spitzabrechnung"; + this.Font = new DevExpress.Drawing.DXFont("Verdana", 10F); + this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] { + this.ruleRateFactorNull}); + this.Margins = new DevExpress.Drawing.DXMargins(93.54166F, 20F, 171.375F, 109.0417F); + this.PageHeight = 1169; + this.PageWidth = 827; + this.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.A4; + this.Version = "23.2"; + ((System.ComponentModel.ISupportInitialize)(this.tableHeader)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); + + } + + + private DevExpress.XtraReports.UI.DetailBand Detail; + private System.Windows.Forms.BindingSource bindingSource1; + private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader; + private DevExpress.XtraReports.UI.FormattingRule ruleRateFactorNull; + private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1; + private DevExpress.XtraReports.UI.BottomMarginBand bottomMarginBand1; + private DevExpress.XtraReports.UI.GroupHeaderBand Page1; + private DevExpress.XtraReports.UI.XRLabel xrLabel4; + private DevExpress.XtraReports.UI.XRLabel xrLabel3; + private DevExpress.XtraReports.UI.XRLabel lbl2; + private DevExpress.XtraReports.UI.XRLabel RecipientPostCodeAndTown; + private DevExpress.XtraReports.UI.XRLabel xrLabel15; + private DevExpress.XtraReports.UI.XRLabel lblAktenzeichen; + private DevExpress.XtraReports.UI.XRLabel xrLabel2; + private DevExpress.XtraReports.UI.XRLabel lblAbrechnungTitel; + private DevExpress.XtraReports.UI.XRLabel lblNettoStunden; + private DevExpress.XtraReports.UI.XRLabel xrLabel16; + private DevExpress.XtraReports.UI.XRLabel lblAdresse; + private DevExpress.XtraReports.UI.DetailReportBand DetailReport; + private DevExpress.XtraReports.UI.DetailBand Detail1; + private DevExpress.XtraReports.UI.DetailReportBand DetailReport1; + private DevExpress.XtraReports.UI.DetailBand Detail2; + private DevExpress.XtraReports.UI.ReportFooterBand ReportFooter; + private DevExpress.XtraReports.UI.XRLabel lblBemerkung; + private DevExpress.XtraReports.UI.XRLabel xrLabel10; + private DevExpress.XtraReports.UI.XRTable tableHeader; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow23; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell37; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell35; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell33; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell36; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell38; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell34; + private DevExpress.XtraReports.UI.XRTable xrTable6; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow25; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell42; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell43; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell44; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell45; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell46; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell47; + private DevExpress.XtraReports.UI.XRLabel lblAbrechnungstext; + private DevExpress.XtraReports.UI.XRLabel lblAbrechnungstext2; + private DevExpress.XtraReports.UI.XRLabel lblAbrechnungstext3; + private DevExpress.XtraReports.UI.XRLabel xrLabel1; + private DevExpress.XtraReports.UI.XRLabel xrLabel6; + private DevExpress.XtraReports.UI.XRRichText xrRichText3; + private DevExpress.XtraReports.UI.XRRichText xrRichText2; + private DevExpress.XtraReports.UI.XRRichText xrRichText1; + private DevExpress.XtraReports.UI.XRLabel xrLabel9; + private DevExpress.XtraReports.UI.XRLabel xrLabel7; + private DevExpress.XtraReports.UI.XRLabel xrLabel14; + private DevExpress.XtraReports.UI.XRLabel xrLabel11; + private DevExpress.XtraReports.UI.XRLabel xrLabel13; + private DevExpress.XtraReports.UI.XRLabel xrLabel5; + private DevExpress.XtraReports.UI.XRLabel xrLabel12; + private DevExpress.XtraReports.UI.XRLabel xrLabel8; + private DevExpress.XtraReports.UI.XRRichText xrRichText6; + private DevExpress.XtraReports.UI.XRRichText xrRichText5; + private DevExpress.XtraReports.UI.XRRichText xrRichText4; + } +} diff --git a/ReportImp/DiakonieMoenchengladbach/Reporting/ServiceInvoiceReport.cs b/ReportImp/DiakonieMoenchengladbach/Reporting/ServiceInvoiceReport.cs new file mode 100644 index 000000000..47926682c --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Reporting/ServiceInvoiceReport.cs @@ -0,0 +1,128 @@ +using System; +using System.Text; +using BeWo.Report; +using BeWo.Report.ReportObjects; + +using DevExpress.XtraReports.UI; + +namespace DiakonieMoenchengladbach +{ + public partial class ServiceInvoiceReport : XtraReport, IBeWoReport + { + public ServiceInvoiceReport() + { + this.InitializeComponent(); + } + + public void SetReportDataSource(ServiceInvoiceRO pRO) + { + //DateTime start = pRO.AccountingPeriodStart; + //DateTime end = pRO.AccountingPeriodEnd; + //if (start.Month == end.Month && start.Year == end.Year) + //{ + // lblMonat.Text = String.Format("Für den Monat {0:MMMM yyyy}", start); + //} + //else + //{ + // lblMonat.Text = String.Format("Für den Monat {0:MMMM yyyy} - {1:MMMM yyyy}", start, end); + //} + + + decimal hourlyRate = 0; + decimal rateFactor = 1; + decimal hours = 0; + int countII = 0; + if (pRO.ServiceInvoicePeriods != null && pRO.ServiceInvoicePeriods.Count > 0) + { + foreach (var p in pRO.ServiceInvoicePeriods) + { + if (p.ServiceInvoiceItems != null && p.ServiceInvoiceItems.Count > 0) + { + foreach (var i in p.ServiceInvoiceItems) + { + countII += 1; + if (i.HourlyRate.HasValue) + { + hourlyRate = i.HourlyRate.Value; + + if (!String.IsNullOrEmpty(i.RateFactor)) + { + var rfStr = i.RateFactor.Replace("%", "").Replace(",00", "").Trim(); + int rfInt = 0; + Int32.TryParse(rfStr, out rfInt); + + rateFactor = (100m + rfInt) / 100m; + } + } + + if (i.Hours.HasValue) + hours += i.Hours.Value; + if (i.ServiceDescription != "Fehlkontakt") + { + i.ServiceDescription = "Fachleistungsstunde"; + } + } + } + } + } + + + if (!String.IsNullOrEmpty(pRO.CustomerSalutation) && pRO.CustomerSalutation.ToLower() == "herr") + pRO.CustomerSalutation = "Herrn"; + hours = Math.Round(hours, 2, MidpointRounding.AwayFromZero); + lblNettoStunden.Text = String.Format("{0:0.00}", hours); + + if (countII < 2) + { + hours *= rateFactor; + lblAbrechnungstext.Text = String.Format("Hieraus ergibt sich eine Forderung von {0:0.00} Std. x {1:c}", hours, hourlyRate); + } + else + { + lblAbrechnungstext2.Visible = false; + lblAbrechnungstext.Text = String.Format("Hieraus ergibt sich eine Forderung von"); + tableHeader.Visible = true; + Detail2.Visible = true; + } + + + pRO.NetClaim = pRO.NetClaim.Replace("€", "EUR"); + + if (!String.IsNullOrWhiteSpace(pRO.RecipientOrganisation) && pRO.RecipientOrganisation.Contains("Selbstzahler")) + { + lblAktenzeichen.Visible = false; + } + + SetzeAdresse(pRO); + + this.bindingSource1.DataSource = pRO; + } + + private void SetzeAdresse(ServiceInvoiceRO pRO) + { + StringBuilder sb = new StringBuilder(); + if (!String.IsNullOrEmpty(pRO.RecipientOrganisation) && pRO.RecipientOrganisation.ToLower() != "selbstzahler") + { + sb.AppendLine(pRO.RecipientOrganisation); + } + //if (!String.IsNullOrEmpty(pRO.RecipientAddressLine1)) + //{ + // sb.AppendLine(pRO.RecipientAddressLine1); + //} + if (!String.IsNullOrEmpty(pRO.RecipientContactPerson) && pRO.RecipientOrganisation.ToLower() == "selbstzahler") + { + sb.AppendLine(); + sb.AppendLine(pRO.RecipientContactPerson); + } + if (!String.IsNullOrEmpty(pRO.RecipientDivision) && !String.IsNullOrEmpty(pRO.RecipientOrganisation) && pRO.RecipientOrganisation.ToLower() != "selbstzahler") + { + sb.AppendLine(pRO.RecipientDivision); + } + else if (!String.IsNullOrEmpty(pRO.RecipientStreet)) + { + sb.AppendLine(pRO.RecipientStreet); + } + lblAdresse.Text = sb.ToString(); + } + } +} \ No newline at end of file diff --git a/ReportImp/DiakonieMoenchengladbach/Reporting/ServiceInvoiceReport.resx b/ReportImp/DiakonieMoenchengladbach/Reporting/ServiceInvoiceReport.resx new file mode 100644 index 000000000..cca2add46 --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Reporting/ServiceInvoiceReport.resx @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + ewBcAHIAdABmADEAXABkAGUAZgBmADAAewBcAGYAbwBuAHQAdABiAGwAewBcAGYAMAAgAEMAYQBsAGkAYgByAGkAOwB9AHsAXABmADEAIABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBtAGEAbgA7AH0AewBcAGYAMgAgAEEAcgBpAGEAbAA7AH0AewBcAGYAMwAgAFYAZQByAGQAYQBuAGEAOwB9AH0AewBcAGMAbwBsAG8AcgB0AGIAbAAgADsAXAByAGUAZAAwAFwAZwByAGUAZQBuADAAXABiAGwAdQBlADAAIAA7AFwAcgBlAGQAMABcAGcAcgBlAGUAbgAwA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AZQBzAGMAaABcAHUAMgAyADgAXAAnAGUANABmAHQAcwBzAHQAZQBsAGwAZQA6AH0AewBcAGYAMgBcAGYAcwAxADMAXABjAGYAMAAgAFwAbABpAG4AZQAgAH0AewBcAGYAMgBcAGYAcwAxADMAXABjAGYAMAAgAEwAdQBkAHcAaQBnAC0AVwBlAGIAZQByAC0AUwB0AHIALgAgADEAMwAgADQAMQAwADYAMQAgAE0AXAB1ADIANAA2AFwAJwBmADYAbgBjAGgAZQBuAGcAbABhAGQAYgBhAGMAaAB9AFwAZgAyAFwAZgBzADEAMwBcAHAAYQByAFwAcABhAHIAZABcAHAAbABhAGkAbgBcAHEAbABcAHcAaQBkAGMAdABsAHAAYQByAHsAXABmADIAXABmAHMAMQAzAFwAYwBmADAAIABUAGUAbAAuACAAMAAyADEANgAxACAALwAgADgAMQAwADQALQAwAH0AXABmADIAXABmAHMAMQAzAFwAcABhAHIAXABwAGEAcgBkAFwAcABsAGEAaQBuAFwAcQBsAFwAdwBpAGQAYwB0AGwAcABhAHIAewBcAGYAMgBcAGYAcwAxADMAXABjAGYAMAAgAEYAYQB4ACAAMAAyADEANgAxACAALwAgADgAMQAwADQALQA4ADQAMAB9AFwAZgAyAFwAZgBzADEAMwBcAHAAYQByAFwAcABhAHIAZABcAHAAbABhAGkAbgBcAHEAbABcAHcAaQBkAGMAdABsAHAAYQByAHsAXABmADIAXABmAHMAMQAzAFwAbABhAG4AZwAxADAAMwAzAFwAbABhAG4AZwBmAGUAMQAwADMAMwBcAGMAZgAwACAARQBtAGEAaQBsADoAIABpAG4AZgBvAEAAZABpAGEAawBvAG4AaQBlAC0AbQBnAC4AZABlAH0AXABmADMAXABmAHMAMgAwAFwAbABhAG4AZwAxADAANAAwAFwAbABhAG4AZwBmAGUAMQAwADQAMABcAGMAZgAxAFwAcABhAHIAfQA= + + + Es wird ausdrücklich bestätigt, dass in den angegebenen Dienstleistungsstunden nur unmittelbare Betreuungsleistungen im Sinne der Leistungs- und Prüfungs- sowie der Vergütungsvereinbarung enthalten sind. Eine Dienstleistungsstunde besteht aus 40 (Zeit-) Minuten. Alle gemachten Angaben können anhand der vorgehaltenen Quittierungsbelege sowie der Betreuungs-dokumentation nachgewiesen werden. Es wird weiterhin bestätigt, dass die Verpflichtungen aus der Leistungs- und Prüfungs- sowie der Vergütungsvereinbarung eingehalten wurden. + + \ No newline at end of file diff --git a/ReportImp/DiakonieMoenchengladbach/Service/CustomHomeContentGenerator.cs b/ReportImp/DiakonieMoenchengladbach/Service/CustomHomeContentGenerator.cs new file mode 100644 index 000000000..d05aaae5b --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Service/CustomHomeContentGenerator.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using BeWo.Service.Plugins; +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts.Compact; + +namespace TemplateNeuKunde.Service +{ + //public class CustomHomeContentGenerator : HomeContentGenerator + //{ + + //Einkommentieren um Geburtstage auszublenden + // public override List GetPersonsHavingBirthday(DateTime birthdayUntil) + // { +// return new List(); + // List alle = base.GetPersonsHavingBirthday(birthdayUntil); + // List nurMitarbeiter = new List(); + + // foreach (var compactPersonDc in alle) + // { + // if (compactPersonDc.PersonType == PersonType.Employee) + // { + // nurMitarbeiter.Add(compactPersonDc); + // } + // } + // return nurMitarbeiter; + // } + //} +} diff --git a/ReportImp/DiakonieMoenchengladbach/Service/CustomVacationService.cs b/ReportImp/DiakonieMoenchengladbach/Service/CustomVacationService.cs new file mode 100644 index 000000000..46ee829e7 --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Service/CustomVacationService.cs @@ -0,0 +1,45 @@ +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.Plugins; +using BS.Shared; +using BS.Shared.DataContracts; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Text; +using System.Threading.Tasks; + + +namespace TemplateNeuKunde.Service +{ + //public class CustomVacationService : VacationService + //{ + // //public override string Bundesland { get => "Bayern"; } + + // // public override List GetFeiertage(int year, String bundesland) + // // { + // // List list = base.GetFeiertage(year, bundesland); + // // list.Add(new FeiertagDC { Datum = new DateTime(year, 12, 31), Name = "Silvester" }); + + // // return list; + // // } + + + // //Wenn halbe Feiertage konfiguriert werden sollen, muss diese Methode auch in CustomMitarbeiterstundenkontoBerechnung einkommentiert werden + // //public override decimal GetFeiertagsFaktor(DateTime start) + // //{ + // // if (start.Month == 12) + // // { + // // if (start.Day == 24 || start.Day == 31) + // // { + // // return 0.5m; + // // } + // // } + + // // return base.GetFeiertagsFaktor(start); + // //} + //} + + +} diff --git a/ReportImp/DiakonieMoenchengladbach/Service/DefaultSaveInterceptor.cs b/ReportImp/DiakonieMoenchengladbach/Service/DefaultSaveInterceptor.cs new file mode 100644 index 000000000..28d127934 --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Service/DefaultSaveInterceptor.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using BeWo.Data.Access; +using BeWo.Service.Plugins; +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts; +using BS.Shared.Extensions; +using BS.Shared.Services; + +namespace TemplateNeuKunde.Validation +{ + + //public class DefaultSaveInterceptor : SaveInterceptor + // { + // public override string AllowSaveCustomer(CustomerDC c) + // { + // if (c.CustomerOid.HasValue) + // { + // return null; + // } + + // if (!c.DateOfBirth.HasValue) + // { + // return "Bitte geben Sie ein Geburtsdatum an."; + // } + + // if (!String.IsNullOrWhiteSpace(c.FirstName) && !String.IsNullOrWhiteSpace(c.LastName) && c.DateOfBirth.HasValue) + // { + // var duplicates = DAOFactory.SearchDAO.FindCustomer(c.FirstName, c.LastName, c.DateOfBirth.Value); + // if (duplicates != null && duplicates.Count > 0) + // { + // var dc = duplicates[0]; + // String archiviert = ""; + + + // if (dc.Person.Sex.HasValue && dc.Person.Sex.Value == Sex.Female) + // { + // if (dc.IsActive == ActivationTypeId.Archived) + // { + // archiviert = "archivierte "; + // } + // return String.Format( + // "Es gibt bereits eine {3}Klientin {0} {1}, geb. am {2:dd.MM.yyyy}.", dc.Person.FirstName, dc.Person.LastName, dc.Person.DateOfBirth, archiviert); + // } + // else + // { + // if (dc.IsActive == ActivationTypeId.Archived) + // { + // archiviert = "archivierten "; + // } + // return String.Format( + // "Es gibt bereits einen {3}Klienten {0} {1}, geb. am {2:dd.MM.yyyy}.", dc.Person.FirstName, dc.Person.LastName, dc.Person.DateOfBirth, archiviert); + // } + // } + // } + // return base.AllowSaveCustomer(c); + // } + // } +} \ No newline at end of file diff --git a/ReportImp/DiakonieMoenchengladbach/Statistics/CustomServiceRecordStatisticFactory.cs b/ReportImp/DiakonieMoenchengladbach/Statistics/CustomServiceRecordStatisticFactory.cs new file mode 100644 index 000000000..2267e43b3 --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Statistics/CustomServiceRecordStatisticFactory.cs @@ -0,0 +1,113 @@ +using System; +using System.Collections.Generic; +using BeWo.Service.Plugins; +using BS.Shared; +using BS.Shared.DataContracts; + + +namespace TemplateNeuKunde.Statistics +{ + //public class CustomServiceRecordStatisticFactory : ServiceRecordStatisticFactory + // { + + // public override ServiceRecordStatisticsInfoDC GetServiceRecordStatisticInfo(long costBearer2SupportConceptOid, DateTime statisticsDate) + // { + // var stats = CreateSupportConceptStatisticsImpl(costBearer2SupportConceptOid, statisticsDate); + + // var dc = new ServiceRecordStatisticsInfoDC(); + + + + // dc.Header = new string[4]; + // dc.Header[0] = "Bewilligungszeitraum:"; + // dc.Header[1] = "Geleistet diesen Monat/Gesamt:"; + // dc.Header[2] = "Bewilligt diesen Monat/Gesamt:"; + // dc.Header[3] = "Frei diesen Monat/Gesamt:"; + + // dc.ForegroundColor = new string[4]; + // dc.ForegroundColor[0] = "#FF2B508B"; + // dc.ForegroundColor[1] = "#FF2B508B"; + // dc.ForegroundColor[2] = "#FF2B508B"; + // dc.ForegroundColor[3] = "#FF2B508B"; + + // dc.PeriodStatisticInfos = new List(); + + + // if (stats != null) + // { + // if (stats.PeriodStatistics.Count > 1 && !TimeSpanIsEqual(stats)) + // dc.PeriodStatisticInfos.Add(CreateTotalStatistics(stats, statisticsDate)); + + // foreach (var pdc in stats.PeriodStatistics) + // { + // dc.PeriodStatisticInfos.Add(CreateServiceRecordPeriodStatisticsInfo(stats, pdc, statisticsDate)); + // } + // } + + // return dc; + // } + + + // public ServiceRecordPeriodStatisticsInfoDC CreateTotalStatistics(SupportConceptStatisticsDC stats, DateTime statisticsDate) + // { + // var dc = CreateDefaultServiceRecordPeriodStatisticsInfo(4); + // dc.LeftValues[0] = "Gesamt"; + + // dc.LeftValues[1] = String.Format("{0:0.00}", stats.MinutesProvidedThisMonth / 60); + // dc.RightValues[1] = String.Format("{0:0.00}", stats.MinutesProvidedTotalRounded / 60); + + // dc.LeftValues[2] = String.Format("{0:0.00}", stats.MinutesApprovedPerMonth / 60); + // dc.RightValues[2] = String.Format("{0:0.00}", stats.MinutesApprovedTotal / 60); + + // dc.LeftValues[3] = String.Format("{0:0.00}", (stats.MinutesApprovedPerMonth - stats.MinutesProvidedThisMonth) / 60); + // dc.RightValues[3] = String.Format("{0:0.00}", (stats.MinutesApprovedTotal - stats.MinutesProvidedTotalRounded) / 60); + + // return dc; + // } + + // public ServiceRecordPeriodStatisticsInfoDC CreateServiceRecordPeriodStatisticsInfo(SupportConceptStatisticsDC stats, SupportConceptPeriodStatisticsDC periodStats, DateTime statisticsDate) + // { + // var dc = CreateDefaultServiceRecordPeriodStatisticsInfo(4); + + // if (periodStats.SupportConceptApprovalPeriod != null) + // { + // if (periodStats.SupportConceptApprovalPeriod.ServiceCategory != null) + // { + // dc.LeftValues[0] = String.Format("{0}: {1:dd.MM.yy} - {2:dd.MM.yy}", + // periodStats.SupportConceptApprovalPeriod.ServiceCategory.Name, + // periodStats.SupportConceptApprovalPeriod.StartDate, + // periodStats.SupportConceptApprovalPeriod.EndDate); + // } + // else + // { + // dc.LeftValues[0] = String.Format("{0:dd.MM.yy} - {1:dd.MM.yy}", + // periodStats.SupportConceptApprovalPeriod.StartDate, + // periodStats.SupportConceptApprovalPeriod.EndDate); + // } + // } + + // dc.LeftValues[1] = String.Format("{0:0.00}", periodStats.MinutesProvidedThisMonth / 60); + // dc.RightValues[1] = String.Format("{0:0.00}", periodStats.MinutesProvidedTotalRounded / 60); + + // dc.LeftValues[2] = String.Format("{0:0.00}", periodStats.MinutesApprovedPerMonth / 60); + // dc.RightValues[2] = String.Format("{0:0.00}", periodStats.MinutesApprovedTotal / 60); + + // dc.LeftValues[3] = String.Format("{0:0.00}", (periodStats.MinutesApprovedPerMonth - periodStats.MinutesProvidedThisMonth) / 60); + // dc.RightValues[3] = String.Format("{0:0.00}", (periodStats.MinutesApprovedTotal - periodStats.MinutesProvidedTotalRounded) / 60); + + // return dc; + // } + + // public override decimal GetApprovedMinutesPerMonth(SupportConceptPeriodStatisticsDC periodStats) + // { + // if (periodStats.SupportConceptApprovalPeriod != null && periodStats.SupportConceptApprovalPeriod.StartDate.HasValue && periodStats.SupportConceptApprovalPeriod.EndDate.HasValue) + // { + // if (periodStats.SupportConceptApprovalPeriod.ApprovedBEPerInterval.HasValue && periodStats.SupportConceptApprovalPeriod.ApprovedBEInterval.HasValue && periodStats.SupportConceptApprovalPeriod.ApprovedBEInterval.Value == SupportConceptApprovalInterval.Monthly) + // { + // return periodStats.SupportConceptApprovalPeriod.ApprovedBEPerInterval.Value * 60; + // } + // } + // return base.GetApprovedMinutesPerMonth(periodStats); + // } + // } +} diff --git a/ReportImp/DiakonieMoenchengladbach/Translation/TranslationDictionary.cs b/ReportImp/DiakonieMoenchengladbach/Translation/TranslationDictionary.cs new file mode 100644 index 000000000..65d46ab7e --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Translation/TranslationDictionary.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.DCEntityMapper; +using BeWo.Service.Plugins; +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts.Compact; +using BS.Shared.Extensions; + +namespace TemplateNeuKunde.Translation +{ + //public class CustomTranslationDictionary : TranslationDictionary + //{ + // public override Dictionary GetTranslationDictionary() + // { + // var dict = base.GetTranslationDictionary(); + + // //AddOrReplaceTranslation(dict, "EmployeeViewAdresse", "Adresse"); + + + // return dict; + // } + //} +} diff --git a/ReportImp/DiakonieMoenchengladbach/Validation/ServiceRecordValidator.cs b/ReportImp/DiakonieMoenchengladbach/Validation/ServiceRecordValidator.cs new file mode 100644 index 000000000..3e394fda6 --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/Validation/ServiceRecordValidator.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using BeWo.Data; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.DCEntityMapper; +using BeWo.Service.Plugins; +using BS.Shared; +using BS.Shared.DataContracts; +using BS.Shared.Extensions; + +namespace TemplateNeuKunde.Validation +{ + //public class CustomServiceRecordValidator : ServiceRecordValidator + //{ + // public override string[] GetIgnoreCategoriesForOverlappingCheck() + // { + // return new[] { "Arbeitszeiterfassung" }; + // } + + + // public override List ValidateServiceRecord(ServiceRecordDC newServiceRecord, SupportConceptStatisticsDC statistics, + // int maxDaysEditServiceRecordsAllowed, IList employeeOids, IList cb2scOids) + // { + // var list = base.ValidateServiceRecord(newServiceRecord, statistics, maxDaysEditServiceRecordsAllowed, employeeOids, cb2scOids); + + // if (newServiceRecord.ServiceDescription.Category.IsBillable && newServiceRecord.RoundedDuration == 0) + // { + + // list.Add(new ServiceRecordValidationResultDC + // { + // ResultType = ServiceRecordValidationResult.Custom, + // Message = "Die Dauer muss größer als 0 sein." + // }); + + // } + + // var sd = newServiceRecord.ServiceDescription.Name.ToLower(); + // var cat = newServiceRecord.ServiceDescription.Category.Name.ToLower(); + + // if (cat.Contains("arztbesuch") || + // cat.Contains("krank") || + // cat.Contains("fortbildung") || + // cat.Contains("urlaub") || + // cat.Contains("indirekte zeiten") || + // (cat.Contains("betrieb") && cat.Contains("zeiten"))) + // { + // if (sd.Contains("abwesend")) + // { + + // list.Add(new ServiceRecordValidationResultDC + // { + // ResultType = ServiceRecordValidationResult.Custom, + // Message = "Dieser Eintrag kann nur von Fachleitungen oder Bereichsleitungen angelegt werden." + // }); + // } + // } + + + + // bool hasZukunftResult = false; + + // foreach (var r in list) + // { + // if (r.ResultType == ServiceRecordValidationResult.Custom && r.Message.Contains("Zukunft")) + // { + // hasZukunftResult = true; + // } + // } + // if (!hasZukunftResult) + // { + // if (newServiceRecord.End.Value > DateTime.Now.AddMinutes(20)) + // { + // list.Add(new ServiceRecordValidationResultDC + // { + // ResultType = ServiceRecordValidationResult.Custom, + // Message = "Das gewählte Datum darf nicht in der Zukunft liegen." + // }); + // } + // } + + + // return list; + // } + // } +} \ No newline at end of file diff --git a/ReportImp/DiakonieMoenchengladbach/app.config b/ReportImp/DiakonieMoenchengladbach/app.config new file mode 100644 index 000000000..677131bde --- /dev/null +++ b/ReportImp/DiakonieMoenchengladbach/app.config @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file