MH: InKomm Ordnerstruktur
This commit is contained in:
19
BeWo.sln
19
BeWo.sln
@@ -595,6 +595,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SHKService", "ReportImp\SHK
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Club74DB2", "ReportImp\Club74DB2\Club74DB2.csproj", "{50AFC9EA-61A7-4D3B-B8E6-82CABD29A421}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Club74DB2", "ReportImp\Club74DB2\Club74DB2.csproj", "{50AFC9EA-61A7-4D3B-B8E6-82CABD29A421}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Inkomm", "ReportImp\Inkomm\Inkomm.csproj", "{AD3876F3-40C0-47CF-BA36-687139903F87}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|.NET = Debug|.NET
|
Debug|.NET = Debug|.NET
|
||||||
@@ -4742,6 +4744,22 @@ Global
|
|||||||
{50AFC9EA-61A7-4D3B-B8E6-82CABD29A421}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
{50AFC9EA-61A7-4D3B-B8E6-82CABD29A421}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||||
{50AFC9EA-61A7-4D3B-B8E6-82CABD29A421}.Release|x86.ActiveCfg = Release|Any CPU
|
{50AFC9EA-61A7-4D3B-B8E6-82CABD29A421}.Release|x86.ActiveCfg = Release|Any CPU
|
||||||
{50AFC9EA-61A7-4D3B-B8E6-82CABD29A421}.Release|x86.Build.0 = Release|Any CPU
|
{50AFC9EA-61A7-4D3B-B8E6-82CABD29A421}.Release|x86.Build.0 = Release|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Debug|.NET.Build.0 = Debug|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Debug|x86.Build.0 = Debug|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Release|.NET.Build.0 = Release|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Release|x86.ActiveCfg = Release|Any CPU
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87}.Release|x86.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
@@ -5035,6 +5053,7 @@ Global
|
|||||||
{48BB802C-43AF-4A3D-93F0-AE88A18E155C} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
{48BB802C-43AF-4A3D-93F0-AE88A18E155C} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
||||||
{C982ECDF-517C-45AD-AF50-F9C7AE07C5E5} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
{C982ECDF-517C-45AD-AF50-F9C7AE07C5E5} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
||||||
{50AFC9EA-61A7-4D3B-B8E6-82CABD29A421} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
{50AFC9EA-61A7-4D3B-B8E6-82CABD29A421} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
||||||
|
{AD3876F3-40C0-47CF-BA36-687139903F87} = {D8A691C5-146D-4613-86CC-438F02FE9106}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {FBE985BB-9F0F-4DBB-8F94-ABC37A803FF9}
|
SolutionGuid = {FBE985BB-9F0F-4DBB-8F94-ABC37A803FF9}
|
||||||
|
|||||||
@@ -85,6 +85,7 @@
|
|||||||
<Compile Include="ServiceInvoiceReport.Designer.cs">
|
<Compile Include="ServiceInvoiceReport.Designer.cs">
|
||||||
<DependentUpon>ServiceInvoiceReport.cs</DependentUpon>
|
<DependentUpon>ServiceInvoiceReport.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Service\CustomCustomerService.cs" />
|
||||||
<Compile Include="Teamauslastung.cs">
|
<Compile Include="Teamauslastung.cs">
|
||||||
<SubType>Component</SubType>
|
<SubType>Component</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|||||||
126
ReportImp/Inkomm/Service/CustomCustomerService.cs
Normal file
126
ReportImp/Inkomm/Service/CustomCustomerService.cs
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
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 Inkomm
|
||||||
|
{
|
||||||
|
public class CustomCustomerService : CustomerService
|
||||||
|
{
|
||||||
|
|
||||||
|
public override long InsertNewCustomer(CustomerDC pCustomerDc)
|
||||||
|
{
|
||||||
|
var cOid = base.InsertNewCustomer(pCustomerDc);
|
||||||
|
|
||||||
|
ErstelleOrdnerStrukturKlienten(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)
|
||||||
|
{
|
||||||
|
ErstelleOrdnerStrukturKlienten(pCustomerOid);
|
||||||
|
}
|
||||||
|
|
||||||
|
return dc;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ErstelleOrdnerStrukturKlienten(long cOid)
|
||||||
|
{
|
||||||
|
// HIERACHIE LEVEL - 1 -
|
||||||
|
var folder01 = CreateBeWoFolderKlienten("BEI", cOid, null);
|
||||||
|
var folder02 = CreateBeWoFolderKlienten("Antrag auf Eingliederungshilfe/Anmeldung", cOid, null);
|
||||||
|
var folder03 = CreateBeWoFolderKlienten("Schweigepflichtentbindung", cOid, null);
|
||||||
|
var folder04 = CreateBeWoFolderKlienten("FAS", cOid, null);
|
||||||
|
var folder05 = CreateBeWoFolderKlienten("Gesundheit", cOid, null);
|
||||||
|
var folder06 = CreateBeWoFolderKlienten("Ausweisdokumente", cOid, null);
|
||||||
|
var folder07 = CreateBeWoFolderKlienten("Wohnungsangelegenheiten", cOid, null);
|
||||||
|
var folder08 = CreateBeWoFolderKlienten("Einkommensbescheid", cOid, null);
|
||||||
|
var folder09 = CreateBeWoFolderKlienten("Kontoauszüge", cOid, null);
|
||||||
|
var folder10 = CreateBeWoFolderKlienten("Antrag SGB IX", cOid, null);
|
||||||
|
var folder11 = CreateBeWoFolderKlienten("Bestellungsurkunde/Gutachten", cOid, null);
|
||||||
|
var folder12 = CreateBeWoFolderKlienten("Korrespondenz LVR", cOid, null);
|
||||||
|
var folder13 = CreateBeWoFolderKlienten("Bewilligung", cOid, null);
|
||||||
|
var folder14 = CreateBeWoFolderKlienten("Betreuungsvertrag", cOid, null);
|
||||||
|
var folder15 = CreateBeWoFolderKlienten("Sonstiges", cOid, null);
|
||||||
|
var folder16 = CreateBeWoFolderKlienten("Quittierungsbelege ", cOid, null);
|
||||||
|
}
|
||||||
|
private void ErstelleOrdnerStrukturHilfepläne(long scOid)
|
||||||
|
{
|
||||||
|
// HIERACHIE LEVEL - 1 -
|
||||||
|
var folder01 = CreateBeWoFolderSupportConcept("BEI", scOid, null);
|
||||||
|
var folder02 = CreateBeWoFolderSupportConcept("Bewilligung", scOid, null);
|
||||||
|
var folder03 = CreateBeWoFolderSupportConcept("Abschlussbericht", scOid, null);
|
||||||
|
|
||||||
|
// HIERACHIE LEVEL - 2 -
|
||||||
|
var folder01_01 = CreateBeWoFolderSupportConcept("Unterschriftenseite BEI", scOid, folder01.Oid);
|
||||||
|
var folder01_02 = CreateBeWoFolderSupportConcept("Anschreiben Erst-BEI", scOid, folder01.Oid);
|
||||||
|
var folder01_03 = CreateBeWoFolderSupportConcept("Anschreiben Folge-BEI", scOid, folder01.Oid);
|
||||||
|
var folder01_04 = CreateBeWoFolderSupportConcept("Abschlussberichte", scOid, folder01.Oid);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private BeWoFolder CreateBeWoFolderKlienten(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 BeWoFolder CreateBeWoFolderSupportConcept(string name, long? scOid, long? parentOid)
|
||||||
|
{
|
||||||
|
BeWoFolder f = new BeWoFolder();
|
||||||
|
f.Name = name;
|
||||||
|
f.ObjectOid = scOid;
|
||||||
|
f.ObjectTid = TableID.SupportConcept;
|
||||||
|
f.ParentBeWoFolderOid = parentOid;
|
||||||
|
|
||||||
|
DAOFactory.GenericDAO.Insert(f);
|
||||||
|
|
||||||
|
return f;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void SaveHierarchie(List<Folder> folderList, long cOid, long? parentOid)
|
||||||
|
{
|
||||||
|
foreach (var item in folderList)
|
||||||
|
{
|
||||||
|
var f = CreateBeWoFolderKlienten(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