MH: Ordnerstruktur für KontaktVereinFuerPsychosozialeHilfenEV
This commit is contained in:
19
BeWo.sln
19
BeWo.sln
@@ -545,6 +545,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LandshuterNetzwerk", "Repor
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AlphaEv", "ReportImp\AlphaEv\AlphaEv.csproj", "{748D8D83-6CBD-481F-AB3E-D2D7866C3402}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KontaktVereinFuerPsychosozialeHilfenEV", "ReportImp\KontaktVereinFuerPsychosozialeHilfenEV\KontaktVereinFuerPsychosozialeHilfenEV.csproj", "{B487DD3C-63D3-42A4-90E0-793C799A85A1}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|.NET = Debug|.NET
|
||||
@@ -4292,6 +4294,22 @@ Global
|
||||
{748D8D83-6CBD-481F-AB3E-D2D7866C3402}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{748D8D83-6CBD-481F-AB3E-D2D7866C3402}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{748D8D83-6CBD-481F-AB3E-D2D7866C3402}.Release|x86.Build.0 = Release|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Debug|.NET.Build.0 = Debug|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Release|.NET.Build.0 = Release|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
@@ -4560,6 +4578,7 @@ Global
|
||||
{DC0BE99C-95A5-40E1-8700-50A74D075E28} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
||||
{17ED3D33-CA00-48F4-8542-AD3438BDF2FD} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
||||
{748D8D83-6CBD-481F-AB3E-D2D7866C3402} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
||||
{B487DD3C-63D3-42A4-90E0-793C799A85A1} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {FBE985BB-9F0F-4DBB-8F94-ABC37A803FF9}
|
||||
|
||||
@@ -46,9 +46,9 @@ namespace BloemelingUndTeckhaus
|
||||
allServiceInvoiceItems.RemoveAt(index);
|
||||
}
|
||||
int anzHausbesuche = 0;
|
||||
if (allServiceInvoiceItems.Any(s => s.ServiceDescription.ToLower().Contains("hausbesuch")))
|
||||
if (allServiceInvoiceItems.Any(s => s.ServiceDescription != null && s.ServiceDescription.Contains("hausbesuch") || s.ServiceDescription != null && s.ServiceDescription.Contains("Hausbesuch")))
|
||||
{
|
||||
anzHausbesuche = allServiceInvoiceItems.Where(s => s.ServiceDescription.ToLower().Contains("hausbesuch")).Count();
|
||||
anzHausbesuche = allServiceInvoiceItems.Where(s => s.ServiceDescription != null && s.ServiceDescription.ToLower().Contains("hausbesuch")).Count();
|
||||
tc_AnzHausbesuche.Text = anzHausbesuche.ToString();
|
||||
tc_Fahrtkostenpauschale.Text = string.Format("{0:c}", pauschale.Value);
|
||||
}
|
||||
@@ -126,7 +126,10 @@ namespace BloemelingUndTeckhaus
|
||||
|
||||
if (period != null && period.Customer != null && period.Customer.Oid != null)
|
||||
{
|
||||
period.ServiceInvoiceItems.RemoveAt(index);
|
||||
if (pauschale != null && pauschale != 0)
|
||||
{
|
||||
period.ServiceInvoiceItems.RemoveAt(index);
|
||||
}
|
||||
var fod = period.ServiceInvoiceItems.FirstOrDefault();
|
||||
if (fod != null && fod.AmountPerUnit != null)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
<?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>{B487DD3C-63D3-42A4-90E0-793C799A85A1}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>KontaktVereinFuerPsychosozialeHilfenEV</RootNamespace>
|
||||
<AssemblyName>5592509446_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>..\..\Host\bin\</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>..\..\Host\bin\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="DevExpress.Data.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Printing.v17.1.Core, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.Utils.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraPrinting.v17.1, Version=17.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||
<Reference Include="DevExpress.XtraReports.v17.1, Version=17.1.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="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Service\CustomCustomerService.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>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
@@ -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,98 @@
|
||||
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 KontaktVereinFuerPsychosozialeHilfenEV
|
||||
{
|
||||
public class CustomCustomerService : CustomerService
|
||||
{
|
||||
|
||||
public override long InsertNewCustomer(CustomerDC pCustomerDc)
|
||||
{
|
||||
var cOid = base.InsertNewCustomer(pCustomerDc);
|
||||
|
||||
ErstelleOrdnerStruktur(cOid);
|
||||
|
||||
return cOid;
|
||||
}
|
||||
|
||||
public override CustomerDC LoadCustomer(long pCustomerOid)
|
||||
{
|
||||
var dc = base.LoadCustomer(pCustomerOid);
|
||||
|
||||
var folder = DAOFactory.SearchDAO.FindBeWoFolders(TableID.Customer, pCustomerOid);
|
||||
|
||||
if (folder.Count == 0)
|
||||
{
|
||||
ErstelleOrdnerStruktur(pCustomerOid);
|
||||
}
|
||||
|
||||
return dc;
|
||||
|
||||
}
|
||||
|
||||
private void ErstelleOrdnerStruktur(long cOid)
|
||||
{
|
||||
// HIERACHIE LEVEL - 1 -
|
||||
CreateBeWoFolder("Allgemeiner Ordner", cOid, null);
|
||||
CreateBeWoFolder("Kostenträger", cOid, null);
|
||||
CreateBeWoFolder("Arztbriefe/Medizinisches", cOid, null);
|
||||
CreateBeWoFolder("Krankenversicherung/ZBFS", cOid, null);
|
||||
CreateBeWoFolder("Betreuung/Justiz", cOid, null);
|
||||
CreateBeWoFolder("Arbeit/Beschäftigung", cOid, null);
|
||||
CreateBeWoFolder("Rente/HLU/ALG", cOid, null);
|
||||
CreateBeWoFolder("Finanzen", cOid, null);
|
||||
}
|
||||
|
||||
private BeWoFolder CreateBeWoFolder(string name, long? cOid, long? parentOid)
|
||||
{
|
||||
BeWoFolder f = new BeWoFolder();
|
||||
f.Name = name;
|
||||
f.ObjectOid = cOid;
|
||||
f.ObjectTid = TableID.Customer;
|
||||
f.ParentBeWoFolderOid = parentOid;
|
||||
|
||||
DAOFactory.GenericDAO.Insert(f);
|
||||
|
||||
return f;
|
||||
}
|
||||
private void CreateSubFolder(string[] vs, BeWoFolder folder)
|
||||
{
|
||||
foreach (var foldername in vs)
|
||||
{
|
||||
CreateBeWoFolder(foldername, folder.ObjectOid, folder.ParentBeWoFolderOid);
|
||||
}
|
||||
}
|
||||
|
||||
private void SaveHierarchie(List<Folder> folderList, long cOid, long? parentOid)
|
||||
{
|
||||
foreach (var item in folderList)
|
||||
{
|
||||
var f = CreateBeWoFolder(item.Name, cOid, parentOid);
|
||||
|
||||
SaveHierarchie(item.Subfolder, cOid, f.Oid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class Folder
|
||||
{
|
||||
public Folder(String name)
|
||||
{
|
||||
Name = name;
|
||||
Subfolder = new List<Folder>();
|
||||
}
|
||||
public String Name { get; set; }
|
||||
|
||||
public List<Folder> Subfolder { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user