From 75d59e3c4097ef12ba6fe876322d6ffc5aa5a4b3 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Wed, 17 Apr 2024 16:33:19 +0200 Subject: [PATCH] =?UTF-8?q?GkvAbrechnung=20View=20erweitert=20Service=20f?= =?UTF-8?q?=C3=BCr=20app8=20gebaut=20BeWoWindowBuilder=20Einf=C3=BChrung:?= =?UTF-8?q?=20Zentraler=20Ort=20f=C3=BCr=20generische,=20kleine=20Fenster,?= =?UTF-8?q?=20wie=20Text=20Viewer,=20Text=20Editor,=20Picture=20Shower,=20?= =?UTF-8?q?etc.=20Alte=20Gkv=20Abrechnungsansicht=20deaktiviert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWo/BeWo.csproj | 1 + BeWo/ServiceProxy/Generated.cs | 92 ++- BeWo/View/BeWoWindow.xaml.cs | 2 +- BeWo/View/BeWoWindowBuilder.cs | 48 ++ .../Accounting/DigitalInvoiceOverview.xaml.cs | 270 +++---- .../Accounting/GkvAbrechnungOverview.xaml | 31 +- .../Accounting/GkvAbrechnungOverview.xaml.cs | 88 ++- .../NewGkvAbrechnungPopUpView .xaml.cs | 2 +- BeWo/View/Master/FinanceView.xaml.cs | 6 - BeWo/ViewModel/GkvAbrechnungVM.cs | 221 ++++-- .../ListViewModel/GkvAbrechnungListVM.cs | 7 +- Dakota/Logic/DakotaInfoCreator.cs | 7 +- Dakota/Logic/DakotaManager.cs | 47 +- Dakota/Models/Blocke/BlockKrankenkasse.cs | 4 +- Dakota/Models/DakotaFile.cs | 27 +- Dakota/Models/Daten/DatenelementDecimal.cs | 7 +- Dakota/Models/Infos/InfoAbrechnungsfall.cs | 6 - Dakota/Models/Nachrichten/NachrichtSLGA.cs | 2 +- Dakota/Models/Segmente/SLGA/SegmentSLGAFKT.cs | 6 +- Data/Access/SearchDAO.cs | 24 + Data/Entities/GkvAbrechnung.cs | 26 +- Data/Mappings/GkvAbrechnung.hbm.xml | 7 +- Host/GkvInvoiceService.svc | 1 + Host/Host.csproj | 1 + .../GkvAbrechnungDC_GkvAbrechnung.cs | 28 +- Service/Service.csproj | 2 + .../ServiceContracts/IAccountingService.cs | 24 +- .../ServiceContracts/IGkvInvoiceService.cs | 19 + .../AccountingServiceImp.cs | 123 ++++ .../GkvInvoiceServiceImp.cs | 11 + .../OperationsServiceImp.cs | 660 +++++++++--------- Shared/DataContracts/GkvAbrechnungDC.cs | 25 +- Shared/DataContracts/GkvAbrechnungFilterDC.cs | 26 + .../GkvAbrechnungViewFilterDC.cs | 30 + Shared/Shared.csproj | 2 + 35 files changed, 1239 insertions(+), 644 deletions(-) create mode 100644 BeWo/View/BeWoWindowBuilder.cs create mode 100644 Host/GkvInvoiceService.svc create mode 100644 Service/ServiceContracts/IGkvInvoiceService.cs create mode 100644 Service/ServiceImplementations/GkvInvoiceServiceImp.cs create mode 100644 Shared/DataContracts/GkvAbrechnungFilterDC.cs create mode 100644 Shared/DataContracts/GkvAbrechnungViewFilterDC.cs diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj index a98a8ee0a..1c1a57d66 100644 --- a/BeWo/BeWo.csproj +++ b/BeWo/BeWo.csproj @@ -1051,6 +1051,7 @@ + DPCtrlEmployeeContractTooltip.xaml diff --git a/BeWo/ServiceProxy/Generated.cs b/BeWo/ServiceProxy/Generated.cs index e90ac745d..ebe56270f 100644 --- a/BeWo/ServiceProxy/Generated.cs +++ b/BeWo/ServiceProxy/Generated.cs @@ -1860,6 +1860,10 @@ namespace BeWo.ServiceProxy [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.Dictionary>))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.Dictionary>))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.Dictionary>))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.BargeldtransaktionshistoryDC))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.SignatureDC))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.ConfirmationReceiptSignatureDC))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] @@ -1888,7 +1892,6 @@ namespace BeWo.ServiceProxy [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.ServiceRecordValidationResultDC))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.SbdConfigDC))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.SignatureDC))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.PreisDC))] @@ -1979,16 +1982,16 @@ namespace BeWo.ServiceProxy [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.FLSAnalysisDataDetailDC))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.StatementType))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.SignatureStateType))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.Zahlungstyp))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.SignatureType))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.ServiceRecordValidationResult))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.HomeViewPanelType))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.Auszahlungsintervall))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.Zahlungstyp))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.VertretungsStatus))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.SchulbegleitenderZugehoerigkeitsTyp))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.MessageType))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.StatementType))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.SignatureStateType))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.UiElementType))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.Dictionary>))] @@ -2045,6 +2048,8 @@ namespace BeWo.ServiceProxy [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.GkvAbrechnungDC))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.GkvAbrechnungViewFilterDC))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.GkvAbrechnungFilterDC))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.InvoiceType))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.IO.MemoryStream))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.IO.Stream))] @@ -5274,6 +5279,21 @@ namespace BeWo.ServiceProxy "aultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] System.Collections.Generic.List FindServiceRecordsForLastDaysPaginated(out int rowCount, System.Nullable costbearer2SupportConceptOid, int days, System.Nullable employeeOid, int firstResult, int maxResults); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/LoadBargeldtransaktionshistoryEntries", ReplyAction="http://tempuri.org/IOperationsService/LoadBargeldtransaktionshistoryEntriesRespon" + + "se")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/LoadBargeldtransaktionshistoryEntriesBeWoFa" + + "ultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.Collections.Generic.List LoadBargeldtransaktionshistoryEntries(long transaktionsOid); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/DeleteBargeldtransaktionSignature", ReplyAction="http://tempuri.org/IOperationsService/DeleteBargeldtransaktionSignatureResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/DeleteBargeldtransaktionSignatureBeWoFaultF" + + "ault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + void DeleteBargeldtransaktionSignature(long signatureOid); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/GetAllSignatures", ReplyAction="http://tempuri.org/IOperationsService/GetAllSignaturesResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/GetAllSignaturesBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.Collections.Generic.List GetAllSignatures(); + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IOperationsService/DeleteCertainDienstEintragOutOfTable", ReplyAction="http://tempuri.org/IOperationsService/DeleteCertainDienstEintragOutOfTableRespons" + "e")] [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IOperationsService/DeleteCertainDienstEintragOutOfTableBeWoFau" + @@ -5840,6 +5860,10 @@ namespace BeWo.ServiceProxy [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.Dictionary>))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.Dictionary>))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.Dictionary>))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.BargeldtransaktionshistoryDC))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.SignatureDC))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.ConfirmationReceiptSignatureDC))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] @@ -5868,7 +5892,6 @@ namespace BeWo.ServiceProxy [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.ServiceRecordValidationResultDC))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.SbdConfigDC))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.SignatureDC))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.PreisDC))] @@ -5959,16 +5982,16 @@ namespace BeWo.ServiceProxy [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.FLSAnalysisDataDetailDC))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.StatementType))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.SignatureStateType))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.Zahlungstyp))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.SignatureType))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.ServiceRecordValidationResult))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.HomeViewPanelType))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.Auszahlungsintervall))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.Zahlungstyp))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.VertretungsStatus))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.SchulbegleitenderZugehoerigkeitsTyp))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.MessageType))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.StatementType))] - [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.SignatureStateType))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.UiElementType))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.Dictionary>))] @@ -6025,6 +6048,8 @@ namespace BeWo.ServiceProxy [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.List))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.GkvAbrechnungDC))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.GkvAbrechnungViewFilterDC))] + [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.DataContracts.GkvAbrechnungFilterDC))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(BS.Shared.InvoiceType))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.IO.MemoryStream))] [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.IO.Stream))] @@ -7241,6 +7266,21 @@ namespace BeWo.ServiceProxy return base.Channel.FindServiceRecordsForLastDaysPaginated(out rowCount, costbearer2SupportConceptOid, days, employeeOid, firstResult, maxResults); } + public System.Collections.Generic.List LoadBargeldtransaktionshistoryEntries(long transaktionsOid) + { + return base.Channel.LoadBargeldtransaktionshistoryEntries(transaktionsOid); + } + + public void DeleteBargeldtransaktionSignature(long signatureOid) + { + base.Channel.DeleteBargeldtransaktionSignature(signatureOid); + } + + public System.Collections.Generic.List GetAllSignatures() + { + return base.Channel.GetAllSignatures(); + } + public void DeleteCertainDienstEintragOutOfTable(long dienstEintragOid) { base.Channel.DeleteCertainDienstEintragOutOfTable(dienstEintragOid); @@ -9334,6 +9374,22 @@ namespace BeWo.ServiceProxy [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAccountingService/InsertNewGkvAbrechnungen", ReplyAction="http://tempuri.org/IAccountingService/InsertNewGkvAbrechnungenResponse")] [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAccountingService/InsertNewGkvAbrechnungenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] System.Collections.Generic.List InsertNewGkvAbrechnungen(System.Collections.Generic.List dc); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAccountingService/GetGkvAbrechnung", ReplyAction="http://tempuri.org/IAccountingService/GetGkvAbrechnungResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAccountingService/GetGkvAbrechnungBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + BS.Shared.DataContracts.GkvAbrechnungDC GetGkvAbrechnung(long oid); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAccountingService/GetAllGkvAbrechnungen", ReplyAction="http://tempuri.org/IAccountingService/GetAllGkvAbrechnungenResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAccountingService/GetAllGkvAbrechnungenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.Collections.Generic.List GetAllGkvAbrechnungen(); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAccountingService/GetFilteredGkvAbrechnungen", ReplyAction="http://tempuri.org/IAccountingService/GetFilteredGkvAbrechnungenResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAccountingService/GetFilteredGkvAbrechnungenBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + System.Collections.Generic.List GetFilteredGkvAbrechnungen(BS.Shared.DataContracts.GkvAbrechnungViewFilterDC gkvAbrechnungViewFilter); + + [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IAccountingService/MakeNewGkvAbrechnung", ReplyAction="http://tempuri.org/IAccountingService/MakeNewGkvAbrechnungResponse")] + [System.ServiceModel.FaultContractAttribute(typeof(BeWo.ServiceProxy.BeWoFault), Action="http://tempuri.org/IAccountingService/MakeNewGkvAbrechnungBeWoFaultFault", Name="BeWoFault", Namespace="http://schemas.datacontract.org/2004/07/BeWo.Service.ServiceContracts")] + BS.Shared.DataContracts.GkvAbrechnungDC MakeNewGkvAbrechnung(BS.Shared.DataContracts.GkvAbrechnungFilterDC abrechnungFilterDC); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] @@ -9529,6 +9585,26 @@ namespace BeWo.ServiceProxy { return base.Channel.InsertNewGkvAbrechnungen(dc); } + + public BS.Shared.DataContracts.GkvAbrechnungDC GetGkvAbrechnung(long oid) + { + return base.Channel.GetGkvAbrechnung(oid); + } + + public System.Collections.Generic.List GetAllGkvAbrechnungen() + { + return base.Channel.GetAllGkvAbrechnungen(); + } + + public System.Collections.Generic.List GetFilteredGkvAbrechnungen(BS.Shared.DataContracts.GkvAbrechnungViewFilterDC gkvAbrechnungViewFilter) + { + return base.Channel.GetFilteredGkvAbrechnungen(gkvAbrechnungViewFilter); + } + + public BS.Shared.DataContracts.GkvAbrechnungDC MakeNewGkvAbrechnung(BS.Shared.DataContracts.GkvAbrechnungFilterDC abrechnungFilterDC) + { + return base.Channel.MakeNewGkvAbrechnung(abrechnungFilterDC); + } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] diff --git a/BeWo/View/BeWoWindow.xaml.cs b/BeWo/View/BeWoWindow.xaml.cs index 2c2afec03..70049c5de 100644 --- a/BeWo/View/BeWoWindow.xaml.cs +++ b/BeWo/View/BeWoWindow.xaml.cs @@ -8,7 +8,7 @@ namespace BeWo.View /// /// Interaktionslogik für BeWoWindow.xaml /// - public partial class BeWoWindow : Window + public partial class BeWoWindow : System.Windows.Window { private object _GroupBoxContent; public object GroupBoxContent diff --git a/BeWo/View/BeWoWindowBuilder.cs b/BeWo/View/BeWoWindowBuilder.cs new file mode 100644 index 000000000..2f16f1873 --- /dev/null +++ b/BeWo/View/BeWoWindowBuilder.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; + +namespace BeWo.View +{ + public static class BeWoWindowBuilder + { + public static BeWoWindow GetTextViewer(string title, string text, bool fixed_size = false, double height = 600, double width = 400) + { + if (fixed_size) + return GetTextViewer(title, text, height, height, height, width, width, width); + + return GetTextViewer(title, text, 300, height, 1000, 200, width, 1900); + } + + public static BeWoWindow GetTextViewer(string title, string text, double min_height, double height, double max_height, double min_width, double width, double max_width) + { + var control = new TextBlock(); + + control.Text = text; + + var scrollviewer = new ScrollViewer(); + + scrollviewer.Content = control; + + var beWoWindow = new BeWoWindow(); + + beWoWindow.Height = height; + beWoWindow.MinHeight = min_height; + beWoWindow.MaxHeight= max_height; + beWoWindow.Width = width; + beWoWindow.MinWidth = min_width; + beWoWindow.MaxHeight = max_width; + + beWoWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner; + beWoWindow.GroupBoxContent = scrollviewer; + beWoWindow.Owner = BeWoApp.CurrentBeWo.MainWindow; + beWoWindow.rootGroupBox.Header = title; + + return beWoWindow; + } + } +} diff --git a/BeWo/View/Detail/Accounting/DigitalInvoiceOverview.xaml.cs b/BeWo/View/Detail/Accounting/DigitalInvoiceOverview.xaml.cs index d991e01f9..d50d59e26 100644 --- a/BeWo/View/Detail/Accounting/DigitalInvoiceOverview.xaml.cs +++ b/BeWo/View/Detail/Accounting/DigitalInvoiceOverview.xaml.cs @@ -1,144 +1,144 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Web; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Documents; -using System.Windows.Media; -using System.Windows.Navigation; -using System.Windows.Threading; -using BeWo.Core; -using BeWo.ServiceProxy; -using BeWo.ViewModel; -using BeWo.ViewModel.ListViewModel; - -using BS.Shared; -using BS.Shared.Core; -using BS.Shared.DataContracts; -using BS.Shared.Extensions; - -using DevExpress.Xpf.Editors; -using DevExpress.Xpf.Grid; -using Microsoft.Win32; - -namespace BeWo.View.Detail.Accounting -{ - public partial class DigitalInvoiceOverview : BeWoView - { - private readonly EquityInvoiceItemEditView _EquityInvoiceItemEditView; - - private readonly GeneralInvoiceItemEditView _GeneralInvoiceItemEditView; - - private readonly SettlementInvoiceItemEditView _SettlementInvoiceItemEditView; - - private readonly SettlementInvoiceItemEditView2 _SettlementInvoiceItemEditView2; - - private readonly ServiceInvoiceItemEditView _ServiceInvoiceItemEditView; - - private InvoiceBaseListVM _Viewmodel; - - public DigitalInvoiceOverview() - { +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Web; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Documents; +using System.Windows.Media; +using System.Windows.Navigation; +using System.Windows.Threading; +using BeWo.Core; +using BeWo.ServiceProxy; +using BeWo.ViewModel; +using BeWo.ViewModel.ListViewModel; + +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts; +using BS.Shared.Extensions; + +using DevExpress.Xpf.Editors; +using DevExpress.Xpf.Grid; +using Microsoft.Win32; + +namespace BeWo.View.Detail.Accounting +{ + public partial class DigitalInvoiceOverview : BeWoView + { + private readonly EquityInvoiceItemEditView _EquityInvoiceItemEditView; + + private readonly GeneralInvoiceItemEditView _GeneralInvoiceItemEditView; + + private readonly SettlementInvoiceItemEditView _SettlementInvoiceItemEditView; + + private readonly SettlementInvoiceItemEditView2 _SettlementInvoiceItemEditView2; + + private readonly ServiceInvoiceItemEditView _ServiceInvoiceItemEditView; + + private InvoiceBaseListVM _Viewmodel; + + public DigitalInvoiceOverview() + { this.InitializeComponent(); this.ViewModel = new InvoiceBaseListVM(null); - - RefreshInvoiceList(); - } - - private void RefreshInvoiceList() - { - DateTime? start = null; - DateTime? end = null; - - if (ViewModel.DateTimeSpanFilter != null) - { - start = ViewModel.DateTimeSpanFilter.StartDate; - end = ViewModel.DateTimeSpanFilter.EndDate; - } + + RefreshInvoiceList(); + } + + private void RefreshInvoiceList() + { + DateTime? start = null; + DateTime? end = null; + + if (ViewModel.DateTimeSpanFilter != null) + { + start = ViewModel.DateTimeSpanFilter.StartDate; + end = ViewModel.DateTimeSpanFilter.EndDate; + } else { start = new DateTime(2023, 1, 1); end = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); } - ServiceFacade.DoAccountingServiceAsync(s => s.GetInvoiceBases(start, end), UpdateInvoiceList); - } - - private void UpdateInvoiceList(IList dcList) - { - this.Dispatcher.BeginInvoke( - DispatcherPriority.Normal, - (Action)delegate - { - ViewModel.UpdateList(dcList.Where(x => true).ToList()); - this.gridView.BestFitColumns(); - }); - } - - private InvoiceBaseListVM ViewModel - { - get - { - return this._Viewmodel; - } - - set - { - this.DataContext = value; - this._Viewmodel = value; - } - } - - private void RefreshItemInList(InvoiceBaseDC cb) - { - this.Dispatch( - delegate - { - var old = this.ViewModel.VMList.Single(i => i.DataContract.InvoiceBaseOid.Equals(cb.InvoiceBaseOid)); - var lNew = new InvoiceBaseVM(cb); - - this.ViewModel.VMList.Remove(old); - this.ViewModel.VMList.Add(lNew); - this.datagrid_invoices.RefreshData(); - this.gridView.FocusedRow = lNew; - }); - } - - private void gridView_Loaded(object sender, RoutedEventArgs e) - { - this.gridView.BestFitColumns(); - } - - private void gridView_ShownEditor(object sender, EditorEventArgs e) - { - if (e.Editor is CheckEdit) - { - var ed = (CheckEdit)e.Editor; - ed.Tag = e.Row; - } - } - - private void Hyperlink_OnRequestNavigate(object sender, RequestNavigateEventArgs e) - { - var uri = ((Hyperlink)sender).NavigateUri; - string dcid = HttpUtility.ParseQueryString(uri.Query).Get("ibid"); - - var schaarf = ServiceFacade.DoOperationsServiceSync(x => x.GetDakotaFileFormat(dcid)); - - Output.Text = schaarf; - } - - private void ReloadButton_OnClick(object sender, RoutedEventArgs e) - { - RefreshInvoiceList(); - } - - private void YearMonthFilter_FilterSpanChanged(object sender, EventArgs e) - { - this.ViewModel.DateTimeSpanFilter = e.Data; - RefreshInvoiceList(); - } - } + ServiceFacade.DoAccountingServiceAsync(s => s.GetInvoiceBases(start, end), UpdateInvoiceList); + } + + private void UpdateInvoiceList(IList dcList) + { + this.Dispatcher.BeginInvoke( + DispatcherPriority.Normal, + (Action)delegate + { + ViewModel.UpdateList(dcList.Where(x => true).ToList()); + this.gridView.BestFitColumns(); + }); + } + + private InvoiceBaseListVM ViewModel + { + get + { + return this._Viewmodel; + } + + set + { + this.DataContext = value; + this._Viewmodel = value; + } + } + + private void RefreshItemInList(InvoiceBaseDC cb) + { + this.Dispatch( + delegate + { + var old = this.ViewModel.VMList.Single(i => i.DataContract.InvoiceBaseOid.Equals(cb.InvoiceBaseOid)); + var lNew = new InvoiceBaseVM(cb); + + this.ViewModel.VMList.Remove(old); + this.ViewModel.VMList.Add(lNew); + this.datagrid_invoices.RefreshData(); + this.gridView.FocusedRow = lNew; + }); + } + + private void gridView_Loaded(object sender, RoutedEventArgs e) + { + this.gridView.BestFitColumns(); + } + + private void gridView_ShownEditor(object sender, EditorEventArgs e) + { + if (e.Editor is CheckEdit) + { + var ed = (CheckEdit)e.Editor; + ed.Tag = e.Row; + } + } + + private void Hyperlink_OnRequestNavigate(object sender, RequestNavigateEventArgs e) + { + var uri = ((Hyperlink)sender).NavigateUri; + string dcid = HttpUtility.ParseQueryString(uri.Query).Get("ibid"); + + var schaarf = ServiceFacade.DoOperationsServiceSync(x => x.GetDakotaFileFormat(dcid)); + + Output.Text = schaarf; + } + + private void ReloadButton_OnClick(object sender, RoutedEventArgs e) + { + RefreshInvoiceList(); + } + + private void YearMonthFilter_FilterSpanChanged(object sender, EventArgs e) + { + this.ViewModel.DateTimeSpanFilter = e.Data; + RefreshInvoiceList(); + } + } } \ No newline at end of file diff --git a/BeWo/View/Detail/Accounting/GkvAbrechnungOverview.xaml b/BeWo/View/Detail/Accounting/GkvAbrechnungOverview.xaml index a8e17d48b..766344501 100644 --- a/BeWo/View/Detail/Accounting/GkvAbrechnungOverview.xaml +++ b/BeWo/View/Detail/Accounting/GkvAbrechnungOverview.xaml @@ -1,4 +1,13 @@ - + @@ -27,7 +36,7 @@ - + @@ -41,22 +50,26 @@