From b1fe39b26f446c28d4b421a3cba8aee252854701 Mon Sep 17 00:00:00 2001 From: Waldi Date: Thu, 8 Dec 2016 14:17:41 +0100 Subject: [PATCH] Person -> Customer -> Organisation erweitert. --- BeWo/ServiceProxy/Generated.cs | 20 +++ BeWo/View/Detail/CustomerView.xaml | 124 ++++++++++++------ BeWo/View/Detail/CustomerView.xaml.cs | 39 ++++++ BeWo/View/Detail/EnvironmentRoleView.xaml | 1 + BeWo/View/Detail/EnvironmentRoleView.xaml.cs | 16 ++- BeWo/View/Detail/OrganisationView.xaml | 82 +++++++++++- BeWo/View/Detail/OrganisationView.xaml.cs | 46 ++++++- BeWo/View/Detail/PersonView.xaml | 20 ++- BeWo/View/Detail/PersonView.xaml.cs | 1 + BeWo/View/Master/AdministrationView.xaml.cs | 15 ++- .../CustomerOrganisationRelationVM.cs | 32 +++++ BeWo/ViewModel/CustomerPersonRelationVM.cs | 32 +++++ .../ViewModel/OrganisationPersonRelationVM.cs | 11 ++ BeWo/ViewModel/OrganisationVM.cs | 21 ++- .../ViewModel/PersonOrganisationRelationVM.cs | 23 +++- BeWo/ViewModel/PersonVM.cs | 20 ++- BeWo/ViewModel/VMFactory.cs | 19 ++- BeWoChatServer/Multitenancy/demo.config | 8 +- BeWoOhneReports.sln | 9 +- BeWoPlanerAndroid/Web.config | 2 +- Data/Access/SearchDAO.cs | 11 +- Data/Entities/Customer2Organisation.cs | 20 +++ Data/Entities/Customer2Person.cs | 21 +++ Data/Entities/Organisation2Person.cs | 18 +++ Data/Mappings/Customer2Organisation.hbm.xml | 2 + Data/Mappings/Customer2Person.hbm.xml | 2 + Data/Mappings/Organisation2Person.hbm.xml | 3 + Host/Multitenancy/demo.config | 8 +- Model/Changes_2016_12_02.txt | 8 ++ Model/Changes_2016_12_05.txt | 9 ++ ...isationRelationDC_Customer2Organisation.cs | 10 ++ ...ustomerPersonRelationDC_Customer2Person.cs | 8 ++ ...ganisation2PersonDC_Organisation2Person.cs | 13 +- ...onPersonRelDC_Organisation2PersonMapper.cs | 4 + Service/ServiceContracts/ICustomerService.cs | 4 + .../ServiceContracts/IOperationsService.cs | 7 +- .../CustomerServiceImp.cs | 11 ++ .../OperationsServiceImp.cs | 30 ++++- Shared/BeWoEntityEnums.cs | 3 +- Shared/Core/EnumTranslations.cs | 8 +- .../CustomerOrganisationRelationDC.cs | 3 + .../DataContracts/CustomerPersonRelationDC.cs | 3 + Shared/DataContracts/Organisation2PersonDC.cs | 3 + .../OrganisationPersonRelationDC.cs | 3 + 44 files changed, 672 insertions(+), 81 deletions(-) create mode 100644 Model/Changes_2016_12_02.txt create mode 100644 Model/Changes_2016_12_05.txt diff --git a/BeWo/ServiceProxy/Generated.cs b/BeWo/ServiceProxy/Generated.cs index 1c6bc518e..2dbdd0c05 100644 --- a/BeWo/ServiceProxy/Generated.cs +++ b/BeWo/ServiceProxy/Generated.cs @@ -1233,6 +1233,10 @@ namespace BeWo.ServiceProxy [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/ICustomerService/GetChatMediaBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] byte[] GetChatMedia(long chatMediaMessageOid); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ICustomerService/GetOrganisationsForPerson", ReplyAction="http://tempuri.org/ICustomerService/GetOrganisationsForPersonResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/ICustomerService/GetOrganisationsForPersonBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.Collections.Generic.List GetOrganisationsForPerson(long personoid); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ICustomerService/ArchiveCustomer", ReplyAction="http://tempuri.org/ICustomerService/ArchiveCustomerResponse")] [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/ICustomerService/ArchiveCustomerBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] void ArchiveCustomer(long pOid, long pVersion); @@ -1982,6 +1986,11 @@ namespace BeWo.ServiceProxy return base.Channel.GetChatMedia(chatMediaMessageOid); } + public System.Collections.Generic.List GetOrganisationsForPerson(long personoid) + { + return base.Channel.GetOrganisationsForPerson(personoid); + } + public void ArchiveCustomer(long pOid, long pVersion) { base.Channel.ArchiveCustomer(pOid, pVersion); @@ -4010,6 +4019,12 @@ namespace BeWo.ServiceProxy [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/DeactivateBargeldkasseBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] void DeactivateBargeldkasse(long pOid, long pVersion); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/CreateNewPerson2OrganisationRelation", ReplyAction="http://tempuri.org/IOperationsService/CreateNewPerson2OrganisationRelationRespons" + + "e")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/CreateNewPerson2OrganisationRelationBeWoFau" + + "ltFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + void CreateNewPerson2OrganisationRelation(long organi, BS.Shared.DataContracts.ValueListEntryDC value, long personOid, string mail, string fax, string tele, string notice); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/DeactivateInvoices", ReplyAction="http://tempuri.org/IOperationsService/DeactivateInvoicesResponse")] [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/DeactivateInvoicesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] void DeactivateInvoices(System.Collections.Generic.List invoices); @@ -4681,6 +4696,11 @@ namespace BeWo.ServiceProxy base.Channel.DeactivateBargeldkasse(pOid, pVersion); } + public void CreateNewPerson2OrganisationRelation(long organi, BS.Shared.DataContracts.ValueListEntryDC value, long personOid, string mail, string fax, string tele, string notice) + { + base.Channel.CreateNewPerson2OrganisationRelation(organi, value, personOid, mail, fax, tele, notice); + } + public void DeactivateInvoices(System.Collections.Generic.List invoices) { base.Channel.DeactivateInvoices(invoices); diff --git a/BeWo/View/Detail/CustomerView.xaml b/BeWo/View/Detail/CustomerView.xaml index 5d146a9ef..20651764d 100644 --- a/BeWo/View/Detail/CustomerView.xaml +++ b/BeWo/View/Detail/CustomerView.xaml @@ -248,6 +248,7 @@ + @@ -267,6 +268,7 @@ + @@ -1199,30 +1201,52 @@ + -