From d5a64217e7fbbb4fb441824d515dd1893a8f1c13 Mon Sep 17 00:00:00 2001 From: rene Date: Thu, 30 Jan 2020 20:44:35 +0100 Subject: [PATCH] =?UTF-8?q?Abwesenheitstabelle=20hinzugef=C3=BCgt=20(Add,?= =?UTF-8?q?=20Edit,=20Delete)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWo/BeWo.csproj | 7 + BeWo/Scheduler/View/NewSchedulerView.xaml.cs | 3 +- BeWo/ServiceProxy/Generated.cs | 27 ++ .../Detail/Report/AbwesenheitsEditView.xaml | 44 ++++ .../Report/AbwesenheitsEditView.xaml.cs | 127 +++++++++ .../Report/AbwesenheitstabelleView.xaml | 57 +++-- .../Report/AbwesenheitstabelleView.xaml.cs | 242 +++++++++--------- .../ServiceContracts/IOperationsService.cs | 12 + .../OperationsServiceImp.cs | 59 +++++ 9 files changed, 434 insertions(+), 144 deletions(-) create mode 100644 BeWo/View/Detail/Report/AbwesenheitsEditView.xaml create mode 100644 BeWo/View/Detail/Report/AbwesenheitsEditView.xaml.cs diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj index b5ac107e5..9d879a3f6 100644 --- a/BeWo/BeWo.csproj +++ b/BeWo/BeWo.csproj @@ -304,6 +304,10 @@ MSBuild:Compile Designer + + MSBuild:Compile + Designer + MSBuild:Compile Designer @@ -875,6 +879,9 @@ AbwesenheitstabelleView.xaml + + AbwesenheitsEditView.xaml + IcfImportControl.xaml diff --git a/BeWo/Scheduler/View/NewSchedulerView.xaml.cs b/BeWo/Scheduler/View/NewSchedulerView.xaml.cs index e759a1320..7a029d5e3 100644 --- a/BeWo/Scheduler/View/NewSchedulerView.xaml.cs +++ b/BeWo/Scheduler/View/NewSchedulerView.xaml.cs @@ -1058,7 +1058,7 @@ namespace BeWo.Scheduler.View ShowPrivateAppointmentsCheckBox.IsChecked = true; } - ViewModel.ActiveAppointmentViewModel.InsertAppointments(Scheduler, appList); + ViewModel.ActiveAppointmentViewModel.InsertAppointments(Scheduler, appList); UpdateRequestString(); ReloadVM(true); } @@ -1141,7 +1141,6 @@ namespace BeWo.Scheduler.View { e.Menu.ItemLinks.Remove(verfuegbarkeitMenue); } - } if(Scheduler.SelectedAppointments.Count == 0 || Scheduler.SelectedAppointments[0]?.Type != AppointmentType.ChangedOccurrence) diff --git a/BeWo/ServiceProxy/Generated.cs b/BeWo/ServiceProxy/Generated.cs index 7d4e22ed0..2e5bda7d6 100644 --- a/BeWo/ServiceProxy/Generated.cs +++ b/BeWo/ServiceProxy/Generated.cs @@ -4674,6 +4674,18 @@ namespace BeWo.ServiceProxy [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/GetAllAbsenceReasonBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] System.Collections.Generic.List GetAllAbsenceReason(); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/UpdateAbsenceTimeWithReturn", ReplyAction="http://tempuri.org/IOperationsService/UpdateAbsenceTimeWithReturnResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/UpdateAbsenceTimeWithReturnBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + BS.Shared.DataContracts.AbsenceTimeDC UpdateAbsenceTimeWithReturn(BS.Shared.DataContracts.AbsenceTimeDC absenceTimeDC); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/InsertAbsenceTimeWithReturn", ReplyAction="http://tempuri.org/IOperationsService/InsertAbsenceTimeWithReturnResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/InsertAbsenceTimeWithReturnBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + BS.Shared.DataContracts.AbsenceTimeDC InsertAbsenceTimeWithReturn(BS.Shared.DataContracts.AbsenceTimeDC absenceTimeDC); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/DeleteAbsenceTime", ReplyAction="http://tempuri.org/IOperationsService/DeleteAbsenceTimeResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/DeleteAbsenceTimeBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + void DeleteAbsenceTime(BS.Shared.DataContracts.AbsenceTimeDC absenceTimeDC); + [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" + @@ -5629,6 +5641,21 @@ namespace BeWo.ServiceProxy return base.Channel.GetAllAbsenceReason(); } + public BS.Shared.DataContracts.AbsenceTimeDC UpdateAbsenceTimeWithReturn(BS.Shared.DataContracts.AbsenceTimeDC absenceTimeDC) + { + return base.Channel.UpdateAbsenceTimeWithReturn(absenceTimeDC); + } + + public BS.Shared.DataContracts.AbsenceTimeDC InsertAbsenceTimeWithReturn(BS.Shared.DataContracts.AbsenceTimeDC absenceTimeDC) + { + return base.Channel.InsertAbsenceTimeWithReturn(absenceTimeDC); + } + + public void DeleteAbsenceTime(BS.Shared.DataContracts.AbsenceTimeDC absenceTimeDC) + { + base.Channel.DeleteAbsenceTime(absenceTimeDC); + } + public void UpdateIsChatActiveCustomerAPPCodeDC(long customerOid, int activeType) { base.Channel.UpdateIsChatActiveCustomerAPPCodeDC(customerOid, activeType); diff --git a/BeWo/View/Detail/Report/AbwesenheitsEditView.xaml b/BeWo/View/Detail/Report/AbwesenheitsEditView.xaml new file mode 100644 index 000000000..96eb4e49a --- /dev/null +++ b/BeWo/View/Detail/Report/AbwesenheitsEditView.xaml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + +