From 1fd6040f583887938033b8e6d000664c4c6f626d Mon Sep 17 00:00:00 2001 From: Lyndon Jetten Date: Wed, 30 Sep 2020 19:23:42 +0200 Subject: [PATCH 1/6] =?UTF-8?q?Kilometerauswertung=20f=C3=BCr=20Mitarbeite?= =?UTF-8?q?r=20Ressourcencheck=20ist=20jetzt=20korrekt=20Weiterentwicklung?= =?UTF-8?q?=20der=20Quittierungsbelege=20f=C3=BCr=20die=20Mobilversion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewModel/SchedulerAppointmentListVM.cs | 2 +- BeWo/ServiceProxy/Generated.cs | 42 ++++ .../KilometerauslastungsView.xaml | 29 ++- .../KilometerauslastungsView.xaml.cs | 198 +++++++++++++----- .../Controllers/ReportController.cs | 9 + BeWoPlanerMobil/Models/AbstractModel.cs | 2 +- .../Service/ASPHibernateSessionManager.cs | 14 +- BeWoPlanerMobil/Web.config | 15 +- Data/Access/SearchDAO.cs | 161 +++++++++++--- Data/Data.csproj | 2 +- Data/DefaultHibernateSessionManager.cs | 8 +- Data/Entities/ConfirmationReceiptSignature.cs | 7 + .../ConfirmationReceiptSignature.hbm.xml | 7 +- Data/WCFHibernateSessionManager.cs | 8 +- Report/AbstractReportCreator.cs | 4 + Report/DefaultReportCreator.cs | 18 ++ Report/Report.csproj | 21 ++ .../KilometerauswertungsListRO.cs | 4 +- .../ServiceContracts/IReportService.cs | 8 + .../ReportServiceImp.cs | 18 ++ ...ignatureDC_ConfirmationReceiptSignature.cs | 31 ++- Service/ServiceContracts/IEmployeeService.cs | 4 + .../ServiceContracts/IOperationsService.cs | 4 + .../EmployeeServiceImp.cs | 14 ++ .../OperationsServiceImp.cs | 12 ++ 25 files changed, 530 insertions(+), 112 deletions(-) diff --git a/BeWo/Scheduler/ViewModel/SchedulerAppointmentListVM.cs b/BeWo/Scheduler/ViewModel/SchedulerAppointmentListVM.cs index d394c3857..ea4088b68 100644 --- a/BeWo/Scheduler/ViewModel/SchedulerAppointmentListVM.cs +++ b/BeWo/Scheduler/ViewModel/SchedulerAppointmentListVM.cs @@ -645,7 +645,7 @@ namespace BeWo.Scheduler.ViewModel { var unavailableResources = new List(); - ServiceFacade.DoResourceServiceSync(s => unavailableResources = s.CheckResourceAvailability(vm.Start, vm.End, vm.ResourceList.Select(resource => resource.ResourceOid.Value).ToList(), null)); + ServiceFacade.DoResourceServiceSync(s => unavailableResources = s.CheckResourceAvailability(vm.Start, vm.End, vm.ResourceList.Select(resource => resource.ResourceOid.Value).ToList(), vm.DataContract?.SchedulerAppointmentOid)); if(unavailableResources.Any()) { diff --git a/BeWo/ServiceProxy/Generated.cs b/BeWo/ServiceProxy/Generated.cs index 056bdfa79..139824b9a 100644 --- a/BeWo/ServiceProxy/Generated.cs +++ b/BeWo/ServiceProxy/Generated.cs @@ -291,6 +291,11 @@ namespace BeWo.ServiceProxy "Fault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] System.Collections.Generic.List GetActiveCompactCustomersForEmployee(System.Nullable employeeOid); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/GetActiveCompactEmployeesForEmployee", ReplyAction="http://tempuri.org/IEmployeeService/GetActiveCompactEmployeesForEmployeeResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IEmployeeService/GetActiveCompactEmployeesForEmployeeBeWoFault" + + "Fault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.Collections.Generic.List GetActiveCompactEmployeesForEmployee(long employeeOid); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IEmployeeService/ArchiveEmployee", ReplyAction="http://tempuri.org/IEmployeeService/ArchiveEmployeeResponse")] [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IEmployeeService/ArchiveEmployeeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] void ArchiveEmployee(long pOid, long pVersion); @@ -742,6 +747,11 @@ namespace BeWo.ServiceProxy return base.Channel.GetActiveCompactCustomersForEmployee(employeeOid); } + public System.Collections.Generic.List GetActiveCompactEmployeesForEmployee(long employeeOid) + { + return base.Channel.GetActiveCompactEmployeesForEmployee(employeeOid); + } + public void ArchiveEmployee(long pOid, long pVersion) { base.Channel.ArchiveEmployee(pOid, pVersion); @@ -4823,6 +4833,12 @@ namespace BeWo.ServiceProxy "cordBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] System.Collections.Generic.List GetConfirmationReceiptSignaturesByServiceRecord(long serviceRecordOid); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/GetAllConnfirConfirmationReceiptSignatures", ReplyAction="http://tempuri.org/IOperationsService/GetAllConnfirConfirmationReceiptSignaturesR" + + "esponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/GetAllConnfirConfirmationReceiptSignaturesB" + + "eWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.Collections.Generic.List GetAllConnfirConfirmationReceiptSignatures(); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/UpdateIsChatActiveCustomerAPPCodeDC", ReplyAction="http://tempuri.org/IOperationsService/UpdateIsChatActiveCustomerAPPCodeDCResponse" + "")] [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/UpdateIsChatActiveCustomerAPPCodeDCBeWoFaul" + @@ -5873,6 +5889,11 @@ namespace BeWo.ServiceProxy return base.Channel.GetConfirmationReceiptSignaturesByServiceRecord(serviceRecordOid); } + public System.Collections.Generic.List GetAllConnfirConfirmationReceiptSignatures() + { + return base.Channel.GetAllConnfirConfirmationReceiptSignatures(); + } + public void UpdateIsChatActiveCustomerAPPCodeDC(long customerOid, int activeType) { base.Channel.UpdateIsChatActiveCustomerAPPCodeDC(customerOid, activeType); @@ -7520,6 +7541,17 @@ namespace BeWo.ServiceProxy [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CheckForAnyServiceRecordsWithDistanceValuesBeWo" + "FaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] bool CheckForAnyServiceRecordsWithDistanceValues(System.Collections.Generic.List customerOids, BS.Shared.Core.DateTimeSpan span); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateEmployeeKilometerauswertung", ReplyAction="http://tempuri.org/IReportService/CreateEmployeeKilometerauswertungResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateEmployeeKilometerauswertungBeWoFaultFault" + + "", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.IO.MemoryStream CreateEmployeeKilometerauswertung(long employeeOid, System.DateTime range); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IReportService/CreateKilometerauswertungForAllEmployees", ReplyAction="http://tempuri.org/IReportService/CreateKilometerauswertungForAllEmployeesRespons" + + "e")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IReportService/CreateKilometerauswertungForAllEmployeesBeWoFau" + + "ltFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.IO.MemoryStream CreateKilometerauswertungForAllEmployees(System.Collections.Generic.List employeeOids, System.DateTime rangeDate); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] @@ -7610,6 +7642,16 @@ namespace BeWo.ServiceProxy { return base.Channel.CheckForAnyServiceRecordsWithDistanceValues(customerOids, span); } + + public System.IO.MemoryStream CreateEmployeeKilometerauswertung(long employeeOid, System.DateTime range) + { + return base.Channel.CreateEmployeeKilometerauswertung(employeeOid, range); + } + + public System.IO.MemoryStream CreateKilometerauswertungForAllEmployees(System.Collections.Generic.List employeeOids, System.DateTime rangeDate) + { + return base.Channel.CreateKilometerauswertungForAllEmployees(employeeOids, rangeDate); + } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] diff --git a/BeWo/View/Report/Kilometerauswertung/KilometerauslastungsView.xaml b/BeWo/View/Report/Kilometerauswertung/KilometerauslastungsView.xaml index d450db3a1..196780da9 100644 --- a/BeWo/View/Report/Kilometerauswertung/KilometerauslastungsView.xaml +++ b/BeWo/View/Report/Kilometerauswertung/KilometerauslastungsView.xaml @@ -13,6 +13,8 @@ xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars" xmlns:dxpbars="http://schemas.devexpress.com/winfx/2008/xaml/printing/bars" d:DesignHeight="450" d:DesignWidth="800" + + Initialized="KilometerauslastungsView_OnInitialized" Width="Auto" Height="Auto" d:DataContext="{d:DesignData KilometerauslastungsView}"> @@ -29,22 +31,28 @@ + - + + - + + -