DrobDrogenhilfe/Invoicing/CustomSettlementInvoiceCreation - Bugfix bei gleichem Preis zweimal
This commit is contained in:
@@ -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
|
||||
// };
|
||||
// }
|
||||
|
||||
//}
|
||||
}
|
||||
@@ -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);
|
||||
// }
|
||||
|
||||
|
||||
|
||||
//}
|
||||
}
|
||||
111
ReportImp/DrobDrogenhilfe/DrobDrogenhilfe.csproj
Normal file
111
ReportImp/DrobDrogenhilfe/DrobDrogenhilfe.csproj
Normal file
@@ -0,0 +1,111 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{2F0B2249-CF36-4BEF-9DC2-B4889EC86BCB}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>DrobDrogenhilfe</RootNamespace>
|
||||
<AssemblyName>4593477132_Reports</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\CustomerDlls\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\CustomerDlls\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="DevExpress.DataAccess.v23.2, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Drawing.v23.2, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Data.v23.2, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Office.v23.2.Core, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.RichEdit.v23.2.Core, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.RichEdit.v23.2.Export, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Printing.v23.2.Core, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Data.Desktop.v23.2, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Utils.v23.2, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraPrinting.v23.2, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Charts.v23.2.Core, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraCharts.v23.2, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraReports.v23.2, Version=23.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Calculations\DefaultCalculations.cs" />
|
||||
<Compile Include="Calculations\CustomGroupDurationCalculator.cs" />
|
||||
<Compile Include="Invoicing\CustomInvoiceCreation.cs" />
|
||||
<Compile Include="Invoicing\CustomInvoiceFactory.cs" />
|
||||
<Compile Include="Invoicing\CustomSettlementInvoiceCreation.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Reporting\CustomMitarbeiterstundenkontoBerechnung.cs" />
|
||||
<Compile Include="Reporting\CustomReportCreator.cs" />
|
||||
<Compile Include="Reporting\Reports\SettlementReport.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Reporting\Reports\SettlementReport.Designer.cs">
|
||||
<DependentUpon>SettlementReport.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Service\CustomHomeContentGenerator.cs" />
|
||||
<Compile Include="Service\CustomVacationService.cs" />
|
||||
<Compile Include="Service\DefaultSaveInterceptor.cs" />
|
||||
<Compile Include="Statistics\CustomServiceRecordStatisticFactory.cs" />
|
||||
<Compile Include="Validation\ServiceRecordValidator.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Data\Data.csproj">
|
||||
<Project>{B0D73E3D-4AE7-4024-93A6-DB1F46D7CCEE}</Project>
|
||||
<Name>Data</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Report\Report.csproj">
|
||||
<Project>{40d8b312-ea64-49e3-a31a-5e57ed4d5654}</Project>
|
||||
<Name>Report</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Service\Service.csproj">
|
||||
<Project>{094331c3-ecee-4c89-bbfd-4c9ded89f0ef}</Project>
|
||||
<Name>Service</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\Shared\Shared.csproj">
|
||||
<Project>{2f50b83d-a3f0-4ec4-979a-3f9b7e3d8ed4}</Project>
|
||||
<Name>Shared</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Export\" />
|
||||
<Folder Include="Import\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Reporting\Reports\SettlementReport.resx">
|
||||
<DependentUpon>SettlementReport.cs</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
54
ReportImp/DrobDrogenhilfe/Invoicing/CustomInvoiceCreation.cs
Normal file
54
ReportImp/DrobDrogenhilfe/Invoicing/CustomInvoiceCreation.cs
Normal file
@@ -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;
|
||||
// // }
|
||||
// // }
|
||||
// // }
|
||||
// }
|
||||
}
|
||||
65
ReportImp/DrobDrogenhilfe/Invoicing/CustomInvoiceFactory.cs
Normal file
65
ReportImp/DrobDrogenhilfe/Invoicing/CustomInvoiceFactory.cs
Normal file
@@ -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<CompactSupportConceptDC, List<ServiceRecordDC>> 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<CostBearer2SupportConcept>(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;
|
||||
// }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Service.Invoicing;
|
||||
using BeWo.Service.Plugins;
|
||||
using BS.Shared.Core;
|
||||
using BS.Shared.DataContracts;
|
||||
|
||||
namespace DrobDrogenhilfe
|
||||
{
|
||||
[IDSpecificClass(Identifier = "LWLNEU")]
|
||||
[IgnoreAutoPlugin]
|
||||
|
||||
internal class CustomSettlementInvoiceCreation : LWLSettlementInvoiceCreation
|
||||
{
|
||||
// nur für Bugfix vorübergehend, kann wieder raus
|
||||
public override List<InvoiceItemDC> CreateInvoiceItems(Settlement2DC si, IList<ApprovalPeriod> apList, bool schneideBeiMaxAb)
|
||||
{
|
||||
List<InvoiceItemDC> iiList = new List<InvoiceItemDC>();
|
||||
var apsByHourlyRate = new Dictionary<String, IList<ApprovalPeriod>>();
|
||||
|
||||
foreach (var ap in apList)
|
||||
{
|
||||
IList<ApprovalPeriod> list = null;
|
||||
String key = String.Format("{0}_{1}_{2:ddMMyyy}", ap.AmountPerUnit, ap.RateFactor, ap.PeriodStartDate);
|
||||
|
||||
if (apsByHourlyRate.ContainsKey(key))
|
||||
{
|
||||
list = apsByHourlyRate[key];
|
||||
}
|
||||
else
|
||||
{
|
||||
list = new List<ApprovalPeriod>();
|
||||
apsByHourlyRate[key] = list;
|
||||
}
|
||||
|
||||
list.Add(ap);
|
||||
}
|
||||
|
||||
decimal maxApprovedFls = si.ApprovedFLS ?? 0;
|
||||
decimal totalHours = 0;
|
||||
foreach (var key in apsByHourlyRate.Keys)
|
||||
{
|
||||
IList<ApprovalPeriod> list = apsByHourlyRate[key];
|
||||
var ii = new InvoiceItemDC();
|
||||
|
||||
decimal minutesTotal = 0;
|
||||
decimal minutesTotalBudget = 0;
|
||||
|
||||
DateTime start = DateTime.MaxValue;
|
||||
DateTime end = DateTime.MinValue;
|
||||
|
||||
decimal rf = si.RateFactor ?? 0;
|
||||
decimal hr = 0;
|
||||
|
||||
foreach (var approvalPeriod in list)
|
||||
{
|
||||
minutesTotal += approvalPeriod.RecordedMinutes;
|
||||
minutesTotalBudget += approvalPeriod.BudgetMinutes;
|
||||
if (approvalPeriod.PeriodStartDate < start)
|
||||
start = approvalPeriod.PeriodStartDate;
|
||||
if (approvalPeriod.PeriodEndDate > end)
|
||||
end = approvalPeriod.PeriodEndDate;
|
||||
|
||||
hr = approvalPeriod.AmountPerUnit;
|
||||
if (approvalPeriod.RateFactor.HasValue)
|
||||
{
|
||||
rf = approvalPeriod.RateFactor.Value;
|
||||
}
|
||||
if (!String.IsNullOrEmpty(approvalPeriod.Notice) && approvalPeriod.Notice == "Fehlkontakte")
|
||||
{
|
||||
hr *= 0.8m;
|
||||
ii.ItemDescription = "Fehlkontakte";
|
||||
}
|
||||
}
|
||||
ii.ItemPeriodStart = start;
|
||||
ii.ItemPeriodEnd = end;
|
||||
ii.RateFactor = rf;
|
||||
ii.AmountPerUnit = hr;
|
||||
decimal hours = Math.Round(minutesTotal / 60m, 2, MidpointRounding.AwayFromZero);
|
||||
hours *= (100 + rf) / 100;
|
||||
hours = Math.Round(hours, 2, MidpointRounding.AwayFromZero);
|
||||
|
||||
decimal hoursBudget = Math.Round(minutesTotalBudget / 60m, 2, MidpointRounding.AwayFromZero);
|
||||
hoursBudget *= (100 + rf) / 100;
|
||||
hoursBudget = Math.Round(hoursBudget, 2, MidpointRounding.AwayFromZero);
|
||||
|
||||
//if (schneideBeiMaxAb)
|
||||
//{
|
||||
// if (totalHours + hoursBudget > maxApprovedFls)
|
||||
// {
|
||||
// hoursBudget = maxApprovedFls - totalHours;
|
||||
// if (hoursBudget < 0)
|
||||
// {
|
||||
// hoursBudget = 0;
|
||||
// }
|
||||
// if (hours > hoursBudget)
|
||||
// {
|
||||
// hours = hoursBudget;
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
totalHours += hoursBudget;
|
||||
|
||||
ii.UnitCount = hours;
|
||||
ii.UnitCountBudget = hoursBudget;
|
||||
ii.AmountTotal = Math.Round(hr * hours, 2, MidpointRounding.AwayFromZero);
|
||||
ii.GrossAmountTotal = ii.AmountTotal;
|
||||
|
||||
iiList.Add(ii);
|
||||
}
|
||||
|
||||
return iiList.OrderBy(ii => ii.ItemPeriodStart).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
36
ReportImp/DrobDrogenhilfe/Properties/AssemblyInfo.cs
Normal file
36
ReportImp/DrobDrogenhilfe/Properties/AssemblyInfo.cs
Normal file
@@ -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")]
|
||||
@@ -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);
|
||||
//}
|
||||
}
|
||||
}
|
||||
197
ReportImp/DrobDrogenhilfe/Reporting/CustomReportCreator.cs
Normal file
197
ReportImp/DrobDrogenhilfe/Reporting/CustomReportCreator.cs
Normal file
@@ -0,0 +1,197 @@
|
||||
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<Customer>();
|
||||
// // 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<ServicesOverviewRO> 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<long> customerOids, int month, int year, long? orgaOid, long? empOid, long? serviceCategoryOid, int startDay, int endDay, bool nurFehlende)
|
||||
// //{
|
||||
// // var roList = new List<ServicesOverviewRO>();
|
||||
|
||||
// // 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();
|
||||
|
||||
// //}
|
||||
|
||||
// //private XtraReport CreateServicesOverviewReportForRo(ServicesOverviewRO ro, long? serviceCategoryOid)
|
||||
// //{
|
||||
// // IBeWoReport<ServicesOverviewRO> 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;
|
||||
// //}
|
||||
|
||||
//}
|
||||
}
|
||||
1203
ReportImp/DrobDrogenhilfe/Reporting/Reports/SettlementReport.Designer.cs
generated
Normal file
1203
ReportImp/DrobDrogenhilfe/Reporting/Reports/SettlementReport.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
222
ReportImp/DrobDrogenhilfe/Reporting/Reports/SettlementReport.cs
Normal file
222
ReportImp/DrobDrogenhilfe/Reporting/Reports/SettlementReport.cs
Normal file
@@ -0,0 +1,222 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BeWo.Data.Access;
|
||||
using BeWo.Data.Entities;
|
||||
using BeWo.Report;
|
||||
using BeWo.Report.ReportObjects;
|
||||
using BS.Shared.DataContracts;
|
||||
using BS.Shared.Extensions;
|
||||
|
||||
namespace DrobDrogenhilfe.Alt
|
||||
{
|
||||
public partial class Spitzabrechnung : DevExpress.XtraReports.UI.XtraReport, IBeWoReport<SettlementRO>
|
||||
{
|
||||
public Spitzabrechnung()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void SetReportDataSource(SettlementRO pRO)
|
||||
{
|
||||
bool isDefaultSpitzabrechnung = false;
|
||||
|
||||
if (String.IsNullOrEmpty(pRO.Notice))
|
||||
{
|
||||
lblNotice.Visible = false;
|
||||
}
|
||||
|
||||
if (pRO.InvoiceItems != null && pRO.InvoiceItems.Count == 1)
|
||||
{
|
||||
var ii = pRO.InvoiceItems[0];
|
||||
if ((ii.ItemDescription == "Spitzabrechung" || ii.ItemDescription == "Spitzabrechnung") && ii.GrossAmountTotal == null && ii.RateFactor == null)
|
||||
{
|
||||
isDefaultSpitzabrechnung = true;
|
||||
}
|
||||
}
|
||||
if (!isDefaultSpitzabrechnung)
|
||||
{
|
||||
if (pRO.DifferentHourlyRateCount > 0 && pRO.HourlyRateNew.HasValue)
|
||||
{
|
||||
isDefaultSpitzabrechnung = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (isDefaultSpitzabrechnung)
|
||||
{
|
||||
//UpdateAbrechnungsFelder(pRO);
|
||||
|
||||
pRO.InvoiceItems = CreateDefaultSpitzabrechnungInvoiceItems(pRO);
|
||||
}
|
||||
else
|
||||
{
|
||||
var id = GetCustomerId(pRO);
|
||||
if (id == "LWLNEU")
|
||||
{
|
||||
pRO.RateFactorText = null;
|
||||
pRO.RateFactorText2 = null;
|
||||
|
||||
if (pRO.InvoiceItems != null)
|
||||
{
|
||||
foreach (var ii in pRO.InvoiceItems)
|
||||
{
|
||||
ii.ItemDescription = String.Format("{0:dd.MM.yyyy} bis {1:dd.MM.yyyy}: {2:0.00##} FLS x {3:c}",
|
||||
ii.ItemPeriodStart, ii.ItemPeriodEnd, ii.UnitCount, ii.AmountPerUnit);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (pRO.InvoiceItems != null)
|
||||
{
|
||||
foreach (var ii in pRO.InvoiceItems)
|
||||
{
|
||||
ii.ItemDescription = String.Format("{0:dd.MM.yyyy} bis {1:dd.MM.yyyy}: {2:0.00##} FLS {3}x {4:c}",
|
||||
ii.ItemPeriodStart, ii.ItemPeriodEnd,
|
||||
ii.UnitCount, ii.RateFactor == 0 ? "" : "x " + pRO.RateFactorText2 + " ",
|
||||
ii.AmountPerUnit);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.bindingSource1.DataSource = pRO;
|
||||
}
|
||||
|
||||
private String GetCustomerId(SettlementRO pRO)
|
||||
{
|
||||
var cb2sc = DAOFactory.GenericDAO.LoadByID<CostBearer2SupportConcept>(pRO.CostBearer2SupportConceptOid);
|
||||
return cb2sc.CostBearer.ID;
|
||||
}
|
||||
|
||||
private IList<InvoiceItemDC> CreateDefaultSpitzabrechnungInvoiceItems(SettlementRO pRO)
|
||||
{
|
||||
IList<InvoiceItemDC> itemList = new List<InvoiceItemDC>();
|
||||
if (pRO.DifferentHourlyRateCount == 3)
|
||||
{
|
||||
itemList.Add(new InvoiceItemDC
|
||||
{
|
||||
ItemDescription = String.Format("{0} bis {1}: {2:0.00##} FLS {3}x {4:c}",
|
||||
pRO.AccountingStartDateString, pRO.HourlyRate3EndDateString,
|
||||
pRO.GeleisteteFLSMitStundensatz3, pRO.RateFactor == 1 ? "" : "x " + pRO.RateFactorText2 + " ", pRO.HourlyRate3),
|
||||
|
||||
GrossAmountTotal = pRO.GeleisteteFLSMitStundensatz3 * pRO.RateFactor * pRO.HourlyRate3
|
||||
});
|
||||
|
||||
itemList.Add(new InvoiceItemDC
|
||||
{
|
||||
ItemDescription = String.Format("{0} bis {1}: {2:0.00##} FLS {3}x {4:c}",
|
||||
pRO.HourlyRateOldStartDateString, pRO.HourlyRateOldEndDateString,
|
||||
pRO.GeleisteteFLSMitStundensatzAlt, pRO.RateFactor == 1 ? "" : "x " + pRO.RateFactorText2 + " ", pRO.HourlyRateOld),
|
||||
|
||||
GrossAmountTotal = pRO.GeleisteteFLSMitStundensatzAlt * pRO.RateFactor * pRO.HourlyRateOld
|
||||
});
|
||||
|
||||
itemList.Add(new InvoiceItemDC
|
||||
{
|
||||
ItemDescription = String.Format("{0} bis {1}: {2:0.00##} FLS {3}x {4:c}",
|
||||
pRO.HourlyRateNewStartDateString, pRO.AccountingEndDateString,
|
||||
pRO.GeleisteteFLSMitStundensatzAktuell, pRO.RateFactor == 1 ? "" : "x " + pRO.RateFactorText2 + " ", pRO.HourlyRateNew),
|
||||
|
||||
GrossAmountTotal = pRO.GeleisteteFLSMitStundensatzAktuell * pRO.RateFactor * pRO.HourlyRateNew
|
||||
});
|
||||
|
||||
}
|
||||
else if (pRO.DifferentHourlyRateCount == 2)
|
||||
{
|
||||
itemList.Add(new InvoiceItemDC
|
||||
{
|
||||
ItemDescription = String.Format("{0} bis {1}: {2:0.00##} FLS {3}x {4:c}",
|
||||
pRO.AccountingStartDateString, pRO.HourlyRateOldEndDateString,
|
||||
pRO.GeleisteteFLSMitStundensatzAlt, pRO.RateFactor == 1 ? "" : "x " + pRO.RateFactorText2 + " ", pRO.HourlyRateOld),
|
||||
|
||||
GrossAmountTotal = pRO.GeleisteteFLSMitStundensatzAlt * (decimal)pRO.RateFactor * pRO.HourlyRateOld
|
||||
});
|
||||
|
||||
itemList.Add(new InvoiceItemDC
|
||||
{
|
||||
ItemDescription = String.Format("{0} bis {1}: {2:0.00##} FLS {3}x {4:c}",
|
||||
pRO.HourlyRateNewStartDateString, pRO.AccountingEndDateString,
|
||||
pRO.GeleisteteFLSMitStundensatzAktuell, pRO.RateFactor == 1 ? "" : "x " + pRO.RateFactorText2 + " ", pRO.HourlyRateNew),
|
||||
|
||||
GrossAmountTotal = pRO.GeleisteteFLSMitStundensatzAktuell * pRO.RateFactor * pRO.HourlyRateNew
|
||||
});
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
itemList.Add(new InvoiceItemDC
|
||||
{
|
||||
ItemDescription = String.Format("{0} bis {1}: {2:0.00##} FLS {3}x {4:c}",
|
||||
pRO.AccountingStartDateString, pRO.AccountingEndDateString,
|
||||
pRO.GeleisteteFLSMitStundensatzAktuell, pRO.RateFactor == 1 ? "" : "x " + pRO.RateFactorText2 + " ", pRO.HourlyRateNew),
|
||||
|
||||
GrossAmountTotal = pRO.GeleisteteFLSMitStundensatzAktuell * pRO.RateFactor * pRO.HourlyRateNew
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
return itemList;
|
||||
}
|
||||
|
||||
private void UpdateAbrechnungsFelder(SettlementRO pRO)
|
||||
{
|
||||
if (pRO.DifferentHourlyRateCount == 3)
|
||||
{
|
||||
//Erbrachte Leistungen (FLS) - bis [HourlyRateOldEndDateString] à [HourlyRateOldString] €
|
||||
|
||||
pRO.Abrechnungstext1 = String.Format("{0} bis {1}",
|
||||
pRO.AccountingStartDateString, pRO.HourlyRate3EndDateString);
|
||||
|
||||
pRO.Abrechnungstext1 += String.Format(": {0:0.00##} FLS {1}x {2:c}",
|
||||
pRO.GeleisteteFLSMitStundensatz3, pRO.RateFactor == 1 ? "" : "x " + pRO.RateFactorText2 + " ", pRO.HourlyRate3);
|
||||
|
||||
//[AccountingStartDateString] - [HourlyRate3EndDateString] sind [RecordedFLSWithHourlyRate3String] Std. x [HourlyRate3String] € =";
|
||||
|
||||
pRO.Betrag1 = String.Format("{0:c}", pRO.GeleisteteFLSMitStundensatz3 * (decimal)pRO.RateFactor * pRO.HourlyRate3);
|
||||
|
||||
|
||||
pRO.Abrechnungstext2 = String.Format("{0} bis {1}",
|
||||
pRO.HourlyRateOldStartDateString, pRO.HourlyRateOldEndDateString);
|
||||
pRO.Abrechnungstext2 += String.Format(": {0:0.00##} FLS {1}x {2:c}",
|
||||
pRO.GeleisteteFLSMitStundensatzAlt, pRO.RateFactor == 1 ? "" : "x " + pRO.RateFactorText2 + " ", pRO.HourlyRateOld);
|
||||
|
||||
pRO.Betrag2 = String.Format("{0:c}", pRO.GeleisteteFLSMitStundensatzAlt * (decimal)pRO.RateFactor * pRO.HourlyRateOld);
|
||||
|
||||
|
||||
pRO.Abrechnungstext3 = String.Format("{0} bis {1}",
|
||||
pRO.HourlyRateNewStartDateString, pRO.AccountingEndDateString);
|
||||
pRO.Abrechnungstext3 += String.Format(": {0:0.00##} FLS {1}x {2:c}",
|
||||
pRO.GeleisteteFLSMitStundensatzAktuell, pRO.RateFactor == 1 ? "" : "x " + pRO.RateFactorText2 + " ", pRO.HourlyRateNew);
|
||||
|
||||
pRO.Betrag3 = String.Format("{0:c}", pRO.GeleisteteFLSMitStundensatzAktuell * (decimal)pRO.RateFactor * pRO.HourlyRateNew);
|
||||
}
|
||||
else if (pRO.DifferentHourlyRateCount == 2)
|
||||
{
|
||||
|
||||
pRO.Abrechnungstext2 = String.Format("{0} bis {1}",
|
||||
pRO.AccountingStartDateString, pRO.HourlyRateOldEndDateString);
|
||||
pRO.Abrechnungstext2 += String.Format(": {0:0.00##} FLS {1}x {2:c}",
|
||||
pRO.GeleisteteFLSMitStundensatzAlt, pRO.RateFactor == 1 ? "" : "x " + pRO.RateFactorText2 + " ", pRO.HourlyRateOld);
|
||||
|
||||
pRO.Betrag2 = String.Format("{0:c}", pRO.GeleisteteFLSMitStundensatzAlt * (decimal)pRO.RateFactor * pRO.HourlyRateOld);
|
||||
|
||||
|
||||
pRO.Abrechnungstext3 = String.Format("{0} bis {1}",
|
||||
pRO.HourlyRateNewStartDateString, pRO.AccountingEndDateString);
|
||||
pRO.Abrechnungstext3 += String.Format(": {0:0.00##} FLS {1}x {2:c}",
|
||||
pRO.GeleisteteFLSMitStundensatzAktuell, pRO.RateFactor == 1 ? "" : "x " + pRO.RateFactorText2 + " ", pRO.HourlyRateNew);
|
||||
|
||||
pRO.Betrag3 = String.Format("{0:c}", pRO.GeleisteteFLSMitStundensatzAktuell * (decimal)pRO.RateFactor * pRO.HourlyRateNew);
|
||||
}
|
||||
else
|
||||
{
|
||||
pRO.Abrechnungstext3 = String.Format("{0} bis {1}",
|
||||
pRO.AccountingStartDateString, pRO.AccountingEndDateString);
|
||||
pRO.Abrechnungstext3 += String.Format(": {0:0.00##} FLS {1}x {2:c}",
|
||||
pRO.GeleisteteFLSMitStundensatzAktuell, pRO.RateFactor == 1 ? "" : "x " + pRO.RateFactorText2 + " ", pRO.HourlyRateNew);
|
||||
|
||||
pRO.Betrag3 = String.Format("{0:c}", pRO.GeleisteteFLSMitStundensatzAktuell * (decimal)pRO.RateFactor * pRO.HourlyRateNew);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="xrLabel6.Text" xml:space="preserve">
|
||||
<value>anbei sende ich Ihnen die unterschriebenen Nachweise über die im Rahmen des Betreuten Wohnens für [Salutation2] [CustomerName] erbrachten Leistungen zu. Nach unserer Berechnung ergeben sich für den Betreuungszeitraum [AccountingPeriod] hieraus:
|
||||
</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -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<CompactPersonDC> GetPersonsHavingBirthday(DateTime birthdayUntil)
|
||||
// {
|
||||
// return new List<CompactPersonDC>();
|
||||
// List<CompactPersonDC> alle = base.GetPersonsHavingBirthday(birthdayUntil);
|
||||
// List<CompactPersonDC> nurMitarbeiter = new List<CompactPersonDC>();
|
||||
|
||||
// foreach (var compactPersonDc in alle)
|
||||
// {
|
||||
// if (compactPersonDc.PersonType == PersonType.Employee)
|
||||
// {
|
||||
// nurMitarbeiter.Add(compactPersonDc);
|
||||
// }
|
||||
// }
|
||||
// return nurMitarbeiter;
|
||||
// }
|
||||
//}
|
||||
}
|
||||
45
ReportImp/DrobDrogenhilfe/Service/CustomVacationService.cs
Normal file
45
ReportImp/DrobDrogenhilfe/Service/CustomVacationService.cs
Normal file
@@ -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<FeiertagDC> GetFeiertage(int year, String bundesland)
|
||||
// // {
|
||||
// // List<FeiertagDC> 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);
|
||||
// //}
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
62
ReportImp/DrobDrogenhilfe/Service/DefaultSaveInterceptor.cs
Normal file
62
ReportImp/DrobDrogenhilfe/Service/DefaultSaveInterceptor.cs
Normal file
@@ -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);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
@@ -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<ServiceRecordPeriodStatisticsInfoDC>();
|
||||
|
||||
|
||||
// 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);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
@@ -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<ServiceRecordValidationResultDC> ValidateServiceRecord(ServiceRecordDC newServiceRecord, SupportConceptStatisticsDC statistics,
|
||||
// int maxDaysEditServiceRecordsAllowed, IList<long> employeeOids, IList<long> 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;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
27
ReportImp/DrobDrogenhilfe/app.config
Normal file
27
ReportImp/DrobDrogenhilfe/app.config
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Iesi.Collections" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.0.4000" newVersion="4.0.0.4000" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.1.3.0" newVersion="4.1.3.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="Castle.Core" publicKeyToken="407dd0808d44fbdc" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-2.5.1.0" newVersion="2.5.1.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-3.1.0.4000" newVersion="3.1.0.4000" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user