From 21febac1a0a23b5acfbbc97c270159daf310d313 Mon Sep 17 00:00:00 2001 From: Christian Date: Sun, 21 Feb 2021 19:01:51 +0100 Subject: [PATCH] cb reports --- .gitignore | 1 + BeWo/BeWo.csproj | 8 + BeWo/Core/BeWoUtils.cs | 169 ++- BeWo/LoginControl.xaml.cs | 21 +- BeWo/View/Detail/CustomerView.xaml.cs | 6 +- BeWo/View/Detail/EmployeeView.xaml.cs | 5 +- .../Detail/SupportConceptGoalRatingView.xaml | 2 +- .../SupportConceptGoalRatingView.xaml.cs | 63 +- BeWo/View/Master/AdministrationView.xaml | 3 +- BeWo/View/NotizenView.xaml | 22 +- BeWo/View/NotizenView.xaml.cs | 43 + BeWo/View/TwoFactorAuthMessageDialog.xaml | 79 + BeWo/View/TwoFactorAuthMessageDialog.xaml.cs | 107 ++ .../ListViewModel/ServiceRecordListVM.cs | 41 + BeWo/ownChat/ChatDokumentationsView.xaml.cs | 7 +- BeWoAllReports.sln | 19 + BeWoPlanerMobil/Controllers/ChatController.cs | 7 +- .../Views/Customer/Customer.cshtml | 4 +- BeWoPlanerMobil/Views/Shared/_Layout.cshtml | 4 +- BeWoPlanerMobil/Web.config | 1 + Data/Access/SearchDAO.cs | 8 + Report/ReportObjects/JahresReportRO.cs | 26 +- Report/ReportObjects/SettlementRO.cs | 5 +- .../BetreutesWohnenStelzel.csproj | 14 + .../CustomReportCreator.cs | 63 + .../LeistungsnachweisJugendamt.Designer.cs | 1274 ++++++++++++++++ .../LeistungsnachweisJugendamt.cs | 113 ++ .../LeistungsnachweisJugendamt.resx | 123 ++ ReportImp/CaritasKleve/CaritasKleve.csproj | 5 + .../Service/CustomAccountingService.cs | 190 +++ ...KKleveMitarbeiterstundenkontoBerechnung.cs | 6 + .../DiakonieMuelheim/CustomReportCreator.cs | 483 +++++- .../Jahresstatistik.designer.cs | 208 ++- .../KcmGmbH/InvoiceCustomerReport.Designer.cs | 16 +- .../CollectiveBillingReport.Designer.cs | 29 +- .../CollectiveBillingReport.cs | 154 +- .../CustomReportCreator.cs | 136 +- .../Invoicing/CustomInvoiceFactory.cs | 6 + .../Invoicing/CustomInvoiceNumberGenerator.cs | 41 +- .../EinzelfallhilfeInvoiceCreation.cs | 315 ++++ .../Invoicing/FudInvoiceCreation.cs | 225 ++- .../Invoicing/TagesstrukturInvoiceCreation.cs | 30 +- .../Invoicing/WstInvoiceCreation.cs | 10 +- .../LebenshilfeFrankfurtOder.csproj | 22 + .../LeistungsnachweisAbw.Designer.cs | 809 ++++++++++ .../LeistungsnachweisAbw.cs | 156 ++ .../LeistungsnachweisAbw.resx | 123 ++ .../RechnungEinzelfallhilfe.Designer.cs | 1209 +++++++++++++++ .../RechnungEinzelfallhilfe.cs | 273 ++++ .../RechnungEinzelfallhilfe.resx | 214 +++ .../LebenshilfeFrankfurtOder/RechnungFud.cs | 19 +- .../CustomServiceRecordStatisticFactory.cs | 174 ++- .../Invoicing/CustomInvoiceFactory.cs | 26 + .../Invoicing/DefaultInvoiceCreation.cs | 133 ++ ReportImp/PassgenauUG/PassgenauUG.csproj | 3 + .../Service/CustomHomeContentGenerator.cs | 21 + .../ServiceInvoiceReport.Designer.cs | 559 +++++-- ReportImp/PassgenauUG/ServiceInvoiceReport.cs | 82 +- ReportImp/QuerFaelltEin/QuerFaelltEin.csproj | 10 + .../Quittierungsbeleg.Designer.cs | 4 +- ReportImp/QuerFaelltEin/Quittierungsbeleg.cs | 4 +- .../QuittierungsbelegMitDatum.Designer.cs | 1342 +++++++++++++++++ .../QuittierungsbelegMitDatum.cs | 132 ++ .../QuittierungsbelegMitDatum.resx | 129 ++ .../TRIAS Ambulante Sozialarbeit/Rechnung.cs | 32 +- .../Invoicing/CustomInvoiceNumberGenerator.cs | 29 +- .../Invoicing/CustomInvoiceNumberGenerator.cs | 38 + ReportImp/VkmAachenSbd/VkmAachenSbd.csproj | 1 + .../skmRheydt/Export/SkmDiamantExporter.cs | 4 +- .../ServiceInvoiceReport.Designer.cs | 13 +- ReportImp/skmRheydt/ServiceInvoiceReport.cs | 8 + Service/Configuration/AppSettings.cs | 9 + Service/Invoicing/InvoiceCreation.cs | 1 - Service/Plugins/PluginLoader.cs | 16 +- Service/Plugins/ServiceRecordValidator.cs | 6 +- Service/Reporting/AnnualReportFactory.cs | 5 +- Service/ServiceContracts/IUserService.cs | 4 + .../AnalysisServiceImp.cs | 1 - .../OperationsServiceImp.cs | 3 +- .../ResourceServiceImp.cs | 5 - .../ServiceImplementations/UserServiceImp.cs | 110 +- Shared/BeWoEntityEnums.cs | 13 +- Shared/Core/EnumTranslations.cs | 22 + .../Compact/CompactCustomerDC.cs | 2 + Shared/Extensions/DateTimeExtensions.cs | 3 +- Shared/Services/Calculations.cs | 35 +- 86 files changed, 9417 insertions(+), 479 deletions(-) create mode 100644 BeWo/View/TwoFactorAuthMessageDialog.xaml create mode 100644 BeWo/View/TwoFactorAuthMessageDialog.xaml.cs create mode 100644 ReportImp/BetreutesWohnenStelzel/CustomReportCreator.cs create mode 100644 ReportImp/BetreutesWohnenStelzel/LeistungsnachweisJugendamt.Designer.cs create mode 100644 ReportImp/BetreutesWohnenStelzel/LeistungsnachweisJugendamt.cs create mode 100644 ReportImp/BetreutesWohnenStelzel/LeistungsnachweisJugendamt.resx create mode 100644 ReportImp/CaritasKleve/Service/CustomAccountingService.cs create mode 100644 ReportImp/LebenshilfeFrankfurtOder/Invoicing/EinzelfallhilfeInvoiceCreation.cs create mode 100644 ReportImp/LebenshilfeFrankfurtOder/LeistungsnachweisAbw.Designer.cs create mode 100644 ReportImp/LebenshilfeFrankfurtOder/LeistungsnachweisAbw.cs create mode 100644 ReportImp/LebenshilfeFrankfurtOder/LeistungsnachweisAbw.resx create mode 100644 ReportImp/LebenshilfeFrankfurtOder/RechnungEinzelfallhilfe.Designer.cs create mode 100644 ReportImp/LebenshilfeFrankfurtOder/RechnungEinzelfallhilfe.cs create mode 100644 ReportImp/LebenshilfeFrankfurtOder/RechnungEinzelfallhilfe.resx create mode 100644 ReportImp/PassgenauUG/Invoicing/CustomInvoiceFactory.cs create mode 100644 ReportImp/PassgenauUG/Invoicing/DefaultInvoiceCreation.cs create mode 100644 ReportImp/PassgenauUG/Service/CustomHomeContentGenerator.cs create mode 100644 ReportImp/QuerFaelltEin/QuittierungsbelegMitDatum.Designer.cs create mode 100644 ReportImp/QuerFaelltEin/QuittierungsbelegMitDatum.cs create mode 100644 ReportImp/QuerFaelltEin/QuittierungsbelegMitDatum.resx create mode 100644 ReportImp/VkmAachenSbd/Invoicing/CustomInvoiceNumberGenerator.cs diff --git a/.gitignore b/.gitignore index 9393fe8cf..90da21b20 100644 --- a/.gitignore +++ b/.gitignore @@ -486,3 +486,4 @@ /ReportImp/KommAmbulanteDienste/obj/Debug /ReportImp/KommAmbulanteDienste/obj/Release /ReportImp/PassgenauUG/obj/Debug +/ReportImp/PassgenauUG/obj/Release diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj index 471267ae1..4eba3f306 100644 --- a/BeWo/BeWo.csproj +++ b/BeWo/BeWo.csproj @@ -149,6 +149,7 @@ ..\packages\RestSharp.105.2.3\lib\net45\RestSharp.dll + 3.5 @@ -421,6 +422,10 @@ MSBuild:UpdateDesignTimeXaml + + MSBuild:Compile + Designer + Designer MSBuild:Compile @@ -1087,6 +1092,9 @@ DokumenteView.xaml + + TwoFactorAuthMessageDialog.xaml + KilometerauslastungsView.xaml diff --git a/BeWo/Core/BeWoUtils.cs b/BeWo/Core/BeWoUtils.cs index edce76ea7..3f9fb4b85 100644 --- a/BeWo/Core/BeWoUtils.cs +++ b/BeWo/Core/BeWoUtils.cs @@ -45,9 +45,12 @@ using Image = System.Windows.Controls.Image; using MessageBox = System.Windows.MessageBox; using Panel = System.Windows.Controls.Panel; using System.Windows.Media; +using System.Windows.Threading; +using BeWo.Core.Service; using BeWo.ownChat; using BeWo.PasswortSecurity; using BeWo.Scheduler.Utils; +using BeWo.ViewModel.ListViewModel; using DevExpress.Xpf.Bars; using DevExpress.Xpf.DocumentViewer; using DevExpress.Xpf.Printing.PreviewControl.Bars; @@ -2093,14 +2096,15 @@ namespace BeWo.Core if (customer.Count == 0) { // Normale Buchung - newView = new ChatDokumentationsView(notice, null, start, end, schedulerCallback, appointment); + newView = new ChatDokumentationsView(notice, null, start, end, null, schedulerCallback, appointment); } - else if (customer.Count == 1 && employees.Count == 0) + else if (customer.Count == 1 && employees.Count < 2) { var compactKlient = ServiceFacade.DoCustomerServiceSync(s => s.GetCompactCustomerDC(customer[0].CustomerOid)); // Normale Buchung - newView = new ChatDokumentationsView(notice, compactKlient, start, end, schedulerCallback, appointment); + + newView = new ChatDokumentationsView(notice, compactKlient, start, end, employees.Count == 1 ? employees[0] : null, schedulerCallback, appointment); } else { @@ -2123,14 +2127,14 @@ namespace BeWo.Core if(customer.Count == 0) { // Normale Buchung - newView = new ChatDokumentationsView(notice, null, start, end); + newView = new ChatDokumentationsView(notice, null, start, end, null); } - else if(customer.Count == 1 && employees.Count == 0) + else if(customer.Count == 1 && employees.Count < 2) { var compactKlient = ServiceFacade.DoCustomerServiceSync(s => s.GetCompactCustomerDC(customer[0].CustomerOid)); // Normale Buchung - newView = new ChatDokumentationsView(notice, compactKlient, start, end); + newView = new ChatDokumentationsView(notice, compactKlient, start, end, employees.Count == 1 ? employees[0] : null); } else { @@ -2208,6 +2212,157 @@ namespace BeWo.Core var storage = pAppointment.GetCustomFieldStorage(); return Utils.CheckSchedulerRights(storage.CustomerList, storage.ResourceList, storage.EmployeeList.ToList(), storage.Originator, pIsNew, pCheckType, BeWoApp.LoggedOnUser); - } + } + + public static void EditServiceRecord(ServiceRecordDC dc, DispatcherObject p) + { + + var record = ServiceFacade.DoOperationsServiceSync(s => s.GetServiceRecordById(dc.ServiceRecordOid.Value)); + + + //var allgoalsCopy = GoalService.CopyGoals(selectedRecord.AllGoals, false); + + //var sr = new ServiceRecordVM(record, ViewModel.PrototypeVM.Category2Services, + //selectedRecord.AllGoalCategories, allgoalsCopy); + + VMFactory.CreateServiceRecordVMAsync( + BeWoApp.LoggedOnUser.Employee.EmployeeOid, + vmList => p.Dispatch( + delegate + { + vmList.DispatcherObject = p; + + if (record.Customer != null && record.SupportConcept != null) + { + vmList.InitPrototypeVM(record.Customer.CustomerOid, record.SupportConcept.SupportConceptOid, record.CostBearer2SupportConceptOid); + } + //var allgoalsCopy = GoalService.CopyGoals(selectedRecord.AllGoals, false); + + //var sr = new ServiceRecordVM(record, ViewModel.PrototypeVM.Category2Services, + // selectedRecord.AllGoalCategories, allgoalsCopy); + + var vm = new ServiceRecordVM(record, vmList.PrototypeVM.Category2Services, vmList.PrototypeVM.AllGoalCategories, vmList.PrototypeVM.AllGoals); + + EditServiceRecord(vmList, vm); + })); + } + public static void EditServiceRecord(ServiceRecordListVM listvm, ServiceRecordVM vm) + { + if (vm == null) + { + return; + } + + BeWoView serviceRecordEditView; + + if (vm.GroupOid != null) + { + serviceRecordEditView = new ServiceRecordGroupEditView(); + } + else + { + serviceRecordEditView = new ServiceRecordEditView(); + } + double height = BeWoApp.MainControl.ActualHeight * 0.8; + double width = 710; + + if (BeWoApp.AppSettings.ShowRtfTextfield) + { + height = BeWoApp.MainControl.ActualHeight - 120; + width = 1000; + } + if (BeWoApp.MainControl.ActualWidth < width) + { + width = BeWoApp.MainControl.ActualWidth; + } + if (height < 600) + { + height = 600; + } + + var beWoWindow = new BeWoWindow + { + Height = height, + Width = width, + WindowStartupLocation = WindowStartupLocation.CenterOwner, + GroupBoxContent = serviceRecordEditView, + Owner = BeWoApp.CurrentBeWo.MainWindow + }; + + beWoWindow.rootGroupBox.Style = null; + beWoWindow.rootGroupBox.Visibility = Visibility.Visible; + beWoWindow.rootGroupBox.Margin = new Thickness(-10); + beWoWindow.rootGroupBox.Padding = new Thickness(0); + + if (serviceRecordEditView.CommandBindings.Count == 0) + { + serviceRecordEditView.CommandBindings.Add( + new CommandBinding( + ApplicationCommands.Close, + (s, e) => + { + var result = ServiceRecordDialogResult.ClosedWithoutSaving; + + if (vm.EditAllowed) + { + if (serviceRecordEditView is ServiceRecordEditView view) + { + result = view.CloseAndDoSaveCheck(); + } + else + { + result = ((ServiceRecordGroupEditView)serviceRecordEditView).CloseAndDoSaveCheck(); + } + } + + beWoWindow.Close(); + })); + serviceRecordEditView.CommandBindings.Add( + new CommandBinding( + ApplicationCommands.Save, + (s, e) => + { + if (vm.EditAllowed) + { + bool save; + if (serviceRecordEditView is ServiceRecordEditView) + { + save = ((ServiceRecordEditView)serviceRecordEditView).IsValid() && + ((ServiceRecordEditView)serviceRecordEditView).IsCustomerChangeAllowed(); + } + else + { + save = ((ServiceRecordGroupEditView)serviceRecordEditView).IsValid() && + ((ServiceRecordGroupEditView)serviceRecordEditView) + .IsCustomerChangeAllowed(); + } + + if (!save) + { + return; + } + + serviceRecordEditView.SaveData(); + } + beWoWindow.Close(); + })); + } + + if (serviceRecordEditView is ServiceRecordEditView) + { + ((ServiceRecordEditView)serviceRecordEditView).InitView(listvm, vm, vm.SupportConcept == null); + + } + else + { + var group = ServiceFacade.DoOperationsServiceSync(s => s.GetServiceRecordGroup(vm.GroupOid.Value)); + + ((ServiceRecordGroupEditView)serviceRecordEditView).InitView(listvm, vm, group); + + beWoWindow.Width += 190; + } + + beWoWindow.ShowDialog(); + } } } diff --git a/BeWo/LoginControl.xaml.cs b/BeWo/LoginControl.xaml.cs index a71c8f277..44dde511f 100644 --- a/BeWo/LoginControl.xaml.cs +++ b/BeWo/LoginControl.xaml.cs @@ -28,6 +28,7 @@ using BeWo.Core; using BeWo.ServiceProxy; using BeWo.View; using BeWo.View.Detail; +using BS.Shared.Translation; using Path = System.IO.Path; namespace BeWo @@ -983,8 +984,24 @@ namespace BeWo private void LoginResult( WaitLayer2 lWaitLayer, UserValidationResult result, String lUserName, String lPassword, String tenant, String lPIN) { - if (result == UserValidationResult.UserValid) + if (result == UserValidationResult.UserValid || result == UserValidationResult.UserValidTwoFactorAuthenticationNeeded) { + if (result == UserValidationResult.UserValidTwoFactorAuthenticationNeeded) + { + MessageDialog dlg = new MessageDialog(); + var message = Translator.Translate("Zwei Faktor Authentifizierung erorderlich"); + if (message.Contains("<") && message.Contains(">")) + { + dlg.SetXaml(message); + } + else + { + dlg.Message = message; + } + + + dlg.ShowDialog(); + } if (!CheckStatusMessage(String.Format(GETSTATUSMESSAGE_URL, tenant, BeWoApp.ShortVersion))) { grid_root.Children.Remove(lWaitLayer); @@ -1017,7 +1034,7 @@ namespace BeWo BeWoApp.UserName = lUserName; BeWoApp.UserPassword = lPassword; - ServiceFacade.DoUserServiceAsync(s2 => s2.LoadUserByLoginName(lUserName), + ServiceFacade.DoUserServiceAsync(s2 => s2.LoadUserByNameAndPassword(lUserName, lPassword), r2 => { BeWoApp.LoggedOnUser = r2; diff --git a/BeWo/View/Detail/CustomerView.xaml.cs b/BeWo/View/Detail/CustomerView.xaml.cs index 847e0593b..5af09988b 100644 --- a/BeWo/View/Detail/CustomerView.xaml.cs +++ b/BeWo/View/Detail/CustomerView.xaml.cs @@ -154,7 +154,11 @@ namespace BeWo.View.Detail { tabitem_chatservice.Visibility = Visibility.Collapsed; } - + if (!BeWoApp.LoggedOnUser.HasRight(UserRightType.Customer_ViewNotizen)) + { + tabitem_notizen.Visibility = Visibility.Collapsed; + } + comboBox_Nationalitaet.ItemsSource = pCustomerVM.Nationalitaeten; comboBox_Aufenthalt.ItemsSource = pCustomerVM.AufenthaltsStatuse; diff --git a/BeWo/View/Detail/EmployeeView.xaml.cs b/BeWo/View/Detail/EmployeeView.xaml.cs index 43b31da60..f874a83ca 100644 --- a/BeWo/View/Detail/EmployeeView.xaml.cs +++ b/BeWo/View/Detail/EmployeeView.xaml.cs @@ -127,7 +127,10 @@ namespace BeWo.View.Detail { tabitem_documents.Visibility = Visibility.Visible; } - + if (!BeWoApp.LoggedOnUser.HasRight(UserRightType.Employee_ViewNotizen)) + { + tabitem_notizen.Visibility = Visibility.Collapsed; + } //Employee Image if (_ViewModel.EmployeeImage != null) { diff --git a/BeWo/View/Detail/SupportConceptGoalRatingView.xaml b/BeWo/View/Detail/SupportConceptGoalRatingView.xaml index 8ed086fcd..373dbbd21 100644 --- a/BeWo/View/Detail/SupportConceptGoalRatingView.xaml +++ b/BeWo/View/Detail/SupportConceptGoalRatingView.xaml @@ -234,7 +234,7 @@ - diff --git a/BeWo/View/Detail/SupportConceptGoalRatingView.xaml.cs b/BeWo/View/Detail/SupportConceptGoalRatingView.xaml.cs index e4ee050fc..7ac2041cb 100644 --- a/BeWo/View/Detail/SupportConceptGoalRatingView.xaml.cs +++ b/BeWo/View/Detail/SupportConceptGoalRatingView.xaml.cs @@ -1,4 +1,5 @@ using System; +using System.Activities.Expressions; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; @@ -9,6 +10,7 @@ using System.Windows.Controls.Primitives; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; +using System.Windows.Media.Imaging; using System.Windows.Threading; using BeWo.Core; using BeWo.Core.Service; @@ -19,6 +21,7 @@ using BS.Shared; using BS.Shared.DataContracts; using BS.Shared.DataContracts.ClientPartials; using BS.Shared.Extensions; +using BS.Shared.Translation; using DevExpress.Data.Helpers; using DevExpress.Xpf.Charts; using DevExpress.Xpf.Editors; @@ -425,16 +428,17 @@ namespace BeWo.View.Detail tooltip1.Placement = PlacementMode.Mouse; - tooltip1.PopupAnimation = PopupAnimation.None; - //tooltip1.HorizontalOffset = TooltipPanel.ActualWidth + 10; - //tooltip1.VerticalOffset = -TooltipPanel.ActualHeight; + tooltip1.PopupAnimation = PopupAnimation.Fade; + + tooltip1.HorizontalOffset = 10; + tooltip1.VerticalOffset = -30; tooltip1.IsOpen = true; } else { - tooltip1.IsOpen = false; + //tooltip1.IsOpen = false; } } @@ -511,13 +515,56 @@ namespace BeWo.View.Detail recordLabel.SetValue(Grid.ColumnProperty, 0); recordLabel.SetValue(Grid.RowProperty, 5); recordLabel.SetValue(Grid.ColumnSpanProperty, 2); + + var btn = new Button(); + btn.ToolTip = Translator.Translate("In Zeiterfassung öffnen"); + + btn.SetValue(Grid.ColumnProperty, 1); + btn.SetValue(Grid.RowProperty, 5); + + btn.Height = 23; + btn.Width = 23; + btn.Tag = cd.ServiceRecord; + btn.HorizontalAlignment = HorizontalAlignment.Right; + + var img = new Image + { + Source = new BitmapImage( + new Uri( + "pack://application:,,,/Ressources/Icons/HistoryDisabled.png")) + }; + btn.Content = img; + + btn.Click += Btn_Click; + //< Button Grid.Column = "1" Width = "23" Height = "23" Style = "{DynamicResource TransparentButtonStyle}" ToolTip = "{markup:Translate In Zeiterfassung öffnen}" Tag = "{Binding}" Click = "ButtonOpenServiceRecordView_Click" Margin = "0,0,0,0" > + + //< Image Source = "..\..\..\Ressources\Icons\HistoryDisabled.png" /> + + // + g.Children.Add(recordLabel); + g.Children.Add(btn); } return g; } + private void Btn_Click(object sender, RoutedEventArgs e) + { + var btn = sender as Button; + + var dc = btn.Tag as ServiceRecordDC; + if (dc == null) + { + return; + } + + BeWoUtils.EditServiceRecord(dc, this); + + } + + private TextBlock CreateTextBlock(bool bold) { var tb = new TextBlock(); @@ -535,7 +582,7 @@ namespace BeWo.View.Detail private void chartControl1_MouseLeave(object sender, MouseEventArgs e) { - tooltip1.IsOpen = false; + //tooltip1.IsOpen = false; } private void FetchStatistics() @@ -890,7 +937,11 @@ namespace BeWo.View.Detail } } - + + private void UIElement_OnMouseLeave(object sender, MouseEventArgs e) + { + tooltip1.IsOpen = false; + } } public class ListBoxGoalItem diff --git a/BeWo/View/Master/AdministrationView.xaml b/BeWo/View/Master/AdministrationView.xaml index a50209d26..9aa85b3f0 100644 --- a/BeWo/View/Master/AdministrationView.xaml +++ b/BeWo/View/Master/AdministrationView.xaml @@ -76,6 +76,7 @@ + @@ -84,7 +85,7 @@ - + diff --git a/BeWo/View/NotizenView.xaml b/BeWo/View/NotizenView.xaml index b076a4fdb..1ac38d648 100644 --- a/BeWo/View/NotizenView.xaml +++ b/BeWo/View/NotizenView.xaml @@ -58,7 +58,7 @@ - @@ -174,7 +174,7 @@ - + @@ -197,7 +197,7 @@ - + + + + diff --git a/BeWo/View/TwoFactorAuthMessageDialog.xaml.cs b/BeWo/View/TwoFactorAuthMessageDialog.xaml.cs new file mode 100644 index 000000000..599e48827 --- /dev/null +++ b/BeWo/View/TwoFactorAuthMessageDialog.xaml.cs @@ -0,0 +1,107 @@ +using System; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Documents; +using System.Windows.Input; +using System.Xaml; +using BeWo.ServiceProxy; +using BS.Shared; +using BS.Shared.Extensions; +using XamlReader = System.Windows.Markup.XamlReader; + +namespace BeWo.View +{ + public partial class TwoFactorAuthMessageDialog + { + public TwoFactorAuthMessageDialog() + { + InitializeComponent(); + DataContext = this; + + OkayButton.IsDefault = true; + CancelButton.IsDefault = false; + } + + public TwoFactorAuthMessageDialog(Action pAfterPasswordConfirmationCallBack) + { + IsInConfirmationWithPasswordMode = true; + + AfterPasswordConfirmationCallBack = pAfterPasswordConfirmationCallBack; + + InitializeComponent(); + DataContext = this; + + OkayButton.IsDefault = true; + CancelButton.IsDefault = false; + } + + public Action AfterPasswordConfirmationCallBack { get; set; } + + public bool IsInConfirmationWithPasswordMode { get; set; } + + private ICommand _OpenBrowserCommand; + public ICommand OpenBrowserCommand => _OpenBrowserCommand ?? (_OpenBrowserCommand = new OpenBrowserCommandImpl()); + + public class OpenBrowserCommandImpl : ICommand + { + public bool CanExecute(object parameter) + { + return true; + } + + public event EventHandler CanExecuteChanged; + + public void Execute(object parameter) + { + if (parameter != null) + { + System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(parameter.ToString())); + } + } + } + + public void SetXaml(string xamlCode) + { + try + { + if(XamlReader.Parse(xamlCode) is UIElement element) + { + txtMessage.Visibility = Visibility.Collapsed; + rootGrid.Children.Add(element); + } + } + catch(Exception e) + { + //ignore + } + } + + public string Message + { + get => txtMessage.Text; + set => txtMessage.Text = value; + } + + private void CancelButton_OnClick(object sender, RoutedEventArgs e) + { + //DialogResult = true; + Close(); + } + + private void OkayButton_OnClick(object sender, RoutedEventArgs e) + { + //var result = ServiceFacade.DoUserServiceSync(u => u.IsUserValid(BeWoApp.UserName, PasswordBox.Password, null), result => + //{ + // if(result == UserValidationResult.UserValid) + // { + // AfterPasswordConfirmationCallBack?.Invoke(); + // this.Dispatch(Close); + // } + // else + // { + // MessageBox.Show("Anmeldeinformationen nicht bekannt. Bitte überprüfen Sie den Benutzernamen und das Passwort!", "Fehler bei der Anmeldung", MessageBoxButton.OK, MessageBoxImage.Exclamation); + // } + //}, true); + } + } +} diff --git a/BeWo/ViewModel/ListViewModel/ServiceRecordListVM.cs b/BeWo/ViewModel/ListViewModel/ServiceRecordListVM.cs index 7047d2bbc..4e147050c 100644 --- a/BeWo/ViewModel/ListViewModel/ServiceRecordListVM.cs +++ b/BeWo/ViewModel/ListViewModel/ServiceRecordListVM.cs @@ -1549,5 +1549,46 @@ namespace BeWo.ViewModel.ListViewModel { return ServiceFacade.DoOperationsServiceSync(s => s.CalculateGroupDuration2(personCount, employeeCount, totalDuration, costBearer2SupportConceptList)); } + + public void InitPrototypeVM(long customerOid, long? supportConceptOid, long? cb2scOid) + { + + var infoDC = ServiceFacade.DoOperationsServiceSync(s => s.GetSupportConceptTreeNodeDetailInfo(customerOid, supportConceptOid, cb2scOid)); + + if (infoDC != null && infoDC.SupportConceptGoals != null && infoDC.SupportConceptGoals.Count > 0) + { + var goalCats = new List(); + var goals = new List(); + + var goalCategoryDict = _AllGoalCategories.ToDictionary(goalCat => goalCat.ValueListEntryOid.Value); + + foreach (var goal in infoDC.SupportConceptGoals) + { + if (goal.ParentOid != null && goalCategoryDict.ContainsKey(goal.ParentOid.Value)) + { + var path = GetAllParentGoalCategoies(goalCategoryDict, goal); + foreach (var goalCat in path) + { + goalCats.Add(goalCat); + goalCategoryDict.Remove(goalCat.ValueListEntryOid.Value); + } + } + + goals.Add(goal); + } + + PrototypeVM.ChangeGoalTree(goalCats, goals); + } + if (infoDC != null) + { + //_SelectedCustomerNode.SupportConceptTreeNodeDC.SupportConceptCostBearerRelDC.ApprovalPeriodList = infoDC.ApprovalPeriods; + + if (!IsGroupBooking && !IsMultiBooking) + { + PrototypeVM.UpdateServiceAccountings(infoDC.ServiceAccountings, _Category2Services, true); + } + } + + } } } \ No newline at end of file diff --git a/BeWo/ownChat/ChatDokumentationsView.xaml.cs b/BeWo/ownChat/ChatDokumentationsView.xaml.cs index c74581104..c1570dd49 100644 --- a/BeWo/ownChat/ChatDokumentationsView.xaml.cs +++ b/BeWo/ownChat/ChatDokumentationsView.xaml.cs @@ -102,7 +102,7 @@ namespace BeWo.ownChat //} //Konstruktor für Kalender - public ChatDokumentationsView(string notice, CompactCustomerDC _compactCustomer, DateTime firstTime, DateTime lastTime, Action schedulerCallback = null, Appointment appointment = null) + public ChatDokumentationsView(string notice, CompactCustomerDC _compactCustomer, DateTime firstTime, DateTime lastTime, CompactEmployeeDC employee, Action schedulerCallback = null, Appointment appointment = null) { InitializeComponent(); @@ -119,7 +119,10 @@ namespace BeWo.ownChat vm.DispatcherObject = this; var dc = SupportConceptService.ErstelleServiceRecordDC(firstTime, lastTime, customerCompact, scList); - + if (employee != null) + { + dc.Employee = employee; + } vm.PrototypeVM.UpdateServiceAccountings(null, vm.PrototypeVM.Category2Services, customerCompact != null); if(vm.PrototypeVM.SortedCategories != null && vm.PrototypeVM.SortedCategories.Count > 0) diff --git a/BeWoAllReports.sln b/BeWoAllReports.sln index 9ce224d89..0ab55890d 100644 --- a/BeWoAllReports.sln +++ b/BeWoAllReports.sln @@ -611,6 +611,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BetreuungsbueroFrankRoehrig EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Kimm", "ReportImp\Kimm\Kimm.csproj", "{CEA6A3D2-DDD4-4699-89AE-FEF7908C46D5}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PassgenauUG", "ReportImp\PassgenauUG\PassgenauUG.csproj", "{87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|.NET = Debug|.NET @@ -4882,6 +4884,22 @@ Global {CEA6A3D2-DDD4-4699-89AE-FEF7908C46D5}.Release|Mixed Platforms.Build.0 = Release|Any CPU {CEA6A3D2-DDD4-4699-89AE-FEF7908C46D5}.Release|x86.ActiveCfg = Release|Any CPU {CEA6A3D2-DDD4-4699-89AE-FEF7908C46D5}.Release|x86.Build.0 = Release|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Debug|.NET.ActiveCfg = Debug|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Debug|.NET.Build.0 = Debug|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Debug|x86.ActiveCfg = Debug|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Debug|x86.Build.0 = Debug|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Release|.NET.ActiveCfg = Release|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Release|.NET.Build.0 = Release|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Release|Any CPU.Build.0 = Release|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Release|x86.ActiveCfg = Release|Any CPU + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -5183,6 +5201,7 @@ Global {A368A18F-0D5F-49EB-885A-CEED97B5A5C5} = {D8A691C5-146D-4613-86CC-438F02FE9106} {C252012D-4EE1-4262-B599-28297AE41E9C} = {D8A691C5-146D-4613-86CC-438F02FE9106} {CEA6A3D2-DDD4-4699-89AE-FEF7908C46D5} = {D8A691C5-146D-4613-86CC-438F02FE9106} + {87D57693-C3EB-4DD0-8C32-4C8D7BE9066E} = {D8A691C5-146D-4613-86CC-438F02FE9106} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {FBE985BB-9F0F-4DBB-8F94-ABC37A803FF9} diff --git a/BeWoPlanerMobil/Controllers/ChatController.cs b/BeWoPlanerMobil/Controllers/ChatController.cs index cc4405c92..9d5d1dfe7 100644 --- a/BeWoPlanerMobil/Controllers/ChatController.cs +++ b/BeWoPlanerMobil/Controllers/ChatController.cs @@ -132,8 +132,8 @@ namespace BeWoPlanerMobil.Controllers if (valueListEntry2Object.Entry.SystemEntryID.HasValue && valueListEntry2Object.Entry.SystemEntryID.Value == SystemEntryID.EmployeeRoleMainAttendant || valueListEntry2Object.Entry.Value.ToLower().Contains("ownchat")) { foreach (var applicationUser in appUser) - { - if (employee2Customer.EmployeeOid == applicationUser.Employee.Oid) + { + if (employee2Customer.EmployeeOid == applicationUser.Employee?.Oid) { string status; switch (employee2Customer.IsActive) @@ -149,7 +149,8 @@ namespace BeWoPlanerMobil.Controllers break; } - var input2 = new JsonInputKlient2(status, employee2Customer.EmployeeOid.ToString()); + var input2 = new JsonInputKlient2(status, + employee2Customer.EmployeeOid.ToString()); inputList.Add(input2); } diff --git a/BeWoPlanerMobil/Views/Customer/Customer.cshtml b/BeWoPlanerMobil/Views/Customer/Customer.cshtml index 059200bc3..3f275aeca 100644 --- a/BeWoPlanerMobil/Views/Customer/Customer.cshtml +++ b/BeWoPlanerMobil/Views/Customer/Customer.cshtml @@ -290,7 +290,7 @@ Tel.:
@@ -298,7 +298,7 @@ Mobil:
diff --git a/BeWoPlanerMobil/Views/Shared/_Layout.cshtml b/BeWoPlanerMobil/Views/Shared/_Layout.cshtml index 18b34d072..efba1f303 100644 --- a/BeWoPlanerMobil/Views/Shared/_Layout.cshtml +++ b/BeWoPlanerMobil/Views/Shared/_Layout.cshtml @@ -31,9 +31,9 @@ - + - + diff --git a/BeWoPlanerMobil/Web.config b/BeWoPlanerMobil/Web.config index 87523fa97..ce25bfa32 100644 --- a/BeWoPlanerMobil/Web.config +++ b/BeWoPlanerMobil/Web.config @@ -129,6 +129,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 21, 17 + + \ No newline at end of file diff --git a/ReportImp/CaritasKleve/CaritasKleve.csproj b/ReportImp/CaritasKleve/CaritasKleve.csproj index e85fd9d8e..22b2c7dd4 100644 --- a/ReportImp/CaritasKleve/CaritasKleve.csproj +++ b/ReportImp/CaritasKleve/CaritasKleve.csproj @@ -42,9 +42,14 @@ + + + {B0D73E3D-4AE7-4024-93A6-DB1F46D7CCEE} + Data + {094331C3-ECEE-4C89-BBFD-4C9DED89F0EF} Service diff --git a/ReportImp/CaritasKleve/Service/CustomAccountingService.cs b/ReportImp/CaritasKleve/Service/CustomAccountingService.cs new file mode 100644 index 000000000..c2a0d6cb9 --- /dev/null +++ b/ReportImp/CaritasKleve/Service/CustomAccountingService.cs @@ -0,0 +1,190 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Xml; +using System.Xml.Linq; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.DCEntityMapper; +using BeWo.Service.Plugins; +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts; +using BS.Shared.DataContracts.Compact; +using BS.Shared.Extensions; + +namespace CaritasKleve.Service +{ + public class CustomAccountingService : AccountingService + { + //public override List GetInvoiceBases(DateTime? startDate, DateTime? endDate) + //{ + // if (startDate.HasValue && startDate.Value.Year == 2011) + // { + + // ConvertResourceBookingsToResourceAppointments(); + + // } + + // return base.GetInvoiceBases(startDate, endDate); + //} + + private void ConvertResourceBookingsToResourceAppointments() + { + const string selectQuery = "SELECT Oid, ResourceBookingSequenceOid FROM resourcebooking WHERE startdatetime >= '2021-01-01' AND IsActive = 1 AND IsDeleted = 0"; + var dataSet = DAOFactory.AdoDAO.ExecuteQuery(selectQuery); + var dataReader = dataSet.CreateDataReader(); + var rbs2rb = new Dictionary>(); + var newSchedulerAppointments = new List(); + var sequence2booking = new Dictionary>(); + var allResourceBookings = DAOFactory.GenericDAO.GetAllActive(); + List changedBookings = new List(); + + while (dataReader.Read()) + { + rbs2rb.AddOrUpdateValueInDictionary((long)dataReader.GetValue(0), new List { (long)dataReader.GetValue(1) }); + } + + if (allResourceBookings.Count == 0) return; + + allResourceBookings = allResourceBookings.OrderBy(o => o.Oid).ToList(); + + foreach (var b in allResourceBookings) + { + if (rbs2rb.ContainsKey(b.Oid.Value)) + { + if (!sequence2booking.ContainsKey(b.Sequence)) + sequence2booking.Add(b.Sequence, new List { b }); + else + sequence2booking[b.Sequence].Add(b); + } + } + + foreach (var kvp in sequence2booking) + { + var sequence = kvp.Key; + var frequencyType = sequence.FrequencyType; + + foreach (var booking in kvp.Value) + { + var originator = DAOFactory.SearchDAO.FindEmployeeByFullname(booking.InsUser) ?? booking.Employee; + + if (booking.Sequence.FrequencyType.Equals(ResourceBookingFrequencyType.MonthlyOnLastDay)) + { + //var singleBookings = ConvertType6ResourceAppointment(booking); + //newSchedulerAppointments.AddRange(singleBookings); + + continue; + } + + var employeeList = new List(); + if (booking.Employee != null) + employeeList.Add(new Employee2SchedulerAppointmentDC + { + Employee = MapperFactory.CompactEmployeeDC_Employee.MapToNewDC(booking.Employee), + ParticipationAnswer = ParticipationAnswer.Zusage, + IsPC_CheckedTs = null, + IsPChanged = false + }); + + var resourceList = new List { MapperFactory.ResourceDC_Resource.MapToNewDC(booking.Sequence.Resource) }; + + var newSchedulerAppointment = new SchedulerAppointmentDC + { + ActivationType = ActivationTypeId.Active, + AllDay = booking.Start.Equals(booking.End), + CustomerList = new List(), + Description = booking.Notice, + EmployeeList = employeeList, + EndDate = booking.End, + StartDate = booking.Start, + IsPrivate = false, + ResourceList = resourceList, + Subject = booking.Notice, + Originator = MapperFactory.CompactEmployeeDC_Employee.MapToNewDC(originator), + Type = 0, + FormerBookingSequenceOid = booking.Sequence.Oid + }; + + if (kvp.Value.Count > 1 && booking.SequencePosition > 0) + { + newSchedulerAppointment.Type = booking.IsDeleted ? 4 : 3; + } + else if (frequencyType != ResourceBookingFrequencyType.Once) + { + newSchedulerAppointment.Type = 1; + } + + if (!booking.Sequence.FrequencyType.Equals(ResourceBookingFrequencyType.Once)) + { + //newSchedulerAppointment.RecurrenceInfo = CreateRecurrenceInfo(booking).ToXml(); + } + + if (newSchedulerAppointments.FirstOrDefault(f => f.FormerBookingSequenceOid.Equals(sequence.Oid)) != null) + { + var x = newSchedulerAppointments.First(f => f.FormerBookingSequenceOid.Equals(sequence.Oid) && f.RecurrenceInfo != null).RecurrenceInfo; + + using (var reader = XmlReader.Create(new StringReader(x))) + { + reader.ReadToFollowing("RecurrenceInfo"); + reader.MoveToAttribute("Id"); + var id = reader.Value; + + var doc = XDocument.Load(new StringReader(newSchedulerAppointment.RecurrenceInfo)); + var xElement = doc.Element("RecurrenceInfo"); + if (xElement != null) + { + xElement.RemoveAttributes(); + xElement.Add(new XAttribute("Id", id)); + xElement.Add(new XAttribute("Index", booking.SequencePosition)); + } + + newSchedulerAppointment.RecurrenceInfo = doc.ToString(); + } + } + changedBookings.Add(booking); + + newSchedulerAppointments.Add(newSchedulerAppointment); + } + } + + foreach (var resourcebooking in changedBookings) + { + //resourcebooking.IsActive = ActivationTypeId.Deleted; + //resourcebooking.Sequence.IsActive = ActivationTypeId.Deleted; + } + + //DAOFactory.GenericDAO.Update(changedBookings); + InsertSchedulerAppointments(newSchedulerAppointments); + + } + + public void InsertSchedulerAppointments(IList pSchedulerAppointments) + { + foreach (var item in pSchedulerAppointments) + { + item.EmployeeList?.ForEach(each => + { + each.Employee2SchedulerAppointmentOid = null; + each.Employee2SchedulerAppointmentVersion = null; + each.SchedulerAppointmentOid = null; + each.IsPChanged = false; + each.IsPC_CheckedTs = null; + }); + + var lRelations = MapperFactory.Employee2SchedulerAppointmentDC_Employee2SchedulerAppointment.MapToNewEntities(item.EmployeeList); + DAOFactory.GenericDAO.Insert(lRelations); + var neu = MapperFactory.Employee2SchedulerAppointmentDC_Employee2SchedulerAppointment.MapToNewDCs(lRelations); + item.EmployeeList = neu; + + } + + var lAppointments = MapperFactory.SchedulerAppointmentDCSchedulerAppointment.MapToNewEntities(pSchedulerAppointments); + + DAOFactory.GenericDAO.Insert(lAppointments); + + } + } + +} \ No newline at end of file diff --git a/ReportImp/DiakonieKKKleve/DiakonieKKKleveMitarbeiterstundenkontoBerechnung.cs b/ReportImp/DiakonieKKKleve/DiakonieKKKleveMitarbeiterstundenkontoBerechnung.cs index 5e86c3af6..9762ed607 100644 --- a/ReportImp/DiakonieKKKleve/DiakonieKKKleveMitarbeiterstundenkontoBerechnung.cs +++ b/ReportImp/DiakonieKKKleve/DiakonieKKKleveMitarbeiterstundenkontoBerechnung.cs @@ -463,5 +463,11 @@ namespace DiakonieKKKleve return list; } + public override bool IsKrankheitAbsenceTime(AbsenceTime absenceTime) + { + return !String.IsNullOrEmpty(absenceTime.AbsenceReason.Description) && + (absenceTime.AbsenceReason.Description.ToLower().IndexOf("arbeitsunfähig") >= 0 + || absenceTime.AbsenceReason.Description.ToLower().IndexOf("krank") >= 0 || absenceTime.AbsenceReason.Description.ToLower() == "au" || absenceTime.AbsenceReason.Description.ToLower() == "kinderfreitage mit lfz"); + } } } diff --git a/ReportImp/DiakonieMuelheim/CustomReportCreator.cs b/ReportImp/DiakonieMuelheim/CustomReportCreator.cs index 1f099deda..7ca1038bc 100644 --- a/ReportImp/DiakonieMuelheim/CustomReportCreator.cs +++ b/ReportImp/DiakonieMuelheim/CustomReportCreator.cs @@ -9,6 +9,7 @@ using BeWo.Data.Entities; using BeWo.Report; using BeWo.Report.ReportObjects; using BeWo.Service.DCEntityMapper; +using BS.Shared; using BS.Shared.Core; using BS.Shared.DataContracts; using BS.Shared.DataContracts.Compact; @@ -50,7 +51,15 @@ namespace DiakonieMuelheim { start = DateTime.Parse(qro.Rows[0].Field2.ToString()); + if (start == DateTime.MinValue) + { + start = new DateTime(DateTime.Now.Year - 1, 1, 1); + } ende = DateTime.Parse(qro.Rows[0].Field3.ToString()); + if (ende.Year == 9999) + { + ende = new DateTime(DateTime.Now.Year - 1, 12, 31); + } teamOid = Int64.Parse(qro.Rows[0].Field4.ToString()); foreach (var row in qro.Rows) @@ -78,26 +87,46 @@ namespace DiakonieMuelheim List alleKlienten = new List(); - var team = MapperFactory.CompactTeamDC_Team.MapToNewDC(DAOFactory.GenericDAO.LoadByID(teamOid)); - - var customers = DAOFactory.GenericDAO.LoadByIDs(customerOids); - - foreach (var customer in customers) + if (teamOid > 0) { - - var info = GetJahrestatisticCustomerInfo(customer, start, ende); + var team = MapperFactory.CompactTeamDC_Team.MapToNewDC(DAOFactory.GenericDAO.LoadByID(teamOid)); - if (info != null) + var customers = DAOFactory.GenericDAO.LoadByIDs(customerOids); + + foreach (var customer in customers) { - info.Team = team; + + var info = GetJahrestatisticCustomerInfo(customer, start, ende); + + if (info != null) + { + info.Team = team; + + alleKlienten.Add(info); + } + } - alleKlienten.Add(info); - } + } List reports = new List(); reports.Add(BerechneGesamt(alleKlienten)); - //data = BerechneOrt(alleKlienten); - + reports.Add(BerechneOrt(alleKlienten)); + reports.Add(BerechneGeschlecht(alleKlienten)); + reports.Add(BerechneAlterstruktur(alleKlienten, ende)); + reports.Add(BerechneBeendigungsgrund(alleKlienten, start, ende)); + reports.Add(BerechneVarfieldReport(alleKlienten, 1)); + reports.Add(BerechneVarfieldReport(alleKlienten, 3)); + reports.Add(BerechneVarfieldReport(alleKlienten, 30)); + reports.Add(BerechneVarfieldReport(alleKlienten, 40)); + reports.Add(BerechneVarfieldReport(alleKlienten, 50)); + //reports.Add(BerechneVarfieldReport(alleKlienten, 60)); + //reports.Add(BerechneVarfieldReport(alleKlienten, 70)); + reports.Add(BerechneVarfieldReport(alleKlienten, 100)); + reports.Add(BerechneVarfieldReport(alleKlienten, 110)); + reports.Add(BerechneVarfieldReport(alleKlienten, 120)); + reports.Add(BerechneVarfieldReport(alleKlienten, 140)); + reports.Add(BerechneVarfieldReport(alleKlienten, 160)); + return JahresReportRO.Create(reports); } @@ -107,32 +136,435 @@ namespace DiakonieMuelheim report.Name = "Personen insgesamt"; report.Data = new List(); - var dataEk = new AnnualReportDataDC(); + var dataEk = new AnnualReportDataDC(); dataEk.Name = "davon Erstklienten EK"; dataEk.Value = 0; var dataWk = new AnnualReportDataDC(); dataWk.Name = "Wiederholungs- und Altklienten WK"; dataWk.Value = 0; - report.Data.Add(dataEk); + report.Data.Add(dataEk); report.Data.Add(dataWk); - foreach (var info in alleKlienten) + foreach (var info in alleKlienten) { if (info.IstWiederholungsKlient) { dataWk.Value++; - } + dataWk.Value2 = ((int?)dataWk.Value2 ?? 0) + 1; + } else { dataEk.Value++; - } + dataEk.Value1 = ((int?)dataEk.Value1 ?? 0) + 1; + } } return report; } - private JahrestatisticCustomerInfo GetJahrestatisticCustomerInfo(Customer customer, DateTime start, DateTime ende) + private AnnualReportDC BerechneOrt(List alleKlienten) + { + var report = new AnnualReportDC(); + report.Data = new List(); + report.Name = "Ortsansässigkeit der Erstklienten"; + + Dictionary dataPerCity = new Dictionary(); + + + foreach (var info in alleKlienten) + { + + String city = "ohne Angaben"; + if (!String.IsNullOrEmpty(info.Customer.Town)) + { + city = info.Customer.Town.Trim(); + } + + AnnualReportDataDC data = null; + + if (dataPerCity.ContainsKey(city)) + { + data = dataPerCity[city]; + } + else + { + data = new AnnualReportDataDC(); + dataPerCity.Add(city, data); + } + + data.Name = city; + data.Value = (data.Value ?? 0) + 1; + if (info.IstWiederholungsKlient) + { + + data.Value2 = ((int?)data.Value2 ?? 0) + 1; + } + else + { + data.Value1 = ((int?)data.Value1 ?? 0) + 1; + } + } + + report.Data.AddRange(dataPerCity.Values.OrderBy(d => d.Name).Where(d => d.Name != "ohne Angaben")); + report.Data.AddRange(dataPerCity.Values.Where(d => d.Name == "ohne Angaben")); + + return report; + } + + private AnnualReportDC BerechneGeschlecht(List alleKlienten) + { + var report = new AnnualReportDC(); + report.Data = new List(); + report.Name = "Geschlecht"; + + + var dataM = new AnnualReportDataDC(); + dataM.Name = "Anteil männlicher Klienten"; + dataM.Value = 0; + var dataF = new AnnualReportDataDC(); + dataF.Name = "Anteil weiblicher Klienten"; + dataF.Value = 0; + var dataKA = new AnnualReportDataDC(); + dataKA.Name = "ohne Angaben"; + dataKA.Value = 0; + report.Data.Add(dataM); + report.Data.Add(dataF); + report.Data.Add(dataKA); + + foreach (var info in alleKlienten) + { + if (info.Geschlecht.HasValue) + { + if (info.Geschlecht.Value == Sex.Male) + { + dataM.Value++; + if (info.IstWiederholungsKlient) + { + dataM.Value2 = ((int?)dataM.Value2 ?? 0) + 1; + } + else + { + dataM.Value1 = ((int?)dataM.Value1 ?? 0) + 1; + } + //dataM.Erstklient = info.IstWiederholungsKlient; + } + else if (info.Geschlecht.Value == Sex.Female) + { + if (info.IstWiederholungsKlient) + { + dataF.Value2 = ((int?)dataF.Value2 ?? 0) + 1; + } + else + { + dataF.Value1 = ((int?)dataF.Value1 ?? 0) + 1; + } + dataF.Value++; + } + + } + else + { + dataKA.Value++; + if (info.IstWiederholungsKlient) + { + dataKA.Value2 = ((int?)dataKA.Value2 ?? 0) + 1; + } + else + { + dataKA.Value1 = ((int?)dataKA.Value1 ?? 0) + 1; + } + } + + } + return report; + } + + private AnnualReportDC BerechneAlterstruktur(List alleKlienten, DateTime datum) + { + var report = new AnnualReportDC(); + report.Data = new List(); + report.Name = "Altersstruktur"; + + var dataU18 = new AnnualReportDataDC(); + dataU18.Name = "unter 18 Jahre"; + + var data18_21 = new AnnualReportDataDC(); + data18_21.Name = "18 - 21 Jahre"; + + var data22_26 = new AnnualReportDataDC(); + data22_26.Name = "22 - 26 Jahre"; + + var data27_33 = new AnnualReportDataDC(); + data27_33.Name = "27 - 33 Jahre"; + + var data34_40 = new AnnualReportDataDC(); + data34_40.Name = "34 - 40 Jahre"; + + var data41_50 = new AnnualReportDataDC(); + data41_50.Name = "41 - 50 Jahre"; + + var data51_60 = new AnnualReportDataDC(); + data51_60.Name = "51 - 60 Jahre"; + + var dataU60 = new AnnualReportDataDC(); + dataU60.Name = "Über 60 Jahre"; + + var dataKA = new AnnualReportDataDC(); + dataKA.Name = "keine Angaben"; + + foreach (var info in alleKlienten) + { + AnnualReportDataDC data = dataKA; + + if (info.Customer.DateOfBirth.HasValue) + { + int alter = datum.Year - info.Customer.DateOfBirth.Value.Year; + var dt = info.Customer.DateOfBirth.Value.AddYears(alter); + + if (datum.CompareTo(dt) < 0) + { + alter--; + } + + if (alter < 18) + { + data = dataU18; + } + else if (alter >= 18 && alter <= 21) + { + data = data18_21; + } + else if (alter >= 22 && alter <= 26) + { + data = data22_26; + } + else if (alter >= 27 && alter <= 33) + { + data = data27_33; + } + else if (alter >= 34 && alter <= 40) + { + data = data34_40; + } + else if (alter >= 41 && alter <= 50) + { + data = data41_50; + } + else if (alter >= 51 && alter <= 60) + { + data = data51_60; + } + else if (alter > 60) + { + data = dataU60; + } + } + + data.Value = (data.Value ?? 0) + 1; + if (info.IstWiederholungsKlient) + { + data.Value2 = ((int?)data.Value2 ?? 0) + 1; + } + else + { + data.Value1 = ((int?)data.Value1 ?? 0) + 1; + } + } + + report.Data.Add(dataU18); + report.Data.Add(data18_21); + report.Data.Add(data22_26); + report.Data.Add(data27_33); + report.Data.Add(data34_40); + report.Data.Add(data41_50); + report.Data.Add(data51_60); + report.Data.Add(dataU60); + report.Data.Add(dataKA); + return report; + } + + //private AnnualReportDC BerechneLebensunterhalt(List alleKlienten, long varFieldDefOid) + //{ + // var report = new AnnualReportDC(); + // report.Data = new List(); + // report.Name = "Lebensunterhalt"; + + // Dictionary dataPerDef = new Dictionary(); + + // var def = DAOFactory.GenericDAO.LoadByID(varFieldDefOid); + + // var items = def.PossibleItems.Split(';'); + // foreach (var item in items) + // { + // var data = new AnnualReportDataDC(); + // report.Data.Add(data); + // data.Name = item; + + // dataPerDef.Add(item, data); + // } + // foreach (var info in alleKlienten) + // { + // String name = "ohne Angaben"; + + // if (info.VarFieldValueList != null) + // { + // foreach (var vfv in info.VarFieldValueList) + // { + // if (vfv.VarFieldDefOid == varFieldDefOid) + // { + // var o = Utils.XMLDeserializeFromString(vfv.SerializedValue, Type.GetType(vfv.TypeName)); + // if (o != null) + // { + // name = o.ToString(); + // } + // } + // } + // } + + // if (dataPerDef.ContainsKey(name)) + // { + // var data = dataPerDef[name]; + // data.Value = (data.Value ?? 0) + 1; + // if (info.IstWiederholungsKlient) + // { + // data.Value2 = ((int?)data.Value2 ?? 0) + 1; + // } + // else + // { + // data.Value1 = ((int?)data.Value1 ?? 0) + 1; + // } + // } + + + // } + + // report.Data = report.Data.OrderBy(d => d.Name).ToList(); + // return report; + //} + + private AnnualReportDC BerechneVarfieldReport(List alleKlienten, long varFieldDefOid) + { + var report = new AnnualReportDC(); + report.Data = new List(); + + + Dictionary dataPerDef = new Dictionary(); + + String ka = "ohne Angaben"; + + var def = DAOFactory.GenericDAO.LoadByID(varFieldDefOid); + report.Name = def.Label; + if (!String.IsNullOrEmpty(def.PossibleItems)) + { + var items = def.PossibleItems.Split(';'); + foreach (var item in items) + { + var data = new AnnualReportDataDC(); + data.Name = item; + + dataPerDef.Add(item, data); + + if (item.ToLower().Contains("keine angabe") || item.ToLower().Contains("ohne angabe")) + { + ka = item; + } + } + } + + foreach (var info in alleKlienten) + { + String name = ka; + + if (info.VarFieldValueList != null) + { + foreach (var vfv in info.VarFieldValueList) + { + if (vfv.VarFieldDefOid == varFieldDefOid) + { + var o = Utils.XMLDeserializeFromString(vfv.SerializedValue, Type.GetType(vfv.TypeName)); + if (o != null) + { + name = o.ToString(); + } + } + } + } + + AnnualReportDataDC data = null; + if (dataPerDef.ContainsKey(name)) + { + data = dataPerDef[name]; + + } + else + { + data = new AnnualReportDataDC(); + data.Name = name; + dataPerDef.Add(name, data); + } + data.Value = (data.Value ?? 0) + 1; + if (info.IstWiederholungsKlient) + { + data.Value2 = ((int?)data.Value2 ?? 0) + 1; + } + else + { + data.Value1 = ((int?)data.Value1 ?? 0) + 1; + } + + } + + report.Data.AddRange(dataPerDef.Values.OrderBy(d => d.Name).Where(d => d.Name != ka)); + report.Data.AddRange(dataPerDef.Values.Where(d => d.Name == ka)); + + return report; + } + + private AnnualReportDC BerechneBeendigungsgrund(List alleKlienten, DateTime start, DateTime end) + { + var report = new AnnualReportDC(); + report.Data = new List(); + report.Name = "Beendigungsgrund"; + + Dictionary dataPerGrund = new Dictionary(); + + + foreach (var info in alleKlienten) + { + + if (!String.IsNullOrEmpty(info.Customer.TerminationReason) && info.Customer.TerminationDate.HasValue && info.Customer.TerminationDate >= start && info.Customer.TerminationDate <= end) + { + AnnualReportDataDC data = null; + if (dataPerGrund.ContainsKey(info.Customer.TerminationReason)) + { + data = dataPerGrund[info.Customer.TerminationReason]; + } + else + { + data = new AnnualReportDataDC(); + data.Name = info.Customer.TerminationReason; + dataPerGrund.Add(info.Customer.TerminationReason, data); + report.Data.Add(data); + } + + data.Value = (data.Value ?? 0) + 1; + if (info.IstWiederholungsKlient) + { + data.Value2 = ((int?)data.Value2 ?? 0) + 1; + } + else + { + data.Value1 = ((int?)data.Value1 ?? 0) + 1; + } + + } + } + + return report; + } + + private JahrestatisticCustomerInfo GetJahrestatisticCustomerInfo(Customer customer, DateTime start, DateTime ende) { JahrestatisticCustomerInfo info = null; @@ -147,13 +579,19 @@ namespace DiakonieMuelheim //{ // startdate = customer.AssistanceBegin; //} - if (scap.StartDate.HasValue && scap.EndDate.HasValue && scap.StartDate <= ende && - scap.EndDate >= start) + if (scap.StartDate.HasValue && scap.EndDate.HasValue && scap.StartDate <= ende && scap.EndDate >= start) { info = new JahrestatisticCustomerInfo(); info.Customer = MapperFactory.CompactCustomerDC_Customer.MapToNewDC(customer); info.IstWiederholungsKlient = HatAltenHilfeplan(c2s, scap, customer, start); + + info.Geschlecht = customer.Person.Sex; + + var records = c2s.ServiceRecords.Where(r => r.Start >= start && r.Start < ende.AddDays(1)).ToList(); + info.ServiceRecords = records; + + info.VarFieldValueList = customer.VarFieldValueList; } } } @@ -196,6 +634,9 @@ namespace DiakonieMuelheim { public CompactCustomerDC Customer { get; set; } public CompactTeamDC Team { get; set; } + public Sex? Geschlecht { get; set; } public bool IstWiederholungsKlient { get; set; } + public IList ServiceRecords { get; set; } + public IList VarFieldValueList { get; set; } } } diff --git a/ReportImp/DiakonieMuelheim/Jahresstatistik.designer.cs b/ReportImp/DiakonieMuelheim/Jahresstatistik.designer.cs index e40e2878a..6fea62028 100644 --- a/ReportImp/DiakonieMuelheim/Jahresstatistik.designer.cs +++ b/ReportImp/DiakonieMuelheim/Jahresstatistik.designer.cs @@ -30,7 +30,9 @@ namespace DiakonieMuelheim private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); + DevExpress.XtraReports.UI.XRSummary xrSummary1 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary2 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary3 = new DevExpress.XtraReports.UI.XRSummary(); this.Detail = new DevExpress.XtraReports.UI.DetailBand(); this.Title = new DevExpress.XtraReports.UI.XRControlStyle(); this.FieldCaption = new DevExpress.XtraReports.UI.XRControlStyle(); @@ -47,7 +49,6 @@ namespace DiakonieMuelheim this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell12 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell16 = new DevExpress.XtraReports.UI.XRTableCell(); - this.xrTableCell17 = new DevExpress.XtraReports.UI.XRTableCell(); this.DetailReport2 = new DevExpress.XtraReports.UI.DetailReportBand(); this.Detail3 = new DevExpress.XtraReports.UI.DetailBand(); this.DetailReport3 = new DevExpress.XtraReports.UI.DetailReportBand(); @@ -59,20 +60,24 @@ namespace DiakonieMuelheim this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell7 = new DevExpress.XtraReports.UI.XRTableCell(); - this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell(); this.GroupHeader2 = new DevExpress.XtraReports.UI.GroupHeaderBand(); this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel(); this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand(); this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); - ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); + this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); + this.GroupFooter2 = new DevExpress.XtraReports.UI.GroupFooterBand(); + this.xrTable1 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell(); ((System.ComponentModel.ISupportInitialize)(this.xrTable8)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable9)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // - // bindingSource1 - // - this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.JahresReportRO); - // // Detail // this.Detail.HeightF = 0F; @@ -129,7 +134,7 @@ namespace DiakonieMuelheim // // topMarginBand1 // - this.topMarginBand1.HeightF = 70F; + this.topMarginBand1.HeightF = 60F; this.topMarginBand1.Name = "topMarginBand1"; // // bottomMarginBand1 @@ -161,7 +166,7 @@ namespace DiakonieMuelheim this.xrTable8.Name = "xrTable8"; this.xrTable8.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { this.xrTableRow9}); - this.xrTable8.SizeF = new System.Drawing.SizeF(726.0417F, 25F); + this.xrTable8.SizeF = new System.Drawing.SizeF(599.9999F, 25F); this.xrTable8.StylePriority.UseBorders = false; this.xrTable8.StylePriority.UseBorderWidth = false; // @@ -171,8 +176,7 @@ namespace DiakonieMuelheim this.xrTableCell9, this.xrTableCell11, this.xrTableCell12, - this.xrTableCell16, - this.xrTableCell17}); + this.xrTableCell16}); this.xrTableRow9.Name = "xrTableRow9"; this.xrTableRow9.Weight = 0.5D; // @@ -181,42 +185,39 @@ namespace DiakonieMuelheim this.xrTableCell9.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { new DevExpress.XtraReports.UI.XRBinding("Text", null, "JahresReportTabelleList.JahresReportDetailList.Name")}); this.xrTableCell9.Name = "xrTableCell9"; + this.xrTableCell9.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 0, 0, 0, 100F); + this.xrTableCell9.StylePriority.UsePadding = false; this.xrTableCell9.StylePriority.UseTextAlignment = false; this.xrTableCell9.Text = " 30.06.2003"; this.xrTableCell9.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - this.xrTableCell9.Weight = 0.61979917434094856D; + this.xrTableCell9.Weight = 1.2395983335033796D; // // xrTableCell11 // this.xrTableCell11.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { - new DevExpress.XtraReports.UI.XRBinding("Text", null, "JahresReportTabelleList.JahresReportDetailList.Anzahl")}); + new DevExpress.XtraReports.UI.XRBinding("Text", null, "JahresReportTabelleList.JahresReportDetailList.Custom1")}); this.xrTableCell11.Name = "xrTableCell11"; this.xrTableCell11.StylePriority.UseTextAlignment = false; this.xrTableCell11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.xrTableCell11.Weight = 0.7230987127281342D; + this.xrTableCell11.Weight = 0.4131994483930731D; // // xrTableCell12 // this.xrTableCell12.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { - new DevExpress.XtraReports.UI.XRBinding("Text", null, "JahresReportTabelleList.JahresReportDetailList.WeiblichAnzahl")}); + new DevExpress.XtraReports.UI.XRBinding("Text", null, "JahresReportTabelleList.JahresReportDetailList.Custom2")}); this.xrTableCell12.Name = "xrTableCell12"; this.xrTableCell12.StylePriority.UseTextAlignment = false; this.xrTableCell12.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.xrTableCell12.Weight = 0.723099080515292D; + this.xrTableCell12.Weight = 0.41319918568792213D; // // xrTableCell16 // this.xrTableCell16.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { - new DevExpress.XtraReports.UI.XRBinding("Text", null, "JahresReportTabelleList.JahresReportDetailList.MaennlichAnzahl")}); + new DevExpress.XtraReports.UI.XRBinding("Text", null, "JahresReportTabelleList.JahresReportDetailList.Anzahl")}); this.xrTableCell16.Name = "xrTableCell16"; this.xrTableCell16.StylePriority.UseTextAlignment = false; this.xrTableCell16.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.xrTableCell16.Weight = 0.72309924864656439D; - // - // xrTableCell17 - // - this.xrTableCell17.Name = "xrTableCell17"; - this.xrTableCell17.Weight = 0.21090378376906091D; + this.xrTableCell16.Weight = 0.41319941686842548D; // // DetailReport2 // @@ -232,6 +233,7 @@ namespace DiakonieMuelheim // Detail3 // this.Detail3.HeightF = 0F; + this.Detail3.KeepTogetherWithDetailReports = true; this.Detail3.Name = "Detail3"; // // DetailReport3 @@ -239,7 +241,8 @@ namespace DiakonieMuelheim this.DetailReport3.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { this.Detail4, this.GroupHeader1, - this.GroupHeader2}); + this.GroupHeader2, + this.GroupFooter2}); this.DetailReport3.DataMember = "JahresReportTabelleList.JahresReportDetailList"; this.DetailReport3.DataSource = this.bindingSource1; this.DetailReport3.Level = 0; @@ -249,9 +252,9 @@ namespace DiakonieMuelheim // this.Detail4.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrTable8}); - this.Detail4.Expanded = false; this.Detail4.HeightF = 25F; this.Detail4.KeepTogether = true; + this.Detail4.KeepTogetherWithDetailReports = true; this.Detail4.Name = "Detail4"; // // GroupHeader1 @@ -273,7 +276,7 @@ namespace DiakonieMuelheim this.xrTable9.Name = "xrTable9"; this.xrTable9.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { this.xrTableRow2}); - this.xrTable9.SizeF = new System.Drawing.SizeF(726.0417F, 25F); + this.xrTable9.SizeF = new System.Drawing.SizeF(600F, 25F); this.xrTable9.StylePriority.UseBorders = false; this.xrTable9.StylePriority.UseBorderWidth = false; // @@ -283,8 +286,7 @@ namespace DiakonieMuelheim this.xrTableCell4, this.xrTableCell5, this.xrTableCell6, - this.xrTableCell7, - this.xrTableCell8}); + this.xrTableCell7}); this.xrTableRow2.Name = "xrTableRow2"; this.xrTableRow2.StylePriority.UseBackColor = false; this.xrTableRow2.Weight = 0.49999999999999994D; @@ -292,54 +294,46 @@ namespace DiakonieMuelheim // xrTableCell4 // this.xrTableCell4.Name = "xrTableCell4"; - this.xrTableCell4.Weight = 0.61979904824249443D; + this.xrTableCell4.Weight = 1.2395982074049226D; // // xrTableCell5 // - this.xrTableCell5.Font = new System.Drawing.Font("Times New Roman", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.xrTableCell5.ForeColor = System.Drawing.Color.White; + this.xrTableCell5.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.xrTableCell5.Name = "xrTableCell5"; this.xrTableCell5.StylePriority.UseFont = false; this.xrTableCell5.StylePriority.UseForeColor = false; this.xrTableCell5.StylePriority.UseTextAlignment = false; - this.xrTableCell5.Text = "Anzahl"; + this.xrTableCell5.Text = "EK"; this.xrTableCell5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.xrTableCell5.Weight = 0.72309896492504233D; + this.xrTableCell5.Weight = 0.41319941686844047D; // // xrTableCell6 // - this.xrTableCell6.Font = new System.Drawing.Font("Times New Roman", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.xrTableCell6.ForeColor = System.Drawing.Color.White; + this.xrTableCell6.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.xrTableCell6.Name = "xrTableCell6"; this.xrTableCell6.StylePriority.UseFont = false; this.xrTableCell6.StylePriority.UseForeColor = false; this.xrTableCell6.StylePriority.UseTextAlignment = false; - this.xrTableCell6.Text = "Weiblich"; + this.xrTableCell6.Text = "WK"; this.xrTableCell6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.xrTableCell6.Weight = 0.72309895441683791D; + this.xrTableCell6.Weight = 0.41319934331101155D; // // xrTableCell7 // - this.xrTableCell7.Font = new System.Drawing.Font("Times New Roman", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.xrTableCell7.ForeColor = System.Drawing.Color.White; + this.xrTableCell7.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.xrTableCell7.Name = "xrTableCell7"; this.xrTableCell7.StylePriority.UseFont = false; this.xrTableCell7.StylePriority.UseForeColor = false; this.xrTableCell7.StylePriority.UseTextAlignment = false; - this.xrTableCell7.Text = "Männlich"; + this.xrTableCell7.Text = "insgesamt"; this.xrTableCell7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; - this.xrTableCell7.Weight = 0.72309896492504233D; - // - // xrTableCell8 - // - this.xrTableCell8.Name = "xrTableCell8"; - this.xrTableCell8.Weight = 0.21090406749058277D; + this.xrTableCell7.Weight = 0.41319941686844047D; // // GroupHeader2 // this.GroupHeader2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLabel8}); - this.GroupHeader2.HeightF = 45.99997F; + this.GroupHeader2.HeightF = 60.99996F; this.GroupHeader2.KeepTogether = true; this.GroupHeader2.Level = 1; this.GroupHeader2.Name = "GroupHeader2"; @@ -348,11 +342,11 @@ namespace DiakonieMuelheim // this.xrLabel8.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { new DevExpress.XtraReports.UI.XRBinding("Text", null, "JahresReportTabelleList.Name")}); - this.xrLabel8.Font = new System.Drawing.Font("Times New Roman", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(0F, 10.00001F); + this.xrLabel8.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(0F, 25F); this.xrLabel8.Name = "xrLabel8"; this.xrLabel8.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrLabel8.SizeF = new System.Drawing.SizeF(726.0417F, 35.99996F); + this.xrLabel8.SizeF = new System.Drawing.SizeF(600F, 35.99996F); this.xrLabel8.StylePriority.UseFont = false; this.xrLabel8.StylePriority.UseForeColor = false; this.xrLabel8.StylePriority.UseTextAlignment = false; @@ -363,7 +357,7 @@ namespace DiakonieMuelheim // this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLabel1}); - this.GroupFooter1.HeightF = 50F; + this.GroupFooter1.HeightF = 39.99998F; this.GroupFooter1.Name = "GroupFooter1"; // // xrLabel1 @@ -371,7 +365,100 @@ namespace DiakonieMuelheim this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(59.375F, 4.166667F); this.xrLabel1.Name = "xrLabel1"; this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrLabel1.SizeF = new System.Drawing.SizeF(92.70833F, 45.83333F); + this.xrLabel1.SizeF = new System.Drawing.SizeF(92.70833F, 35.83332F); + // + // bindingSource1 + // + this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.JahresReportRO); + // + // GroupFooter2 + // + this.GroupFooter2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable1}); + this.GroupFooter2.HeightF = 25F; + this.GroupFooter2.Name = "GroupFooter2"; + // + // xrTable1 + // + this.xrTable1.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable1.BorderWidth = 1F; + this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable1.Name = "xrTable1"; + this.xrTable1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow1}); + this.xrTable1.SizeF = new System.Drawing.SizeF(600F, 25F); + this.xrTable1.StylePriority.UseBorders = false; + this.xrTable1.StylePriority.UseBorderWidth = false; + // + // xrTableRow1 + // + this.xrTableRow1.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell1, + this.xrTableCell2, + this.xrTableCell3, + this.xrTableCell8}); + this.xrTableRow1.Name = "xrTableRow1"; + this.xrTableRow1.StylePriority.UseBackColor = false; + this.xrTableRow1.Weight = 0.49999999999999994D; + // + // xrTableCell1 + // + this.xrTableCell1.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell1.Name = "xrTableCell1"; + this.xrTableCell1.Padding = new DevExpress.XtraPrinting.PaddingInfo(5, 0, 0, 0, 100F); + this.xrTableCell1.StylePriority.UseFont = false; + this.xrTableCell1.StylePriority.UsePadding = false; + this.xrTableCell1.StylePriority.UseTextAlignment = false; + this.xrTableCell1.Text = "Gesamt"; + this.xrTableCell1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell1.Weight = 1.2395982074049226D; + // + // xrTableCell2 + // + this.xrTableCell2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "JahresReportTabelleList.JahresReportDetailList.Custom1")}); + this.xrTableCell2.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell2.Name = "xrTableCell2"; + this.xrTableCell2.StylePriority.UseFont = false; + this.xrTableCell2.StylePriority.UseForeColor = false; + this.xrTableCell2.StylePriority.UseTextAlignment = false; + xrSummary1.FormatString = "{0:0}"; + xrSummary1.Running = DevExpress.XtraReports.UI.SummaryRunning.Group; + this.xrTableCell2.Summary = xrSummary1; + this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell2.Weight = 0.41319941686844047D; + // + // xrTableCell3 + // + this.xrTableCell3.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "JahresReportTabelleList.JahresReportDetailList.Custom2")}); + this.xrTableCell3.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell3.Name = "xrTableCell3"; + this.xrTableCell3.StylePriority.UseFont = false; + this.xrTableCell3.StylePriority.UseForeColor = false; + this.xrTableCell3.StylePriority.UseTextAlignment = false; + xrSummary2.FormatString = "{0:0}"; + xrSummary2.Running = DevExpress.XtraReports.UI.SummaryRunning.Group; + this.xrTableCell3.Summary = xrSummary2; + this.xrTableCell3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell3.Weight = 0.41319934331101155D; + // + // xrTableCell8 + // + this.xrTableCell8.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "JahresReportTabelleList.JahresReportDetailList.Anzahl")}); + this.xrTableCell8.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell8.Name = "xrTableCell8"; + this.xrTableCell8.StylePriority.UseFont = false; + this.xrTableCell8.StylePriority.UseForeColor = false; + this.xrTableCell8.StylePriority.UseTextAlignment = false; + xrSummary3.FormatString = "{0:0}"; + xrSummary3.Running = DevExpress.XtraReports.UI.SummaryRunning.Group; + this.xrTableCell8.Summary = xrSummary3; + this.xrTableCell8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell8.Weight = 0.41319941686844047D; // // Jahresstatistik // @@ -385,7 +472,8 @@ namespace DiakonieMuelheim this.fieldTotalSC, this.fieldTotalEmp}); this.DataSource = this.bindingSource1; - this.Margins = new System.Drawing.Printing.Margins(48, 20, 70, 88); + this.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Margins = new System.Drawing.Printing.Margins(75, 20, 60, 88); this.PageHeight = 1169; this.PageWidth = 827; this.PaperKind = System.Drawing.Printing.PaperKind.A4; @@ -395,9 +483,10 @@ namespace DiakonieMuelheim this.PageInfo, this.DataField}); this.Version = "17.1"; - ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable8)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable9)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); } @@ -421,7 +510,6 @@ namespace DiakonieMuelheim private DevExpress.XtraReports.UI.XRTableCell xrTableCell11; private DevExpress.XtraReports.UI.XRTableCell xrTableCell12; private DevExpress.XtraReports.UI.XRTableCell xrTableCell16; - private DevExpress.XtraReports.UI.XRTableCell xrTableCell17; private DevExpress.XtraReports.UI.DetailReportBand DetailReport2; private DevExpress.XtraReports.UI.DetailBand Detail3; private DevExpress.XtraReports.UI.XRTable xrTable9; @@ -430,7 +518,6 @@ namespace DiakonieMuelheim private DevExpress.XtraReports.UI.XRTableCell xrTableCell5; private DevExpress.XtraReports.UI.XRTableCell xrTableCell6; private DevExpress.XtraReports.UI.XRTableCell xrTableCell7; - private DevExpress.XtraReports.UI.XRTableCell xrTableCell8; private DevExpress.XtraReports.UI.XRLabel xrLabel8; private DevExpress.XtraReports.UI.DetailReportBand DetailReport3; private DevExpress.XtraReports.UI.DetailBand Detail4; @@ -438,5 +525,12 @@ namespace DiakonieMuelheim private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1; private DevExpress.XtraReports.UI.XRLabel xrLabel1; private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader2; + private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter2; + private DevExpress.XtraReports.UI.XRTable xrTable1; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell3; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell8; } } diff --git a/ReportImp/KcmGmbH/InvoiceCustomerReport.Designer.cs b/ReportImp/KcmGmbH/InvoiceCustomerReport.Designer.cs index 52c77db9b..8b60c40ee 100644 --- a/ReportImp/KcmGmbH/InvoiceCustomerReport.Designer.cs +++ b/ReportImp/KcmGmbH/InvoiceCustomerReport.Designer.cs @@ -87,8 +87,8 @@ namespace KcmGmbH this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel(); this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand(); this.Detail1 = new DevExpress.XtraReports.UI.DetailBand(); - this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand(); + this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit(); @@ -261,7 +261,7 @@ namespace KcmGmbH this.lblAddress.Multiline = true; this.lblAddress.Name = "lblAddress"; this.lblAddress.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.lblAddress.SizeF = new System.Drawing.SizeF(351.375F, 131F); + this.lblAddress.SizeF = new System.Drawing.SizeF(394.0834F, 131F); this.lblAddress.StylePriority.UseFont = false; this.lblAddress.Text = "[RecipientOrganisation]\r\n[RecipientDivision]\r\n[RecipientFirstName] [RecipientLast" + "Name]\r\n[RecipientStreet]\r\n[RecipientPostCode] [RecipientTown]"; @@ -436,7 +436,7 @@ namespace KcmGmbH // // xrTable2 // - this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(367.0001F, 0F); + this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(405.1945F, 0F); this.xrTable2.Name = "xrTable2"; this.xrTable2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { this.xrTableRow2, @@ -445,7 +445,7 @@ namespace KcmGmbH this.xrTableRow1, this.xrTableRow6, this.xrTableRow8}); - this.xrTable2.SizeF = new System.Drawing.SizeF(283F, 114F); + this.xrTable2.SizeF = new System.Drawing.SizeF(244.8057F, 114F); // // xrTableRow2 // @@ -721,10 +721,6 @@ namespace KcmGmbH this.Detail1.Name = "Detail1"; this.Detail1.StylePriority.UseFont = false; // - // bindingSource1 - // - this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.InvoiceCustomerRO); - // // GroupHeader1 // this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { @@ -740,6 +736,10 @@ namespace KcmGmbH this.GroupHeader1.HeightF = 388.9999F; this.GroupHeader1.Name = "GroupHeader1"; // + // bindingSource1 + // + this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.InvoiceCustomerRO); + // // InvoiceCustomerReport // this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { diff --git a/ReportImp/LebenshilfeCoburg/CollectiveBillingReport.Designer.cs b/ReportImp/LebenshilfeCoburg/CollectiveBillingReport.Designer.cs index b677982e3..16f573a9e 100644 --- a/ReportImp/LebenshilfeCoburg/CollectiveBillingReport.Designer.cs +++ b/ReportImp/LebenshilfeCoburg/CollectiveBillingReport.Designer.cs @@ -423,14 +423,12 @@ namespace LebenshilfeCoburg // ruleRateFactorNull // this.ruleRateFactorNull.Condition = "[RateFactorText2] == ?"; - // - // - // this.ruleRateFactorNull.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; this.ruleRateFactorNull.Name = "ruleRateFactorNull"; // // topMarginBand1 // + this.topMarginBand1.HeightF = 100F; this.topMarginBand1.Name = "topMarginBand1"; // // bottomMarginBand1 @@ -546,9 +544,6 @@ namespace LebenshilfeCoburg // ruleNoticeNull // this.ruleNoticeNull.Condition = "[Notice] == ?"; - // - // - // this.ruleNoticeNull.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; this.ruleNoticeNull.Name = "ruleNoticeNull"; // @@ -565,7 +560,7 @@ namespace LebenshilfeCoburg this.xrLabel5, this.xrLabel9}); this.Page1.Font = new System.Drawing.Font("Arial", 11F); - this.Page1.HeightF = 257.9582F; + this.Page1.HeightF = 300F; this.Page1.Level = 1; this.Page1.Name = "Page1"; this.Page1.StylePriority.UseFont = false; @@ -573,7 +568,7 @@ namespace LebenshilfeCoburg // xrLabel7 // this.xrLabel7.CanShrink = true; - this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(0F, 167.2917F); + this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(0F, 186.6667F); this.xrLabel7.Multiline = true; this.xrLabel7.Name = "xrLabel7"; this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); @@ -587,7 +582,7 @@ namespace LebenshilfeCoburg // xrLabel13 // this.xrLabel13.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Underline); - this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(0F, 113.5417F); + this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(0F, 132.9167F); this.xrLabel13.Name = "xrLabel13"; this.xrLabel13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel13.SizeF = new System.Drawing.SizeF(292F, 17F); @@ -601,7 +596,7 @@ namespace LebenshilfeCoburg this.xrPictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox1.Image"))); this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); this.xrPictureBox1.Name = "xrPictureBox1"; - this.xrPictureBox1.SizeF = new System.Drawing.SizeF(405.2083F, 113.5417F); + this.xrPictureBox1.SizeF = new System.Drawing.SizeF(405.2649F, 113.5575F); this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.AutoSize; // // xrLabel16 @@ -610,7 +605,7 @@ namespace LebenshilfeCoburg this.xrLabel16.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { new DevExpress.XtraReports.UI.XRBinding("Text", null, "RecipientOrganisation")}); this.xrLabel16.Font = new System.Drawing.Font("Arial", 11F); - this.xrLabel16.LocationFloat = new DevExpress.Utils.PointFloat(0F, 147.9167F); + this.xrLabel16.LocationFloat = new DevExpress.Utils.PointFloat(0F, 167.2917F); this.xrLabel16.Multiline = true; this.xrLabel16.Name = "xrLabel16"; this.xrLabel16.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); @@ -624,7 +619,7 @@ namespace LebenshilfeCoburg // xrLabel17 // this.xrLabel17.CanShrink = true; - this.xrLabel17.LocationFloat = new DevExpress.Utils.PointFloat(0F, 186.6667F); + this.xrLabel17.LocationFloat = new DevExpress.Utils.PointFloat(0F, 206.0417F); this.xrLabel17.Multiline = true; this.xrLabel17.Name = "xrLabel17"; this.xrLabel17.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); @@ -735,9 +730,6 @@ namespace LebenshilfeCoburg // this.ruleIsS.Condition = "[ApprovedHours] == 1"; this.ruleIsS.DataMember = "ServiceInvoicePeriods"; - // - // - // this.ruleIsS.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; this.ruleIsS.Name = "ruleIsS"; // @@ -884,7 +876,7 @@ namespace LebenshilfeCoburg // this.xrLabel3.BorderDashStyle = DevExpress.XtraPrinting.BorderDashStyle.Double; this.xrLabel3.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; - this.xrLabel3.BorderWidth = 3; + this.xrLabel3.BorderWidth = 3F; this.xrLabel3.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { new DevExpress.XtraReports.UI.XRBinding("Text", null, "GrossClaim")}); this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(555.0001F, 50.83332F); @@ -981,9 +973,6 @@ namespace LebenshilfeCoburg // this.ruleIsGK.Condition = "[ApprovedHours] == 0"; this.ruleIsGK.DataMember = "ServiceInvoicePeriods"; - // - // - // this.ruleIsGK.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; this.ruleIsGK.Name = "ruleIsGK"; // @@ -1167,7 +1156,7 @@ namespace LebenshilfeCoburg this.PageHeight = 1169; this.PageWidth = 827; this.PaperKind = System.Drawing.Printing.PaperKind.A4; - this.Version = "13.1"; + this.Version = "17.1"; ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable6)).EndInit(); diff --git a/ReportImp/LebenshilfeCoburg/CollectiveBillingReport.cs b/ReportImp/LebenshilfeCoburg/CollectiveBillingReport.cs index b3f0de77b..562c9dfc3 100644 --- a/ReportImp/LebenshilfeCoburg/CollectiveBillingReport.cs +++ b/ReportImp/LebenshilfeCoburg/CollectiveBillingReport.cs @@ -41,18 +41,31 @@ namespace LebenshilfeCoburg sip.ApprovedAmount = String.Format("{0:c}", sip.ServiceInvoiceItems[0].AmountPerUnit); } - sip.ApprovedBE = CreateSchluessel(sip); - sip.ApprovedHours = 0; - if (Leistungsart(sip) == "S") - { - sip.ApprovedHours = 1; - } + + if (pRO.AccountingPeriodStart.Year < 2021) + { + sip.ApprovedBE = CreateSchluesselVor2021(sip); + sip.ApprovedHours = 0; + if (LeistungsartVor2021(sip) == "S") + { + sip.ApprovedHours = 1; + } + } + else + { + sip.ApprovedBE = CreateSchluesselAb2021(sip); + sip.ApprovedHours = 0; + if (LeistungsartAb2021(sip) == "S") + { + sip.ApprovedHours = 1; + } + } } } this.bindingSource1.DataSource = pRO; } - private string CreateSchluessel(ServiceInvoicePeriodRO sip) + private string CreateSchluesselVor2021(ServiceInvoicePeriodRO sip) { string schl = ""; @@ -131,7 +144,7 @@ namespace LebenshilfeCoburg return schl; } - private string Leistungsart(ServiceInvoicePeriodRO sip) + private string LeistungsartVor2021(ServiceInvoicePeriodRO sip) { string schl = "GK"; @@ -176,5 +189,130 @@ namespace LebenshilfeCoburg } return schl; } + + private string CreateSchluesselAb2021(ServiceInvoicePeriodRO sip) + { + string schl = ""; + + if (sip.SupportConceptApprovalPeriod != null) + { + if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.HasValue) + { + //K/G Beh. + if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 367.72m) + { + schl = "01:12"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 441.26m) + { + schl = "01:10"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 490.29m) + { + schl = "01:09"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 551.58m) + { + schl = "01:08"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 630.38m) + { + schl = "01:07"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 735.44m) + { + schl = "01:06"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 882.53m) + { + schl = "01:05"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 1103.16m) + { + schl = "01:04"; + } + //seel. Beh. + if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 468.64m) + { + schl = "01:12"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 550.13m) + { + schl = "01:10"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 604.45m) + { + schl = "01:09"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 672.36m) + { + schl = "01:08"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 759.67m) + { + schl = "01:07"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 876.07m) + { + schl = "01:06"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 1039.05m) + { + schl = "01:05"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 1283.51m) + { + schl = "01:04"; + } + } + } + return schl; + } + + private string LeistungsartAb2021(ServiceInvoicePeriodRO sip) + { + string schl = "GK"; + + if (sip.SupportConceptApprovalPeriod != null) + { + if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.HasValue) + { + //seel. Beh. + if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 468.64m) + { + schl = "S"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 550.13m) + { + schl = "S"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 604.45m) + { + schl = "S"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 672.36m) + { + schl = "S"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 759.67m) + { + schl = "S"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 876.07m) + { + schl = "S"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 1039.05m) + { + schl = "S"; + } + else if (sip.SupportConceptApprovalPeriod.ApprovedFixedAmount.Value == 1283.51m) + { + schl = "S"; + } + } + } + return schl; + } } } \ No newline at end of file diff --git a/ReportImp/LebenshilfeFrankfurtOder/CustomReportCreator.cs b/ReportImp/LebenshilfeFrankfurtOder/CustomReportCreator.cs index 369e7fbe9..7b0f7cabe 100644 --- a/ReportImp/LebenshilfeFrankfurtOder/CustomReportCreator.cs +++ b/ReportImp/LebenshilfeFrankfurtOder/CustomReportCreator.cs @@ -72,6 +72,7 @@ namespace LebenshilfeFrankfurtOder ServicesOverviewRO entRo = CopyFromRO(ro); ServicesOverviewRO kurzRo = CopyFromRO(ro); ServicesOverviewRO verRo = CopyFromRO(ro); + ServicesOverviewRO abwRo = CopyFromRO(ro); if (ro.Services != null) { @@ -135,8 +136,6 @@ namespace LebenshilfeFrankfurtOder newService.TimeRangeString = String.Format("{0:HH:mm} - {1:HH:mm}", newService.StartDate, newService.EndDate); newServices.Add(newService); - - } } @@ -158,6 +157,11 @@ namespace LebenshilfeFrankfurtOder verRo.Services.Add(s); verRo.Services.AddRange(newServices); } + else if (cat.Contains("fachleistungsstundenabw")) + { + abwRo.Services.Add(s); + abwRo.Services.AddRange(newServices); + } } } @@ -165,6 +169,7 @@ namespace LebenshilfeFrankfurtOder report = AddReportToReport(report, new LeistungsnachweisVerhinderungspflege(), verRo); report = AddReportToReport(report, new LeistungsnachweisKurzzeitpflege(), kurzRo); report = AddReportToReport(report, new LeistungsnachweisEntlastungsleistungen(), entRo); + report = AddReportToReport(report, new LeistungsnachweisAbw(), abwRo); //report = AddReportToReport(report, eingliederungshilfe); @@ -321,6 +326,14 @@ namespace LebenshilfeFrankfurtOder { return CreateAbrechnung(queryOid, queryReportId, AbrechnungsEnum.FED, true); } + if (queryOid == 1300) + { + return CreateAbrechnung(queryOid, queryReportId, AbrechnungsEnum.Einzelfallhilfe, false); + } + if (queryOid == 1310) + { + return CreateAbrechnung(queryOid, queryReportId, AbrechnungsEnum.Einzelfallhilfe, true); + } return base.CreateQueryReport(queryOid, queryReportId); } @@ -390,7 +403,10 @@ namespace LebenshilfeFrankfurtOder { invoices = CreateAbrechnungFed(start, start.AddMonths(1).AddTicks(-1), customerOid, serviceCategoryOid); } - + else if (abrechnungsArt == AbrechnungsEnum.Einzelfallhilfe) + { + invoices = CreateAbrechnungEinzelfallhilfe(start, start.AddMonths(1).AddTicks(-1), customerOid, serviceCategoryOid); + } List reallyNewInvoices = null; if (customerOid.HasValue) @@ -663,7 +679,9 @@ namespace LebenshilfeFrankfurtOder int month = iDC.InvoiceBase.AccountingPeriodStart.Value.Month; int year = iDC.InvoiceBase.AccountingPeriodStart.Value.Year; - var qb = CreateServiceOverviewSingleCustomerReport(customerOid, month, year, 0, 0, null, 1, + long? catOid = GetServiceCategory(iDC); + + var qb = CreateServiceOverviewSingleCustomerReport(customerOid, month, year, 0, 0, catOid, 1, DateTime.DaysInMonth(year, month)); qb.CreateDocument(); @@ -693,6 +711,32 @@ namespace LebenshilfeFrankfurtOder return allReports as XtraReport; } + private long? GetServiceCategory(ServiceInvoiceDC iDc) + { + if (iDc.ServiceInvoicePeriods != null) + { + foreach (var sip in iDc.ServiceInvoicePeriods) + { + if (sip.InvoiceItems != null) + { + foreach (var ii in sip.InvoiceItems) + { + if (!String.IsNullOrEmpty(ii.Notice)) + { + var cat = DAOFactory.SearchDAO.FindServiceCategoryByName(ii.Notice); + if (cat != null) + { + return cat.Oid.Value; + } + } + } + } + } + } + + return null; + } + private List CreateAbrechnungTagesstruktur(DateTime start, DateTime end, long? customerOid) { var invoicePeriod = new DateTimeSpan(start, end); @@ -790,15 +834,71 @@ namespace LebenshilfeFrankfurtOder } - - - var creator = new FudInvoiceCreation(); + var creator = new FudInvoiceCreation(); return creator.GenerateServiceInvoices(0, invoicePeriod, supportConcepts2ServiceRecords); } - private IList GetSupportConcepts(DateTime start, DateTime end, String serviceName, String categoryName, long? customerOid) + private List CreateAbrechnungEinzelfallhilfe(DateTime start, DateTime end, long? customerOid, long serviceCategoryOid) + { + + var invoicePeriod = new DateTimeSpan(start, end); + + List quittierungsbelegRos = null; + + if (customerOid.HasValue) + { + quittierungsbelegRos = new List(); + + if (customerOid > 0) + { + var ro = ServicesOverviewRO.Create(customerOid.Value, start.Month, start.Year, true, 0, 0, 1, + DateTime.DaysInMonth(start.Year, start.Month), serviceCategoryOid); + if (ro != null) + { + quittierungsbelegRos.Add(ro); + } + } + } + else + { + quittierungsbelegRos = ServicesOverviewRO.Create(start.Month, start.Year, 0, 0, 1, DateTime.DaysInMonth(start.Year, start.Month), serviceCategoryOid); + } + + var supportConcepts2ServiceRecords = new Dictionary>(); + + foreach (var ro in quittierungsbelegRos) + { + if (ro.CostBearer2SupportConceptList != null) + { + foreach (var c2s in ro.CostBearer2SupportConceptList) + { + var flatSc = CreateFlatSupportConcept(c2s.SupportConcept, c2s); + var sList = new List(); + + foreach (var sd in ro.Services) + { + if (sd.ServiceRecordOid > 0) + { + var sr = DAOFactory.GenericDAO.LoadByID(sd.ServiceRecordOid); + var srDc = MapperFactory.ServiceRecordDC_ServiceRecord.MapToNewDC(sr); + sList.Add(srDc); + } + } + supportConcepts2ServiceRecords.Add(flatSc, sList); + } + } + + } + + var creator = new FudInvoiceCreation(); + + return creator.GenerateServiceInvoices(0, invoicePeriod, supportConcepts2ServiceRecords); + + } + + private IList GetSupportConcepts(DateTime start, DateTime end, String serviceName, String categoryName, long? customerOid) { var scList = new List(); var service = DAOFactory.GenericDAO.GetAllActive().FirstOrDefault(s => s.Name == serviceName); @@ -866,7 +966,7 @@ namespace LebenshilfeFrankfurtOder } } - return scList; + return scList.OrderBy(s => !String.IsNullOrEmpty(s.Customer.DebitorNumber) ? s.Customer.DebitorNumber : "zzzzzz").ToList(); } @@ -922,8 +1022,21 @@ namespace LebenshilfeFrankfurtOder dc.ActivationType = pEntity.IsActive; dc.TerminationDate = pEntity.TerminationDate; dc.Sex = pEntity.Person.Sex; + dc.DebitorNumber = pEntity.DebitorNumber; - return dc; + IList defs = DAOFactory.SearchDAO.GetVarFieldDefs(TableID.Customer); + + //foreach (var def in defs) + //{ + // dc..Add(def.Oid.Value, MapperFactory.VarFieldDC_VarField); + //} + + //dc.VarFields = MapperFactory.VarFieldDC_VarField.VarFieldMapToDCs(defs, pEntity.VarFieldValueList); + + + + + return dc; } } @@ -931,6 +1044,7 @@ namespace LebenshilfeFrankfurtOder { Tagesstruktur = 0, WST = 1, - FED = 2 + FED = 2, + Einzelfallhilfe = 3 } } diff --git a/ReportImp/LebenshilfeFrankfurtOder/Invoicing/CustomInvoiceFactory.cs b/ReportImp/LebenshilfeFrankfurtOder/Invoicing/CustomInvoiceFactory.cs index 26acf6ad7..3616a8068 100644 --- a/ReportImp/LebenshilfeFrankfurtOder/Invoicing/CustomInvoiceFactory.cs +++ b/ReportImp/LebenshilfeFrankfurtOder/Invoicing/CustomInvoiceFactory.cs @@ -60,6 +60,8 @@ namespace LebenshilfeFrankfurtOder.Invoicing { return new DefaultInvoiceCreation(); } + + cat = cat.Replace(" ", ""); if (cat.Contains("§45")) { return new FudInvoiceCreation(); @@ -73,6 +75,10 @@ namespace LebenshilfeFrankfurtOder.Invoicing return new FudInvoiceCreation(); } + if (cat.Contains("einzelfallhilfe")) + { + return new EinzelfallhilfeInvoiceCreation(); + } } return null; } diff --git a/ReportImp/LebenshilfeFrankfurtOder/Invoicing/CustomInvoiceNumberGenerator.cs b/ReportImp/LebenshilfeFrankfurtOder/Invoicing/CustomInvoiceNumberGenerator.cs index 9d633b4dd..469165d3e 100644 --- a/ReportImp/LebenshilfeFrankfurtOder/Invoicing/CustomInvoiceNumberGenerator.cs +++ b/ReportImp/LebenshilfeFrankfurtOder/Invoicing/CustomInvoiceNumberGenerator.cs @@ -37,7 +37,7 @@ namespace LebenshilfeFrankfurtOder.Invoicing { oid = 3; // FUD } - else if (!String.IsNullOrEmpty(Kostenstelle) && Kostenstelle == "1202") + else if (!String.IsNullOrEmpty(Kostenstelle) && Kostenstelle == "12") { oid = 4; // ABW } @@ -48,12 +48,37 @@ namespace LebenshilfeFrankfurtOder.Invoicing InvoiceNumberDC invoiceNumber = LoadInvoiceNumber(oid); - if (invoiceNumber != null && invoiceNumber.Use) - { + string prefix = String.Format("{0}{1:yy}{1:MM}", Kostenstelle, invoiceBase.AccountingPeriodStart); + + var number = DAOFactory.SearchDAO.FindMaxInvoiceNumber(prefix); + + int newNumber = 1; + + if (number != null) + { + var nstr = number.InvoiceNumber.Replace(prefix, ""); + + int i = 0; + if (Int32.TryParse(nstr, out i)) + { + newNumber = i + 1; + } + } + + String newNumberStr = String.Format("{0}", newNumber + increment); + while (newNumberStr.Length < 3) + { + newNumberStr = "0" + newNumberStr; + } + + next = prefix + newNumberStr; + + //if (invoiceNumber != null && invoiceNumber.Use) + //{ //String pattern = "{jj}{MM}{nnn}"; - next = ApplyPattern(invoiceNumber.Pattern, invoiceNumber.CurrentNumber + increment, invoiceBase); + //next = ApplyPattern(invoiceNumber.Pattern, invoiceNumber.CurrentNumber + increment, invoiceBase); - } + //} return next; } @@ -198,7 +223,7 @@ namespace LebenshilfeFrankfurtOder.Invoicing { oid = 3; // FUD } - else if (!String.IsNullOrEmpty(Kostenstelle) && Kostenstelle == "1202") + else if (!String.IsNullOrEmpty(Kostenstelle) && Kostenstelle == "12") { oid = 4; // ABW } @@ -269,13 +294,13 @@ namespace LebenshilfeFrankfurtOder.Invoicing { return "11"; } - if (id == "RechnungFud") + if (id == "RechnungFud" || id == "RechnungFudPrivat") { return "22"; } if (id == "RechnungAbw") { - return "1202"; + return "12"; } return ""; } diff --git a/ReportImp/LebenshilfeFrankfurtOder/Invoicing/EinzelfallhilfeInvoiceCreation.cs b/ReportImp/LebenshilfeFrankfurtOder/Invoicing/EinzelfallhilfeInvoiceCreation.cs new file mode 100644 index 000000000..1bf14be05 --- /dev/null +++ b/ReportImp/LebenshilfeFrankfurtOder/Invoicing/EinzelfallhilfeInvoiceCreation.cs @@ -0,0 +1,315 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.DCEntityMapper; +using BeWo.Service.Invoicing; +using BeWo.Service.Plugins; +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts; +using BS.Shared.DataContracts.Compact; +using BS.Shared.Extensions; +using BS.Shared.Services; + +namespace LebenshilfeFrankfurtOder.Invoicing +{ + + public class EinzelfallhilfeInvoiceCreation : InvoiceCreation + { + private const decimal AMOUNT_PER_KM = 0.4m; + + private DateTime? accountingPeriodStart = null; + private DateTime? accountingPeriodEnd = null; + + public override void SetInvoiceId(ServiceInvoice invoice) + { + invoice.InvoiceBase.InvoiceId = "RechnungEinzelfallhilfe"; + invoice.InvoiceBase.InvoiceTypeText = "Einzelfallhilfe"; + } + + public override List GenerateServiceInvoices(long costBearerOid, DateTimeSpan invoicePeriod, Dictionary> supportConcepts2ServiceRecords) + { + + var invoiceList = new List(); + + var invoiceCounter = 0; + + var sortedScs = supportConcepts2ServiceRecords.Keys.OrderBy(s => !String.IsNullOrEmpty(s.Customer.DebitorNumber) ? s.Customer.DebitorNumber : "zzzzz").ToList(); + + + foreach (var sc in sortedScs) + { + var serviceRecords = supportConcepts2ServiceRecords[sc]; + + if (sc.CostBearerList.Count > 0) + { + var costBearer = DAOFactory.GenericDAO.LoadByID(sc.CostBearerList[0].CostBearerOid); + + var invoice = CreateSingleInvoice(invoiceCounter, costBearer, invoicePeriod, sc, serviceRecords); + if (invoice != null) + { + SetzeCategory(invoice, serviceRecords); + invoiceList.Add(invoice); + invoiceCounter++; + } + + } + } + + var result = invoiceList.Select(item => MapperFactory.ServiceInvoiceDC_ServiceInvoice.MapToNewDC(item)).ToList(); + + //return result.Count > 1 ? result.OrderBy(i => i.InvoiceBase.CustomerLastName).ToList() : result; + return result; + } + + private void SetzeCategory(ServiceInvoice i, List records) + { + foreach (var sr in records) + { + i.Notice = String.Format("{0}", sr.ServiceDescription.Category.ServiceCategoryOid); + } + } + + public override ServiceInvoice CreateSingleInvoice(int invoiceCounter, CostBearer costBearer, DateTimeSpan invoicePeriod, CompactSupportConceptDC supportConcept, List serviceRecords) + { + var i = base.CreateSingleInvoice(invoiceCounter, costBearer, invoicePeriod, supportConcept, serviceRecords); + + if (i != null) + { + var claim = i.GetTotalClaim(); + + if (!claim.HasValue || claim.Value == 0) + { + return null; + } + } + + return i; + } + + //public override void SetRecipientInformation(ServiceInvoice serviceInvoice, CostBearer costBearer) + //{ + + + // if (istSelbstzahler || brauchtExtraPrivatrechnung) + // { + // if (serviceInvoice.InvoiceBase.CostBearer2SupportConcept != null) + // { + // var cust = serviceInvoice.InvoiceBase.CostBearer2SupportConcept.SupportConcept.Customer; + + // if (cust.Person.InvoiceAddress != null) + // { + // serviceInvoice.InvoiceBase.RecipientAddress = cust.Person.InvoiceAddress.CopyToNew(); + // } + // else if (cust.Person.Address != null) + // { + // serviceInvoice.InvoiceBase.RecipientAddress = cust.Person.Address.CopyToNew(); + // } + + // serviceInvoice.InvoiceBase.RecipientPersonFirstName = cust.Person.FirstName; + // serviceInvoice.InvoiceBase.RecipientPersonLastName = cust.Person.LastName; + + // } + // } + // else + // { + // base.SetRecipientInformation(serviceInvoice, costBearer); + // } + + //} + + public override void SetInvoiceBaseData(int invoiceCounter, ServiceInvoice invoice, CostBearer costBearer, DateTimeSpan invoicePeriod, + IList supportConceptList) + { + if (invoicePeriod != null) + { + accountingPeriodStart = invoicePeriod.StartDate; + accountingPeriodEnd = invoicePeriod.EndDate; + } + base.SetInvoiceBaseData(invoiceCounter, invoice, costBearer, invoicePeriod, supportConceptList); + } + + public override void SetServiceInvoicePeriods(ServiceInvoice invoice, CostBearer2SupportConcept costBearer2SupportConcept, + DateTimeSpan invoicePeriod, List serviceRecords) + { + var invoiceAccountingPeriodSpan = new DateTimeSpan + { + StartDateTime = invoice.InvoiceBase.AccountingPeriodStart.Value, + EndDateTime = invoice.InvoiceBase.AccountingPeriodEnd.Value + }; + + foreach (SupportConceptApprovalPeriod iPeriod in costBearer2SupportConcept.ApprovalPeriodList) + { + SupportConceptApprovalPeriodDC approvalPeriodDC = MapperFactory.SupportConceptApprovalPeriodDC_SupportConceptApprovalPeriod.MapToNewDC(iPeriod); + + + if (approvalPeriodDC.Span.EndDateTime < invoiceAccountingPeriodSpan.StartDateTime || approvalPeriodDC.Span.StartDateTime > invoiceAccountingPeriodSpan.EndDate) + { + continue; + } + + ServiceInvoicePeriod serviceInvoicePeriod = CreateServiceInvoicePeriod(approvalPeriodDC, invoiceAccountingPeriodSpan); + serviceInvoicePeriod.SupportConceptApprovalPeriod = iPeriod; + serviceInvoicePeriod.Customer = costBearer2SupportConcept.SupportConcept.Customer; + + CostBearer costBearer = costBearer2SupportConcept.CostBearer; + List costRates = MapperFactory.CostRatePeriodDC_CostRatePeriod.MapToNewDCs(costBearer.CostRatePeriods); + + CostRatePeriodDC serviceUnit = costRates.GetCostRatePeriodForDate(CostRatePeriodType.MinutesPerServiceUnit, DateTime.Now); + serviceInvoicePeriod.ServiceUnitName = serviceUnit.UnitName; + + SetInvoiceItems(invoice, serviceInvoicePeriod, approvalPeriodDC, costBearer2SupportConcept, invoicePeriod, serviceRecords); + + if (serviceInvoicePeriod.InvoiceItemList.Count > 0) + invoice.ServiceInvoicePeriodList.Add(serviceInvoicePeriod); + } + } + + public virtual void SetInvoiceItems(ServiceInvoice invoice, + ServiceInvoicePeriod serviceInvoicePeriod, + SupportConceptApprovalPeriodDC supportConceptApprovalPeriod, + CostBearer2SupportConcept cb2sc, + DateTimeSpan invoicePeriod, + List serviceRecords) + { + Calculations calc = PluginLoader.FindClass(_SpecificID) ?? + Calculations.GetInstance(_SpecificID); + + + List serviceRecordsInPeriod = serviceRecords.Where( + i => + { + bool valid = i.Start.Value.InBetween(serviceInvoicePeriod.Start.Value, serviceInvoicePeriod.End.Value, true); + + if (valid) + { + + String cat = i.ServiceDescription.CategoryName.ToLower().Trim().Replace(" ", ""); + + if (cat.Contains("einzelfallhilfe")) + { + + valid = true; + } + else + { + valid = false; + } + + } + return valid; + }).ToList(); + + if (serviceRecordsInPeriod.Count > 0) + { + var itemList = CreateInvoiceItems(serviceRecordsInPeriod, invoicePeriod, serviceInvoicePeriod.SupportConceptApprovalPeriod, calc); + serviceInvoicePeriod.InvoiceItemList.AddRange(itemList); + } + } + + public override IList CreateInvoiceItems(List serviceRecordsInPeriod, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap, + Calculations calc) + { + var list = base.CreateInvoiceItems(serviceRecordsInPeriod, invoicePeriod, scap, calc); + + return list; + } + + public override InvoiceItem CreateInvoiceItem(ServiceRecordDC iServiceRecord, SupportConceptApprovalPeriod scap, Calculations calc) + { + var ii = base.CreateInvoiceItem(iServiceRecord, scap, calc); + ii.Notice = iServiceRecord.ServiceDescription.CategoryName; + if (ii.AccountingInterval.HasValue) + { + if (ii.AccountingInterval.Value == AccountingIntervalType.Daily) + { + ii.UnitDescription = "Tage"; + } + else if (ii.AccountingInterval.Value == AccountingIntervalType.Hourly) + { + ii.UnitDescription = "h"; + } + } + return ii; + } + + + public override IList CreateSummaryInvoiceItems(IList itemList, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap, Calculations calc, bool summaryPerMonth, bool addRateFactorToUnitCount) + { + //Fasse InvoiceItems mit gleichem Stundensatz zusammen: + + var newlist = new List(); + + var rateToItem = new Dictionary(); + foreach (InvoiceItem iitem in itemList) + { + InvoiceItem item; + + var key = GetSummaryItemKey(scap, iitem, summaryPerMonth); + + if (rateToItem.ContainsKey(key)) + { + item = rateToItem[key]; + } + else + { + item = new InvoiceItem(); + newlist.Add(item); + + item.AmountPerUnit = iitem.AmountPerUnit; + if (invoicePeriod != null) + { + item.ItemPeriodStart = invoicePeriod.StartDate; + item.ItemPeriodEnd = invoicePeriod.EndDate; + } + else + { + item.ItemPeriodStart = scap.StartDate; + item.ItemPeriodEnd = scap.EndDate; + } + if (summaryPerMonth && iitem.ItemPeriodStart.HasValue) + { + DateTime start = new DateTime(iitem.ItemPeriodStart.Value.Year, iitem.ItemPeriodStart.Value.Month, 1); + DateTime end = start.AddMonths(1).AddDays(-1); + + if (item.ItemPeriodStart < start) + { + item.ItemPeriodStart = start; + } + if (item.ItemPeriodEnd > end) + { + item.ItemPeriodEnd = end; + } + } + item.RateFactor = iitem.RateFactor; + + item.AccountingInterval = iitem.AccountingInterval; + item.ItemDescription = iitem.ItemDescription; + item.UnitDescription = iitem.UnitDescription; + item.SupportConceptApprovalPeriodOid = scap.Oid; + item.Notice = iitem.Notice; + + rateToItem[key] = item; + } + + + if (!item.UnitCount.HasValue) + { + item.UnitCount = 0; + } + item.UnitCount += iitem.UnitCount ?? 0; + } + + BerechneSummaryItemsSummen(newlist, addRateFactorToUnitCount); + return newlist; + } + + public override string GetSummaryItemKey(SupportConceptApprovalPeriod scap, InvoiceItem iitem, bool summaryPerMonth) + { + return String.Format("{0}_{1}_{2:yyyyMM}_{3}", iitem.AmountPerUnit, iitem.RateFactor, iitem.ItemPeriodStart, iitem.ItemDescription); + + } + } +} diff --git a/ReportImp/LebenshilfeFrankfurtOder/Invoicing/FudInvoiceCreation.cs b/ReportImp/LebenshilfeFrankfurtOder/Invoicing/FudInvoiceCreation.cs index e4d1ac793..5869c5f8c 100644 --- a/ReportImp/LebenshilfeFrankfurtOder/Invoicing/FudInvoiceCreation.cs +++ b/ReportImp/LebenshilfeFrankfurtOder/Invoicing/FudInvoiceCreation.cs @@ -23,6 +23,9 @@ namespace LebenshilfeFrankfurtOder.Invoicing private DateTime? accountingPeriodStart = null; private DateTime? accountingPeriodEnd = null; + private bool istSelbstzahler = false; + private bool brauchtExtraPrivatrechnung = false; + public override void SetInvoiceId(ServiceInvoice invoice) { invoice.InvoiceBase.InvoiceId = "RechnungFud"; @@ -35,31 +38,103 @@ namespace LebenshilfeFrankfurtOder.Invoicing var invoiceList = new List(); var invoiceCounter = 0; + + var sortedScs = supportConcepts2ServiceRecords.Keys.OrderBy(s => !String.IsNullOrEmpty(s.Customer.DebitorNumber) ? s.Customer.DebitorNumber : "zzzzz").ToList(); + - foreach (var iSupportConcept2ServiceRecords in supportConcepts2ServiceRecords) + foreach (var sc in sortedScs) { - var sc = iSupportConcept2ServiceRecords.Key; + var serviceRecords = supportConcepts2ServiceRecords[sc]; + if (sc.CostBearerList.Count > 0) { + istSelbstzahler = false; + brauchtExtraPrivatrechnung = false; + var costBearer = DAOFactory.GenericDAO.LoadByID(sc.CostBearerList[0].CostBearerOid); - var invoice = CreateSingleInvoice(invoiceCounter, costBearer, invoicePeriod, sc, - iSupportConcept2ServiceRecords.Value); - if (invoice != null) + if (costBearer.Organisation.Name.Contains("Selbstzahler")) { - invoiceList.Add(invoice); - invoiceCounter++; + istSelbstzahler = true; } + + if (sc.Customer.VarFieldValues != null) + { + foreach (var vv in sc.Customer.VarFieldValues) + { + + } + } + if (istSelbstzahler || MussPrivatRechnungErstelltWerden(serviceRecords)) + { + brauchtExtraPrivatrechnung = true; + var privateInvoice = CreateSingleInvoice(invoiceCounter, costBearer, invoicePeriod, sc, serviceRecords); + + if (privateInvoice != null) + { + privateInvoice.InvoiceBase.InvoiceId = "RechnungFudPrivat"; + SetzeCategory(privateInvoice, serviceRecords); + invoiceList.Add(privateInvoice); + invoiceCounter++; + } + } + + if (!istSelbstzahler && MussKTRechnungErstelltWerden(serviceRecords)) + { + brauchtExtraPrivatrechnung = false; + var invoice = CreateSingleInvoice(invoiceCounter, costBearer, invoicePeriod, sc, serviceRecords); + if (invoice != null) + { + SetzeCategory(invoice, serviceRecords); + invoiceList.Add(invoice); + invoiceCounter++; + } + } + + } } var result = invoiceList.Select(item => MapperFactory.ServiceInvoiceDC_ServiceInvoice.MapToNewDC(item)).ToList(); - return result.Count > 1 ? result.OrderBy(i => i.InvoiceBase.CustomerLastName).ToList() : result; + //return result.Count > 1 ? result.OrderBy(i => i.InvoiceBase.CustomerLastName).ToList() : result; + return result; } - public override ServiceInvoice CreateSingleInvoice(int invoiceCounter, CostBearer costBearer, DateTimeSpan invoicePeriod, - CompactSupportConceptDC supportConcept, List serviceRecords) + private void SetzeCategory(ServiceInvoice i, List records) + { + foreach (var sr in records) + { + i.Notice = String.Format("{0}", sr.ServiceDescription.Category.ServiceCategoryOid); + } + } + + private bool MussPrivatRechnungErstelltWerden(List records) + { + foreach (var sr in records) + { + if (sr.ServiceDescription.Name.Contains("Kurskosten")) + { + return true; + } + } + + return false; + } + + private bool MussKTRechnungErstelltWerden(List records) + { + foreach (var sr in records) + { + if (!sr.ServiceDescription.Name.Contains("Kurskosten")) + { + return true; + } + } + + return false; + } + public override ServiceInvoice CreateSingleInvoice(int invoiceCounter, CostBearer costBearer, DateTimeSpan invoicePeriod, CompactSupportConceptDC supportConcept, List serviceRecords) { var i = base.CreateSingleInvoice(invoiceCounter, costBearer, invoicePeriod, supportConcept, serviceRecords); @@ -76,6 +151,37 @@ namespace LebenshilfeFrankfurtOder.Invoicing return i; } + public override void SetRecipientInformation(ServiceInvoice serviceInvoice, CostBearer costBearer) + { + + + if (istSelbstzahler || brauchtExtraPrivatrechnung) + { + if (serviceInvoice.InvoiceBase.CostBearer2SupportConcept != null) + { + var cust = serviceInvoice.InvoiceBase.CostBearer2SupportConcept.SupportConcept.Customer; + + if (cust.Person.InvoiceAddress != null) + { + serviceInvoice.InvoiceBase.RecipientAddress = cust.Person.InvoiceAddress.CopyToNew(); + } + else if (cust.Person.Address != null) + { + serviceInvoice.InvoiceBase.RecipientAddress = cust.Person.Address.CopyToNew(); + } + + serviceInvoice.InvoiceBase.RecipientPersonFirstName = cust.Person.FirstName; + serviceInvoice.InvoiceBase.RecipientPersonLastName = cust.Person.LastName; + + } + } + else + { + base.SetRecipientInformation(serviceInvoice, costBearer); + } + + } + public override void SetInvoiceBaseData(int invoiceCounter, ServiceInvoice invoice, CostBearer costBearer, DateTimeSpan invoicePeriod, IList supportConceptList) { @@ -142,15 +248,20 @@ namespace LebenshilfeFrankfurtOder.Invoicing if (valid) { - String cat = i.ServiceDescription.CategoryName.ToLower().Trim(); + String cat = i.ServiceDescription.CategoryName.ToLower().Trim().Replace(" ", ""); + + if (cat.Contains("§45") || cat.Contains("§42") || cat.Contains("§39")) + { - if (i.ServiceDescription.Name.Contains("Kurskosten")) - { - valid = false; - } - else if (cat.Contains("§45") || cat.Contains("§42") || cat.Contains("§39")) - { - valid = true; + if (i.ServiceDescription.Name.Contains("Kurskosten")) + { + valid = brauchtExtraPrivatrechnung; + } + else + { + valid = !brauchtExtraPrivatrechnung || istSelbstzahler; + } + } else { @@ -181,7 +292,7 @@ namespace LebenshilfeFrankfurtOder.Invoicing public override InvoiceItem CreateInvoiceItem(ServiceRecordDC iServiceRecord, SupportConceptApprovalPeriod scap, Calculations calc) { var ii = base.CreateInvoiceItem(iServiceRecord, scap, calc); - + ii.Notice = iServiceRecord.ServiceDescription.CategoryName; if (ii.AccountingInterval.HasValue) { if (ii.AccountingInterval.Value == AccountingIntervalType.Daily) @@ -234,5 +345,81 @@ namespace LebenshilfeFrankfurtOder.Invoicing } return null; } + + public override IList CreateSummaryInvoiceItems(IList itemList, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap, Calculations calc, bool summaryPerMonth, bool addRateFactorToUnitCount) + { + //Fasse InvoiceItems mit gleichem Stundensatz zusammen: + + var newlist = new List(); + + var rateToItem = new Dictionary(); + foreach (InvoiceItem iitem in itemList) + { + InvoiceItem item; + + var key = GetSummaryItemKey(scap, iitem, summaryPerMonth); + + if (rateToItem.ContainsKey(key)) + { + item = rateToItem[key]; + } + else + { + item = new InvoiceItem(); + newlist.Add(item); + + item.AmountPerUnit = iitem.AmountPerUnit; + if (invoicePeriod != null) + { + item.ItemPeriodStart = invoicePeriod.StartDate; + item.ItemPeriodEnd = invoicePeriod.EndDate; + } + else + { + item.ItemPeriodStart = scap.StartDate; + item.ItemPeriodEnd = scap.EndDate; + } + if (summaryPerMonth && iitem.ItemPeriodStart.HasValue) + { + DateTime start = new DateTime(iitem.ItemPeriodStart.Value.Year, iitem.ItemPeriodStart.Value.Month, 1); + DateTime end = start.AddMonths(1).AddDays(-1); + + if (item.ItemPeriodStart < start) + { + item.ItemPeriodStart = start; + } + if (item.ItemPeriodEnd > end) + { + item.ItemPeriodEnd = end; + } + } + item.RateFactor = iitem.RateFactor; + + item.AccountingInterval = iitem.AccountingInterval; + item.ItemDescription = iitem.ItemDescription; + item.UnitDescription = iitem.UnitDescription; + item.SupportConceptApprovalPeriodOid = scap.Oid; + item.Notice = iitem.Notice; + + rateToItem[key] = item; + } + + + if (!item.UnitCount.HasValue) + { + item.UnitCount = 0; + } + item.UnitCount += iitem.UnitCount ?? 0; + } + + BerechneSummaryItemsSummen(newlist, addRateFactorToUnitCount); + return newlist; + } + + public override string GetSummaryItemKey(SupportConceptApprovalPeriod scap, InvoiceItem iitem, bool summaryPerMonth) + { + return String.Format("{0}_{1}_{2:yyyyMM}_{3}", iitem.AmountPerUnit, iitem.RateFactor, iitem.ItemPeriodStart, iitem.ItemDescription); + + } } } diff --git a/ReportImp/LebenshilfeFrankfurtOder/Invoicing/TagesstrukturInvoiceCreation.cs b/ReportImp/LebenshilfeFrankfurtOder/Invoicing/TagesstrukturInvoiceCreation.cs index a13797b35..9814097bb 100644 --- a/ReportImp/LebenshilfeFrankfurtOder/Invoicing/TagesstrukturInvoiceCreation.cs +++ b/ReportImp/LebenshilfeFrankfurtOder/Invoicing/TagesstrukturInvoiceCreation.cs @@ -43,15 +43,37 @@ namespace LebenshilfeFrankfurtOder.Invoicing foreach (var trd in daten) { - var i = CreateInvoice(invoiceCounter++, invoicePeriod, trd); - invoiceList.Add(i); + var i = CreateInvoice(invoiceCounter, invoicePeriod, trd); + + var c = i.GetTotalClaim(); + + if (c.HasValue && c.Value > 0) + { + invoiceList.Add(i); + invoiceCounter++; + } + else + { + int test = 0; + } } foreach (var trd in daten) { foreach (var sc in trd.SupportConcepts) { - var i = CreateRechnungTagesstrukturVerpflegung(invoiceCounter++, invoicePeriod, sc, trd.CostBearer); - invoiceList.Add(i); + var i = CreateRechnungTagesstrukturVerpflegung(invoiceCounter, invoicePeriod, sc, trd.CostBearer); + + var c = i.GetTotalClaim(); + + if (c.HasValue && c.Value > 0) + { + invoiceList.Add(i); + invoiceCounter++; + } + else + { + int test = 0; + } } } diff --git a/ReportImp/LebenshilfeFrankfurtOder/Invoicing/WstInvoiceCreation.cs b/ReportImp/LebenshilfeFrankfurtOder/Invoicing/WstInvoiceCreation.cs index 50e3f7b48..8a59ee73b 100644 --- a/ReportImp/LebenshilfeFrankfurtOder/Invoicing/WstInvoiceCreation.cs +++ b/ReportImp/LebenshilfeFrankfurtOder/Invoicing/WstInvoiceCreation.cs @@ -48,8 +48,14 @@ namespace LebenshilfeFrankfurtOder.Invoicing foreach (var trd in daten) { - var i = CreateInvoice(invoiceCounter++, invoicePeriod, trd); - invoiceList.Add(i); + var i = CreateInvoice(invoiceCounter, invoicePeriod, trd); + var c = i.GetTotalClaim(); + + if (c.HasValue && c.Value > 0) + { + invoiceList.Add(i); + invoiceCounter++; + } } return invoiceList; diff --git a/ReportImp/LebenshilfeFrankfurtOder/LebenshilfeFrankfurtOder.csproj b/ReportImp/LebenshilfeFrankfurtOder/LebenshilfeFrankfurtOder.csproj index cb51b8833..fe61c5252 100644 --- a/ReportImp/LebenshilfeFrankfurtOder/LebenshilfeFrankfurtOder.csproj +++ b/ReportImp/LebenshilfeFrankfurtOder/LebenshilfeFrankfurtOder.csproj @@ -32,6 +32,7 @@ + @@ -65,11 +66,18 @@ + + + Component + + + LeistungsnachweisAbw.cs + Component @@ -83,6 +91,12 @@ LeistungsnachweisKurzzeitpflege.cs + + Component + + + RechnungEinzelfallhilfe.cs + Component @@ -149,6 +163,10 @@ AdditionalServiceBookingReport.cs + + LeistungsnachweisAbw.cs + Designer + LeistungsnachweisEntlastungsleistungen.cs Designer @@ -158,6 +176,10 @@ Designer + + RechnungEinzelfallhilfe.cs + Designer + RechnungFud.cs Designer diff --git a/ReportImp/LebenshilfeFrankfurtOder/LeistungsnachweisAbw.Designer.cs b/ReportImp/LebenshilfeFrankfurtOder/LeistungsnachweisAbw.Designer.cs new file mode 100644 index 000000000..a2e83cfae --- /dev/null +++ b/ReportImp/LebenshilfeFrankfurtOder/LeistungsnachweisAbw.Designer.cs @@ -0,0 +1,809 @@ +using BeWo.Report.ReportObjects; +namespace LebenshilfeFrankfurtOder +{ + partial class LeistungsnachweisAbw + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.Detail = new DevExpress.XtraReports.UI.DetailBand(); + this.xrTableServiceRecords1 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell9 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell12 = new DevExpress.XtraReports.UI.XRTableCell(); + this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand(); + this.Detail1 = new DevExpress.XtraReports.UI.DetailBand(); + this.xrTable3 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow6 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell13 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell14 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell16 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell17 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell19 = new DevExpress.XtraReports.UI.XRTableCell(); + this.formattingRuleStartDate = new DevExpress.XtraReports.UI.FormattingRule(); + this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand(); + this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel9 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel(); + this.formattingRuleServiceDesc = new DevExpress.XtraReports.UI.FormattingRule(); + this.formattingRuleCostBearer = new DevExpress.XtraReports.UI.FormattingRule(); + this.formattingRuleEmployeeName = new DevExpress.XtraReports.UI.FormattingRule(); + this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand(); + this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); + this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand(); + this.fieldArtDerLeistung = new DevExpress.XtraReports.UI.CalculatedField(); + this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand(); + this.xrTable4 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow4 = new DevExpress.XtraReports.UI.XRTableRow(); + this.cellPreisGesamt = new DevExpress.XtraReports.UI.XRTableCell(); + this.cellStundenGesamt = new DevExpress.XtraReports.UI.XRTableCell(); + this.cellKmGesamt = new DevExpress.XtraReports.UI.XRTableCell(); + this.fieldStunden = new DevExpress.XtraReports.UI.CalculatedField(); + this.GroupHeader2 = new DevExpress.XtraReports.UI.GroupHeaderBand(); + this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); + this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell7 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableRow3 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell15 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell18 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell20 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell21 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableRow5 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell22 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell23 = new DevExpress.XtraReports.UI.XRTableCell(); + this.cellStundenInklFac = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell25 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); + this.lblZiele = new DevExpress.XtraReports.UI.XRLabel(); + ((System.ComponentModel.ISupportInitialize)(this.xrTableServiceRecords1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); + // + // Detail + // + this.Detail.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Detail.HeightF = 0F; + this.Detail.Name = "Detail"; + this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.Detail.StylePriority.UseFont = false; + this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrTableServiceRecords1 + // + this.xrTableServiceRecords1.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableServiceRecords1.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableServiceRecords1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTableServiceRecords1.Name = "xrTableServiceRecords1"; + this.xrTableServiceRecords1.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTableServiceRecords1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow2}); + this.xrTableServiceRecords1.SizeF = new System.Drawing.SizeF(1040F, 32F); + this.xrTableServiceRecords1.StylePriority.UseBackColor = false; + this.xrTableServiceRecords1.StylePriority.UseFont = false; + this.xrTableServiceRecords1.StylePriority.UseTextAlignment = false; + this.xrTableServiceRecords1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + // + // xrTableRow2 + // + this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell3, + this.xrTableCell4, + this.xrTableCell9, + this.xrTableCell8, + this.xrTableCell6, + this.xrTableCell12}); + this.xrTableRow2.Name = "xrTableRow2"; + this.xrTableRow2.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTableRow2.StylePriority.UseTextAlignment = false; + this.xrTableRow2.Weight = 1.6D; + // + // xrTableCell3 + // + this.xrTableCell3.Name = "xrTableCell3"; + this.xrTableCell3.StylePriority.UseFont = false; + this.xrTableCell3.StylePriority.UsePadding = false; + this.xrTableCell3.StylePriority.UseTextAlignment = false; + this.xrTableCell3.Text = "Datum"; + this.xrTableCell3.Weight = 0.077839498389906031D; + // + // xrTableCell4 + // + this.xrTableCell4.Multiline = true; + this.xrTableCell4.Name = "xrTableCell4"; + this.xrTableCell4.StylePriority.UseFont = false; + this.xrTableCell4.StylePriority.UsePadding = false; + this.xrTableCell4.StylePriority.UseTextAlignment = false; + this.xrTableCell4.Weight = 0.058379618027002367D; + // + // xrTableCell9 + // + this.xrTableCell9.Name = "xrTableCell9"; + this.xrTableCell9.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F); + this.xrTableCell9.StylePriority.UseFont = false; + this.xrTableCell9.StylePriority.UsePadding = false; + this.xrTableCell9.StylePriority.UseTextAlignment = false; + this.xrTableCell9.Text = "Tagesdokumentation [StartDate!MM]/[StartDate!yyyy]"; + this.xrTableCell9.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + this.xrTableCell9.Weight = 0.66163571488018158D; + // + // xrTableCell8 + // + this.xrTableCell8.Multiline = true; + this.xrTableCell8.Name = "xrTableCell8"; + this.xrTableCell8.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 0, 0, 0, 100F); + this.xrTableCell8.StylePriority.UsePadding = false; + this.xrTableCell8.StylePriority.UseTextAlignment = false; + this.xrTableCell8.Text = "von-bis"; + this.xrTableCell8.Weight = 0.08756943118806923D; + // + // xrTableCell6 + // + this.xrTableCell6.Multiline = true; + this.xrTableCell6.Name = "xrTableCell6"; + this.xrTableCell6.StylePriority.UsePadding = false; + this.xrTableCell6.StylePriority.UseTextAlignment = false; + this.xrTableCell6.Text = "Std."; + this.xrTableCell6.Weight = 0.048649683733478929D; + // + // xrTableCell12 + // + this.xrTableCell12.Multiline = true; + this.xrTableCell12.Name = "xrTableCell12"; + this.xrTableCell12.StylePriority.UseBackColor = false; + this.xrTableCell12.StylePriority.UseFont = false; + this.xrTableCell12.StylePriority.UsePadding = false; + this.xrTableCell12.StylePriority.UseTextAlignment = false; + this.xrTableCell12.Text = "MA"; + this.xrTableCell12.Weight = 0.077839493568038071D; + // + // DetailReport + // + this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail1}); + this.DetailReport.DataMember = "Services"; + this.DetailReport.DataSource = this.bindingSource1; + this.DetailReport.Level = 0; + this.DetailReport.Name = "DetailReport"; + this.DetailReport.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.DetailReport.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // Detail1 + // + this.Detail1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable3}); + this.Detail1.HeightF = 25F; + this.Detail1.Name = "Detail1"; + this.Detail1.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.Detail1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrTable3 + // + this.xrTable3.BorderColor = System.Drawing.Color.Black; + this.xrTable3.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable3.Name = "xrTable3"; + this.xrTable3.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTable3.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow6}); + this.xrTable3.SizeF = new System.Drawing.SizeF(1040F, 25F); + this.xrTable3.StylePriority.UseFont = false; + this.xrTable3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrTableRow6 + // + this.xrTableRow6.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell13, + this.xrTableCell14, + this.xrTableCell16, + this.xrTableCell17, + this.xrTableCell2, + this.xrTableCell19}); + this.xrTableRow6.Name = "xrTableRow6"; + this.xrTableRow6.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTableRow6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableRow6.Weight = 1.25D; + // + // xrTableCell13 + // + this.xrTableCell13.CanGrow = false; + this.xrTableCell13.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.StartDate", "{0:dd.MM.}")}); + this.xrTableCell13.Name = "xrTableCell13"; + this.xrTableCell13.StylePriority.UseFont = false; + this.xrTableCell13.StylePriority.UsePadding = false; + this.xrTableCell13.StylePriority.UseTextAlignment = false; + this.xrTableCell13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + this.xrTableCell13.Weight = 0.029153310565328161D; + // + // xrTableCell14 + // + this.xrTableCell14.CanGrow = false; + this.xrTableCell14.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.GoalList")}); + this.xrTableCell14.Multiline = true; + this.xrTableCell14.Name = "xrTableCell14"; + this.xrTableCell14.StylePriority.UseFont = false; + this.xrTableCell14.StylePriority.UsePadding = false; + this.xrTableCell14.StylePriority.UseTextAlignment = false; + this.xrTableCell14.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + this.xrTableCell14.Weight = 0.021864983958054023D; + // + // xrTableCell16 + // + this.xrTableCell16.CanGrow = false; + this.xrTableCell16.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.Notice")}); + this.xrTableCell16.Multiline = true; + this.xrTableCell16.Name = "xrTableCell16"; + this.xrTableCell16.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrTableCell16.StylePriority.UseFont = false; + this.xrTableCell16.StylePriority.UsePadding = false; + this.xrTableCell16.StylePriority.UseTextAlignment = false; + this.xrTableCell16.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableCell16.Weight = 0.24780313195087117D; + // + // xrTableCell17 + // + this.xrTableCell17.CanGrow = false; + this.xrTableCell17.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.TimeRangeString")}); + this.xrTableCell17.Multiline = true; + this.xrTableCell17.Name = "xrTableCell17"; + this.xrTableCell17.StylePriority.UseFont = false; + this.xrTableCell17.StylePriority.UsePadding = false; + this.xrTableCell17.StylePriority.UseTextAlignment = false; + this.xrTableCell17.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + this.xrTableCell17.Weight = 0.032797472637825176D; + // + // xrTableCell2 + // + this.xrTableCell2.CanGrow = false; + this.xrTableCell2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.fieldStunden", "{0:0.00}")}); + this.xrTableCell2.Name = "xrTableCell2"; + this.xrTableCell2.StylePriority.UseFont = false; + this.xrTableCell2.StylePriority.UsePadding = false; + this.xrTableCell2.StylePriority.UseTextAlignment = false; + this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + this.xrTableCell2.Weight = 0.018220818090374985D; + // + // xrTableCell19 + // + this.xrTableCell19.CanGrow = false; + this.xrTableCell19.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.EmployeeLastName")}); + this.xrTableCell19.Name = "xrTableCell19"; + this.xrTableCell19.StylePriority.UseFont = false; + this.xrTableCell19.StylePriority.UsePadding = false; + this.xrTableCell19.StylePriority.UseTextAlignment = false; + this.xrTableCell19.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + this.xrTableCell19.Weight = 0.029153301394765435D; + // + // formattingRuleStartDate + // + this.formattingRuleStartDate.Condition = "[StartDate2] < [StartDate]"; + this.formattingRuleStartDate.DataMember = "ServicesDouble"; + this.formattingRuleStartDate.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.formattingRuleStartDate.Name = "formattingRuleStartDate"; + // + // ReportHeader + // + this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.lblZiele, + this.xrLabel2, + this.xrLabel15, + this.xrLabel14, + this.xrLabel13, + this.xrLabel9}); + this.ReportHeader.HeightF = 246.6667F; + this.ReportHeader.Name = "ReportHeader"; + // + // xrLabel15 + // + this.xrLabel15.CanGrow = false; + this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(82.1874F, 20.00001F); + this.xrLabel15.Multiline = true; + this.xrLabel15.Name = "xrLabel15"; + this.xrLabel15.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel15.SizeF = new System.Drawing.SizeF(184.5833F, 20.00002F); + this.xrLabel15.StylePriority.UseBorders = false; + this.xrLabel15.StylePriority.UseFont = false; + this.xrLabel15.StylePriority.UseTextAlignment = false; + this.xrLabel15.Text = "[CustomerFirstName]"; + this.xrLabel15.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel14 + // + this.xrLabel14.CanGrow = false; + this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(0F, 20.00001F); + this.xrLabel14.Multiline = true; + this.xrLabel14.Name = "xrLabel14"; + this.xrLabel14.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel14.SizeF = new System.Drawing.SizeF(82.18741F, 20F); + this.xrLabel14.StylePriority.UseFont = false; + this.xrLabel14.StylePriority.UseTextAlignment = false; + this.xrLabel14.Text = "Vorname:"; + this.xrLabel14.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel13 + // + this.xrLabel13.CanGrow = false; + this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrLabel13.Multiline = true; + this.xrLabel13.Name = "xrLabel13"; + this.xrLabel13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel13.SizeF = new System.Drawing.SizeF(58.85442F, 20F); + this.xrLabel13.StylePriority.UseFont = false; + this.xrLabel13.StylePriority.UseTextAlignment = false; + this.xrLabel13.Text = "Name:"; + this.xrLabel13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel9 + // + this.xrLabel9.CanGrow = false; + this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(82.1874F, 0F); + this.xrLabel9.Multiline = true; + this.xrLabel9.Name = "xrLabel9"; + this.xrLabel9.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel9.SizeF = new System.Drawing.SizeF(184.5833F, 20.00002F); + this.xrLabel9.StylePriority.UseBorders = false; + this.xrLabel9.StylePriority.UseFont = false; + this.xrLabel9.StylePriority.UseTextAlignment = false; + this.xrLabel9.Text = "[CustomerLastName]"; + this.xrLabel9.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel8 + // + this.xrLabel8.CanGrow = false; + this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(0F, 33.40276F); + this.xrLabel8.Multiline = true; + this.xrLabel8.Name = "xrLabel8"; + this.xrLabel8.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel8.SizeF = new System.Drawing.SizeF(160.2433F, 20F); + this.xrLabel8.StylePriority.UseFont = false; + this.xrLabel8.StylePriority.UseTextAlignment = false; + this.xrLabel8.Text = "ambulant betreutes Wohnen"; + this.xrLabel8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // formattingRuleServiceDesc + // + this.formattingRuleServiceDesc.Condition = "[StartDate2] < [StartDate]"; + this.formattingRuleServiceDesc.DataMember = "ServicesDouble"; + this.formattingRuleServiceDesc.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.formattingRuleServiceDesc.Name = "formattingRuleServiceDesc"; + // + // formattingRuleCostBearer + // + this.formattingRuleCostBearer.Condition = "[StartDate2] < [StartDate]"; + this.formattingRuleCostBearer.DataMember = "ServicesDouble"; + this.formattingRuleCostBearer.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.formattingRuleCostBearer.Name = "formattingRuleCostBearer"; + // + // formattingRuleEmployeeName + // + this.formattingRuleEmployeeName.Condition = "[StartDate2] < [StartDate]"; + this.formattingRuleEmployeeName.DataMember = "ServicesDouble"; + this.formattingRuleEmployeeName.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.formattingRuleEmployeeName.Name = "formattingRuleEmployeeName"; + // + // topMarginBand1 + // + this.topMarginBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel1, + this.xrLabel8}); + this.topMarginBand1.HeightF = 90F; + this.topMarginBand1.Name = "topMarginBand1"; + // + // xrLabel1 + // + this.xrLabel1.CanGrow = false; + this.xrLabel1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "CustomerName")}); + this.xrLabel1.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(160.2433F, 33.40276F); + this.xrLabel1.Multiline = true; + this.xrLabel1.Name = "xrLabel1"; + this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel1.SizeF = new System.Drawing.SizeF(685.4858F, 20F); + this.xrLabel1.StylePriority.UseFont = false; + this.xrLabel1.StylePriority.UseTextAlignment = false; + this.xrLabel1.Text = "KV-Nr."; + this.xrLabel1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + // + // bottomMarginBand1 + // + this.bottomMarginBand1.HeightF = 30F; + this.bottomMarginBand1.Name = "bottomMarginBand1"; + // + // fieldArtDerLeistung + // + this.fieldArtDerLeistung.DataMember = "Services"; + this.fieldArtDerLeistung.Expression = "Iif([IsGroup], \'G\', \'E\')"; + this.fieldArtDerLeistung.Name = "fieldArtDerLeistung"; + // + // GroupFooter1 + // + this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable4}); + this.GroupFooter1.HeightF = 80F; + this.GroupFooter1.Name = "GroupFooter1"; + this.GroupFooter1.StylePriority.UseFont = false; + // + // xrTable4 + // + this.xrTable4.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable4.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable4.Name = "xrTable4"; + this.xrTable4.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTable4.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow4, + this.xrTableRow1, + this.xrTableRow3, + this.xrTableRow5}); + this.xrTable4.SizeF = new System.Drawing.SizeF(1040F, 80F); + this.xrTable4.StylePriority.UseBackColor = false; + this.xrTable4.StylePriority.UseFont = false; + this.xrTable4.StylePriority.UseTextAlignment = false; + this.xrTable4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + // + // xrTableRow4 + // + this.xrTableRow4.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell1, + this.cellPreisGesamt, + this.cellStundenGesamt, + this.cellKmGesamt}); + this.xrTableRow4.Name = "xrTableRow4"; + this.xrTableRow4.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTableRow4.StylePriority.UseTextAlignment = false; + this.xrTableRow4.Weight = 1D; + // + // cellPreisGesamt + // + this.cellPreisGesamt.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right))); + this.cellPreisGesamt.Multiline = true; + this.cellPreisGesamt.Name = "cellPreisGesamt"; + this.cellPreisGesamt.StylePriority.UseBorders = false; + this.cellPreisGesamt.StylePriority.UsePadding = false; + this.cellPreisGesamt.StylePriority.UseTextAlignment = false; + this.cellPreisGesamt.Text = "direkte Stunden"; + this.cellPreisGesamt.Weight = 0.047486207247397785D; + // + // cellStundenGesamt + // + this.cellStundenGesamt.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.cellStundenGesamt.Multiline = true; + this.cellStundenGesamt.Name = "cellStundenGesamt"; + this.cellStundenGesamt.StylePriority.UseBorders = false; + this.cellStundenGesamt.StylePriority.UsePadding = false; + this.cellStundenGesamt.StylePriority.UseTextAlignment = false; + this.cellStundenGesamt.Weight = 0.026381177667068368D; + // + // cellKmGesamt + // + this.cellKmGesamt.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.cellKmGesamt.Name = "cellKmGesamt"; + this.cellKmGesamt.StylePriority.UseBorders = false; + this.cellKmGesamt.StylePriority.UseTextAlignment = false; + this.cellKmGesamt.Weight = 0.042209951723681624D; + // + // fieldStunden + // + this.fieldStunden.DataMember = "Services"; + this.fieldStunden.Expression = "[Minutes] / 60"; + this.fieldStunden.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal; + this.fieldStunden.Name = "fieldStunden"; + // + // GroupHeader2 + // + this.GroupHeader2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTableServiceRecords1}); + this.GroupHeader2.HeightF = 32F; + this.GroupHeader2.Name = "GroupHeader2"; + // + // bindingSource1 + // + this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO); + // + // xrTableCell1 + // + this.xrTableCell1.Borders = DevExpress.XtraPrinting.BorderSide.Right; + this.xrTableCell1.Name = "xrTableCell1"; + this.xrTableCell1.StylePriority.UseBorders = false; + this.xrTableCell1.Weight = 0.43265214744290303D; + // + // xrTableRow1 + // + this.xrTableRow1.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell5, + this.xrTableCell7, + this.xrTableCell10, + this.xrTableCell11}); + this.xrTableRow1.Name = "xrTableRow1"; + this.xrTableRow1.Weight = 1D; + // + // xrTableCell5 + // + this.xrTableCell5.Borders = DevExpress.XtraPrinting.BorderSide.Right; + this.xrTableCell5.Name = "xrTableCell5"; + this.xrTableCell5.StylePriority.UseBorders = false; + this.xrTableCell5.Weight = 0.43265214744290303D; + // + // xrTableCell7 + // + this.xrTableCell7.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrTableCell7.Name = "xrTableCell7"; + this.xrTableCell7.StylePriority.UseBorders = false; + this.xrTableCell7.Text = "ind. Stunden"; + this.xrTableCell7.Weight = 0.047486207247397785D; + // + // xrTableCell10 + // + this.xrTableCell10.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell10.Name = "xrTableCell10"; + this.xrTableCell10.StylePriority.UseBorders = false; + this.xrTableCell10.Text = "30%"; + this.xrTableCell10.Weight = 0.026381177667068368D; + // + // xrTableCell11 + // + this.xrTableCell11.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell11.Name = "xrTableCell11"; + this.xrTableCell11.StylePriority.UseBorders = false; + this.xrTableCell11.Weight = 0.042209951723681624D; + // + // xrTableRow3 + // + this.xrTableRow3.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell15, + this.xrTableCell18, + this.xrTableCell20, + this.xrTableCell21}); + this.xrTableRow3.Name = "xrTableRow3"; + this.xrTableRow3.Weight = 1D; + // + // xrTableCell15 + // + this.xrTableCell15.Borders = DevExpress.XtraPrinting.BorderSide.Right; + this.xrTableCell15.Name = "xrTableCell15"; + this.xrTableCell15.StylePriority.UseBorders = false; + this.xrTableCell15.Weight = 0.43265214744290303D; + // + // xrTableCell18 + // + this.xrTableCell18.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrTableCell18.Name = "xrTableCell18"; + this.xrTableCell18.StylePriority.UseBorders = false; + this.xrTableCell18.Weight = 0.047486207247397785D; + // + // xrTableCell20 + // + this.xrTableCell20.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell20.Name = "xrTableCell20"; + this.xrTableCell20.StylePriority.UseBorders = false; + this.xrTableCell20.Weight = 0.026381177667068368D; + // + // xrTableCell21 + // + this.xrTableCell21.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell21.Name = "xrTableCell21"; + this.xrTableCell21.StylePriority.UseBorders = false; + this.xrTableCell21.Weight = 0.042209951723681624D; + // + // xrTableRow5 + // + this.xrTableRow5.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell22, + this.xrTableCell23, + this.cellStundenInklFac, + this.xrTableCell25}); + this.xrTableRow5.Name = "xrTableRow5"; + this.xrTableRow5.Weight = 1D; + // + // xrTableCell22 + // + this.xrTableCell22.Borders = DevExpress.XtraPrinting.BorderSide.Right; + this.xrTableCell22.Name = "xrTableCell22"; + this.xrTableCell22.StylePriority.UseBorders = false; + this.xrTableCell22.Weight = 0.43265214744290303D; + // + // xrTableCell23 + // + this.xrTableCell23.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell23.Name = "xrTableCell23"; + this.xrTableCell23.StylePriority.UseBorders = false; + this.xrTableCell23.Text = "Rechnung"; + this.xrTableCell23.Weight = 0.047486207247397785D; + // + // cellStundenInklFac + // + this.cellStundenInklFac.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.cellStundenInklFac.Name = "cellStundenInklFac"; + this.cellStundenInklFac.StylePriority.UseBorders = false; + this.cellStundenInklFac.Weight = 0.026381177667068368D; + // + // xrTableCell25 + // + this.xrTableCell25.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell25.Name = "xrTableCell25"; + this.xrTableCell25.StylePriority.UseBorders = false; + this.xrTableCell25.Weight = 0.042209951723681624D; + // + // xrLabel2 + // + this.xrLabel2.CanGrow = false; + this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(140F, 40.00003F); + this.xrLabel2.Multiline = true; + this.xrLabel2.Name = "xrLabel2"; + this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel2.SizeF = new System.Drawing.SizeF(680.0001F, 20F); + this.xrLabel2.StylePriority.UseFont = false; + this.xrLabel2.StylePriority.UseTextAlignment = false; + this.xrLabel2.Text = "Schwerpunkte der Betreuung"; + this.xrLabel2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + // + // lblZiele + // + this.lblZiele.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.lblZiele.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblZiele.LocationFloat = new DevExpress.Utils.PointFloat(140F, 60.00002F); + this.lblZiele.Multiline = true; + this.lblZiele.Name = "lblZiele"; + this.lblZiele.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblZiele.SizeF = new System.Drawing.SizeF(680.0001F, 176.6667F); + this.lblZiele.StylePriority.UseBorders = false; + this.lblZiele.StylePriority.UseFont = false; + this.lblZiele.StylePriority.UseTextAlignment = false; + this.lblZiele.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // LeistungsnachweisAbw + // + this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail, + this.DetailReport, + this.ReportHeader, + this.topMarginBand1, + this.bottomMarginBand1, + this.GroupFooter1, + this.GroupHeader2}); + this.CalculatedFields.AddRange(new DevExpress.XtraReports.UI.CalculatedField[] { + this.fieldArtDerLeistung, + this.fieldStunden}); + this.DataSource = this.bindingSource1; + this.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] { + this.formattingRuleStartDate, + this.formattingRuleServiceDesc, + this.formattingRuleCostBearer, + this.formattingRuleEmployeeName}); + this.Landscape = true; + this.Margins = new System.Drawing.Printing.Margins(50, 49, 90, 30); + this.PageHeight = 827; + this.PageWidth = 1169; + this.PaperKind = System.Drawing.Printing.PaperKind.A4; + this.Version = "17.1"; + ((System.ComponentModel.ISupportInitialize)(this.xrTableServiceRecords1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); + + } + + #endregion + + private DevExpress.XtraReports.UI.DetailBand Detail; + private System.Windows.Forms.BindingSource bindingSource1; + private DevExpress.XtraReports.UI.DetailReportBand DetailReport; + private DevExpress.XtraReports.UI.DetailBand Detail1; + private DevExpress.XtraReports.UI.XRTable xrTable3; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow6; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell14; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell16; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell17; + private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader; + private DevExpress.XtraReports.UI.XRLabel xrLabel9; + private DevExpress.XtraReports.UI.XRTable xrTableServiceRecords1; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell3; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell4; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell9; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell13; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell19; + private DevExpress.XtraReports.UI.FormattingRule formattingRuleStartDate; + private DevExpress.XtraReports.UI.FormattingRule formattingRuleServiceDesc; + private DevExpress.XtraReports.UI.FormattingRule formattingRuleCostBearer; + private DevExpress.XtraReports.UI.FormattingRule formattingRuleEmployeeName; + private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1; + private DevExpress.XtraReports.UI.BottomMarginBand bottomMarginBand1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell8; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell6; + private DevExpress.XtraReports.UI.CalculatedField fieldArtDerLeistung; + private DevExpress.XtraReports.UI.XRLabel xrLabel13; + private DevExpress.XtraReports.UI.XRLabel xrLabel15; + private DevExpress.XtraReports.UI.XRLabel xrLabel14; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell12; + private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter1; + private DevExpress.XtraReports.UI.XRTable xrTable4; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow4; + private DevExpress.XtraReports.UI.XRTableCell cellPreisGesamt; + private DevExpress.XtraReports.UI.XRTableCell cellStundenGesamt; + private DevExpress.XtraReports.UI.XRTableCell cellKmGesamt; + private DevExpress.XtraReports.UI.CalculatedField fieldStunden; + private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader2; + private DevExpress.XtraReports.UI.XRLabel xrLabel8; + private DevExpress.XtraReports.UI.XRLabel xrLabel1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell1; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell5; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell7; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell10; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell11; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow3; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell15; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell18; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell20; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell21; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow5; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell22; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell23; + private DevExpress.XtraReports.UI.XRTableCell cellStundenInklFac; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell25; + private DevExpress.XtraReports.UI.XRLabel lblZiele; + private DevExpress.XtraReports.UI.XRLabel xrLabel2; + } +} diff --git a/ReportImp/LebenshilfeFrankfurtOder/LeistungsnachweisAbw.cs b/ReportImp/LebenshilfeFrankfurtOder/LeistungsnachweisAbw.cs new file mode 100644 index 000000000..81189692e --- /dev/null +++ b/ReportImp/LebenshilfeFrankfurtOder/LeistungsnachweisAbw.cs @@ -0,0 +1,156 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Report; +using BeWo.Report.ReportObjects; +using BeWo.Service.DCEntityMapper; +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts; +using BS.Shared.Extensions; +using DevExpress.Entity.Model.Metadata; +using DevExpress.XtraPrinting; +using DevExpress.XtraReports.UI; +using LebenshilfeFrankfurtOder.Utils; + +namespace LebenshilfeFrankfurtOder +{ + public partial class LeistungsnachweisAbw : DevExpress.XtraReports.UI.XtraReport, IBeWoReport + { + public LeistungsnachweisAbw() + { + InitializeComponent(); + } + + public void SetReportDataSource(ServicesOverviewRO pRO) + { + + SetzeDaten(pRO); + + double minutes = 0; + foreach (var sd in pRO.Services) + { + minutes += sd.Minutes; + + + sd.GoalList = ""; + + //var service = DAOFactory.GenericDAO.LoadByID(sd.ServiceRecordOid); + //foreach (var v2o in service.ValueList) + //{ + // if (!String.IsNullOrEmpty(v2o.Entry.Abbreviation)) + // { + // if (sd.GoalList.Length > 0) + // { + // sd.GoalList += ", "; + // } + + // sd.GoalList += v2o.Entry.Abbreviation; + // } + //} + } + + cellStundenGesamt.Text = String.Format("{0:0.00}", minutes / 60); + cellStundenInklFac.Text = String.Format("{0:0.00}", (minutes / 60) / 0.7); + + bindingSource1.DataSource = pRO; + } + + + + public void SetzeDaten(ServicesOverviewRO pRO) + { + + if (pRO.CostBearer2SupportConceptList != null && pRO.CostBearer2SupportConceptList.Count > 0) + { + var c2s = pRO.CostBearer2SupportConceptList[0]; + var sc = c2s.SupportConcept; + var goals = new List(); + + foreach (var v2o in sc.ValueList) + { + if (v2o.Entry.Type == ValueListEntryType.SupportConceptGoalCategoryType || + v2o.Entry.Type == ValueListEntryType.SupportConceptIndividualGoalCategoryType) + { + //if (v2o.Entry.ParentOid.HasValue) + //{ + // var parent = DAOFactory.GenericDAO.LoadByID(v2o.Entry.ParentOid.Value); + + // goals.Add(MapperFactory.ValueListEntryDC_ValueListEntry.MapToNewDC(parent)); + //} + //Ziel + var dc = MapperFactory.ValueListEntryDC_ValueListEntry.MapToNewDC(v2o.Entry); + goals.Add(dc); + + } + else if (v2o.Entry.Type == ValueListEntryType.SupportConceptGoalType || + v2o.Entry.Type == ValueListEntryType.SupportConceptIndividualGoalType) + { + //Maßnahme + if (v2o.Entry.ParentOid.HasValue) + { + var parent = DAOFactory.GenericDAO.LoadByID(v2o.Entry.ParentOid.Value); + + goals.Add(MapperFactory.ValueListEntryDC_ValueListEntry.MapToNewDC(parent)); + } + //var dc = MapperFactory.ValueListEntryDC_ValueListEntry.MapToNewDC(v2o.Entry); + //goals.Add(dc); + } + } + + StringBuilder sb = new StringBuilder(); + foreach (var goal in goals.OrderBy(g => g.DisplayName)) + { + if (sb.Length > 0) + { + sb.AppendLine(); + } + + sb.AppendLine(goal.DisplayName); + } + + lblZiele.Text = sb.ToString(); + } + // var c2s = pRO.CostBearer2SupportConceptList[0]; + + // Customer c = c2s.SupportConcept.Customer; + + // if (c.Pflegegrad.HasValue && c.Pflegegrad.Value != Pflegegrad.KeinGrad && + // c.Pflegegrad.Value != Pflegegrad.PflegegradBeantragt) + // { + + // lblPflegegrad.Text = EnumTranslations.PflegegradTranslations[c.Pflegegrad].Replace("Pflegegrad", "") + // .Trim(); + // } + + // else + // { + // lblPflegegrad.Text = ""; + // } + + // String kvnummer = ""; // Oid = 4 + + // foreach (var vv in c.VarFieldValueList) + // { + // var varFieldValue = + // BS.Shared.Core.Utils.XMLDeserializeFromString(vv.SerializedValue, Type.GetType(vv.TypeName)); + // if (varFieldValue != null) + // { + // if (vv.VarFieldDefOid.Value == 4) + // { + // kvnummer = varFieldValue.ToString(); + // } + + // } + // } + + // lblKvNummer.Text = kvnummer; + //} + } + + } +} diff --git a/ReportImp/LebenshilfeFrankfurtOder/LeistungsnachweisAbw.resx b/ReportImp/LebenshilfeFrankfurtOder/LeistungsnachweisAbw.resx new file mode 100644 index 000000000..19e908bd3 --- /dev/null +++ b/ReportImp/LebenshilfeFrankfurtOder/LeistungsnachweisAbw.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 21, 17 + + \ No newline at end of file diff --git a/ReportImp/LebenshilfeFrankfurtOder/RechnungEinzelfallhilfe.Designer.cs b/ReportImp/LebenshilfeFrankfurtOder/RechnungEinzelfallhilfe.Designer.cs new file mode 100644 index 000000000..b7f05eaef --- /dev/null +++ b/ReportImp/LebenshilfeFrankfurtOder/RechnungEinzelfallhilfe.Designer.cs @@ -0,0 +1,1209 @@ +using BeWo.Report.ReportObjects; +namespace LebenshilfeFrankfurtOder +{ + partial class RechnungEinzelfallhilfe + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RechnungEinzelfallhilfe)); + this.Detail = new DevExpress.XtraReports.UI.DetailBand(); + this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand(); + this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel38 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel30 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel32 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel33 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel34 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrTable2 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrLabel31 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel25 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel26 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel27 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel28 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel29 = new DevExpress.XtraReports.UI.XRLabel(); + this.cellFaelligkeit = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel24 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel23 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel22 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel21 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel19 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel20 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel18 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel17 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel16 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel12 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel10 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel11 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel9 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel6 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox(); + this.lblAdresse = new DevExpress.XtraReports.UI.XRLabel(); + this.ruleRateFactorNull = new DevExpress.XtraReports.UI.FormattingRule(); + this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand(); + this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand(); + this.xrLabel37 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel36 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel35 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLine1 = new DevExpress.XtraReports.UI.XRLine(); + this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand(); + this.Detail1 = new DevExpress.XtraReports.UI.DetailBand(); + this.DetailReport1 = new DevExpress.XtraReports.UI.DetailReportBand(); + this.Detail2 = new DevExpress.XtraReports.UI.DetailBand(); + this.xrTable3 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell9 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell(); + this.cellTagessatz = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell12 = new DevExpress.XtraReports.UI.XRTableCell(); + this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); + this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand(); + this.xrTable1 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow3 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell15 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell16 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell17 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableRow4 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell13 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell14 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell18 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell19 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableRow6 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell24 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell25 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell26 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell27 = new DevExpress.XtraReports.UI.XRTableCell(); + this.ReportFooter = new DevExpress.XtraReports.UI.ReportFooterBand(); + this.lblBezahlungText = new DevExpress.XtraReports.UI.XRLabel(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); + // + // Detail + // + this.Detail.HeightF = 0F; + this.Detail.Name = "Detail"; + this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // ReportHeader + // + this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel2, + this.xrLabel38, + this.xrLabel30, + this.xrLabel32, + this.xrLabel33, + this.xrLabel34, + this.xrTable2, + this.xrLabel31, + this.xrLabel25, + this.xrLabel26, + this.xrLabel27, + this.xrLabel28, + this.xrLabel29, + this.cellFaelligkeit, + this.xrLabel24, + this.xrLabel23, + this.xrLabel22, + this.xrLabel21, + this.xrLabel19, + this.xrLabel20, + this.xrLabel18, + this.xrLabel17, + this.xrLabel16, + this.xrLabel15, + this.xrLabel14, + this.xrLabel12, + this.xrLabel13, + this.xrLabel10, + this.xrLabel11, + this.xrLabel9, + this.xrLabel7, + this.xrLabel6, + this.xrLabel3, + this.xrLabel1, + this.xrPictureBox1, + this.lblAdresse}); + this.ReportHeader.HeightF = 597.3958F; + this.ReportHeader.Name = "ReportHeader"; + this.ReportHeader.StylePriority.UseFont = false; + // + // xrLabel2 + // + this.xrLabel2.CanGrow = false; + this.xrLabel2.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(70F, 485F); + this.xrLabel2.Name = "xrLabel2"; + this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel2.SizeF = new System.Drawing.SizeF(615.2657F, 19.99997F); + this.xrLabel2.StylePriority.UseFont = false; + this.xrLabel2.Text = "Einzelfallhilfe nach § 75 Abs. 4 SGB XII i.V.m. § 54 Abs. 1 Nr. 1 SGB XII"; + // + // xrLabel38 + // + this.xrLabel38.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel38.LocationFloat = new DevExpress.Utils.PointFloat(0F, 95F); + this.xrLabel38.Multiline = true; + this.xrLabel38.Name = "xrLabel38"; + this.xrLabel38.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel38.SizeF = new System.Drawing.SizeF(392.2079F, 20.93748F); + this.xrLabel38.StylePriority.UseFont = false; + this.xrLabel38.Text = "LEBENSHILFE Frankfurt (Oder), Hansastraße 3, 15234 Frankfurt (Oder)"; + // + // xrLabel30 + // + this.xrLabel30.CanGrow = false; + this.xrLabel30.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel30.LocationFloat = new DevExpress.Utils.PointFloat(70F, 515F); + this.xrLabel30.Name = "xrLabel30"; + this.xrLabel30.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel30.SizeF = new System.Drawing.SizeF(105F, 20F); + this.xrLabel30.StylePriority.UseFont = false; + this.xrLabel30.Text = "Klient:"; + // + // xrLabel32 + // + this.xrLabel32.CanGrow = false; + this.xrLabel32.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "CustomerName")}); + this.xrLabel32.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel32.LocationFloat = new DevExpress.Utils.PointFloat(175F, 515F); + this.xrLabel32.Name = "xrLabel32"; + this.xrLabel32.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel32.SizeF = new System.Drawing.SizeF(374.4563F, 20F); + this.xrLabel32.StylePriority.UseFont = false; + this.xrLabel32.Text = "laut beiliegender Aufstellung"; + // + // xrLabel33 + // + this.xrLabel33.CanGrow = false; + this.xrLabel33.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel33.LocationFloat = new DevExpress.Utils.PointFloat(70F, 545.0001F); + this.xrLabel33.Name = "xrLabel33"; + this.xrLabel33.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel33.SizeF = new System.Drawing.SizeF(104.9965F, 19.99988F); + this.xrLabel33.StylePriority.UseFont = false; + this.xrLabel33.Text = "Zeitraum:"; + // + // xrLabel34 + // + this.xrLabel34.CanGrow = false; + this.xrLabel34.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel34.LocationFloat = new DevExpress.Utils.PointFloat(175F, 545F); + this.xrLabel34.Name = "xrLabel34"; + this.xrLabel34.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel34.SizeF = new System.Drawing.SizeF(520.9559F, 20F); + this.xrLabel34.StylePriority.UseFont = false; + this.xrLabel34.Text = "[AccountingPeriodStart!dd.MM.yyyy] bis [AccountingPeriodEnd!dd.MM.yyyy]"; + // + // xrTable2 + // + this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 577.3958F); + this.xrTable2.Name = "xrTable2"; + this.xrTable2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrTable2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow1}); + this.xrTable2.SizeF = new System.Drawing.SizeF(696.5F, 20F); + this.xrTable2.StylePriority.UseBackColor = false; + this.xrTable2.StylePriority.UseBorderColor = false; + this.xrTable2.StylePriority.UsePadding = false; + // + // xrTableRow1 + // + this.xrTableRow1.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell2, + this.xrTableCell3, + this.xrTableCell4, + this.xrTableCell6, + this.xrTableCell5}); + this.xrTableRow1.Name = "xrTableRow1"; + this.xrTableRow1.Weight = 0.10000000000000003D; + // + // xrTableCell2 + // + this.xrTableCell2.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell2.CanShrink = true; + this.xrTableCell2.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell2.Multiline = true; + this.xrTableCell2.Name = "xrTableCell2"; + this.xrTableCell2.StylePriority.UseBorderColor = false; + this.xrTableCell2.StylePriority.UseBorders = false; + this.xrTableCell2.StylePriority.UseFont = false; + this.xrTableCell2.StylePriority.UsePadding = false; + this.xrTableCell2.StylePriority.UseTextAlignment = false; + this.xrTableCell2.Text = "Bezeichnung"; + this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell2.Weight = 0.41538461538461524D; + // + // xrTableCell3 + // + this.xrTableCell3.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell3.CanShrink = true; + this.xrTableCell3.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell3.Name = "xrTableCell3"; + this.xrTableCell3.StylePriority.UseBorders = false; + this.xrTableCell3.StylePriority.UseFont = false; + this.xrTableCell3.StylePriority.UsePadding = false; + this.xrTableCell3.StylePriority.UseTextAlignment = false; + this.xrTableCell3.Text = "Anzahl"; + this.xrTableCell3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell3.Weight = 0.13846153846153847D; + // + // xrTableCell4 + // + this.xrTableCell4.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell4.CanShrink = true; + this.xrTableCell4.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell4.Name = "xrTableCell4"; + this.xrTableCell4.StylePriority.UseBorders = false; + this.xrTableCell4.StylePriority.UseFont = false; + this.xrTableCell4.StylePriority.UsePadding = false; + this.xrTableCell4.StylePriority.UseTextAlignment = false; + this.xrTableCell4.Text = "Einheit"; + this.xrTableCell4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell4.Weight = 0.13846153846153847D; + // + // xrTableCell6 + // + this.xrTableCell6.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell6.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell6.Name = "xrTableCell6"; + this.xrTableCell6.StylePriority.UseBorderColor = false; + this.xrTableCell6.StylePriority.UseBorders = false; + this.xrTableCell6.StylePriority.UseFont = false; + this.xrTableCell6.StylePriority.UsePadding = false; + this.xrTableCell6.StylePriority.UseTextAlignment = false; + this.xrTableCell6.Text = "Betrag"; + this.xrTableCell6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell6.Weight = 0.1538461538461538D; + // + // xrTableCell5 + // + this.xrTableCell5.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell5.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell5.Name = "xrTableCell5"; + this.xrTableCell5.StylePriority.UseBorderColor = false; + this.xrTableCell5.StylePriority.UseBorders = false; + this.xrTableCell5.StylePriority.UseFont = false; + this.xrTableCell5.StylePriority.UsePadding = false; + this.xrTableCell5.StylePriority.UseTextAlignment = false; + this.xrTableCell5.Text = "Gesamt"; + this.xrTableCell5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell5.Weight = 0.22538461538461535D; + // + // xrLabel31 + // + this.xrLabel31.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(102)))), ((int)(((byte)(255))))); + this.xrLabel31.CanGrow = false; + this.xrLabel31.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel31.LocationFloat = new DevExpress.Utils.PointFloat(0F, 450.0001F); + this.xrLabel31.Name = "xrLabel31"; + this.xrLabel31.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel31.SizeF = new System.Drawing.SizeF(696.4996F, 20F); + this.xrLabel31.StylePriority.UseBackColor = false; + this.xrLabel31.StylePriority.UseFont = false; + this.xrLabel31.StylePriority.UseTextAlignment = false; + this.xrLabel31.Text = "Rechnung"; + this.xrLabel31.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + // + // xrLabel25 + // + this.xrLabel25.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrLabel25.CanGrow = false; + this.xrLabel25.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel25.LocationFloat = new DevExpress.Utils.PointFloat(529.1896F, 310F); + this.xrLabel25.Name = "xrLabel25"; + this.xrLabel25.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel25.SizeF = new System.Drawing.SizeF(167.3101F, 20F); + this.xrLabel25.StylePriority.UseBorders = false; + this.xrLabel25.StylePriority.UseFont = false; + this.xrLabel25.StylePriority.UseTextAlignment = false; + this.xrLabel25.Text = "501205613"; + this.xrLabel25.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; + // + // xrLabel26 + // + this.xrLabel26.Borders = DevExpress.XtraPrinting.BorderSide.Right; + this.xrLabel26.CanGrow = false; + this.xrLabel26.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "CustomerReferenceNumber")}); + this.xrLabel26.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel26.LocationFloat = new DevExpress.Utils.PointFloat(529.1896F, 330.0001F); + this.xrLabel26.Name = "xrLabel26"; + this.xrLabel26.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel26.SizeF = new System.Drawing.SizeF(167.3101F, 20F); + this.xrLabel26.StylePriority.UseBorders = false; + this.xrLabel26.StylePriority.UseFont = false; + this.xrLabel26.StylePriority.UseTextAlignment = false; + this.xrLabel26.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; + // + // xrLabel27 + // + this.xrLabel27.Borders = DevExpress.XtraPrinting.BorderSide.Right; + this.xrLabel27.CanGrow = false; + this.xrLabel27.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "OrganisationDebitorNumber")}); + this.xrLabel27.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel27.LocationFloat = new DevExpress.Utils.PointFloat(529.1896F, 350.0001F); + this.xrLabel27.Name = "xrLabel27"; + this.xrLabel27.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel27.SizeF = new System.Drawing.SizeF(167.3101F, 20F); + this.xrLabel27.StylePriority.UseBorders = false; + this.xrLabel27.StylePriority.UseFont = false; + this.xrLabel27.StylePriority.UseTextAlignment = false; + this.xrLabel27.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; + // + // xrLabel28 + // + this.xrLabel28.Borders = DevExpress.XtraPrinting.BorderSide.Right; + this.xrLabel28.CanGrow = false; + this.xrLabel28.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "InvoiceNumber")}); + this.xrLabel28.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel28.LocationFloat = new DevExpress.Utils.PointFloat(529.1896F, 370.0001F); + this.xrLabel28.Name = "xrLabel28"; + this.xrLabel28.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel28.SizeF = new System.Drawing.SizeF(167.3101F, 20F); + this.xrLabel28.StylePriority.UseBorders = false; + this.xrLabel28.StylePriority.UseFont = false; + this.xrLabel28.StylePriority.UseTextAlignment = false; + this.xrLabel28.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; + // + // xrLabel29 + // + this.xrLabel29.Borders = DevExpress.XtraPrinting.BorderSide.Right; + this.xrLabel29.CanGrow = false; + this.xrLabel29.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "InvoiceDate")}); + this.xrLabel29.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel29.LocationFloat = new DevExpress.Utils.PointFloat(529.1896F, 390.0001F); + this.xrLabel29.Name = "xrLabel29"; + this.xrLabel29.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel29.SizeF = new System.Drawing.SizeF(167.3101F, 20F); + this.xrLabel29.StylePriority.UseBorders = false; + this.xrLabel29.StylePriority.UseFont = false; + this.xrLabel29.StylePriority.UseTextAlignment = false; + this.xrLabel29.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; + // + // cellFaelligkeit + // + this.cellFaelligkeit.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Right | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.cellFaelligkeit.CanGrow = false; + this.cellFaelligkeit.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cellFaelligkeit.LocationFloat = new DevExpress.Utils.PointFloat(529.1896F, 410.0001F); + this.cellFaelligkeit.Name = "cellFaelligkeit"; + this.cellFaelligkeit.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.cellFaelligkeit.SizeF = new System.Drawing.SizeF(167.3101F, 20F); + this.cellFaelligkeit.StylePriority.UseBorders = false; + this.cellFaelligkeit.StylePriority.UseFont = false; + this.cellFaelligkeit.StylePriority.UseTextAlignment = false; + this.cellFaelligkeit.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; + // + // xrLabel24 + // + this.xrLabel24.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrLabel24.CanGrow = false; + this.xrLabel24.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel24.LocationFloat = new DevExpress.Utils.PointFloat(410.0001F, 410.0001F); + this.xrLabel24.Name = "xrLabel24"; + this.xrLabel24.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel24.SizeF = new System.Drawing.SizeF(119.1895F, 20F); + this.xrLabel24.StylePriority.UseBorders = false; + this.xrLabel24.StylePriority.UseFont = false; + this.xrLabel24.Text = "Fälligkeit:"; + // + // xrLabel23 + // + this.xrLabel23.Borders = DevExpress.XtraPrinting.BorderSide.Left; + this.xrLabel23.CanGrow = false; + this.xrLabel23.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel23.LocationFloat = new DevExpress.Utils.PointFloat(410.0001F, 390.0001F); + this.xrLabel23.Name = "xrLabel23"; + this.xrLabel23.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel23.SizeF = new System.Drawing.SizeF(119.1895F, 20F); + this.xrLabel23.StylePriority.UseBorders = false; + this.xrLabel23.StylePriority.UseFont = false; + this.xrLabel23.Text = "Rechnungsdatum:"; + // + // xrLabel22 + // + this.xrLabel22.Borders = DevExpress.XtraPrinting.BorderSide.Left; + this.xrLabel22.CanGrow = false; + this.xrLabel22.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel22.LocationFloat = new DevExpress.Utils.PointFloat(410.0001F, 370.0001F); + this.xrLabel22.Name = "xrLabel22"; + this.xrLabel22.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel22.SizeF = new System.Drawing.SizeF(119.1895F, 20F); + this.xrLabel22.StylePriority.UseBorders = false; + this.xrLabel22.StylePriority.UseFont = false; + this.xrLabel22.Text = "Rechnungs-Nr.:"; + // + // xrLabel21 + // + this.xrLabel21.Borders = DevExpress.XtraPrinting.BorderSide.Left; + this.xrLabel21.CanGrow = false; + this.xrLabel21.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel21.LocationFloat = new DevExpress.Utils.PointFloat(410.0001F, 350.0001F); + this.xrLabel21.Name = "xrLabel21"; + this.xrLabel21.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel21.SizeF = new System.Drawing.SizeF(119.1895F, 20F); + this.xrLabel21.StylePriority.UseBorders = false; + this.xrLabel21.StylePriority.UseFont = false; + this.xrLabel21.Text = "Kunden-Nr.:"; + // + // xrLabel19 + // + this.xrLabel19.Borders = DevExpress.XtraPrinting.BorderSide.Left; + this.xrLabel19.CanGrow = false; + this.xrLabel19.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel19.LocationFloat = new DevExpress.Utils.PointFloat(410.0001F, 330.0001F); + this.xrLabel19.Name = "xrLabel19"; + this.xrLabel19.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel19.SizeF = new System.Drawing.SizeF(119.1895F, 20F); + this.xrLabel19.StylePriority.UseBorders = false; + this.xrLabel19.StylePriority.UseFont = false; + this.xrLabel19.Text = "Versichertennr:"; + // + // xrLabel20 + // + this.xrLabel20.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top))); + this.xrLabel20.CanGrow = false; + this.xrLabel20.LocationFloat = new DevExpress.Utils.PointFloat(410.0001F, 310F); + this.xrLabel20.Name = "xrLabel20"; + this.xrLabel20.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel20.SizeF = new System.Drawing.SizeF(119.1895F, 20F); + this.xrLabel20.StylePriority.UseBorders = false; + this.xrLabel20.StylePriority.UseFont = false; + this.xrLabel20.Text = "IK-Nummer:"; + // + // xrLabel18 + // + this.xrLabel18.LocationFloat = new DevExpress.Utils.PointFloat(499.9998F, 270F); + this.xrLabel18.Name = "xrLabel18"; + this.xrLabel18.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel18.SizeF = new System.Drawing.SizeF(207.2103F, 20F); + this.xrLabel18.StylePriority.UseFont = false; + this.xrLabel18.Text = "www.lebenshilfe-ffo.de"; + // + // xrLabel17 + // + this.xrLabel17.LocationFloat = new DevExpress.Utils.PointFloat(562.0002F, 230F); + this.xrLabel17.Name = "xrLabel17"; + this.xrLabel17.SizeF = new System.Drawing.SizeF(145.2098F, 20F); + this.xrLabel17.StylePriority.UseFont = false; + this.xrLabel17.StylePriority.UsePadding = false; + this.xrLabel17.Text = "(IK) 501205613"; + // + // xrLabel16 + // + this.xrLabel16.LocationFloat = new DevExpress.Utils.PointFloat(499.9998F, 250F); + this.xrLabel16.Name = "xrLabel16"; + this.xrLabel16.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel16.SizeF = new System.Drawing.SizeF(207.2103F, 20F); + this.xrLabel16.StylePriority.UseFont = false; + this.xrLabel16.Text = "info@lebenshilfe-ffo.de"; + // + // xrLabel15 + // + this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(499.9998F, 210F); + this.xrLabel15.Name = "xrLabel15"; + this.xrLabel15.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel15.SizeF = new System.Drawing.SizeF(207.2103F, 20F); + this.xrLabel15.StylePriority.UseFont = false; + this.xrLabel15.Text = "rabea.preuss@lebenshilfe-ffo.de"; + // + // xrLabel14 + // + this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(499.9998F, 190F); + this.xrLabel14.Name = "xrLabel14"; + this.xrLabel14.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel14.SizeF = new System.Drawing.SizeF(207.2103F, 20F); + this.xrLabel14.StylePriority.UseFont = false; + this.xrLabel14.Text = "0335 280510 31"; + // + // xrLabel12 + // + this.xrLabel12.LocationFloat = new DevExpress.Utils.PointFloat(499.9998F, 170F); + this.xrLabel12.Name = "xrLabel12"; + this.xrLabel12.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel12.SizeF = new System.Drawing.SizeF(207.2103F, 20F); + this.xrLabel12.StylePriority.UseFont = false; + this.xrLabel12.Text = "Rabea Preuß"; + // + // xrLabel13 + // + this.xrLabel13.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(409.9998F, 250.0001F); + this.xrLabel13.Name = "xrLabel13"; + this.xrLabel13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel13.SizeF = new System.Drawing.SizeF(90F, 20F); + this.xrLabel13.StylePriority.UseFont = false; + this.xrLabel13.Text = "e-mail:"; + // + // xrLabel10 + // + this.xrLabel10.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel10.LocationFloat = new DevExpress.Utils.PointFloat(409.9998F, 230F); + this.xrLabel10.Name = "xrLabel10"; + this.xrLabel10.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 0, 0, 0, 100F); + this.xrLabel10.SizeF = new System.Drawing.SizeF(151.9999F, 20F); + this.xrLabel10.StylePriority.UseFont = false; + this.xrLabel10.StylePriority.UsePadding = false; + this.xrLabel10.Text = "Institutionskennzeichen"; + // + // xrLabel11 + // + this.xrLabel11.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(409.9998F, 210F); + this.xrLabel11.Name = "xrLabel11"; + this.xrLabel11.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel11.SizeF = new System.Drawing.SizeF(90F, 20F); + this.xrLabel11.StylePriority.UseFont = false; + this.xrLabel11.Text = "e-mail:"; + // + // xrLabel9 + // + this.xrLabel9.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(409.9998F, 190F); + this.xrLabel9.Name = "xrLabel9"; + this.xrLabel9.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel9.SizeF = new System.Drawing.SizeF(90F, 20F); + this.xrLabel9.StylePriority.UseFont = false; + this.xrLabel9.Text = "Durchwahl:"; + // + // xrLabel7 + // + this.xrLabel7.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(409.9998F, 170F); + this.xrLabel7.Name = "xrLabel7"; + this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel7.SizeF = new System.Drawing.SizeF(90F, 20F); + this.xrLabel7.StylePriority.UseFont = false; + this.xrLabel7.Text = "Bearbeiter:"; + // + // xrLabel6 + // + this.xrLabel6.LocationFloat = new DevExpress.Utils.PointFloat(409.9998F, 79.99998F); + this.xrLabel6.Multiline = true; + this.xrLabel6.Name = "xrLabel6"; + this.xrLabel6.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel6.SizeF = new System.Drawing.SizeF(297.21F, 84.375F); + this.xrLabel6.StylePriority.UseFont = false; + this.xrLabel6.Text = "Hansastraße 3\r\n15234 Frankfurt (Oder)\r\nTel. (03 35) 280510-0\r\nFax (03 35) 28051" + + "0-10"; + // + // xrLabel3 + // + this.xrLabel3.CanGrow = false; + this.xrLabel3.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(410F, 60F); + this.xrLabel3.Name = "xrLabel3"; + this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel3.SizeF = new System.Drawing.SizeF(297.21F, 20F); + this.xrLabel3.StylePriority.UseFont = false; + this.xrLabel3.Text = "Familienentlastender Dienst"; + // + // xrLabel1 + // + this.xrLabel1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(95F, 35F); + this.xrLabel1.Name = "xrLabel1"; + this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel1.SizeF = new System.Drawing.SizeF(297.2082F, 29.50002F); + this.xrLabel1.StylePriority.UseFont = false; + this.xrLabel1.Text = "Lebenshilfe Frankfurt (Oder) e.V."; + // + // xrPictureBox1 + // + this.xrPictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("xrPictureBox1.Image"))); + this.xrPictureBox1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrPictureBox1.Name = "xrPictureBox1"; + this.xrPictureBox1.SizeF = new System.Drawing.SizeF(80.00005F, 71.24999F); + this.xrPictureBox1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage; + this.xrPictureBox1.StylePriority.UseBorders = false; + // + // lblAdresse + // + this.lblAdresse.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblAdresse.LocationFloat = new DevExpress.Utils.PointFloat(0F, 130F); + this.lblAdresse.Multiline = true; + this.lblAdresse.Name = "lblAdresse"; + this.lblAdresse.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblAdresse.SizeF = new System.Drawing.SizeF(392.2079F, 153.1667F); + this.lblAdresse.StylePriority.UseFont = false; + this.lblAdresse.Text = "Anschrift"; + // + // ruleRateFactorNull + // + this.ruleRateFactorNull.Condition = "[RateFactorText2] == ?"; + this.ruleRateFactorNull.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.ruleRateFactorNull.Name = "ruleRateFactorNull"; + // + // topMarginBand1 + // + this.topMarginBand1.HeightF = 52F; + this.topMarginBand1.Name = "topMarginBand1"; + // + // bottomMarginBand1 + // + this.bottomMarginBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel37, + this.xrLabel36, + this.xrLabel35, + this.xrLabel8, + this.xrLine1}); + this.bottomMarginBand1.HeightF = 80F; + this.bottomMarginBand1.Name = "bottomMarginBand1"; + // + // xrLabel37 + // + this.xrLabel37.CanGrow = false; + this.xrLabel37.Font = new System.Drawing.Font("Arial", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel37.LocationFloat = new DevExpress.Utils.PointFloat(518.6246F, 6.25F); + this.xrLabel37.Multiline = true; + this.xrLabel37.Name = "xrLabel37"; + this.xrLabel37.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel37.SizeF = new System.Drawing.SizeF(177.8753F, 45.52085F); + this.xrLabel37.StylePriority.UseFont = false; + this.xrLabel37.StylePriority.UseTextAlignment = false; + this.xrLabel37.Text = "IBAN DE 64100205000001282800\r\nBIC: BFSWDE33BER\r\nGläubiger-ID: DE52ZZZ00000401971"; + this.xrLabel37.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; + // + // xrLabel36 + // + this.xrLabel36.CanGrow = false; + this.xrLabel36.Font = new System.Drawing.Font("Arial", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel36.LocationFloat = new DevExpress.Utils.PointFloat(358.0208F, 6.25F); + this.xrLabel36.Multiline = true; + this.xrLabel36.Name = "xrLabel36"; + this.xrLabel36.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel36.SizeF = new System.Drawing.SizeF(160.6039F, 45.52085F); + this.xrLabel36.StylePriority.UseFont = false; + this.xrLabel36.Text = "Bank für Sozialwirtschaft AG"; + // + // xrLabel35 + // + this.xrLabel35.CanGrow = false; + this.xrLabel35.Font = new System.Drawing.Font("Arial", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel35.LocationFloat = new DevExpress.Utils.PointFloat(192.1247F, 6.25F); + this.xrLabel35.Multiline = true; + this.xrLabel35.Name = "xrLabel35"; + this.xrLabel35.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel35.SizeF = new System.Drawing.SizeF(165.8961F, 45.52085F); + this.xrLabel35.StylePriority.UseFont = false; + this.xrLabel35.Text = "Martin Patzelt\r\nRegina Griebel\r\nSt.-Nr. 061/142/02779"; + // + // xrLabel8 + // + this.xrLabel8.CanGrow = false; + this.xrLabel8.Font = new System.Drawing.Font("Arial", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(0F, 6.25F); + this.xrLabel8.Multiline = true; + this.xrLabel8.Name = "xrLabel8"; + this.xrLabel8.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel8.SizeF = new System.Drawing.SizeF(192.1247F, 45.52085F); + this.xrLabel8.StylePriority.UseFont = false; + this.xrLabel8.Text = "Vorstandsvorsitzender:\r\nGeschäftsführerin:\r\nVR 49 beim AG Frankfurt (Oder)"; + // + // xrLine1 + // + this.xrLine1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(112)))), ((int)(((byte)(197))))); + this.xrLine1.LocationFloat = new DevExpress.Utils.PointFloat(0.0002543131F, 0F); + this.xrLine1.Name = "xrLine1"; + this.xrLine1.SizeF = new System.Drawing.SizeF(696.4991F, 6.25F); + this.xrLine1.StylePriority.UseForeColor = false; + // + // DetailReport + // + this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail1, + this.DetailReport1}); + this.DetailReport.DataMember = "ServiceInvoicePeriods"; + this.DetailReport.DataSource = this.bindingSource1; + this.DetailReport.Level = 0; + this.DetailReport.Name = "DetailReport"; + // + // Detail1 + // + this.Detail1.Font = new System.Drawing.Font("Arial", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Detail1.HeightF = 0F; + this.Detail1.Name = "Detail1"; + this.Detail1.StylePriority.UseFont = false; + // + // DetailReport1 + // + this.DetailReport1.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail2}); + this.DetailReport1.DataMember = "ServiceInvoicePeriods.ServiceInvoiceItems"; + this.DetailReport1.DataSource = this.bindingSource1; + this.DetailReport1.Level = 0; + this.DetailReport1.Name = "DetailReport1"; + // + // Detail2 + // + this.Detail2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable3}); + this.Detail2.Font = new System.Drawing.Font("Arial", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Detail2.HeightF = 20F; + this.Detail2.Name = "Detail2"; + this.Detail2.StylePriority.UseFont = false; + // + // xrTable3 + // + this.xrTable3.LocationFloat = new DevExpress.Utils.PointFloat(0.0002543131F, 0F); + this.xrTable3.Name = "xrTable3"; + this.xrTable3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrTable3.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow2}); + this.xrTable3.SizeF = new System.Drawing.SizeF(696.5F, 20F); + this.xrTable3.StylePriority.UseBackColor = false; + this.xrTable3.StylePriority.UseBorderColor = false; + this.xrTable3.StylePriority.UseBorders = false; + this.xrTable3.StylePriority.UsePadding = false; + // + // xrTableRow2 + // + this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell8, + this.xrTableCell9, + this.xrTableCell10, + this.cellTagessatz, + this.xrTableCell12}); + this.xrTableRow2.Name = "xrTableRow2"; + this.xrTableRow2.Weight = 0.10000000000000003D; + // + // xrTableCell8 + // + this.xrTableCell8.Borders = DevExpress.XtraPrinting.BorderSide.Left; + this.xrTableCell8.CanShrink = true; + this.xrTableCell8.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.ServiceDescription")}); + this.xrTableCell8.Multiline = true; + this.xrTableCell8.Name = "xrTableCell8"; + this.xrTableCell8.StylePriority.UseBorderColor = false; + this.xrTableCell8.StylePriority.UseBorders = false; + this.xrTableCell8.StylePriority.UseFont = false; + this.xrTableCell8.StylePriority.UsePadding = false; + this.xrTableCell8.StylePriority.UseTextAlignment = false; + this.xrTableCell8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell8.Weight = 0.41538461538461524D; + // + // xrTableCell9 + // + this.xrTableCell9.CanShrink = true; + this.xrTableCell9.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.UnitCount", "{0:0.00}")}); + this.xrTableCell9.Name = "xrTableCell9"; + this.xrTableCell9.StylePriority.UseBorders = false; + this.xrTableCell9.StylePriority.UseFont = false; + this.xrTableCell9.StylePriority.UsePadding = false; + this.xrTableCell9.StylePriority.UseTextAlignment = false; + this.xrTableCell9.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell9.Weight = 0.13846153846153847D; + // + // xrTableCell10 + // + this.xrTableCell10.CanShrink = true; + this.xrTableCell10.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.UnitDescription")}); + this.xrTableCell10.Name = "xrTableCell10"; + this.xrTableCell10.StylePriority.UseBorders = false; + this.xrTableCell10.StylePriority.UseFont = false; + this.xrTableCell10.StylePriority.UsePadding = false; + this.xrTableCell10.StylePriority.UseTextAlignment = false; + this.xrTableCell10.Text = "Tage"; + this.xrTableCell10.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell10.Weight = 0.13846153846153847D; + // + // cellTagessatz + // + this.cellTagessatz.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.AmountPerUnit", "{0:c}")}); + this.cellTagessatz.Name = "cellTagessatz"; + this.cellTagessatz.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 5, 0, 0, 100F); + this.cellTagessatz.StylePriority.UseBorderColor = false; + this.cellTagessatz.StylePriority.UseBorders = false; + this.cellTagessatz.StylePriority.UseFont = false; + this.cellTagessatz.StylePriority.UsePadding = false; + this.cellTagessatz.StylePriority.UseTextAlignment = false; + this.cellTagessatz.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.cellTagessatz.Weight = 0.1538461538461538D; + // + // xrTableCell12 + // + this.xrTableCell12.Borders = DevExpress.XtraPrinting.BorderSide.Right; + this.xrTableCell12.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.NetAmount", "{0:c}")}); + this.xrTableCell12.Name = "xrTableCell12"; + this.xrTableCell12.StylePriority.UseBorderColor = false; + this.xrTableCell12.StylePriority.UseBorders = false; + this.xrTableCell12.StylePriority.UseFont = false; + this.xrTableCell12.StylePriority.UsePadding = false; + this.xrTableCell12.StylePriority.UseTextAlignment = false; + this.xrTableCell12.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell12.Weight = 0.22538461538461535D; + // + // bindingSource1 + // + this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServiceInvoiceRO); + // + // GroupFooter1 + // + this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable1}); + this.GroupFooter1.Font = new System.Drawing.Font("Arial", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.GroupFooter1.HeightF = 80F; + this.GroupFooter1.Name = "GroupFooter1"; + this.GroupFooter1.StylePriority.UseFont = false; + // + // xrTable1 + // + this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable1.Name = "xrTable1"; + this.xrTable1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrTable1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow3, + this.xrTableRow4, + this.xrTableRow6}); + this.xrTable1.SizeF = new System.Drawing.SizeF(696.5F, 60F); + this.xrTable1.StylePriority.UseBackColor = false; + this.xrTable1.StylePriority.UseBorderColor = false; + this.xrTable1.StylePriority.UseBorders = false; + this.xrTable1.StylePriority.UsePadding = false; + // + // xrTableRow3 + // + this.xrTableRow3.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell11, + this.xrTableCell15, + this.xrTableCell16, + this.xrTableCell17}); + this.xrTableRow3.Name = "xrTableRow3"; + this.xrTableRow3.Weight = 0.10000000000000003D; + // + // xrTableCell11 + // + this.xrTableCell11.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top))); + this.xrTableCell11.Multiline = true; + this.xrTableCell11.Name = "xrTableCell11"; + this.xrTableCell11.StylePriority.UseBorders = false; + this.xrTableCell11.StylePriority.UseFont = false; + this.xrTableCell11.StylePriority.UsePadding = false; + this.xrTableCell11.StylePriority.UseTextAlignment = false; + this.xrTableCell11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell11.Weight = 0.10769230769230767D; + // + // xrTableCell15 + // + this.xrTableCell15.Borders = DevExpress.XtraPrinting.BorderSide.Top; + this.xrTableCell15.CanShrink = true; + this.xrTableCell15.Name = "xrTableCell15"; + this.xrTableCell15.StylePriority.UseBorders = false; + this.xrTableCell15.StylePriority.UseFont = false; + this.xrTableCell15.StylePriority.UsePadding = false; + this.xrTableCell15.StylePriority.UseTextAlignment = false; + this.xrTableCell15.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell15.Weight = 0.30769230769230765D; + // + // xrTableCell16 + // + this.xrTableCell16.Borders = DevExpress.XtraPrinting.BorderSide.Top; + this.xrTableCell16.Name = "xrTableCell16"; + this.xrTableCell16.StylePriority.UseBorderColor = false; + this.xrTableCell16.StylePriority.UseBorders = false; + this.xrTableCell16.StylePriority.UseFont = false; + this.xrTableCell16.StylePriority.UsePadding = false; + this.xrTableCell16.StylePriority.UseTextAlignment = false; + this.xrTableCell16.Text = "Rechnungsbetrag netto"; + this.xrTableCell16.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell16.Weight = 0.43076923076923068D; + // + // xrTableCell17 + // + this.xrTableCell17.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrTableCell17.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "GrossClaim")}); + this.xrTableCell17.Name = "xrTableCell17"; + this.xrTableCell17.StylePriority.UseBorderColor = false; + this.xrTableCell17.StylePriority.UseBorders = false; + this.xrTableCell17.StylePriority.UseFont = false; + this.xrTableCell17.StylePriority.UsePadding = false; + this.xrTableCell17.StylePriority.UseTextAlignment = false; + this.xrTableCell17.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell17.Weight = 0.22538461538461535D; + // + // xrTableRow4 + // + this.xrTableRow4.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell13, + this.xrTableCell14, + this.xrTableCell18, + this.xrTableCell19}); + this.xrTableRow4.Name = "xrTableRow4"; + this.xrTableRow4.Weight = 0.10000000000000003D; + // + // xrTableCell13 + // + this.xrTableCell13.Borders = DevExpress.XtraPrinting.BorderSide.Left; + this.xrTableCell13.Name = "xrTableCell13"; + this.xrTableCell13.StylePriority.UseBorders = false; + this.xrTableCell13.StylePriority.UseTextAlignment = false; + this.xrTableCell13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell13.Weight = 0.10769230769230767D; + // + // xrTableCell14 + // + this.xrTableCell14.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.xrTableCell14.Name = "xrTableCell14"; + this.xrTableCell14.StylePriority.UseBorders = false; + this.xrTableCell14.StylePriority.UseTextAlignment = false; + this.xrTableCell14.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell14.Weight = 0.30769230769230765D; + // + // xrTableCell18 + // + this.xrTableCell18.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.xrTableCell18.Name = "xrTableCell18"; + this.xrTableCell18.StylePriority.UseBorders = false; + this.xrTableCell18.StylePriority.UseTextAlignment = false; + this.xrTableCell18.Text = "befreit von der Mehrwertsteuer"; + this.xrTableCell18.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell18.Weight = 0.43076923076923068D; + // + // xrTableCell19 + // + this.xrTableCell19.Borders = DevExpress.XtraPrinting.BorderSide.Right; + this.xrTableCell19.Name = "xrTableCell19"; + this.xrTableCell19.StylePriority.UseBorders = false; + this.xrTableCell19.StylePriority.UseTextAlignment = false; + this.xrTableCell19.Text = "0,00 €"; + this.xrTableCell19.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell19.Weight = 0.22538461538461535D; + // + // xrTableRow6 + // + this.xrTableRow6.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell24, + this.xrTableCell25, + this.xrTableCell26, + this.xrTableCell27}); + this.xrTableRow6.Name = "xrTableRow6"; + this.xrTableRow6.Weight = 0.10000000000000003D; + // + // xrTableCell24 + // + this.xrTableCell24.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell24.Name = "xrTableCell24"; + this.xrTableCell24.StylePriority.UseBorders = false; + this.xrTableCell24.StylePriority.UseTextAlignment = false; + this.xrTableCell24.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell24.Weight = 0.10769230769230767D; + // + // xrTableCell25 + // + this.xrTableCell25.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; + this.xrTableCell25.Name = "xrTableCell25"; + this.xrTableCell25.StylePriority.UseBorders = false; + this.xrTableCell25.StylePriority.UseTextAlignment = false; + this.xrTableCell25.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell25.Weight = 0.30769230769230765D; + // + // xrTableCell26 + // + this.xrTableCell26.Borders = DevExpress.XtraPrinting.BorderSide.Bottom; + this.xrTableCell26.Name = "xrTableCell26"; + this.xrTableCell26.StylePriority.UseBorders = false; + this.xrTableCell26.StylePriority.UseTextAlignment = false; + this.xrTableCell26.Text = "Rechnungsbetrag brutto"; + this.xrTableCell26.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell26.Weight = 0.43076923076923068D; + // + // xrTableCell27 + // + this.xrTableCell27.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Right | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell27.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "GrossClaim")}); + this.xrTableCell27.Font = new System.Drawing.Font("Arial", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell27.Name = "xrTableCell27"; + this.xrTableCell27.StylePriority.UseBorders = false; + this.xrTableCell27.StylePriority.UseFont = false; + this.xrTableCell27.StylePriority.UseTextAlignment = false; + this.xrTableCell27.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell27.Weight = 0.22538461538461535D; + // + // ReportFooter + // + this.ReportFooter.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.lblBezahlungText}); + this.ReportFooter.HeightF = 70F; + this.ReportFooter.Name = "ReportFooter"; + // + // lblBezahlungText + // + this.lblBezahlungText.CanGrow = false; + this.lblBezahlungText.LocationFloat = new DevExpress.Utils.PointFloat(0F, 20.00001F); + this.lblBezahlungText.Multiline = true; + this.lblBezahlungText.Name = "lblBezahlungText"; + this.lblBezahlungText.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblBezahlungText.SizeF = new System.Drawing.SizeF(696.4994F, 49.16668F); + this.lblBezahlungText.StylePriority.UseFont = false; + this.lblBezahlungText.Text = "Bitte überweisen Sie den Rechnungsbetrag unter Angabe der Kunden-Nr., der Rechnun" + + "gs-Nr. und des\r\nVerwendungszwecks auf das unten angegebene Konto."; + // + // RechnungEinzelfallhilfe + // + this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail, + this.ReportHeader, + this.topMarginBand1, + this.bottomMarginBand1, + this.DetailReport, + this.GroupFooter1, + this.ReportFooter}); + this.DataSource = this.bindingSource1; + this.ExportOptions.PrintPreview.DefaultFileName = "Spitzabrechnung"; + this.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] { + this.ruleRateFactorNull}); + this.Margins = new System.Drawing.Printing.Margins(70, 45, 52, 80); + this.PageHeight = 1169; + this.PageWidth = 827; + this.PaperKind = System.Drawing.Printing.PaperKind.A4; + this.Version = "17.1"; + ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); + + } + + + private DevExpress.XtraReports.UI.DetailBand Detail; + private System.Windows.Forms.BindingSource bindingSource1; + private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader; + private DevExpress.XtraReports.UI.FormattingRule ruleRateFactorNull; + private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1; + private DevExpress.XtraReports.UI.BottomMarginBand bottomMarginBand1; + private DevExpress.XtraReports.UI.XRLabel lblAdresse; + private DevExpress.XtraReports.UI.DetailReportBand DetailReport; + private DevExpress.XtraReports.UI.DetailBand Detail1; + private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter1; + private DevExpress.XtraReports.UI.XRLabel xrLabel3; + private DevExpress.XtraReports.UI.XRLabel xrLabel1; + private DevExpress.XtraReports.UI.XRPictureBox xrPictureBox1; + private DevExpress.XtraReports.UI.XRLabel xrLabel9; + private DevExpress.XtraReports.UI.XRLabel xrLabel7; + private DevExpress.XtraReports.UI.XRLabel xrLabel6; + private DevExpress.XtraReports.UI.XRLabel xrLabel17; + private DevExpress.XtraReports.UI.XRLabel xrLabel16; + private DevExpress.XtraReports.UI.XRLabel xrLabel15; + private DevExpress.XtraReports.UI.XRLabel xrLabel14; + private DevExpress.XtraReports.UI.XRLabel xrLabel12; + private DevExpress.XtraReports.UI.XRLabel xrLabel13; + private DevExpress.XtraReports.UI.XRLabel xrLabel10; + private DevExpress.XtraReports.UI.XRLabel xrLabel11; + private DevExpress.XtraReports.UI.XRLabel xrLabel18; + private DevExpress.XtraReports.UI.XRLabel xrLabel24; + private DevExpress.XtraReports.UI.XRLabel xrLabel23; + private DevExpress.XtraReports.UI.XRLabel xrLabel22; + private DevExpress.XtraReports.UI.XRLabel xrLabel21; + private DevExpress.XtraReports.UI.XRLabel xrLabel19; + private DevExpress.XtraReports.UI.XRLabel xrLabel20; + private DevExpress.XtraReports.UI.XRLabel xrLabel25; + private DevExpress.XtraReports.UI.XRLabel xrLabel27; + private DevExpress.XtraReports.UI.XRLabel xrLabel28; + private DevExpress.XtraReports.UI.XRLabel xrLabel29; + private DevExpress.XtraReports.UI.XRLabel cellFaelligkeit; + private DevExpress.XtraReports.UI.XRLabel xrLabel26; + private DevExpress.XtraReports.UI.XRLabel xrLabel31; + private DevExpress.XtraReports.UI.XRTable xrTable2; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell3; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell4; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell5; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell6; + private DevExpress.XtraReports.UI.XRLabel xrLabel30; + private DevExpress.XtraReports.UI.XRLabel xrLabel32; + private DevExpress.XtraReports.UI.XRLabel xrLabel33; + private DevExpress.XtraReports.UI.XRLabel xrLabel34; + private DevExpress.XtraReports.UI.XRTable xrTable3; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell8; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell9; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell10; + private DevExpress.XtraReports.UI.XRTableCell cellTagessatz; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell12; + private DevExpress.XtraReports.UI.XRTable xrTable1; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow3; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell11; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell15; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell16; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell17; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow4; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell13; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell14; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell18; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell19; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow6; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell24; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell25; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell26; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell27; + private DevExpress.XtraReports.UI.ReportFooterBand ReportFooter; + private DevExpress.XtraReports.UI.XRLabel lblBezahlungText; + private DevExpress.XtraReports.UI.XRLine xrLine1; + private DevExpress.XtraReports.UI.XRLabel xrLabel37; + private DevExpress.XtraReports.UI.XRLabel xrLabel36; + private DevExpress.XtraReports.UI.XRLabel xrLabel35; + private DevExpress.XtraReports.UI.XRLabel xrLabel8; + private DevExpress.XtraReports.UI.XRLabel xrLabel38; + private DevExpress.XtraReports.UI.XRLabel xrLabel2; + private DevExpress.XtraReports.UI.DetailReportBand DetailReport1; + private DevExpress.XtraReports.UI.DetailBand Detail2; + } +} diff --git a/ReportImp/LebenshilfeFrankfurtOder/RechnungEinzelfallhilfe.cs b/ReportImp/LebenshilfeFrankfurtOder/RechnungEinzelfallhilfe.cs new file mode 100644 index 000000000..a13cfdad0 --- /dev/null +++ b/ReportImp/LebenshilfeFrankfurtOder/RechnungEinzelfallhilfe.cs @@ -0,0 +1,273 @@ +using System; +using System.Text; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Report; +using BeWo.Report.ReportObjects; +using BS.Shared; +using BS.Shared.Core; +using DevExpress.XtraReports.UI; + +namespace LebenshilfeFrankfurtOder +{ + [IDSpecificClass(Identifiers = new string[] { "RechnungEinzelfallhilfe" })] + public partial class RechnungEinzelfallhilfe : XtraReport, IBeWoReport + { + public RechnungEinzelfallhilfe() + { + this.InitializeComponent(); + } + + public void SetReportDataSource(ServiceInvoiceRO pRO) + { + + CheckLastschriftAndAnschrift(pRO); + + if (!String.IsNullOrEmpty(pRO.SenderContactPersonMail)) + { + pRO.SenderContactPersonMail = pRO.SenderContactPersonMail.Replace("E-Mail:", "").Trim(); + } + if (!String.IsNullOrEmpty(pRO.SenderContactPersonPhone)) + { + pRO.SenderContactPersonPhone = pRO.SenderContactPersonPhone.Replace("Tel.:", "").Trim(); + } + if (!String.IsNullOrEmpty(pRO.SenderContactPersonFax)) + { + pRO.SenderContactPersonFax = pRO.SenderContactPersonFax.Replace("Fax:", "").Trim(); + } + + + StringBuilder sb = new StringBuilder(); + + + if (!String.IsNullOrEmpty(pRO.RecipientOrganisation)) + { + if (!pRO.RecipientOrganisation.Contains("Selbstzahler") && pRO.InvoiceBase.InvoiceId != "RechnungFudPrivat") + { + sb.AppendLine(pRO.RecipientOrganisation); + } + } + + if (!String.IsNullOrEmpty(pRO.RecipientAddressLine1)) + { + sb.AppendLine(pRO.RecipientAddressLine1); + } + else if (pRO.InvoiceBase != null && !String.IsNullOrEmpty(pRO.InvoiceBase.RecipientAddressLine1)) + { + sb.AppendLine(pRO.InvoiceBase.RecipientAddressLine1); + } + else + { + if (String.IsNullOrEmpty(pRO.RecipientContactPerson)) + { + pRO.RecipientContactPerson = GetContactPerson(pRO); + } + if (!String.IsNullOrEmpty(pRO.RecipientContactPerson)) + { + sb.AppendLine(pRO.RecipientContactPerson); + } + } + + if (!String.IsNullOrEmpty(pRO.RecipientStreet)) + { + sb.AppendLine(pRO.RecipientStreet); + } + if (!String.IsNullOrEmpty(pRO.RecipientPostCodeAndTown)) + { + sb.AppendLine(pRO.RecipientPostCodeAndTown); + } + lblAdresse.Text = sb.ToString(); + + pRO.Notice = ""; + + cellFaelligkeit.Text = String.Format("{0:dd.MM.yyyy}", pRO.InvoiceDateTime.Value.AddDays(14)); + + if (pRO.ServiceInvoicePeriods != null) + { + foreach (var sip in pRO.ServiceInvoicePeriods) + { + int count = 0; + int countAbwesend = 0; + decimal tagessatz = 0; + String schluessel = ""; + + if (sip.ServiceInvoiceItems != null) + { + foreach (var ii in sip.ServiceInvoiceItems) + { + if (!String.IsNullOrWhiteSpace(ii.ServiceDescription)) + { + schluessel = ii.ServiceDescription; + } + + if (ii.UnitDescription == "I") + { + count++; + } + else + { + if (ii.AmountPerUnit.HasValue && ii.AmountPerUnit > 0) + { + countAbwesend++; + } + } + + if (ii.AmountPerUnit.HasValue && ii.AmountPerUnit.Value > 0) + { + tagessatz = ii.AmountPerUnit.Value; + } + + } + } + + sip.ApprovedHours = count + countAbwesend; + sip.ApprovedAmount = String.Format("{0:c}", tagessatz); + sip.NotBillableString = schluessel; + + } + + } + + if (pRO.InvoiceBase != null && pRO.InvoiceBase.InvoiceId == "RechnungFudPrivat") + { + pRO.OrganisationDebitorNumber = pRO.DebitorNumber; + } + else + { + pRO.OrganisationDebitorNumber = GetKundennummer(pRO); + } + + + this.bindingSource1.DataSource = pRO; + } + + private string GetContactPerson(ServiceInvoiceRO pRo) + { + String ap = ""; + + if (pRo.ServiceInvoicePeriods != null) + { + foreach (var sip in pRo.ServiceInvoicePeriods) + { + + if (sip.CostBearer2SupportConcept != null && + sip.CostBearer2SupportConcept.CostBearerContactPerson != null) + { + ap = ""; + + if (sip.CostBearer2SupportConcept.CostBearerContactPerson.Sex.HasValue && + sip.CostBearer2SupportConcept.CostBearerContactPerson.Sex.Value == Sex.Male) + { + ap = "Herr "; + } + else if (sip.CostBearer2SupportConcept.CostBearerContactPerson.Sex.HasValue && + sip.CostBearer2SupportConcept.CostBearerContactPerson.Sex.Value == Sex.Female) + { + ap = "Frau "; + } + + + ap += sip.CostBearer2SupportConcept.CostBearerContactPerson.FirstName; + + if (ap.Length > 0) + { + ap += " "; + } + ap += sip.CostBearer2SupportConcept.CostBearerContactPerson.LastName; + } + } + } + + return ap; + } + + private string GetKundennummer(ServiceInvoiceRO pRo) + { + if (pRo.ServiceInvoicePeriods != null) + { + foreach (var sip in pRo.ServiceInvoicePeriods) + { + if (sip.CostBearer2SupportConcept != null) + { + if (!String.IsNullOrEmpty(sip.CostBearer2SupportConcept.CostBearer.Organisation.DebitorNumber)) + { + return sip.CostBearer2SupportConcept.CostBearer.Organisation.DebitorNumber; + } + } + } + } + + return ""; + } + + + + private void CheckLastschriftAndAnschrift(ServiceInvoiceRO pRO) + { + Customer c = null; + if (pRO.CustomerOid.HasValue) + { + c = DAOFactory.GenericDAO.LoadByID(pRO.CustomerOid.Value); + } + if (c == null) + { + if (pRO.ServiceInvoicePeriods.Count > 0) + { + var c2s = pRO.ServiceInvoicePeriods[0].CostBearer2SupportConcept; + c = c2s.SupportConcept.Customer; + } + } + + bool lastschrift = false; + String mandatsnr = pRO.DebitorNumber; + + if (c != null) + { + foreach (var vv in c.VarFieldValueList) + { + if (vv.VarFieldDefOid.Value == 1) + { + var varFieldValue = BS.Shared.Core.Utils.XMLDeserializeFromString(vv.SerializedValue, Type.GetType(vv.TypeName)); + if (varFieldValue != null) + { + var isLastschrift = varFieldValue.ToString(); + + if (!String.IsNullOrEmpty(isLastschrift) && isLastschrift == "True") + { + lastschrift = true; + } + + } + } + if (vv.VarFieldDefOid.Value == 2) + { + var varFieldValue = BS.Shared.Core.Utils.XMLDeserializeFromString(vv.SerializedValue, Type.GetType(vv.TypeName)); + if (varFieldValue != null) + { + mandatsnr = varFieldValue.ToString(); + + } + } + } + + //if (c.Person.InvoiceAddress != null && !String.IsNullOrEmpty(c.Person.InvoiceAddress.AddressLine1)) + //{ + // pRO.RecipientAddressLine1 = c.Person.InvoiceAddress.AddressLine1; + //} + } + + if (lastschrift) + { + lblBezahlungText.Text = + String.Format("Der Rechnungsbetrag wird von dem uns bekannten Konto abgezogen. Mandatsnummer: {0}", + mandatsnr); + } + + if (!String.IsNullOrEmpty(pRO.Notice)) + { + lblBezahlungText.Text = String.Format("{0}\n\n{1}", pRO.Notice, lblBezahlungText.Text); + } + + } + } +} \ No newline at end of file diff --git a/ReportImp/LebenshilfeFrankfurtOder/RechnungEinzelfallhilfe.resx b/ReportImp/LebenshilfeFrankfurtOder/RechnungEinzelfallhilfe.resx new file mode 100644 index 000000000..3e0ee56db --- /dev/null +++ b/ReportImp/LebenshilfeFrankfurtOder/RechnungEinzelfallhilfe.resx @@ -0,0 +1,214 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + iVBORw0KGgoAAAANSUhEUgAAAK4AAACjCAIAAACc8LJnAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAd + hwAAHYcBj+XxZQAAE69JREFUeF7tnQuUTdUfxxvvvBljNJUSTXmG3lSkRSkqoaiQ3o+lt96hSEpW7+it + sqSn9CDFoIWKKI8iqzE0vWRk5DnGzP7/ft3f/7r3N/eeu89+nHNmnM/6Lmsw97f3Oed7z9l7n71/+yAR + EvIfoRVCiNAKJpk6VeTn08+bN6PKEaEVFCktRQHTp4uff6a/jhwpfv31v/8W4oILUOWI0AquKSgQS5aI + nj3FQQeJQYNE48bikEPECSfgX0EdOoixY8XFF+PPTZqITZvoU8EntEJq4OteUkJ/ggk6d6arLqNPPqEg + wSe0Qgry8kT37nhRs7PjrrGkTj1VFBZSqIATWiEFjz/Or65bXXsthQo4oRVSoG8F0MyZFC3IhFZIQadO + /LoqqF27ctB+DK2QgmOP5ddVTW3bYtcjyIRWSIEpK4AGDKCYwSS0QgoMWuHQQ8XChRQ2gIRWcOLPP0Vm + Jr+iOqpWTSxdSsGDRmgFJ2bM4NdSX+++S8GDRmgFJzIy+IXUV4MGYvRoen8RKEIrJOXvv0WlSvxCmtKa + NVRKcAitkJQ33uDXz6BWrsQ3GoEitEJSrrmGXz+zeuUVKigghFZISteu/OKZVd264ptvqKwgEFohMdBQ + aNKEXzzj6tFDbN9OJfpOoK0AT9MXXhDnniuKi0VREf2jNxQUiKZN+ZWzoVdfpRJ9J6BWKCzEoZhnnqHz + 1aKFOPxwsW0b/a83WG02RlW5svjoIyrRX4JoBehzw52zalVRu3bcWbvlFvoFb9i61WJnMlbZ2eK116hQ + HwmiFaZN4ycrqq++ot/xhjPP5BWwpMxM8fHHVKhfBMgK0CCYMUMcf7yoWZOfqagOPVSsW0e/7wGzZom0 + NF4HS4ID37ePyvWFoFjh339pCmFKNWwo/vmHPuUBb73FK2BPkyaJnTupXO8JhBVWrxbnncfPi4PGj6cP + egB8UydMEPXri4MPxr4MtFegDcvqY1B9+ohffqGiPcZ/K0yc6LoH37Wrz/fSKVPEpZfyWpnS4MFi714q + yEv8tMKuXaJVK+wpsHMho02bfB7D//13vEOAzj4bO4SsepqaP59K8RLfrPDdd+Lkk/kpcCW4XU+evH9h + mo8sWiTefFOMGiVOP13UqiVatsQpKqy2rvTYYxTZS/yxwtNPY+uPHb+aMjLEnXdS2CCQm4tDYYcdxuvp + So0bi/vuo4Ce4YMVhg/XPVNlNXcuBQ8I0AuFWtWtK448Mq6e8oJO7CuviN27KaAHeGqF4mJx7726N8+E + 6tEjWK//i4rETz+JDRvEZZfxqrrShx9SQA/wzgp5eaJvX36oBhXAeUHAVVfxerpSzZpixQoKZRuPrLBj + h7jwQn6cZjVwIJUVKPLzxdFH86q60oQJFMo2Xlhh5kx+eDZUr15Alx9Bz1Cnt3nEER69oLduhT/+EK1b + 88OzpC5dxJ49VG6ggG+2zkvOTp3wNNrGrhX+/lu0acMPzJ7gGRRYHnuM19aVLrmE4tjDohUWLsQxVHZI + VtWrVxDXF0SADs7ateprrapXFz/+SKEsYcsKhYXmBw9k5OVLSwVuv51XWF5ZWfvnO23caL5hZMUKy5fj + /DN2JN4o4GkM9u7FTF6szvJ66CGKc8IJ2E01i3krgA9srC+T1PDhVI3AMmAAr7O86tTBPvO8eXjHffZZ + CmgKw1aAx2G3bvwAvFSTJuLLL6kywWTbNnHccbzabtW1Kw7VmMWkFdav9+25EKuWLak+poh25KDhlpNj + oDkyZQqvs1vdey+FMogxK+Tni/PP5zX2RWlp2HMxxZw52OwfMwanTnXsiPHhXzTZvVscdVRcnd2qRQt8 + oWMWY1bwbBxJRqNHU600WbAA3y6y4G+9Rf+rg8Osbkl99hmFMoUBK0CP+fLLvZsZnFJjx+KkWU3gi7tk + CU5pZMFB0Hb7+mv6NWXgSd+8OY/sSnCjMju0asAKS5fyWvqldu1wSdOWLVQxZVatQnOz4LFq2FB8+y39 + sjK9e/OwbtWhA7bPTKFrBXhi9evHq+i94LRCW0y/UZ2bizcVtioroW6/nT6ijL4VQJMnUzR9tKxQWopZ + a1nlPFb79uKddwyMN+fl4cS4KlV4/GRq2xbfsOgAbQ754pIJ2o8PPojDTfrD0lpW8GaBqYNq1TKwvqyo + CGfMKsy1PPlkXFepg6n0b5UqiSefpJjKqFsBWlXp6bxOngnu4c8/rzvdefNmfByceCIPLq+ePSmUGjqv + JGIFX4n77xe//UZh1VC0wt696hM49QU+ePxxqoka+/bhzFj9ZBpVq4ply3DQKT9fvPee6+dU//5OC0Rd + qVo1vEnroGIF8IFzA9uq+vTRncfx11/inHN4WGXFrrZesICKkCeyn4y+HnmEAiqjYgU4YFYPbwQdengi + avYVc3JwzTKLbEodO1Ip8mjOg40K7pRvv00x1XBthcJC6/mqEgqun/4GbatX4z5PLLJBKSzOWbuWB1FT + djYmn1i0SL1f49oKL7/MK2FVTZuKe+5B6U/u272bXiLYEzx63FJcbGzMvlEjbLuMGUOR3eLaCsccw2tg + T9CsmzGDytVkxw7aA86qXnyRinOF5rIZJuUJni6sUFKCI3qevWvo3l13DCdKUZG46CIe34ayslSmUWnO + gGXywgqLF/NSLQncdsUV+Fw3AvR37OVCKKsffqBy5QH3wL2dxVEW2FFt2M2FFaAXx0q1ofR0XKBukPnz + eRH2BFc0//8bEbvCyPuIqNSma8haYdYsY4MhDsrIMJxcB3zQrh0vxap69aKi5Vm5Umvua1m1bKmSrEPK + CqWlXrx+rF/fwJvfWPbswQcNK8W26tSh0uW5/nrDCSJr18aYbpGyggeLHuvVM591Rn8KoYIOPlilSzl0 + KI+jqRYtXHe/paxgexJz9ermpylDf8eD3mNZ1aqlknBv+nQeR1/wTXBFaits3Ih73LBiDKpGDStJjl9/ + nRfkjRQeEAC4x3ib5sorKbgkqa1wwQW8DFOCTmP79sYGkWIpKvJ0KCxW8NQfNUolBYypF9ZRNW/uLkF6 + CivAY09mdpeaoK6WuO8+XpbHUkixBr1QtbyFDnK1e10KK0ydyqObEvQb166lUoxjdihXQVWq4NQet5x0 + Eo+jqaZNKbIMTlaA26xmakUHXX01lWID360AgseEW957jwfRFHzf5Ec/nawwZw4PbUTwNB0xQuVpKsmC + BV6MhqXUjTdSfeRZvtzAxFemSy+l4ClxssLZZ/O4RnTHHRTfEsZvs2pSW/RuPEnNYYfJZoxOagX4vI0U + 51Az/RkoDhQX40IRVqhf+v57qpU8NmYKSr7TSWqF0aN5RCNSe6Mvz6pVvEQfJX9zjjJhAg+ir379KLgz + Sa2gMyU8mQYNouD2gHY7K9RHKWwqOmYMD6IveGLKkNgK0Mc1+4IE1KSJ3UdDBOMDNTpyu/x+61bM0siC + 6Cs7W2o9cWIrTJrEw2mqenXsKXlAXh7uL8VK90Xp6a5fRvz2G26QUaMGD6Wv225LnTk8sRWMz2nWXMHi + iiD0IGrVUlzEuH27rTnZKTOHJ7DChg34JWaBdFS3LrbmvGHtWiuZ5d3quOOoPm7JyeGhTEnFCtDIZ1F0 + BD6Aw/MMeCjCo5HVwXspZ2ax92JdxQq9evEoOrrhBgrrGUF4QDz1FFXGLfbyII8YQUUkI4EVDDa74LG3 + axeF9YwgWGHsWKqMW+xZoXdvKiIZ3Ap79hhYXxyVwUxp8kycyKvhvfr3p8q4xex811ilnNTErTB7Ng+h + rHbt/EmzW1Liz6rOWHXrRpVxi43RxoiefpqKSAa3gsEpwqYy5ikATaR69Xh9vFFaGj5hO3emmrjFnhWg + V+j8hizOCvB0yMriIdR0zjnmM8+64rTTeJW8ETyeAOV0MPasADr2WColIXFW2LmTf1hZ06ZRTL/49FPD + oyMyuvFG3SSrFc0K3btTQH8ZN45XzJ46dMD0qvo7ZVu1Qo8eVEpC4qywcCH/sJqM56dXY+VK85OCEqp1 + a2N7O1m1woABVEpC4qzw3HP8wwqC1kZwtmoxO1yWUJUq6aZGi8WqFWrXxo1Qk2HeCh5seCXP5MnmZ5TH + qlEjvPcYBJo4rAizWryYCiqLYStkZor336doAWHOHHHKKbyepjRsGJViCoOp48qqTh2nBQeGrdCmjcqK + QdtAJ9n4niVwP3jzTfMHa3UvxubNnZLFG7aCfnpZS8C3QS0ddbVqOJFnxIi4haPQRbK0BbZVK7i4K0Bn + g33YlaABZXy/CrP88AMmZWraVOo9C/QPFyzYPwnv5ZdxQgp0Sbp1szV6tmyZ3S7P8cdTQQmJs8Lw4fzD + rqS2iNgXtm3D98gOi6hatRKff06/HGXFCvNJIGL59lteDbM66ywqKCFxVtBMa1iOrBChqAiHUkBHHIEL + NGrWFCNH4pxjkKnkcK6YO5efUrNKT8cUCcmIs8LAgfzDriQ53z6YgC0UVrCY5frr+Sk1q6uuctq1IM4K + o0bxD7vSLbdQnBA1bKw9iZVzUzfOCpp5LgPeZgw4OTnm154wOWd9iLOCTmcSOl0Og5ohKbG9mAdaQs4v + SuKs8OWX/PPyUsh/HxJlyRKVHYtcKeXAqLG7QmgFHWy/NoNHT9m+MSPOCjrvQkIrqFFSghNebCyOi1WD + BlScA3FW0Jm6ElpBDfiysjNpQzfdRMU5EFrBTwoLreQzYYJWiMzOyaEVfGPHDhwJZqfRhiSzQsVZYd8+ + 9RUEoRVcsWePOP98fg4tadYsKtSZOCsAl1zCA0lq4ECKEJKS3bvVz7MrQWsR+pCSk2+5FZRTI4d3BUny + 8iyuhmMaOZIKlYFbQXmhXGgFGTZsEOedx0+dPT3xBJUrA7fCihW4owGLKKPQCil5913RrBk/b/bUoUPq + pDuxcCsALVvyoDLKzDS2FqDiAY3EIUPszr0uq7vvptIlSWCFV1/lQSU1bhxFCGFcdx0/V7YFtvvzTypd + kgRWyM3lcSU1dChFCImwaxeukmjb1rvNOaPKyKA6yJPACps2icaNeWgZVa6sslV7BUZzVpiOjG0jpjzQ + dNddFOGApaRErFuHOuMMfnK8lDErXHklDy2p9HTx3XcU5MDknXf4OfFFCttxJbZCQYH65KpevXxIxeU7 + W7bg+O4VV1h/3Syj7GzXbUYgsRW++goXVbEC5OW8eLuCUVqK2yr1789Pgvdq1Ag3KZw3TzHnS2IrAC+9 + xEtypauvxunkFZvt23HZpAdvmVMKTAB3ggcfpIqpkdQK+vvSv/AChap4LFmCm7VDL5Edsl8y0j5LaoV9 + +3R3LIHO9IUXBijthj47d+Ly008/DUSDIFZGcn0ktQLw/vu8SAWddJJYupQClmvWrMEk3uzofFeVKrgX + jZHvm5MVNm/mBaupalWcW6eZuswv1q/H5JennupDvreUysrCV52mcLLC3r0m36yfcooYPx7b2xFyc3Pp + p0ACTcIpU3CoLQj7FCbTPfdQbY3gZAUAvspmt7AZMgRH4v6LHLi7xL//4qrq227DlMRBdkBEdeo4rYVV + IIUVgOef55XQFDwvBg8Wn3xC8X3nl1/ENdfgOLHa23lf1Lw5vkA2S2orFBTganlWFX1VqoRJTK67Dlda + /v47lWUb6AJAcdDeho7A6NGY7QbqEMBGgLN69sQJEPrpQhmprQB88QWvjVk1biz69sWdVebNoxLNMn8+ + Br//frzzQ3EZGdbXLFuVpde/UlYAA3ozY79yZWwV33qraN8eX4nNno0jqfA9BkF3Jvpo3LaN/nHjRmx5 + RH4GPfkkfjYnB4eB4WEfFYRlBZVfOSfn1UHKCsDq1brZFzR15JE4tnr66ajoQ71Bg0BsGuaZunTBBVWW + kLUC8Mcf+GRllQvljeCJdvPNeDu0hwsrAOPGVaibbTkSNHRs484KgL+Tcw5A1a2L48olJXT+7eHaCosX + i/r1eXVDWRK0ed1ubK2MaysAvXvzGocyrrQ0fHHjZfpIFSvA/YrVO5RZQdd90SI6256hYoXSUtwHJmw/ + WlKbNv7swKZihQj2Nlk4kFWtmpg5k86wx6hbobgY07eyIwmlpqpVcTef1q39XGyobgVg/ny7u5ocOLrh + BvHjj170GB3QsgIQyTXHDiyUpGrUwOkgq1ebf82ogK4VgKIip40VQjno7rv92bY7IQasAHz+OS6RY8cZ + ykEPPIC9sEAtIzNjBWDWLH60ocqqY0fcq6hPnyCuJTRmhdJSnCMEzR928KGi6tQJ1wFAz8vf5mEyjFkh + wtatOFyamcnPwgGrvn1xK6KGDXEuZ0EBnaVgYtgKER591HpK+4CrVStcPwM3ALhZrlvn/1ZEMlixApCb + a30npMBqyBBcQlLusGWFCPCFsLqHZnAEz0S4DUydSneC8ohdKwDQlrzjDn7iKpLS0nCntunT6XjLL9at + EGH2bNG5Mw6zs/NY3pWVJaZNo2Ms73hkhQhr1mDeLnY2y6OGDsU7wcMPV6ispZ5aAYDn6PLlOOBa7qY7 + wIOgQQNMNDB3biBeGRjHaytEWbYMc5eMGxf0p0a/fphMCDRzJnaLKnBWId+sEGXpUjFxIt5sBwzADNUg + 31dbNGuGi0/g218BGoPy+G+Fsvz0E94wIsMSw4fjz2PHKuajT6nLLsNl1BF98AGWBdqyhWpyQBFEK0SJ + 7aDDzx99JCZN2q9hw/DtzsCBYsQITEIDP190EZrmxBP3/06klw/6+mv864wZmEMDfli1iv49JEqgrRDi + JaEVQojQCiH/IcT/AAprFzch0QTwAAAAAElFTkSuQmCC + + + + 17, 17 + + \ No newline at end of file diff --git a/ReportImp/LebenshilfeFrankfurtOder/RechnungFud.cs b/ReportImp/LebenshilfeFrankfurtOder/RechnungFud.cs index 48bd2accd..5baf75785 100644 --- a/ReportImp/LebenshilfeFrankfurtOder/RechnungFud.cs +++ b/ReportImp/LebenshilfeFrankfurtOder/RechnungFud.cs @@ -10,7 +10,7 @@ using DevExpress.XtraReports.UI; namespace LebenshilfeFrankfurtOder { - [IDSpecificClass(Identifier = "RechnungFud")] + [IDSpecificClass(Identifiers = new string[] { "RechnungFud", "RechnungFudPrivat" })] public partial class RechnungFud : XtraReport, IBeWoReport { public RechnungFud() @@ -20,6 +20,7 @@ namespace LebenshilfeFrankfurtOder public void SetReportDataSource(ServiceInvoiceRO pRO) { + CheckLastschriftAndAnschrift(pRO); if (!String.IsNullOrEmpty(pRO.SenderContactPersonMail)) @@ -38,9 +39,13 @@ namespace LebenshilfeFrankfurtOder StringBuilder sb = new StringBuilder(); + if (!String.IsNullOrEmpty(pRO.RecipientOrganisation)) { - sb.AppendLine(pRO.RecipientOrganisation); + if (!pRO.RecipientOrganisation.Contains("Selbstzahler") && pRO.InvoiceBase.InvoiceId != "RechnungFudPrivat") + { + sb.AppendLine(pRO.RecipientOrganisation); + } } if (!String.IsNullOrEmpty(pRO.RecipientAddressLine1)) @@ -123,7 +128,15 @@ namespace LebenshilfeFrankfurtOder } - pRO.OrganisationDebitorNumber = GetKundennummer(pRO); + if (pRO.InvoiceBase != null && pRO.InvoiceBase.InvoiceId == "RechnungFudPrivat") + { + pRO.OrganisationDebitorNumber = pRO.DebitorNumber; + } + else + { + pRO.OrganisationDebitorNumber = GetKundennummer(pRO); + } + this.bindingSource1.DataSource = pRO; } diff --git a/ReportImp/LebenshilfeFrankfurtOder/Statistics/CustomServiceRecordStatisticFactory.cs b/ReportImp/LebenshilfeFrankfurtOder/Statistics/CustomServiceRecordStatisticFactory.cs index 09203416c..5107fa7c9 100644 --- a/ReportImp/LebenshilfeFrankfurtOder/Statistics/CustomServiceRecordStatisticFactory.cs +++ b/ReportImp/LebenshilfeFrankfurtOder/Statistics/CustomServiceRecordStatisticFactory.cs @@ -14,28 +14,53 @@ namespace LebenshilfeFrankfurtOder.Statistics { private bool uebertragbar = true; - public override ServiceRecordStatisticsInfoDC GetServiceRecordStatisticInfo(long costBearer2SupportConceptOid, DateTime statisticsDate) + private bool containsAbw = false; + + public override ServiceRecordStatisticsInfoDC GetServiceRecordStatisticInfo(long costBearer2SupportConceptOid, DateTime statisticsDate) { this.uebertragbar = true; + containsAbw = false; var stats = CreateSupportConceptStatisticsImpl(costBearer2SupportConceptOid, statisticsDate); - var dc = new ServiceRecordStatisticsInfoDC(); - dc.Header = new string[4]; - dc.Header[0] = "Bewilligungszeitraum:"; - dc.Header[1] = "FLS Gesamtstunden:"; - dc.Header[2] = "Bewilligt pro Monat gesamt:"; - dc.Header[3] = "davon geleistet diesen Monat:"; - + var dc = new ServiceRecordStatisticsInfoDC(); - dc.ForegroundColor = new string[4]; - dc.ForegroundColor[0] = "#FF2B508B"; - dc.ForegroundColor[1] = "#FF2B508B"; - dc.ForegroundColor[2] = "#FF2B508B"; - dc.ForegroundColor[3] = "#FF2B508B"; - + if (!containsAbw) + { + dc.Header = new string[4]; + dc.Header[0] = "Bewilligungszeitraum:"; + dc.Header[1] = "FLS Gesamtstunden:"; + dc.Header[2] = "Bewilligt pro Monat gesamt:"; + dc.Header[3] = "davon geleistet diesen Monat:"; - dc.PeriodStatisticInfos = new List(); + + dc.ForegroundColor = new string[4]; + dc.ForegroundColor[0] = "#FF2B508B"; + dc.ForegroundColor[1] = "#FF2B508B"; + dc.ForegroundColor[2] = "#FF2B508B"; + dc.ForegroundColor[3] = "#FF2B508B"; + } + else + { + dc.Header = new string[6]; + dc.Header[0] = "Bewilligungszeitraum:"; + dc.Header[1] = "FLS Gesamt lt. Bescheid:"; + dc.Header[2] = "davon direkte Std.:"; + dc.Header[3] = "FLS pro Monat lt. Bescheid:"; + dc.Header[4] = "FLS pro Monat direkte Std.:"; + dc.Header[5] = "davon direkt diesen Monat geleistet:"; + + + dc.ForegroundColor = new string[6]; + dc.ForegroundColor[0] = "#FF2B508B"; + dc.ForegroundColor[1] = "#FF2B508B"; + dc.ForegroundColor[2] = "#FF2B508B"; + dc.ForegroundColor[3] = "#FF2B508B"; + dc.ForegroundColor[4] = "#FF2B508B"; + dc.ForegroundColor[5] = "#FF2B508B"; + } + + dc.PeriodStatisticInfos = new List(); if (stats != null) @@ -73,14 +98,74 @@ namespace LebenshilfeFrankfurtOder.Statistics public ServiceRecordPeriodStatisticsInfoDC CreateServiceRecordPeriodStatisticsInfo(SupportConceptStatisticsDC stats, SupportConceptPeriodStatisticsDC periodStats, DateTime statisticsDate) { - var dc = CreateDefaultServiceRecordPeriodStatisticsInfo(4); + ServiceRecordPeriodStatisticsInfoDC dc = null; + + if (!containsAbw) + { + dc = CreateDefaultServiceRecordPeriodStatisticsInfo(4); + + if (periodStats.SupportConceptApprovalPeriod != null) + { + if (periodStats.SupportConceptApprovalPeriod.ServiceCategory != null) + { + if (periodStats.SupportConceptApprovalPeriod.StartDate.HasValue && + periodStats.SupportConceptApprovalPeriod.EndDate.HasValue && + periodStats.SupportConceptApprovalPeriod.StartDate.Value.Date == + stats.StatisticsStartDate.Date && + periodStats.SupportConceptApprovalPeriod.EndDate.Value.Date == stats.StatisticsEndDate.Date) + { + dc.LeftValues[0] = periodStats.SupportConceptApprovalPeriod.ServiceCategory.Name; + } + else + { + dc.LeftValues[0] = String.Format("{0}: {1:dd.MM.yy} - {2:dd.MM.yy}", + periodStats.SupportConceptApprovalPeriod.ServiceCategory.Name, + periodStats.SupportConceptApprovalPeriod.StartDate, + periodStats.SupportConceptApprovalPeriod.EndDate); + } + } + else + { + dc.LeftValues[0] = String.Format("{0:dd.MM.yy} - {1:dd.MM.yy}", + periodStats.SupportConceptApprovalPeriod.StartDate, + periodStats.SupportConceptApprovalPeriod.EndDate); + } + } + + dc.LeftValues[1] = " "; + dc.RightValues[1] = String.Format("{0:0.00}", periodStats.MinutesApprovedTotal / 60); + + dc.LeftValues[2] = " "; + dc.RightValues[2] = String.Format("{0:0.00}", periodStats.MinutesApprovedPerMonth / 60); + + dc.LeftValues[3] = " "; + dc.RightValues[3] = String.Format("{0:0.00}", periodStats.MinutesProvidedThisMonth / 60); + + if (periodStats.MinutesProvidedThisMonth > 0 && periodStats.MinutesApprovedPerMonth > 0) + { + if (periodStats.MinutesProvidedThisMonth > periodStats.MinutesApprovedPerMonth) + { + dc.RightValueColors[3] = "#FFFF0000"; + } + else if (periodStats.MinutesProvidedThisMonth / periodStats.MinutesApprovedPerMonth > 0.8m) + { + dc.RightValueColors[3] = "#FFFFFF00"; + } + } + + return dc; + } + + dc = CreateDefaultServiceRecordPeriodStatisticsInfo(6); if (periodStats.SupportConceptApprovalPeriod != null) { if (periodStats.SupportConceptApprovalPeriod.ServiceCategory != null) { - if (periodStats.SupportConceptApprovalPeriod.StartDate.HasValue && periodStats.SupportConceptApprovalPeriod.EndDate.HasValue && - periodStats.SupportConceptApprovalPeriod.StartDate.Value.Date == stats.StatisticsStartDate.Date && + if (periodStats.SupportConceptApprovalPeriod.StartDate.HasValue && + periodStats.SupportConceptApprovalPeriod.EndDate.HasValue && + periodStats.SupportConceptApprovalPeriod.StartDate.Value.Date == + stats.StatisticsStartDate.Date && periodStats.SupportConceptApprovalPeriod.EndDate.Value.Date == stats.StatisticsEndDate.Date) { dc.LeftValues[0] = periodStats.SupportConceptApprovalPeriod.ServiceCategory.Name; @@ -88,37 +173,49 @@ namespace LebenshilfeFrankfurtOder.Statistics else { dc.LeftValues[0] = String.Format("{0}: {1:dd.MM.yy} - {2:dd.MM.yy}", - periodStats.SupportConceptApprovalPeriod.ServiceCategory.Name, - periodStats.SupportConceptApprovalPeriod.StartDate, - periodStats.SupportConceptApprovalPeriod.EndDate); + periodStats.SupportConceptApprovalPeriod.ServiceCategory.Name, + periodStats.SupportConceptApprovalPeriod.StartDate, + periodStats.SupportConceptApprovalPeriod.EndDate); } } else { dc.LeftValues[0] = String.Format("{0:dd.MM.yy} - {1:dd.MM.yy}", - periodStats.SupportConceptApprovalPeriod.StartDate, - periodStats.SupportConceptApprovalPeriod.EndDate); + periodStats.SupportConceptApprovalPeriod.StartDate, + periodStats.SupportConceptApprovalPeriod.EndDate); } } - dc.LeftValues[1] = " "; - dc.RightValues[1] = String.Format("{0:0.00}", periodStats.MinutesApprovedTotal / 60); + + //dc.Header[0] = "Bewilligungszeitraum:"; + //dc.Header[1] = "FLS Gesamt lt. Bescheid:"; + //dc.Header[2] = "davon direkte Std.:"; + //dc.Header[3] = "FLS pro Monat lt. Bescheid:"; + //dc.Header[4] = "FLS pro Monat direkte Std.:"; + //dc.Header[5] = "davon direkt diesen Monat geleistet:"; + dc.LeftValues[1] = String.Format("{0:0.00}", periodStats.MinutesApprovedTotal / 60); + dc.RightValues[1] = " "; - dc.LeftValues[2] = " "; - dc.RightValues[2] = String.Format("{0:0.00}", periodStats.MinutesApprovedPerMonth / 60); + dc.LeftValues[2] = String.Format("{0:0.00}", (periodStats.MinutesApprovedTotal / 60) * 0.7m); + dc.RightValues[2] = String.Format("indirekte Std. {0:0.00}", (periodStats.MinutesApprovedTotal / 60) * 0.3m); - dc.LeftValues[3] = " "; - dc.RightValues[3] = String.Format("{0:0.00}", periodStats.MinutesProvidedThisMonth / 60); + dc.LeftValues[3] = String.Format("{0:0.00}", periodStats.MinutesApprovedPerMonth / 60); + dc.RightValues[3] = " "; + dc.LeftValues[4] = String.Format("{0:0.00}", (periodStats.MinutesApprovedPerMonth / 60) * 0.7m); + dc.RightValues[4] = String.Format("indirekte Std. {0:0.00}", (periodStats.MinutesApprovedPerMonth / 60) * 0.3m); + + dc.LeftValues[5] = String.Format("{0:0.00}", periodStats.MinutesProvidedThisMonth / 60); + dc.RightValues[5] = " "; if (periodStats.MinutesProvidedThisMonth > 0 && periodStats.MinutesApprovedPerMonth > 0) { if (periodStats.MinutesProvidedThisMonth > periodStats.MinutesApprovedPerMonth) { - dc.RightValueColors[3] = "#FFFF0000"; + dc.LeftValueColors[3] = "#FFFF0000"; } else if (periodStats.MinutesProvidedThisMonth / periodStats.MinutesApprovedPerMonth > 0.8m) { - dc.RightValueColors[3] = "#FFFFFF00"; + dc.LeftValueColors[3] = "#FFFFFF00"; } } @@ -129,5 +226,18 @@ namespace LebenshilfeFrankfurtOder.Statistics { return null; } - } + + protected override SupportConceptPeriodStatisticsDC CreatePeriodStatisticsDC(SupportConceptCostBearerRelDC relDc, + SupportConceptApprovalPeriodDC periodDC, Calculations calc, DateTime statisticsDate) + { + var periodDc = base.CreatePeriodStatisticsDC(relDc, periodDC, calc, statisticsDate); + if (periodDC.ServiceCategory != null && periodDC.ServiceCategory.Name.ToLower().Replace(" ", "").Contains("fachleistungsstundenabw")) + { + containsAbw = true; + + } + + return periodDc; + } + } } diff --git a/ReportImp/PassgenauUG/Invoicing/CustomInvoiceFactory.cs b/ReportImp/PassgenauUG/Invoicing/CustomInvoiceFactory.cs new file mode 100644 index 000000000..e55dc5e2c --- /dev/null +++ b/ReportImp/PassgenauUG/Invoicing/CustomInvoiceFactory.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using BeWo.Data.Entities; +using BeWo.Service.Invoicing; +using BS.Shared.DataContracts; +using BS.Shared.DataContracts.Compact; + +namespace PassgenauUG.Invoicing +{ + public class CustomInvoiceFactory : InvoiceFactory + { + + public override InvoiceCreation CreateInvoiceCreator(string specificId, string tenant, Dictionary> supportConcepts2ServiceRecords) + { + + return new DefaultInvoiceCreation(); + + } + + public override SettlementInvoiceCreation CreateSettlementInvoiceCreator(string costbearerId, string tenant, + CostBearer2SupportConcept lCb2Sc) + { + return base.CreateSettlementInvoiceCreator(costbearerId, tenant, lCb2Sc); + } + } +} diff --git a/ReportImp/PassgenauUG/Invoicing/DefaultInvoiceCreation.cs b/ReportImp/PassgenauUG/Invoicing/DefaultInvoiceCreation.cs new file mode 100644 index 000000000..928b2f2b5 --- /dev/null +++ b/ReportImp/PassgenauUG/Invoicing/DefaultInvoiceCreation.cs @@ -0,0 +1,133 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.DCEntityMapper; +using BeWo.Service.Invoicing; +using BeWo.Service.Plugins; +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts; +using BS.Shared.DataContracts.Compact; +using BS.Shared.Extensions; +using BS.Shared.Services; + +namespace PassgenauUG.Invoicing +{ + public class DefaultInvoiceCreation : InvoiceCreation + { + private const decimal AMOUNTPERUNIT_EINSATZPAUSCHALE = 4.50m; + + public override void SetInvoiceId(ServiceInvoice invoice) + { + invoice.InvoiceBase.InvoiceId = "Rechnung"; + invoice.InvoiceBase.InvoiceTypeText = "Rechnung"; + } + + public override void SetInvoiceItems(ServiceInvoice invoice, ServiceInvoicePeriod serviceInvoicePeriod, + SupportConceptApprovalPeriodDC supportConceptApprovalPeriod, CostBearer2SupportConcept cb2sc, + DateTimeSpan invoicePeriod, List serviceRecords) + { + base.SetInvoiceItems(invoice, serviceInvoicePeriod, supportConceptApprovalPeriod, cb2sc, invoicePeriod, serviceRecords); + } + + public override IList CreateInvoiceItems(List serviceRecordsInPeriod, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap, Calculations calc) + { + return base.CreateInvoiceItems(serviceRecordsInPeriod, invoicePeriod, scap, calc); + + + } + + public override void CheckMaxApprovedAmount(ServiceInvoice invoice, ServiceInvoicePeriod sip, SupportConceptApprovalPeriodDC scap, CostBearer2SupportConcept costBearer2SupportConcept, DateTimeSpan invoicePeriod, List serviceRecords) + { + //do nothing + } + + public override IList CreateSummaryInvoiceItems(IList itemList, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap, + Calculations calc, bool summaryPerMonth, bool addRateFactorToUnitCount) + { + var list = base.CreateSummaryInvoiceItems(itemList, invoicePeriod, scap, calc, summaryPerMonth, addRateFactorToUnitCount); + + //var items = CreateEinsatzPauschaleItems(itemList, scap, calc); + //if (items != null && items.Count > 0) + // list.AddRange(items); + return list; + } + + + public override InvoiceItem CreateInvoiceItem(ServiceRecordDC iServiceRecord, SupportConceptApprovalPeriod scap, Calculations calc) + { + var ii = base.CreateInvoiceItem(iServiceRecord, scap, calc); + + if (ii.ItemDescription.Contains("Schulassistenz")) + { + ii.UnitDescription = "Zeitstunden"; + } + else + { + var cat = iServiceRecord.ServiceDescription.CategoryName.ToLower(); + + if (cat == "ambulant betreutes wohnen") + { + ii.UnitDescription = "Fachleistungsstunden"; + } + else + { + ii.UnitDescription = iServiceRecord.ServiceDescription.CategoryName; + + } + } + + + return ii; + } + + public virtual IList CreateEinsatzPauschaleItems(IList itemList, SupportConceptApprovalPeriod scap, Calculations calc) + { + //Dictionary differentDays = new Dictionary(); + IList items = new List(); + + + int countHausbesuch = 0; + + foreach (var ii in itemList) + { + if (ii.ServiceRecord != null) + { + var cat = ii.ServiceRecord.ServiceDescription.ServiceCategory.Name.ToLower(); + + if (cat == "ambulant betreutes wohnen") + { + countHausbesuch++; + } + } + } + + if (countHausbesuch > 0) + { + var invoiceItem = new InvoiceItem(); + + //decimal anzahlHausbesuche = differentDays.Count; + decimal anzahlHausbesuche = countHausbesuch; + + + invoiceItem.AmountPerUnit = AMOUNTPERUNIT_EINSATZPAUSCHALE; + invoiceItem.UnitCount = anzahlHausbesuche; + invoiceItem.AmountTotal = anzahlHausbesuche * AMOUNTPERUNIT_EINSATZPAUSCHALE; + invoiceItem.ItemPeriodStart = scap.StartDate; + invoiceItem.ItemPeriodEnd = scap.EndDate; + invoiceItem.RateFactor = null; + invoiceItem.GrossAmountTotal = invoiceItem.AmountTotal; + invoiceItem.ItemDescription = "Einsatzpauschale"; + invoiceItem.UnitDescription = "Einsatzpauschale"; + if (scap != null) + invoiceItem.SupportConceptApprovalPeriodOid = scap.Oid; + + items.Add(invoiceItem); + } + + return items; + } + } +} diff --git a/ReportImp/PassgenauUG/PassgenauUG.csproj b/ReportImp/PassgenauUG/PassgenauUG.csproj index 26a289242..4e9058197 100644 --- a/ReportImp/PassgenauUG/PassgenauUG.csproj +++ b/ReportImp/PassgenauUG/PassgenauUG.csproj @@ -48,6 +48,8 @@ + + Component @@ -55,6 +57,7 @@ ServiceInvoiceReport.cs + diff --git a/ReportImp/PassgenauUG/Service/CustomHomeContentGenerator.cs b/ReportImp/PassgenauUG/Service/CustomHomeContentGenerator.cs new file mode 100644 index 000000000..04de68e01 --- /dev/null +++ b/ReportImp/PassgenauUG/Service/CustomHomeContentGenerator.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.DCEntityMapper; +using BeWo.Service.Plugins; +using BS.Shared.DataContracts; +using BS.Shared.DataContracts.Compact; + +namespace PassgenauUG.Service +{ + class CustomHomeContentGenerator : HomeContentGenerator + { + public override List GetExpiringSupportConcepts(long? employeeOid, DateTime expiredUntil) + { + return base.GetExpiringSupportConcepts(null, expiredUntil); + } + } +} diff --git a/ReportImp/PassgenauUG/ServiceInvoiceReport.Designer.cs b/ReportImp/PassgenauUG/ServiceInvoiceReport.Designer.cs index c3cdca19c..0702b7079 100644 --- a/ReportImp/PassgenauUG/ServiceInvoiceReport.Designer.cs +++ b/ReportImp/PassgenauUG/ServiceInvoiceReport.Designer.cs @@ -30,6 +30,7 @@ namespace PassgenauUG { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ServiceInvoiceReport)); + DevExpress.XtraReports.UI.XRSummary xrSummary1 = new DevExpress.XtraReports.UI.XRSummary(); this.Detail = new DevExpress.XtraReports.UI.DetailBand(); this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand(); this.ruleRateFactorNull = new DevExpress.XtraReports.UI.FormattingRule(); @@ -38,15 +39,15 @@ namespace PassgenauUG this.xrLabel11 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel10 = new DevExpress.XtraReports.UI.XRLabel(); this.Page1 = new DevExpress.XtraReports.UI.GroupHeaderBand(); + this.lblAbrechnungszeitraum = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel12 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLine1 = new DevExpress.XtraReports.UI.XRLine(); this.xrPictureBox1 = new DevExpress.XtraReports.UI.XRPictureBox(); this.xrRichText2 = new DevExpress.XtraReports.UI.XRRichText(); this.xrRichText1 = new DevExpress.XtraReports.UI.XRRichText(); - this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel(); - this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); + this.lblAdresse = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel(); - this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel(); this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand(); this.Detail1 = new DevExpress.XtraReports.UI.DetailBand(); @@ -67,17 +68,37 @@ namespace PassgenauUG this.xrTableCell44 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell45 = new DevExpress.XtraReports.UI.XRTableCell(); this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand(); + this.xrTable1 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell7 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell9 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrLabel9 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel6 = new DevExpress.XtraReports.UI.XRLabel(); this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); - this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel(); - this.lblAbrechnungszeitraum = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel(); this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel(); + this.lblMitarbeiter = new DevExpress.XtraReports.UI.XRLabel(); + this.lblKlient = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel16 = new DevExpress.XtraReports.UI.XRLabel(); ((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // @@ -103,7 +124,7 @@ namespace PassgenauUG // // topMarginBand1 // - this.topMarginBand1.HeightF = 42.11363F; + this.topMarginBand1.HeightF = 42F; this.topMarginBand1.Name = "topMarginBand1"; // // bottomMarginBand1 @@ -111,7 +132,7 @@ namespace PassgenauUG this.bottomMarginBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { this.xrLabel11, this.xrLabel10}); - this.bottomMarginBand1.HeightF = 70F; + this.bottomMarginBand1.HeightF = 80F; this.bottomMarginBand1.Name = "bottomMarginBand1"; // // xrLabel11 @@ -143,7 +164,16 @@ namespace PassgenauUG // Page1 // this.Page1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel13, + this.xrLabel1, + this.xrLabel4, this.xrLabel2, + this.xrLabel3, + this.xrLabel7, + this.xrLabel15, + this.lblMitarbeiter, + this.lblKlient, + this.xrLabel16, this.lblAbrechnungszeitraum, this.xrLabel8, this.xrLabel12, @@ -151,31 +181,54 @@ namespace PassgenauUG this.xrPictureBox1, this.xrRichText2, this.xrRichText1, - this.xrLabel7, - this.xrLabel3, + this.lblAdresse, this.xrLabel5}); - this.Page1.Font = new System.Drawing.Font("Verdana", 10F); - this.Page1.HeightF = 636.5012F; + this.Page1.Font = new System.Drawing.Font("Calibri", 11.25F); + this.Page1.HeightF = 646.514F; this.Page1.Name = "Page1"; this.Page1.StylePriority.UseFont = false; // + // lblAbrechnungszeitraum + // + this.lblAbrechnungszeitraum.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblAbrechnungszeitraum.LocationFloat = new DevExpress.Utils.PointFloat(0F, 595.0609F); + this.lblAbrechnungszeitraum.Multiline = true; + this.lblAbrechnungszeitraum.Name = "lblAbrechnungszeitraum"; + this.lblAbrechnungszeitraum.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblAbrechnungszeitraum.SizeF = new System.Drawing.SizeF(676.8331F, 51.45306F); + this.lblAbrechnungszeitraum.StylePriority.UseFont = false; + this.lblAbrechnungszeitraum.Text = "lblAbrechnungszeitraum (im Code)"; + // + // xrLabel8 + // + this.xrLabel8.Font = new System.Drawing.Font("Calibri", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(483.1568F, 414.3194F); + this.xrLabel8.Name = "xrLabel8"; + this.xrLabel8.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrLabel8.SizeF = new System.Drawing.SizeF(194.8334F, 17F); + this.xrLabel8.StylePriority.UseFont = false; + this.xrLabel8.StylePriority.UsePadding = false; + this.xrLabel8.StylePriority.UseTextAlignment = false; + this.xrLabel8.Text = "Hildesheim, [InvoiceDate]"; + this.xrLabel8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // // xrLabel12 // this.xrLabel12.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.xrLabel12.LocationFloat = new DevExpress.Utils.PointFloat(0F, 206.875F); + this.xrLabel12.LocationFloat = new DevExpress.Utils.PointFloat(0F, 181.1806F); this.xrLabel12.Multiline = true; this.xrLabel12.Name = "xrLabel12"; - this.xrLabel12.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrLabel12.SizeF = new System.Drawing.SizeF(317F, 22.95831F); + this.xrLabel12.SizeF = new System.Drawing.SizeF(385.4167F, 50.04163F); this.xrLabel12.StylePriority.UseFont = false; - this.xrLabel12.Text = "[RecipientPostCodeAndTown]\r\n"; + this.xrLabel12.StylePriority.UsePadding = false; + this.xrLabel12.Text = "[RecipientPostCodeAndTown]"; // // xrLine1 // this.xrLine1.LineDirection = DevExpress.XtraReports.UI.LineDirection.Vertical; - this.xrLine1.LocationFloat = new DevExpress.Utils.PointFloat(450.5414F, 0F); + this.xrLine1.LocationFloat = new DevExpress.Utils.PointFloat(461.6985F, 0F); this.xrLine1.Name = "xrLine1"; - this.xrLine1.SizeF = new System.Drawing.SizeF(21.45834F, 431.3194F); + this.xrLine1.SizeF = new System.Drawing.SizeF(21.45834F, 443.8194F); // // xrPictureBox1 // @@ -201,70 +254,43 @@ namespace PassgenauUG // this.xrRichText1.BorderColor = System.Drawing.Color.Black; this.xrRichText1.Font = new System.Drawing.Font("Calibri", 8F); - this.xrRichText1.LocationFloat = new DevExpress.Utils.PointFloat(471.9997F, 93.84851F); + this.xrRichText1.LocationFloat = new DevExpress.Utils.PointFloat(483.1568F, 93.8485F); this.xrRichText1.Name = "xrRichText1"; this.xrRichText1.SerializableRtfString = resources.GetString("xrRichText1.SerializableRtfString"); - this.xrRichText1.SizeF = new System.Drawing.SizeF(204.8334F, 269.1516F); + this.xrRichText1.SizeF = new System.Drawing.SizeF(204.8334F, 307.346F); this.xrRichText1.StylePriority.UseBorderColor = false; this.xrRichText1.StylePriority.UseFont = false; // - // xrLabel7 + // lblAdresse // - this.xrLabel7.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(0F, 138.0833F); - this.xrLabel7.Multiline = true; - this.xrLabel7.Name = "xrLabel7"; - this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrLabel7.SizeF = new System.Drawing.SizeF(317F, 68.79167F); - this.xrLabel7.StylePriority.UseFont = false; - this.xrLabel7.Text = "[RecipientOrganisation]\r\n[RecipientContactPerson]\r\n[RecipientDivision]\r\n[Recipien" + - "tStreet]\r\n"; - // - // xrLabel3 - // - this.xrLabel3.BackColor = System.Drawing.Color.Transparent; - this.xrLabel3.CanShrink = true; - this.xrLabel3.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 456.8875F); - this.xrLabel3.Name = "xrLabel3"; - this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrLabel3.SizeF = new System.Drawing.SizeF(676.8331F, 20F); - this.xrLabel3.StylePriority.UseBackColor = false; - this.xrLabel3.StylePriority.UseFont = false; - this.xrLabel3.Text = "Rechnung 2020 11 024 ABW für Leistungen in der Eingliederungshilfe AZ 610116359"; - this.xrLabel3.WordWrap = false; + this.lblAdresse.CanShrink = true; + this.lblAdresse.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblAdresse.LocationFloat = new DevExpress.Utils.PointFloat(0F, 138.0833F); + this.lblAdresse.Multiline = true; + this.lblAdresse.Name = "lblAdresse"; + this.lblAdresse.SizeF = new System.Drawing.SizeF(364.9167F, 43.09726F); + this.lblAdresse.StylePriority.UseFont = false; + this.lblAdresse.StylePriority.UsePadding = false; // // xrLabel5 // this.xrLabel5.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(0F, 551.3194F); + this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(0F, 567.2275F); this.xrLabel5.Name = "xrLabel5"; this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel5.SizeF = new System.Drawing.SizeF(317F, 17F); this.xrLabel5.StylePriority.UseFont = false; this.xrLabel5.Text = "Sehr geehrte Damen und Herren,"; // - // xrLabel15 - // - this.xrLabel15.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(6.622738E-05F, 133.6806F); - this.xrLabel15.Name = "xrLabel15"; - this.xrLabel15.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrLabel15.SizeF = new System.Drawing.SizeF(175F, 17F); - this.xrLabel15.StylePriority.UseFont = false; - this.xrLabel15.Text = "Mit freundlichen Grüßen"; - // // xrLabel14 // - this.xrLabel14.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { - new DevExpress.XtraReports.UI.XRBinding("Text", null, "CreatorName")}); this.xrLabel14.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(6.622738E-05F, 162.6735F); + this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(0F, 193.8888F); this.xrLabel14.Name = "xrLabel14"; this.xrLabel14.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel14.SizeF = new System.Drawing.SizeF(225F, 17F); this.xrLabel14.StylePriority.UseFont = false; - this.xrLabel14.Text = "[CreatorName]"; + this.xrLabel14.Text = "Kerstin Kunz"; // // DetailReport // @@ -304,8 +330,6 @@ namespace PassgenauUG // // xrTableCell32 // - this.xrTableCell32.BackColor = System.Drawing.Color.Gainsboro; - this.xrTableCell32.BorderColor = System.Drawing.Color.DarkGray; this.xrTableCell32.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) | DevExpress.XtraPrinting.BorderSide.Right) | DevExpress.XtraPrinting.BorderSide.Bottom))); @@ -320,12 +344,10 @@ namespace PassgenauUG this.xrTableCell32.StylePriority.UseTextAlignment = false; this.xrTableCell32.Text = "Pos."; this.xrTableCell32.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - this.xrTableCell32.Weight = 0.49680438831176488D; + this.xrTableCell32.Weight = 0.3545051430781711D; // // xrTableCell37 // - this.xrTableCell37.BackColor = System.Drawing.Color.Gainsboro; - this.xrTableCell37.BorderColor = System.Drawing.Color.DarkGray; this.xrTableCell37.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) | DevExpress.XtraPrinting.BorderSide.Right) | DevExpress.XtraPrinting.BorderSide.Bottom))); @@ -340,12 +362,10 @@ namespace PassgenauUG this.xrTableCell37.StylePriority.UseTextAlignment = false; this.xrTableCell37.Text = "Menge"; this.xrTableCell37.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - this.xrTableCell37.Weight = 0.50024181553806313D; + this.xrTableCell37.Weight = 0.35450515070701522D; // // xrTableCell35 // - this.xrTableCell35.BackColor = System.Drawing.Color.Gainsboro; - this.xrTableCell35.BorderColor = System.Drawing.Color.DarkGray; this.xrTableCell35.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) | DevExpress.XtraPrinting.BorderSide.Right) | DevExpress.XtraPrinting.BorderSide.Bottom))); @@ -360,12 +380,10 @@ namespace PassgenauUG this.xrTableCell35.StylePriority.UseTextAlignment = false; this.xrTableCell35.Text = "Beschreibung"; this.xrTableCell35.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - this.xrTableCell35.Weight = 0.83734769581331314D; + this.xrTableCell35.Weight = 1.1253836058779547D; // // xrTableCell33 // - this.xrTableCell33.BackColor = System.Drawing.Color.Gainsboro; - this.xrTableCell33.BorderColor = System.Drawing.Color.DarkGray; this.xrTableCell33.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) | DevExpress.XtraPrinting.BorderSide.Right) | DevExpress.XtraPrinting.BorderSide.Bottom))); @@ -384,8 +402,6 @@ namespace PassgenauUG // // xrTableCell36 // - this.xrTableCell36.BackColor = System.Drawing.Color.Gainsboro; - this.xrTableCell36.BorderColor = System.Drawing.Color.DarkGray; this.xrTableCell36.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) | DevExpress.XtraPrinting.BorderSide.Right) | DevExpress.XtraPrinting.BorderSide.Bottom))); @@ -443,23 +459,29 @@ namespace PassgenauUG // // xrTableCell40 // - this.xrTableCell40.BorderColor = System.Drawing.Color.DarkGray; this.xrTableCell40.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell40.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.UnitDescription")}); this.xrTableCell40.Name = "xrTableCell40"; this.xrTableCell40.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); this.xrTableCell40.StylePriority.UseBorderColor = false; this.xrTableCell40.StylePriority.UseBorders = false; this.xrTableCell40.StylePriority.UsePadding = false; this.xrTableCell40.StylePriority.UseTextAlignment = false; + xrSummary1.FormatString = "{0:0}"; + xrSummary1.Func = DevExpress.XtraReports.UI.SummaryFunc.RecordNumber; + xrSummary1.Running = DevExpress.XtraReports.UI.SummaryRunning.Report; + this.xrTableCell40.Summary = xrSummary1; this.xrTableCell40.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - this.xrTableCell40.Weight = 0.49680428688701506D; + this.xrTableCell40.Weight = 0.3545051704703151D; // // xrTableCell42 // - this.xrTableCell42.BorderColor = System.Drawing.Color.DarkGray; this.xrTableCell42.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell42.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.UnitCount", "{0:0.00}")}); this.xrTableCell42.Name = "xrTableCell42"; this.xrTableCell42.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); this.xrTableCell42.StylePriority.UseBorderColor = false; @@ -467,13 +489,14 @@ namespace PassgenauUG this.xrTableCell42.StylePriority.UsePadding = false; this.xrTableCell42.StylePriority.UseTextAlignment = false; this.xrTableCell42.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - this.xrTableCell42.Weight = 0.500241781729817D; + this.xrTableCell42.Weight = 0.35450517794417913D; // // xrTableCell43 // - this.xrTableCell43.BorderColor = System.Drawing.Color.DarkGray; this.xrTableCell43.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell43.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.UnitDescription")}); this.xrTableCell43.Name = "xrTableCell43"; this.xrTableCell43.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); this.xrTableCell43.StylePriority.UseBorderColor = false; @@ -481,125 +504,371 @@ namespace PassgenauUG this.xrTableCell43.StylePriority.UsePadding = false; this.xrTableCell43.StylePriority.UseTextAlignment = false; this.xrTableCell43.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - this.xrTableCell43.Weight = 0.83734775772647463D; + this.xrTableCell43.Weight = 1.1253834779288126D; // // xrTableCell44 // - this.xrTableCell44.BorderColor = System.Drawing.Color.DarkGray; this.xrTableCell44.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell44.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.HourlyRate", "{0:c}")}); this.xrTableCell44.Name = "xrTableCell44"; this.xrTableCell44.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); this.xrTableCell44.StylePriority.UseBorderColor = false; this.xrTableCell44.StylePriority.UseBorders = false; this.xrTableCell44.StylePriority.UsePadding = false; this.xrTableCell44.StylePriority.UseTextAlignment = false; - this.xrTableCell44.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell44.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; this.xrTableCell44.Weight = 0.59602559850337444D; // // xrTableCell45 // - this.xrTableCell45.BorderColor = System.Drawing.Color.DarkGray; this.xrTableCell45.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell45.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.NetAmount", "{0:c}")}); this.xrTableCell45.Name = "xrTableCell45"; this.xrTableCell45.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); this.xrTableCell45.StylePriority.UseBorderColor = false; this.xrTableCell45.StylePriority.UseBorders = false; this.xrTableCell45.StylePriority.UsePadding = false; this.xrTableCell45.StylePriority.UseTextAlignment = false; - this.xrTableCell45.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell45.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; this.xrTableCell45.Weight = 0.56884111303428631D; // // GroupFooter1 // this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { - this.xrLabel1, + this.xrTable1, this.xrLabel9, this.xrLabel6, - this.xrLabel14, - this.xrLabel15}); - this.GroupFooter1.HeightF = 220.8888F; + this.xrLabel14}); + this.GroupFooter1.HeightF = 233.8888F; this.GroupFooter1.Name = "GroupFooter1"; // + // xrTable1 + // + this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable1.Name = "xrTable1"; + this.xrTable1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow1, + this.xrTableRow2}); + this.xrTable1.SizeF = new System.Drawing.SizeF(676.8333F, 50F); + // + // xrTableRow1 + // + this.xrTableRow1.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell1, + this.xrTableCell2, + this.xrTableCell3, + this.xrTableCell4, + this.xrTableCell5}); + this.xrTableRow1.Name = "xrTableRow1"; + this.xrTableRow1.Weight = 1D; + // + // xrTableCell1 + // + this.xrTableCell1.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell1.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell1.Name = "xrTableCell1"; + this.xrTableCell1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell1.StylePriority.UseBackColor = false; + this.xrTableCell1.StylePriority.UseBorderColor = false; + this.xrTableCell1.StylePriority.UseBorders = false; + this.xrTableCell1.StylePriority.UseFont = false; + this.xrTableCell1.StylePriority.UsePadding = false; + this.xrTableCell1.StylePriority.UseTextAlignment = false; + this.xrTableCell1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell1.Weight = 0.3545051430781711D; + // + // xrTableCell2 + // + this.xrTableCell2.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell2.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell2.Name = "xrTableCell2"; + this.xrTableCell2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell2.StylePriority.UseBackColor = false; + this.xrTableCell2.StylePriority.UseBorderColor = false; + this.xrTableCell2.StylePriority.UseBorders = false; + this.xrTableCell2.StylePriority.UseFont = false; + this.xrTableCell2.StylePriority.UsePadding = false; + this.xrTableCell2.StylePriority.UseTextAlignment = false; + this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell2.Weight = 0.35450515070701522D; + // + // xrTableCell3 + // + this.xrTableCell3.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell3.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell3.Name = "xrTableCell3"; + this.xrTableCell3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell3.StylePriority.UseBackColor = false; + this.xrTableCell3.StylePriority.UseBorderColor = false; + this.xrTableCell3.StylePriority.UseBorders = false; + this.xrTableCell3.StylePriority.UseFont = false; + this.xrTableCell3.StylePriority.UsePadding = false; + this.xrTableCell3.StylePriority.UseTextAlignment = false; + this.xrTableCell3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell3.Weight = 1.1253836058779547D; + // + // xrTableCell4 + // + this.xrTableCell4.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell4.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell4.Name = "xrTableCell4"; + this.xrTableCell4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell4.StylePriority.UseBackColor = false; + this.xrTableCell4.StylePriority.UseBorderColor = false; + this.xrTableCell4.StylePriority.UseBorders = false; + this.xrTableCell4.StylePriority.UseFont = false; + this.xrTableCell4.StylePriority.UsePadding = false; + this.xrTableCell4.StylePriority.UseTextAlignment = false; + this.xrTableCell4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell4.Weight = 0.59602567994850508D; + // + // xrTableCell5 + // + this.xrTableCell5.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell5.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell5.Name = "xrTableCell5"; + this.xrTableCell5.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell5.StylePriority.UseBackColor = false; + this.xrTableCell5.StylePriority.UseBorderColor = false; + this.xrTableCell5.StylePriority.UseBorders = false; + this.xrTableCell5.StylePriority.UseFont = false; + this.xrTableCell5.StylePriority.UsePadding = false; + this.xrTableCell5.StylePriority.UseTextAlignment = false; + this.xrTableCell5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell5.Weight = 0.568841634434301D; + // + // xrTableRow2 + // + this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell6, + this.xrTableCell7, + this.xrTableCell8, + this.xrTableCell9, + this.xrTableCell10}); + this.xrTableRow2.Name = "xrTableRow2"; + this.xrTableRow2.Weight = 1D; + // + // xrTableCell6 + // + this.xrTableCell6.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell6.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell6.Name = "xrTableCell6"; + this.xrTableCell6.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell6.StylePriority.UseBorders = false; + this.xrTableCell6.StylePriority.UseFont = false; + this.xrTableCell6.StylePriority.UsePadding = false; + this.xrTableCell6.StylePriority.UseTextAlignment = false; + this.xrTableCell6.Text = "Gesamt:"; + this.xrTableCell6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell6.Weight = 0.3545051430781711D; + // + // xrTableCell7 + // + this.xrTableCell7.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell7.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell7.Name = "xrTableCell7"; + this.xrTableCell7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell7.StylePriority.UseBorders = false; + this.xrTableCell7.StylePriority.UseFont = false; + this.xrTableCell7.StylePriority.UsePadding = false; + this.xrTableCell7.StylePriority.UseTextAlignment = false; + this.xrTableCell7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell7.Weight = 0.35450515070701522D; + // + // xrTableCell8 + // + this.xrTableCell8.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell8.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell8.Name = "xrTableCell8"; + this.xrTableCell8.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell8.StylePriority.UseBorders = false; + this.xrTableCell8.StylePriority.UseFont = false; + this.xrTableCell8.StylePriority.UsePadding = false; + this.xrTableCell8.StylePriority.UseTextAlignment = false; + this.xrTableCell8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell8.Weight = 1.1253836058779547D; + // + // xrTableCell9 + // + this.xrTableCell9.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell9.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell9.Name = "xrTableCell9"; + this.xrTableCell9.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell9.StylePriority.UseBorders = false; + this.xrTableCell9.StylePriority.UseFont = false; + this.xrTableCell9.StylePriority.UsePadding = false; + this.xrTableCell9.StylePriority.UseTextAlignment = false; + this.xrTableCell9.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell9.Weight = 0.59602567994850508D; + // + // xrTableCell10 + // + this.xrTableCell10.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell10.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "GrossClaim")}); + this.xrTableCell10.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell10.Name = "xrTableCell10"; + this.xrTableCell10.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); + this.xrTableCell10.StylePriority.UseBorders = false; + this.xrTableCell10.StylePriority.UseFont = false; + this.xrTableCell10.StylePriority.UsePadding = false; + this.xrTableCell10.StylePriority.UseTextAlignment = false; + this.xrTableCell10.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell10.Weight = 0.568841634434301D; + // // xrLabel9 // - this.xrLabel9.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { - new DevExpress.XtraReports.UI.XRBinding("Text", null, "CreatorDivision")}); this.xrLabel9.Font = new System.Drawing.Font("Calibri", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(0F, 184.868F); + this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(0F, 210.8888F); this.xrLabel9.Name = "xrLabel9"; this.xrLabel9.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); this.xrLabel9.SizeF = new System.Drawing.SizeF(225.0001F, 23F); this.xrLabel9.StylePriority.UseFont = false; - this.xrLabel9.Text = "xrLabel9"; + this.xrLabel9.Text = "Geschäftsführung"; // // xrLabel6 // this.xrLabel6.Font = new System.Drawing.Font("Calibri", 11F); - this.xrLabel6.LocationFloat = new DevExpress.Utils.PointFloat(6.622738E-05F, 53.12495F); + this.xrLabel6.LocationFloat = new DevExpress.Utils.PointFloat(0F, 70.83334F); this.xrLabel6.Multiline = true; this.xrLabel6.Name = "xrLabel6"; this.xrLabel6.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrLabel6.SizeF = new System.Drawing.SizeF(676.8331F, 64.74304F); + this.xrLabel6.SizeF = new System.Drawing.SizeF(676.8331F, 107.1041F); this.xrLabel6.StylePriority.UseFont = false; - this.xrLabel6.Text = "Die Zusammensetzung der Stundenanzahlen entnehmen Sie bitte den beigefügten\r\nLeis" + - "tungsnachweisen.\r\nBitte überweisen Sie den genannten Betrag auf das unten angege" + - "bene Konto.\r\n"; + this.xrLabel6.Text = "Die Zusammensetzung der Stundenanzahlen entnehmen Sie bitte den beigefügten Leist" + + "ungsnachweisen.\r\n\r\nBitte überweisen Sie den genannten Betrag auf das unten angeg" + + "ebene Konto.\r\n\r\nFreundlichen Grüße"; // // bindingSource1 // this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServiceInvoiceRO); // - // xrLabel8 + // xrLabel13 // - this.xrLabel8.Font = new System.Drawing.Font("Calibri", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(472.1666F, 373.5068F); - this.xrLabel8.Name = "xrLabel8"; - this.xrLabel8.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); - this.xrLabel8.SizeF = new System.Drawing.SizeF(194.8334F, 17F); - this.xrLabel8.StylePriority.UseFont = false; - this.xrLabel8.StylePriority.UsePadding = false; - this.xrLabel8.StylePriority.UseTextAlignment = false; - this.xrLabel8.Text = "Hildesheim, [InvoiceDate]"; - this.xrLabel8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; - // - // lblAbrechnungszeitraum - // - this.lblAbrechnungszeitraum.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblAbrechnungszeitraum.LocationFloat = new DevExpress.Utils.PointFloat(6.811959E-05F, 585.0482F); - this.lblAbrechnungszeitraum.Multiline = true; - this.lblAbrechnungszeitraum.Name = "lblAbrechnungszeitraum"; - this.lblAbrechnungszeitraum.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.lblAbrechnungszeitraum.SizeF = new System.Drawing.SizeF(676.8331F, 51.45306F); - this.lblAbrechnungszeitraum.StylePriority.UseFont = false; - this.lblAbrechnungszeitraum.Text = "lblAbrechnungszeitraum (im Code)"; + this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(6.357829E-05F, 526.3125F); + this.xrLabel13.Name = "xrLabel13"; + this.xrLabel13.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel13.SizeF = new System.Drawing.SizeF(160.0004F, 20F); + this.xrLabel13.StylePriority.UseBorders = false; + this.xrLabel13.StylePriority.UseTextAlignment = false; + this.xrLabel13.Text = "Aktenzeichen:"; + this.xrLabel13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft; // // xrLabel1 // this.xrLabel1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { - new DevExpress.XtraReports.UI.XRBinding("Text", null, "GrossClaim", "Gesamtsumme: {0}")}); - this.xrLabel1.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold); - this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(421.1667F, 0F); + new DevExpress.XtraReports.UI.XRBinding("Text", null, "CustomerReferenceNumber")}); + this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(160.0005F, 526.3125F); this.xrLabel1.Name = "xrLabel1"; - this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 5, 0, 0, 100F); - this.xrLabel1.SizeF = new System.Drawing.SizeF(255.8333F, 25F); - this.xrLabel1.StylePriority.UseFont = false; - this.xrLabel1.StylePriority.UsePadding = false; + this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel1.SizeF = new System.Drawing.SizeF(281.25F, 20F); + this.xrLabel1.StylePriority.UseBorders = false; this.xrLabel1.StylePriority.UseTextAlignment = false; - this.xrLabel1.Text = "xrLabel1"; - this.xrLabel1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrLabel1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft; + // + // xrLabel4 + // + this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(6.357829E-05F, 506.3126F); + this.xrLabel4.Name = "xrLabel4"; + this.xrLabel4.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel4.SizeF = new System.Drawing.SizeF(160.0004F, 20F); + this.xrLabel4.StylePriority.UseBorders = false; + this.xrLabel4.StylePriority.UseTextAlignment = false; + this.xrLabel4.Text = "Wohnhaft:"; + this.xrLabel4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft; // // xrLabel2 // - this.xrLabel2.Font = new System.Drawing.Font("Calibri", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(5.779844E-05F, 476.8875F); + this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(160.0005F, 506.3126F); this.xrLabel2.Name = "xrLabel2"; this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); - this.xrLabel2.SizeF = new System.Drawing.SizeF(676.8331F, 17F); - this.xrLabel2.StylePriority.UseFont = false; - this.xrLabel2.Text = "[CustomerLastName], [CustomerFirstName], [CustomerPostalCode] [CustomerTown], [Cu" + - "stomerStreet]"; + this.xrLabel2.SizeF = new System.Drawing.SizeF(470.54F, 20F); + this.xrLabel2.StylePriority.UseBorders = false; + this.xrLabel2.StylePriority.UseTextAlignment = false; + this.xrLabel2.Text = "[CustomerStreet], [CustomerPostalCode] [CustomerTown]"; + this.xrLabel2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft; + // + // xrLabel3 + // + this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(6.357829E-05F, 486.3125F); + this.xrLabel3.Name = "xrLabel3"; + this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel3.SizeF = new System.Drawing.SizeF(160.0004F, 20F); + this.xrLabel3.StylePriority.UseBorders = false; + this.xrLabel3.StylePriority.UseTextAlignment = false; + this.xrLabel3.Text = "Betreute(r):"; + this.xrLabel3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft; + // + // xrLabel7 + // + this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(160.0005F, 486.3125F); + this.xrLabel7.Name = "xrLabel7"; + this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel7.SizeF = new System.Drawing.SizeF(470.54F, 20F); + this.xrLabel7.StylePriority.UseBorders = false; + this.xrLabel7.StylePriority.UseTextAlignment = false; + this.xrLabel7.Text = "[CustomerLastName], [CustomerFirstName], geb. [CustomerBirthdate!dd.MM.yyyy]"; + this.xrLabel7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft; + // + // xrLabel15 + // + this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(6.357829E-05F, 446.3125F); + this.xrLabel15.Name = "xrLabel15"; + this.xrLabel15.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel15.SizeF = new System.Drawing.SizeF(159.9999F, 20F); + this.xrLabel15.StylePriority.UseBorders = false; + this.xrLabel15.StylePriority.UseTextAlignment = false; + this.xrLabel15.Text = "Rechnungsnummer:"; + this.xrLabel15.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft; + // + // lblMitarbeiter + // + this.lblMitarbeiter.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "InvoiceNumber")}); + this.lblMitarbeiter.LocationFloat = new DevExpress.Utils.PointFloat(160F, 446.3125F); + this.lblMitarbeiter.Name = "lblMitarbeiter"; + this.lblMitarbeiter.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblMitarbeiter.SizeF = new System.Drawing.SizeF(281.25F, 20F); + this.lblMitarbeiter.StylePriority.UseBorders = false; + this.lblMitarbeiter.StylePriority.UseTextAlignment = false; + this.lblMitarbeiter.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft; + // + // lblKlient + // + this.lblKlient.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "AccountingPeriodStart", "{0:MMMM yyyy}")}); + this.lblKlient.LocationFloat = new DevExpress.Utils.PointFloat(160F, 466.3125F); + this.lblKlient.Name = "lblKlient"; + this.lblKlient.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblKlient.SizeF = new System.Drawing.SizeF(281.25F, 20F); + this.lblKlient.StylePriority.UseBorders = false; + this.lblKlient.StylePriority.UseTextAlignment = false; + this.lblKlient.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft; + // + // xrLabel16 + // + this.xrLabel16.LocationFloat = new DevExpress.Utils.PointFloat(6.357829E-05F, 466.3125F); + this.xrLabel16.Name = "xrLabel16"; + this.xrLabel16.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel16.SizeF = new System.Drawing.SizeF(159.9999F, 20F); + this.xrLabel16.StylePriority.UseBorders = false; + this.xrLabel16.StylePriority.UseTextAlignment = false; + this.xrLabel16.Text = "Abrechnungszeitraum:"; + this.xrLabel16.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomLeft; // // ServiceInvoiceReport // @@ -615,7 +884,7 @@ namespace PassgenauUG this.Font = new System.Drawing.Font("Verdana", 10F); this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] { this.ruleRateFactorNull}); - this.Margins = new System.Drawing.Printing.Margins(75, 75, 42, 70); + this.Margins = new System.Drawing.Printing.Margins(75, 40, 42, 80); this.PageHeight = 1169; this.PageWidth = 827; this.PaperKind = System.Drawing.Printing.PaperKind.A4; @@ -624,6 +893,7 @@ namespace PassgenauUG ((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.xrTable6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); @@ -637,9 +907,7 @@ namespace PassgenauUG private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1; private DevExpress.XtraReports.UI.BottomMarginBand bottomMarginBand1; private DevExpress.XtraReports.UI.GroupHeaderBand Page1; - private DevExpress.XtraReports.UI.XRLabel xrLabel3; private DevExpress.XtraReports.UI.XRLabel xrLabel5; - private DevExpress.XtraReports.UI.XRLabel xrLabel15; private DevExpress.XtraReports.UI.XRLabel xrLabel14; private DevExpress.XtraReports.UI.DetailReportBand DetailReport; private DevExpress.XtraReports.UI.DetailBand Detail1; @@ -659,7 +927,7 @@ namespace PassgenauUG private DevExpress.XtraReports.UI.XRTableCell xrTableCell43; private DevExpress.XtraReports.UI.XRTableCell xrTableCell44; private DevExpress.XtraReports.UI.XRTableCell xrTableCell45; - private DevExpress.XtraReports.UI.XRLabel xrLabel7; + private DevExpress.XtraReports.UI.XRLabel lblAdresse; private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter1; private DevExpress.XtraReports.UI.XRRichText xrRichText2; private DevExpress.XtraReports.UI.XRRichText xrRichText1; @@ -672,7 +940,28 @@ namespace PassgenauUG private DevExpress.XtraReports.UI.XRLabel xrLabel12; private DevExpress.XtraReports.UI.XRLabel xrLabel8; private DevExpress.XtraReports.UI.XRLabel lblAbrechnungszeitraum; + private DevExpress.XtraReports.UI.XRTable xrTable1; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell3; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell4; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell5; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell6; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell7; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell8; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell9; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell10; + private DevExpress.XtraReports.UI.XRLabel xrLabel13; private DevExpress.XtraReports.UI.XRLabel xrLabel1; + private DevExpress.XtraReports.UI.XRLabel xrLabel4; private DevExpress.XtraReports.UI.XRLabel xrLabel2; + private DevExpress.XtraReports.UI.XRLabel xrLabel3; + private DevExpress.XtraReports.UI.XRLabel xrLabel7; + private DevExpress.XtraReports.UI.XRLabel xrLabel15; + private DevExpress.XtraReports.UI.XRLabel lblMitarbeiter; + private DevExpress.XtraReports.UI.XRLabel lblKlient; + private DevExpress.XtraReports.UI.XRLabel xrLabel16; } } diff --git a/ReportImp/PassgenauUG/ServiceInvoiceReport.cs b/ReportImp/PassgenauUG/ServiceInvoiceReport.cs index d31eb89d9..5b2084195 100644 --- a/ReportImp/PassgenauUG/ServiceInvoiceReport.cs +++ b/ReportImp/PassgenauUG/ServiceInvoiceReport.cs @@ -1,4 +1,5 @@ using System; +using System.Text; using BeWo.Report; using BeWo.Report.ReportObjects; @@ -15,7 +16,46 @@ namespace PassgenauUG public void SetReportDataSource(ServiceInvoiceRO pRO) { - DateTime start = pRO.AccountingPeriodStart; + StringBuilder sb = new StringBuilder(); + if (!String.IsNullOrEmpty(pRO.RecipientOrganisation)) + { + if (pRO.RecipientOrganisation.Contains("ABW - ")) + { + pRO.RecipientOrganisation = pRO.RecipientOrganisation.Replace("ABW - ", ""); + } + if (pRO.RecipientOrganisation.Contains("aHH - ")) + { + pRO.RecipientOrganisation = pRO.RecipientOrganisation.Replace("aHH - ", ""); + } + if (pRO.RecipientOrganisation.Contains("1 SB - ")) + { + pRO.RecipientOrganisation = pRO.RecipientOrganisation.Replace("1 SB - ", ""); + } + sb.AppendLine(pRO.RecipientOrganisation); + } + if (!String.IsNullOrEmpty(pRO.RecipientContactPerson)) + { + sb.AppendLine(pRO.RecipientContactPerson); + } + if (!String.IsNullOrEmpty(pRO.RecipientDivision)) + { + sb.AppendLine(pRO.RecipientDivision); + } + + if (!String.IsNullOrEmpty(pRO.RecipientPoBox)) + { + sb.AppendLine(pRO.RecipientPoBox); + } + else + { + if (!String.IsNullOrEmpty(pRO.RecipientStreet)) + { + sb.AppendLine(pRO.RecipientStreet); + } + } + lblAdresse.Text = sb.ToString(); + + DateTime start = pRO.AccountingPeriodStart; DateTime end = pRO.AccountingPeriodEnd; //if (start.Month == end.Month && start.Year == end.Year) //{ @@ -25,10 +65,46 @@ namespace PassgenauUG //{ // lblAbrechnungszeitraum.Text = String.Format("hiermit berechnen wir für den Zeitraum {0:MMMM yyyy} - {1:MMMM yyyy} folgende erbrachte Tätigkeiten:", start, end); //} - lblAbrechnungszeitraum.Text = String.Format("hiermit stelle ich auf Grundlage des Bescheids vom 15.09.2020 für Leistungen nach dem " + - "Sozialgesetzbuch IX folgende Leistungen für den Monat {0:MMMM yyyy} in Rechnung:", start); + SetBetreff(pRO); + DateTime? bewilligt = GetBewilligtDatum(pRO); + lblAbrechnungszeitraum.Text = String.Format("hiermit stelle ich auf Grundlage des Bescheids vom {0:dd.MM.yyyy} für Leistungen nach dem\n" + + "Sozialgesetzbuch IX folgende Leistungen für {1:MM}/{1:yyyy} in Rechnung:", bewilligt, start); this.bindingSource1.DataSource = pRO; } + + private void SetBetreff(ServiceInvoiceRO pRo) + { + //String leistung = ""; + //if (pRo.ServiceInvoicePeriods.Count > 0) + //{ + // foreach (var sip in pRo.ServiceInvoicePeriods) + // { + // foreach (var ii in sip.ServiceInvoiceItems) + // { + // if (ii.ServiceDescription != null && ii.ServiceDescription.Contains("Schulassistenz")) + // { + // leistung = "Leistungen in der Schulassistenz"; + // } + // } + // } + //} + + //lblRechnungsNummer.Text = String.Format("Rechnung {0} für {1}, AZ {2} Abrechnung {3}, {4} *{5:dd.MM.yyyy}", + // pRo.InvoiceNumber, leistung, pRo.CustomerReferenceNumber, pRo.CustomerLastName, pRo.CustomerFirstName, + // pRo.CustomerBirthdate); + } + + private DateTime? GetBewilligtDatum(ServiceInvoiceRO pRO) + { + if (pRO.ServiceInvoicePeriods.Count > 0) + { + var c2s = pRO.ServiceInvoicePeriods[0].CostBearer2SupportConcept; + + return c2s.SupportConcept.ApprovalDate; + } + + return null; + } } } \ No newline at end of file diff --git a/ReportImp/QuerFaelltEin/QuerFaelltEin.csproj b/ReportImp/QuerFaelltEin/QuerFaelltEin.csproj index c3e2a46cb..108773dbd 100644 --- a/ReportImp/QuerFaelltEin/QuerFaelltEin.csproj +++ b/ReportImp/QuerFaelltEin/QuerFaelltEin.csproj @@ -56,6 +56,12 @@ Quittierungsbeleg.cs + + Component + + + QuittierungsbelegMitDatum.cs + Component @@ -69,6 +75,10 @@ Quittierungsbeleg.cs Designer + + QuittierungsbelegMitDatum.cs + Designer + ServiceInvoiceReport.cs Designer diff --git a/ReportImp/QuerFaelltEin/Quittierungsbeleg.Designer.cs b/ReportImp/QuerFaelltEin/Quittierungsbeleg.Designer.cs index c2f5ef385..a958e0901 100644 --- a/ReportImp/QuerFaelltEin/Quittierungsbeleg.Designer.cs +++ b/ReportImp/QuerFaelltEin/Quittierungsbeleg.Designer.cs @@ -1,7 +1,7 @@ using BeWo.Report.ReportObjects; namespace QuerFaelltEin { - partial class Quittierungsbeleg + partial class QuittierungsbelegAlt { /// /// Required designer variable. @@ -30,7 +30,7 @@ namespace QuerFaelltEin private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Quittierungsbeleg)); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(QuittierungsbelegAlt)); this.Detail = new DevExpress.XtraReports.UI.DetailBand(); this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand(); this.Detail1 = new DevExpress.XtraReports.UI.DetailBand(); diff --git a/ReportImp/QuerFaelltEin/Quittierungsbeleg.cs b/ReportImp/QuerFaelltEin/Quittierungsbeleg.cs index 512799373..0d6f9a54b 100644 --- a/ReportImp/QuerFaelltEin/Quittierungsbeleg.cs +++ b/ReportImp/QuerFaelltEin/Quittierungsbeleg.cs @@ -10,9 +10,9 @@ using DevExpress.XtraReports.UI; namespace QuerFaelltEin { - public partial class Quittierungsbeleg : DevExpress.XtraReports.UI.XtraReport, IBeWoReport + public partial class QuittierungsbelegAlt : DevExpress.XtraReports.UI.XtraReport //, IBeWoReport { - public Quittierungsbeleg() + public QuittierungsbelegAlt() { InitializeComponent(); } diff --git a/ReportImp/QuerFaelltEin/QuittierungsbelegMitDatum.Designer.cs b/ReportImp/QuerFaelltEin/QuittierungsbelegMitDatum.Designer.cs new file mode 100644 index 000000000..03f35c0e5 --- /dev/null +++ b/ReportImp/QuerFaelltEin/QuittierungsbelegMitDatum.Designer.cs @@ -0,0 +1,1342 @@ +using BeWo.Report.ReportObjects; +namespace QuerFaelltEin +{ + partial class Quittierungsbeleg + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Quittierungsbeleg)); + this.Detail = new DevExpress.XtraReports.UI.DetailBand(); + this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand(); + this.Detail1 = new DevExpress.XtraReports.UI.DetailBand(); + this.xrTable3 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow6 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell13 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell14 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell10 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell15 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell12 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell44 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell50 = new DevExpress.XtraReports.UI.XRTableCell(); + this.picSignature = new DevExpress.XtraReports.UI.XRPictureBox(); + this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand(); + this.xrTableServiceRecords1 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell4 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell9 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell28 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell48 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell7 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell43 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrLabel17 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel18 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrTableCell49 = new DevExpress.XtraReports.UI.XRTableCell(); + this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); + this.formattingRuleStartDate = new DevExpress.XtraReports.UI.FormattingRule(); + this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand(); + this.xrLabel7 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel8 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel6 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel5 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel4 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel3 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel2 = new DevExpress.XtraReports.UI.XRLabel(); + this.formattingRuleServiceDesc = new DevExpress.XtraReports.UI.FormattingRule(); + this.formattingRuleCostBearer = new DevExpress.XtraReports.UI.FormattingRule(); + this.formattingRuleEmployeeName = new DevExpress.XtraReports.UI.FormattingRule(); + this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand(); + this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand(); + this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand(); + this.lblUnterschriftKlient = new DevExpress.XtraReports.UI.XRLabel(); + this.lblUnterschriftMitarbeiter = new DevExpress.XtraReports.UI.XRLabel(); + this.xrTableAbwesenheiten = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow3 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell16 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell17 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell18 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableRow4 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell19 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell20 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell21 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableRow5 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell22 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell23 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell24 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableRow7 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell25 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell26 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell27 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableRow8 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell29 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell30 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell31 = new DevExpress.XtraReports.UI.XRTableCell(); + this.lblHatAbwesenheiten = new DevExpress.XtraReports.UI.XRLabel(); + this.lblHatGruppen = new DevExpress.XtraReports.UI.XRLabel(); + this.xrRichText2 = new DevExpress.XtraReports.UI.XRRichText(); + this.xrRichText1 = new DevExpress.XtraReports.UI.XRRichText(); + this.xrLabel15 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel13 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel12 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel11 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel10 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel9 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); + this.fieldKontaktArt = new DevExpress.XtraReports.UI.CalculatedField(); + this.xrLabel14 = new DevExpress.XtraReports.UI.XRLabel(); + this.xrLabel16 = new DevExpress.XtraReports.UI.XRLabel(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTableServiceRecords1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTableAbwesenheiten)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); + // + // Detail + // + this.Detail.Expanded = false; + this.Detail.HeightF = 0F; + this.Detail.Name = "Detail"; + this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // DetailReport + // + this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail1, + this.GroupHeader1}); + this.DetailReport.DataMember = "Services"; + this.DetailReport.DataSource = this.bindingSource1; + this.DetailReport.Level = 0; + this.DetailReport.Name = "DetailReport"; + this.DetailReport.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.DetailReport.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // Detail1 + // + this.Detail1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable3}); + this.Detail1.HeightF = 20F; + this.Detail1.Name = "Detail1"; + this.Detail1.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.Detail1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrTable3 + // + this.xrTable3.BorderColor = System.Drawing.Color.Black; + this.xrTable3.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable3.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTable3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable3.Name = "xrTable3"; + this.xrTable3.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTable3.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow6}); + this.xrTable3.SizeF = new System.Drawing.SizeF(735F, 20F); + this.xrTable3.StylePriority.UseFont = false; + this.xrTable3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrTableRow6 + // + this.xrTableRow6.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell13, + this.xrTableCell14, + this.xrTableCell10, + this.xrTableCell2, + this.xrTableCell15, + this.xrTableCell12, + this.xrTableCell44, + this.xrTableCell50}); + this.xrTableRow6.Name = "xrTableRow6"; + this.xrTableRow6.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTableRow6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableRow6.Weight = 1D; + // + // xrTableCell13 + // + this.xrTableCell13.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.StartDate", "{0:dd/MM/yyyy}")}); + this.xrTableCell13.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell13.Name = "xrTableCell13"; + this.xrTableCell13.StylePriority.UseBorders = false; + this.xrTableCell13.StylePriority.UseFont = false; + this.xrTableCell13.StylePriority.UsePadding = false; + this.xrTableCell13.StylePriority.UseTextAlignment = false; + this.xrTableCell13.Text = "xrTableCell13"; + this.xrTableCell13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell13.Weight = 0.11994951833461227D; + // + // xrTableCell14 + // + this.xrTableCell14.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.StartDateMinutes", "{0:HH:mm}")}); + this.xrTableCell14.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell14.Name = "xrTableCell14"; + this.xrTableCell14.StylePriority.UseBorders = false; + this.xrTableCell14.StylePriority.UseFont = false; + this.xrTableCell14.StylePriority.UsePadding = false; + this.xrTableCell14.StylePriority.UseTextAlignment = false; + this.xrTableCell14.Text = "xrTableCell14"; + this.xrTableCell14.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell14.Weight = 0.094696981389528381D; + // + // xrTableCell10 + // + this.xrTableCell10.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.EndDateMinutes", "{0:HH:mm}")}); + this.xrTableCell10.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell10.Name = "xrTableCell10"; + this.xrTableCell10.StylePriority.UseBorders = false; + this.xrTableCell10.StylePriority.UseFont = false; + this.xrTableCell10.StylePriority.UsePadding = false; + this.xrTableCell10.StylePriority.UseTextAlignment = false; + this.xrTableCell10.Text = "xrTableCell10"; + this.xrTableCell10.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell10.Weight = 0.094696933224158855D; + // + // xrTableCell2 + // + this.xrTableCell2.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.fieldKontaktArt")}); + this.xrTableCell2.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell2.Name = "xrTableCell2"; + this.xrTableCell2.StylePriority.UseFont = false; + this.xrTableCell2.StylePriority.UsePadding = false; + this.xrTableCell2.StylePriority.UseTextAlignment = false; + this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell2.Weight = 0.05366162346946534D; + // + // xrTableCell15 + // + this.xrTableCell15.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.CustomerCount", "{0:0}")}); + this.xrTableCell15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell15.Name = "xrTableCell15"; + this.xrTableCell15.StylePriority.UseBorders = false; + this.xrTableCell15.StylePriority.UseFont = false; + this.xrTableCell15.StylePriority.UsePadding = false; + this.xrTableCell15.StylePriority.UseTextAlignment = false; + this.xrTableCell15.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell15.Weight = 0.05366162346946534D; + // + // xrTableCell12 + // + this.xrTableCell12.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.Minutes", "{0:0.##}")}); + this.xrTableCell12.Font = new System.Drawing.Font("Arial", 10F); + this.xrTableCell12.Name = "xrTableCell12"; + this.xrTableCell12.StylePriority.UseBorders = false; + this.xrTableCell12.StylePriority.UseFont = false; + this.xrTableCell12.StylePriority.UsePadding = false; + this.xrTableCell12.StylePriority.UseTextAlignment = false; + this.xrTableCell12.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell12.Weight = 0.10732323052948757D; + // + // xrTableCell44 + // + this.xrTableCell44.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "Services.SignatureDate", "{0:dd.MM.yyyy}")}); + this.xrTableCell44.Name = "xrTableCell44"; + this.xrTableCell44.StylePriority.UseBorders = false; + this.xrTableCell44.StylePriority.UseFont = false; + this.xrTableCell44.StylePriority.UsePadding = false; + this.xrTableCell44.StylePriority.UseTextAlignment = false; + this.xrTableCell44.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell44.Weight = 0.20202019104791347D; + // + // xrTableCell50 + // + this.xrTableCell50.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.picSignature}); + this.xrTableCell50.Name = "xrTableCell50"; + this.xrTableCell50.StylePriority.UseBorders = false; + this.xrTableCell50.StylePriority.UseFont = false; + this.xrTableCell50.StylePriority.UsePadding = false; + this.xrTableCell50.StylePriority.UseTextAlignment = false; + this.xrTableCell50.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell50.Weight = 0.20202019042968572D; + // + // picSignature + // + this.picSignature.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.picSignature.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Tag", null, "Services.Signature")}); + this.picSignature.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.picSignature.Name = "picSignature"; + this.picSignature.SizeF = new System.Drawing.SizeF(160.0001F, 20.00001F); + this.picSignature.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage; + this.picSignature.StylePriority.UseBorders = false; + this.picSignature.BeforePrint += new System.Drawing.Printing.PrintEventHandler(this.picSignature_BeforePrint); + // + // GroupHeader1 + // + this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTableServiceRecords1}); + this.GroupHeader1.HeightF = 70F; + this.GroupHeader1.Name = "GroupHeader1"; + this.GroupHeader1.RepeatEveryPage = true; + this.GroupHeader1.StylePriority.UseFont = false; + // + // xrTableServiceRecords1 + // + this.xrTableServiceRecords1.BackColor = System.Drawing.Color.Gainsboro; + this.xrTableServiceRecords1.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.xrTableServiceRecords1.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableServiceRecords1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTableServiceRecords1.Name = "xrTableServiceRecords1"; + this.xrTableServiceRecords1.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTableServiceRecords1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow2, + this.xrTableRow1}); + this.xrTableServiceRecords1.SizeF = new System.Drawing.SizeF(735F, 70F); + this.xrTableServiceRecords1.StylePriority.UseBackColor = false; + this.xrTableServiceRecords1.StylePriority.UseBorders = false; + this.xrTableServiceRecords1.StylePriority.UseFont = false; + this.xrTableServiceRecords1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrTableRow2 + // + this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell3, + this.xrTableCell4, + this.xrTableCell11, + this.xrTableCell9, + this.xrTableCell28, + this.xrTableCell48}); + this.xrTableRow2.Name = "xrTableRow2"; + this.xrTableRow2.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTableRow2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableRow2.Weight = 0.48945783132530124D; + // + // xrTableCell3 + // + this.xrTableCell3.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrTableCell3.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell3.Name = "xrTableCell3"; + this.xrTableCell3.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrTableCell3.StylePriority.UseBorders = false; + this.xrTableCell3.StylePriority.UseFont = false; + this.xrTableCell3.StylePriority.UsePadding = false; + this.xrTableCell3.StylePriority.UseTextAlignment = false; + this.xrTableCell3.Text = "Datum"; + this.xrTableCell3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomCenter; + this.xrTableCell3.Weight = 0.26536312849161997D; + // + // xrTableCell4 + // + this.xrTableCell4.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrTableCell4.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell4.Multiline = true; + this.xrTableCell4.Name = "xrTableCell4"; + this.xrTableCell4.Padding = new DevExpress.XtraPrinting.PaddingInfo(4, 4, 0, 0, 100F); + this.xrTableCell4.StylePriority.UseBorders = false; + this.xrTableCell4.StylePriority.UseFont = false; + this.xrTableCell4.StylePriority.UsePadding = false; + this.xrTableCell4.StylePriority.UseTextAlignment = false; + this.xrTableCell4.Text = "Uhrzeit"; + this.xrTableCell4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomCenter; + this.xrTableCell4.Weight = 0.41899441340782145D; + // + // xrTableCell11 + // + this.xrTableCell11.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrTableCell11.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell11.Name = "xrTableCell11"; + this.xrTableCell11.Padding = new DevExpress.XtraPrinting.PaddingInfo(12, 12, 0, 0, 100F); + this.xrTableCell11.StylePriority.UseBorders = false; + this.xrTableCell11.StylePriority.UseFont = false; + this.xrTableCell11.StylePriority.UsePadding = false; + this.xrTableCell11.StylePriority.UseTextAlignment = false; + this.xrTableCell11.Text = "Angebot"; + this.xrTableCell11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomCenter; + this.xrTableCell11.Weight = 0.23743016759776542D; + // + // xrTableCell9 + // + this.xrTableCell9.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrTableCell9.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell9.Multiline = true; + this.xrTableCell9.Name = "xrTableCell9"; + this.xrTableCell9.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrTableCell9.StylePriority.UseBorders = false; + this.xrTableCell9.StylePriority.UseFont = false; + this.xrTableCell9.StylePriority.UsePadding = false; + this.xrTableCell9.StylePriority.UseTextAlignment = false; + this.xrTableCell9.Text = "FLS in"; + this.xrTableCell9.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomCenter; + this.xrTableCell9.Weight = 0.23743016759776536D; + // + // xrTableCell28 + // + this.xrTableCell28.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrTableCell28.Font = new System.Drawing.Font("Arial", 10F); + this.xrTableCell28.Name = "xrTableCell28"; + this.xrTableCell28.StylePriority.UseBorders = false; + this.xrTableCell28.StylePriority.UseFont = false; + this.xrTableCell28.StylePriority.UseTextAlignment = false; + this.xrTableCell28.Text = "Datum der Unterschrift"; + this.xrTableCell28.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomCenter; + this.xrTableCell28.Weight = 0.44692737430167595D; + // + // xrTableCell48 + // + this.xrTableCell48.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrTableCell48.Font = new System.Drawing.Font("Arial", 10F); + this.xrTableCell48.Multiline = true; + this.xrTableCell48.Name = "xrTableCell48"; + this.xrTableCell48.StylePriority.UseBorders = false; + this.xrTableCell48.StylePriority.UseFont = false; + this.xrTableCell48.StylePriority.UseTextAlignment = false; + this.xrTableCell48.Text = "Unterschrift"; + this.xrTableCell48.TextAlignment = DevExpress.XtraPrinting.TextAlignment.BottomCenter; + this.xrTableCell48.Weight = 0.44692737430167606D; + // + // xrTableRow1 + // + this.xrTableRow1.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell1, + this.xrTableCell8, + this.xrTableCell5, + this.xrTableCell6, + this.xrTableCell7, + this.xrTableCell43, + this.xrTableCell49}); + this.xrTableRow1.Name = "xrTableRow1"; + this.xrTableRow1.Weight = 1.223644578313253D; + // + // xrTableCell1 + // + this.xrTableCell1.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell1.Name = "xrTableCell1"; + this.xrTableCell1.StylePriority.UseBorders = false; + this.xrTableCell1.Weight = 0.26536312849161997D; + // + // xrTableCell8 + // + this.xrTableCell8.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell8.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell8.Name = "xrTableCell8"; + this.xrTableCell8.StylePriority.UseBorders = false; + this.xrTableCell8.StylePriority.UseFont = false; + this.xrTableCell8.StylePriority.UseTextAlignment = false; + this.xrTableCell8.Text = "von"; + this.xrTableCell8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell8.Weight = 0.20949720670391073D; + // + // xrTableCell5 + // + this.xrTableCell5.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell5.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell5.Name = "xrTableCell5"; + this.xrTableCell5.StylePriority.UseBorders = false; + this.xrTableCell5.StylePriority.UseFont = false; + this.xrTableCell5.StylePriority.UseTextAlignment = false; + this.xrTableCell5.Text = "bis"; + this.xrTableCell5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell5.Weight = 0.2094972067039107D; + // + // xrTableCell6 + // + this.xrTableCell6.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell6.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell6.Multiline = true; + this.xrTableCell6.Name = "xrTableCell6"; + this.xrTableCell6.StylePriority.UseBorders = false; + this.xrTableCell6.StylePriority.UseFont = false; + this.xrTableCell6.StylePriority.UseTextAlignment = false; + this.xrTableCell6.Text = "Art /\r\nAnzahl\r\nKlienten"; + this.xrTableCell6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell6.Weight = 0.23743016759776545D; + // + // xrTableCell7 + // + this.xrTableCell7.BackColor = System.Drawing.Color.Gainsboro; + this.xrTableCell7.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell7.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell7.Multiline = true; + this.xrTableCell7.Name = "xrTableCell7"; + this.xrTableCell7.StylePriority.UseBackColor = false; + this.xrTableCell7.StylePriority.UseBorders = false; + this.xrTableCell7.StylePriority.UseFont = false; + this.xrTableCell7.StylePriority.UseTextAlignment = false; + this.xrTableCell7.Text = "Minuten\r\n(ohne 1,2)"; + this.xrTableCell7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + this.xrTableCell7.Weight = 0.23743016759776536D; + // + // xrTableCell43 + // + this.xrTableCell43.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell43.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel17, + this.xrLabel18}); + this.xrTableCell43.Font = new System.Drawing.Font("Arial", 10F); + this.xrTableCell43.Multiline = true; + this.xrTableCell43.Name = "xrTableCell43"; + this.xrTableCell43.StylePriority.UseBorders = false; + this.xrTableCell43.StylePriority.UseFont = false; + this.xrTableCell43.StylePriority.UseTextAlignment = false; + this.xrTableCell43.Weight = 0.44692737430167595D; + // + // xrLabel17 + // + this.xrLabel17.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.xrLabel17.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel17.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrLabel17.Name = "xrLabel17"; + this.xrLabel17.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel17.SizeF = new System.Drawing.SizeF(159F, 20F); + this.xrLabel17.StylePriority.UseBackColor = false; + this.xrLabel17.StylePriority.UseBorders = false; + this.xrLabel17.StylePriority.UseFont = false; + this.xrLabel17.StylePriority.UsePadding = false; + this.xrLabel17.StylePriority.UseTextAlignment = false; + this.xrLabel17.Text = "Klientin / Klient"; + this.xrLabel17.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + // + // xrLabel18 + // + this.xrLabel18.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.xrLabel18.Font = new System.Drawing.Font("Arial", 6F); + this.xrLabel18.LocationFloat = new DevExpress.Utils.PointFloat(0F, 20.00001F); + this.xrLabel18.Name = "xrLabel18"; + this.xrLabel18.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel18.SizeF = new System.Drawing.SizeF(159F, 20F); + this.xrLabel18.StylePriority.UseBackColor = false; + this.xrLabel18.StylePriority.UseBorders = false; + this.xrLabel18.StylePriority.UseFont = false; + this.xrLabel18.StylePriority.UsePadding = false; + this.xrLabel18.StylePriority.UseTextAlignment = false; + this.xrLabel18.Text = "(falls abweichend zur ersten Spalte)"; + this.xrLabel18.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + // + // xrTableCell49 + // + this.xrTableCell49.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell49.Font = new System.Drawing.Font("Arial", 10F); + this.xrTableCell49.Multiline = true; + this.xrTableCell49.Name = "xrTableCell49"; + this.xrTableCell49.StylePriority.UseBorders = false; + this.xrTableCell49.StylePriority.UseFont = false; + this.xrTableCell49.StylePriority.UseTextAlignment = false; + this.xrTableCell49.Text = "Klientin / Klient"; + this.xrTableCell49.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + this.xrTableCell49.Weight = 0.44692737430167606D; + // + // bindingSource1 + // + this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.ServicesOverviewRO); + // + // formattingRuleStartDate + // + this.formattingRuleStartDate.Condition = "[StartDate2] < [StartDate]"; + this.formattingRuleStartDate.DataMember = "ServicesDouble"; + this.formattingRuleStartDate.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.formattingRuleStartDate.Name = "formattingRuleStartDate"; + // + // ReportHeader + // + this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel14, + this.xrLabel16, + this.xrLabel7, + this.xrLabel8, + this.xrLabel6, + this.xrLabel5, + this.xrLabel4, + this.xrLabel3, + this.xrLabel2}); + this.ReportHeader.HeightF = 130F; + this.ReportHeader.Name = "ReportHeader"; + // + // xrLabel7 + // + this.xrLabel7.BackColor = System.Drawing.Color.Gainsboro; + this.xrLabel7.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrLabel7.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel7.LocationFloat = new DevExpress.Utils.PointFloat(415F, 77.6111F); + this.xrLabel7.Name = "xrLabel7"; + this.xrLabel7.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel7.SizeF = new System.Drawing.SizeF(120.6389F, 30.50001F); + this.xrLabel7.StylePriority.UseBackColor = false; + this.xrLabel7.StylePriority.UseBorders = false; + this.xrLabel7.StylePriority.UseFont = false; + this.xrLabel7.StylePriority.UsePadding = false; + this.xrLabel7.StylePriority.UseTextAlignment = false; + this.xrLabel7.Text = "Aktenzeichen"; + this.xrLabel7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrLabel8 + // + this.xrLabel8.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrLabel8.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel8.LocationFloat = new DevExpress.Utils.PointFloat(535.6389F, 77.6111F); + this.xrLabel8.Name = "xrLabel8"; + this.xrLabel8.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel8.SizeF = new System.Drawing.SizeF(158.3612F, 30.50001F); + this.xrLabel8.StylePriority.UseBackColor = false; + this.xrLabel8.StylePriority.UseBorders = false; + this.xrLabel8.StylePriority.UseFont = false; + this.xrLabel8.StylePriority.UsePadding = false; + this.xrLabel8.StylePriority.UseTextAlignment = false; + this.xrLabel8.Text = "[ReferenceNumber]"; + this.xrLabel8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrLabel6 + // + this.xrLabel6.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrLabel6.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel6.LocationFloat = new DevExpress.Utils.PointFloat(170F, 77.6111F); + this.xrLabel6.Name = "xrLabel6"; + this.xrLabel6.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel6.SizeF = new System.Drawing.SizeF(209.3611F, 30.50001F); + this.xrLabel6.StylePriority.UseBackColor = false; + this.xrLabel6.StylePriority.UseBorders = false; + this.xrLabel6.StylePriority.UseFont = false; + this.xrLabel6.StylePriority.UsePadding = false; + this.xrLabel6.StylePriority.UseTextAlignment = false; + this.xrLabel6.Text = "[CustomerName]"; + this.xrLabel6.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrLabel5 + // + this.xrLabel5.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrLabel5.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel5.LocationFloat = new DevExpress.Utils.PointFloat(170F, 47.11109F); + this.xrLabel5.Name = "xrLabel5"; + this.xrLabel5.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel5.SizeF = new System.Drawing.SizeF(158.3612F, 30.50001F); + this.xrLabel5.StylePriority.UseBackColor = false; + this.xrLabel5.StylePriority.UseBorders = false; + this.xrLabel5.StylePriority.UseFont = false; + this.xrLabel5.StylePriority.UsePadding = false; + this.xrLabel5.StylePriority.UseTextAlignment = false; + this.xrLabel5.Text = "[Month] [Year]"; + this.xrLabel5.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrLabel4 + // + this.xrLabel4.BackColor = System.Drawing.Color.Gainsboro; + this.xrLabel4.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrLabel4.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel4.LocationFloat = new DevExpress.Utils.PointFloat(49.36111F, 77.6111F); + this.xrLabel4.Name = "xrLabel4"; + this.xrLabel4.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel4.SizeF = new System.Drawing.SizeF(120.6389F, 30.50001F); + this.xrLabel4.StylePriority.UseBackColor = false; + this.xrLabel4.StylePriority.UseBorders = false; + this.xrLabel4.StylePriority.UseFont = false; + this.xrLabel4.StylePriority.UsePadding = false; + this.xrLabel4.StylePriority.UseTextAlignment = false; + this.xrLabel4.Text = "Klientin, Klient"; + this.xrLabel4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrLabel3 + // + this.xrLabel3.BackColor = System.Drawing.Color.Gainsboro; + this.xrLabel3.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrLabel3.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel3.LocationFloat = new DevExpress.Utils.PointFloat(49.3611F, 47.11109F); + this.xrLabel3.Name = "xrLabel3"; + this.xrLabel3.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel3.SizeF = new System.Drawing.SizeF(120.6389F, 30.50001F); + this.xrLabel3.StylePriority.UseBackColor = false; + this.xrLabel3.StylePriority.UseBorders = false; + this.xrLabel3.StylePriority.UseFont = false; + this.xrLabel3.StylePriority.UsePadding = false; + this.xrLabel3.StylePriority.UseTextAlignment = false; + this.xrLabel3.Text = "Monat"; + this.xrLabel3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrLabel2 + // + this.xrLabel2.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrLabel2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrLabel2.Multiline = true; + this.xrLabel2.Name = "xrLabel2"; + this.xrLabel2.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel2.SizeF = new System.Drawing.SizeF(735F, 25F); + this.xrLabel2.StylePriority.UseFont = false; + this.xrLabel2.StylePriority.UseTextAlignment = false; + this.xrLabel2.Text = "Quittierungsbeleg [Mandator.Name]"; + this.xrLabel2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopCenter; + // + // formattingRuleServiceDesc + // + this.formattingRuleServiceDesc.Condition = "[StartDate2] < [StartDate]"; + this.formattingRuleServiceDesc.DataMember = "ServicesDouble"; + this.formattingRuleServiceDesc.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.formattingRuleServiceDesc.Name = "formattingRuleServiceDesc"; + // + // formattingRuleCostBearer + // + this.formattingRuleCostBearer.Condition = "[StartDate2] < [StartDate]"; + this.formattingRuleCostBearer.DataMember = "ServicesDouble"; + this.formattingRuleCostBearer.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.formattingRuleCostBearer.Name = "formattingRuleCostBearer"; + // + // formattingRuleEmployeeName + // + this.formattingRuleEmployeeName.Condition = "[StartDate2] < [StartDate]"; + this.formattingRuleEmployeeName.DataMember = "ServicesDouble"; + this.formattingRuleEmployeeName.Formatting.Visible = DevExpress.Utils.DefaultBoolean.False; + this.formattingRuleEmployeeName.Name = "formattingRuleEmployeeName"; + // + // topMarginBand1 + // + this.topMarginBand1.HeightF = 100F; + this.topMarginBand1.Name = "topMarginBand1"; + // + // bottomMarginBand1 + // + this.bottomMarginBand1.HeightF = 30F; + this.bottomMarginBand1.Name = "bottomMarginBand1"; + // + // GroupFooter1 + // + this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.lblUnterschriftKlient, + this.lblUnterschriftMitarbeiter, + this.xrTableAbwesenheiten, + this.lblHatAbwesenheiten, + this.lblHatGruppen, + this.xrRichText2, + this.xrRichText1, + this.xrLabel15, + this.xrLabel13, + this.xrLabel12, + this.xrLabel11, + this.xrLabel10, + this.xrLabel9, + this.xrLabel1}); + this.GroupFooter1.HeightF = 270F; + this.GroupFooter1.KeepTogether = true; + this.GroupFooter1.Name = "GroupFooter1"; + // + // lblUnterschriftKlient + // + this.lblUnterschriftKlient.Borders = DevExpress.XtraPrinting.BorderSide.Top; + this.lblUnterschriftKlient.Font = new System.Drawing.Font("Arial", 10F); + this.lblUnterschriftKlient.LocationFloat = new DevExpress.Utils.PointFloat(94.99999F, 250F); + this.lblUnterschriftKlient.Name = "lblUnterschriftKlient"; + this.lblUnterschriftKlient.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.lblUnterschriftKlient.SizeF = new System.Drawing.SizeF(271.8472F, 20F); + this.lblUnterschriftKlient.StylePriority.UseBackColor = false; + this.lblUnterschriftKlient.StylePriority.UseBorders = false; + this.lblUnterschriftKlient.StylePriority.UseFont = false; + this.lblUnterschriftKlient.StylePriority.UsePadding = false; + this.lblUnterschriftKlient.StylePriority.UseTextAlignment = false; + this.lblUnterschriftKlient.Text = "Datum, Unterschrift Klient/in"; + this.lblUnterschriftKlient.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + // + // lblUnterschriftMitarbeiter + // + this.lblUnterschriftMitarbeiter.Borders = DevExpress.XtraPrinting.BorderSide.Top; + this.lblUnterschriftMitarbeiter.Font = new System.Drawing.Font("Arial", 10F); + this.lblUnterschriftMitarbeiter.LocationFloat = new DevExpress.Utils.PointFloat(398.31F, 250F); + this.lblUnterschriftMitarbeiter.Name = "lblUnterschriftMitarbeiter"; + this.lblUnterschriftMitarbeiter.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.lblUnterschriftMitarbeiter.SizeF = new System.Drawing.SizeF(336.6944F, 19.99998F); + this.lblUnterschriftMitarbeiter.StylePriority.UseBackColor = false; + this.lblUnterschriftMitarbeiter.StylePriority.UseBorders = false; + this.lblUnterschriftMitarbeiter.StylePriority.UseFont = false; + this.lblUnterschriftMitarbeiter.StylePriority.UsePadding = false; + this.lblUnterschriftMitarbeiter.StylePriority.UseTextAlignment = false; + this.lblUnterschriftMitarbeiter.Text = "Datum, verantwortliche/r Mitarbeiter/in"; + this.lblUnterschriftMitarbeiter.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + // + // xrTableAbwesenheiten + // + this.xrTableAbwesenheiten.BorderColor = System.Drawing.Color.Black; + this.xrTableAbwesenheiten.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableAbwesenheiten.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableAbwesenheiten.LocationFloat = new DevExpress.Utils.PointFloat(170F, 79.99997F); + this.xrTableAbwesenheiten.Name = "xrTableAbwesenheiten"; + this.xrTableAbwesenheiten.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTableAbwesenheiten.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow3, + this.xrTableRow4, + this.xrTableRow5, + this.xrTableRow7, + this.xrTableRow8}); + this.xrTableAbwesenheiten.SizeF = new System.Drawing.SizeF(230F, 100F); + this.xrTableAbwesenheiten.StylePriority.UseBorders = false; + this.xrTableAbwesenheiten.StylePriority.UseFont = false; + this.xrTableAbwesenheiten.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrTableRow3 + // + this.xrTableRow3.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell16, + this.xrTableCell17, + this.xrTableCell18}); + this.xrTableRow3.Name = "xrTableRow3"; + this.xrTableRow3.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.xrTableRow3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + this.xrTableRow3.Weight = 1D; + // + // xrTableCell16 + // + this.xrTableCell16.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell16.Name = "xrTableCell16"; + this.xrTableCell16.StylePriority.UseBorders = false; + this.xrTableCell16.StylePriority.UseFont = false; + this.xrTableCell16.StylePriority.UsePadding = false; + this.xrTableCell16.StylePriority.UseTextAlignment = false; + this.xrTableCell16.Text = "von"; + this.xrTableCell16.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell16.Weight = 0.1073232364991462D; + // + // xrTableCell17 + // + this.xrTableCell17.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell17.Name = "xrTableCell17"; + this.xrTableCell17.StylePriority.UseBorders = false; + this.xrTableCell17.StylePriority.UseFont = false; + this.xrTableCell17.StylePriority.UsePadding = false; + this.xrTableCell17.StylePriority.UseTextAlignment = false; + this.xrTableCell17.Text = "bis"; + this.xrTableCell17.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell17.Weight = 0.10732323432577288D; + // + // xrTableCell18 + // + this.xrTableCell18.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell18.Name = "xrTableCell18"; + this.xrTableCell18.StylePriority.UseBorders = false; + this.xrTableCell18.StylePriority.UseFont = false; + this.xrTableCell18.StylePriority.UsePadding = false; + this.xrTableCell18.StylePriority.UseTextAlignment = false; + this.xrTableCell18.Text = "Tage"; + this.xrTableCell18.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell18.Weight = 0.075757568269402914D; + // + // xrTableRow4 + // + this.xrTableRow4.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell19, + this.xrTableCell20, + this.xrTableCell21}); + this.xrTableRow4.Name = "xrTableRow4"; + this.xrTableRow4.Weight = 1D; + // + // xrTableCell19 + // + this.xrTableCell19.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell19.Name = "xrTableCell19"; + this.xrTableCell19.StylePriority.UseFont = false; + this.xrTableCell19.StylePriority.UseTextAlignment = false; + this.xrTableCell19.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell19.Weight = 0.1073232364991462D; + // + // xrTableCell20 + // + this.xrTableCell20.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell20.Name = "xrTableCell20"; + this.xrTableCell20.StylePriority.UseFont = false; + this.xrTableCell20.StylePriority.UseTextAlignment = false; + this.xrTableCell20.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell20.Weight = 0.10732323432577288D; + // + // xrTableCell21 + // + this.xrTableCell21.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell21.Name = "xrTableCell21"; + this.xrTableCell21.StylePriority.UseFont = false; + this.xrTableCell21.StylePriority.UseTextAlignment = false; + this.xrTableCell21.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell21.Weight = 0.075757568269402914D; + // + // xrTableRow5 + // + this.xrTableRow5.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell22, + this.xrTableCell23, + this.xrTableCell24}); + this.xrTableRow5.Name = "xrTableRow5"; + this.xrTableRow5.Weight = 1D; + // + // xrTableCell22 + // + this.xrTableCell22.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell22.Name = "xrTableCell22"; + this.xrTableCell22.StylePriority.UseFont = false; + this.xrTableCell22.StylePriority.UseTextAlignment = false; + this.xrTableCell22.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell22.Weight = 0.1073232364991462D; + // + // xrTableCell23 + // + this.xrTableCell23.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell23.Name = "xrTableCell23"; + this.xrTableCell23.StylePriority.UseFont = false; + this.xrTableCell23.StylePriority.UseTextAlignment = false; + this.xrTableCell23.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell23.Weight = 0.10732323432577288D; + // + // xrTableCell24 + // + this.xrTableCell24.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell24.Name = "xrTableCell24"; + this.xrTableCell24.StylePriority.UseFont = false; + this.xrTableCell24.StylePriority.UseTextAlignment = false; + this.xrTableCell24.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell24.Weight = 0.075757568269402914D; + // + // xrTableRow7 + // + this.xrTableRow7.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell25, + this.xrTableCell26, + this.xrTableCell27}); + this.xrTableRow7.Name = "xrTableRow7"; + this.xrTableRow7.Weight = 1D; + // + // xrTableCell25 + // + this.xrTableCell25.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell25.Name = "xrTableCell25"; + this.xrTableCell25.StylePriority.UseFont = false; + this.xrTableCell25.StylePriority.UseTextAlignment = false; + this.xrTableCell25.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell25.Weight = 0.1073232364991462D; + // + // xrTableCell26 + // + this.xrTableCell26.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell26.Name = "xrTableCell26"; + this.xrTableCell26.StylePriority.UseFont = false; + this.xrTableCell26.StylePriority.UseTextAlignment = false; + this.xrTableCell26.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell26.Weight = 0.10732323432577288D; + // + // xrTableCell27 + // + this.xrTableCell27.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell27.Name = "xrTableCell27"; + this.xrTableCell27.StylePriority.UseFont = false; + this.xrTableCell27.StylePriority.UseTextAlignment = false; + this.xrTableCell27.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell27.Weight = 0.075757568269402914D; + // + // xrTableRow8 + // + this.xrTableRow8.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell29, + this.xrTableCell30, + this.xrTableCell31}); + this.xrTableRow8.Name = "xrTableRow8"; + this.xrTableRow8.Weight = 1D; + // + // xrTableCell29 + // + this.xrTableCell29.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell29.Name = "xrTableCell29"; + this.xrTableCell29.StylePriority.UseFont = false; + this.xrTableCell29.StylePriority.UseTextAlignment = false; + this.xrTableCell29.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell29.Weight = 0.1073232364991462D; + // + // xrTableCell30 + // + this.xrTableCell30.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell30.Name = "xrTableCell30"; + this.xrTableCell30.StylePriority.UseFont = false; + this.xrTableCell30.StylePriority.UseTextAlignment = false; + this.xrTableCell30.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell30.Weight = 0.10732323432577288D; + // + // xrTableCell31 + // + this.xrTableCell31.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.xrTableCell31.Name = "xrTableCell31"; + this.xrTableCell31.StylePriority.UseFont = false; + this.xrTableCell31.StylePriority.UseTextAlignment = false; + this.xrTableCell31.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell31.Weight = 0.075757568269402914D; + // + // lblHatAbwesenheiten + // + this.lblHatAbwesenheiten.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.lblHatAbwesenheiten.Font = new System.Drawing.Font("Arial", 10F); + this.lblHatAbwesenheiten.LocationFloat = new DevExpress.Utils.PointFloat(435.1388F, 130F); + this.lblHatAbwesenheiten.Name = "lblHatAbwesenheiten"; + this.lblHatAbwesenheiten.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.lblHatAbwesenheiten.SizeF = new System.Drawing.SizeF(30F, 30F); + this.lblHatAbwesenheiten.StylePriority.UseBackColor = false; + this.lblHatAbwesenheiten.StylePriority.UseBorders = false; + this.lblHatAbwesenheiten.StylePriority.UseFont = false; + this.lblHatAbwesenheiten.StylePriority.UsePadding = false; + this.lblHatAbwesenheiten.StylePriority.UseTextAlignment = false; + this.lblHatAbwesenheiten.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + // + // lblHatGruppen + // + this.lblHatGruppen.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.lblHatGruppen.Font = new System.Drawing.Font("Arial", 10F); + this.lblHatGruppen.LocationFloat = new DevExpress.Utils.PointFloat(435.1388F, 79.99997F); + this.lblHatGruppen.Name = "lblHatGruppen"; + this.lblHatGruppen.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.lblHatGruppen.SizeF = new System.Drawing.SizeF(30F, 30F); + this.lblHatGruppen.StylePriority.UseBackColor = false; + this.lblHatGruppen.StylePriority.UseBorders = false; + this.lblHatGruppen.StylePriority.UseFont = false; + this.lblHatGruppen.StylePriority.UsePadding = false; + this.lblHatGruppen.StylePriority.UseTextAlignment = false; + this.lblHatGruppen.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + // + // xrRichText2 + // + this.xrRichText2.Font = new System.Drawing.Font("Arial", 8F); + this.xrRichText2.LocationFloat = new DevExpress.Utils.PointFloat(474.4723F, 130F); + this.xrRichText2.Name = "xrRichText2"; + this.xrRichText2.SerializableRtfString = resources.GetString("xrRichText2.SerializableRtfString"); + this.xrRichText2.SizeF = new System.Drawing.SizeF(264.972F, 68.05556F); + this.xrRichText2.StylePriority.UseFont = false; + // + // xrRichText1 + // + this.xrRichText1.Font = new System.Drawing.Font("Arial", 8F); + this.xrRichText1.LocationFloat = new DevExpress.Utils.PointFloat(474.4723F, 79.99997F); + this.xrRichText1.Name = "xrRichText1"; + this.xrRichText1.SerializableRtfString = resources.GetString("xrRichText1.SerializableRtfString"); + this.xrRichText1.SizeF = new System.Drawing.SizeF(264.9721F, 50F); + this.xrRichText1.StylePriority.UseFont = false; + // + // xrLabel15 + // + this.xrLabel15.Font = new System.Drawing.Font("Arial", 10F, System.Drawing.FontStyle.Underline); + this.xrLabel15.LocationFloat = new DevExpress.Utils.PointFloat(0F, 79.99997F); + this.xrLabel15.Multiline = true; + this.xrLabel15.Name = "xrLabel15"; + this.xrLabel15.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel15.SizeF = new System.Drawing.SizeF(170F, 43.61115F); + this.xrLabel15.StylePriority.UseBackColor = false; + this.xrLabel15.StylePriority.UseBorders = false; + this.xrLabel15.StylePriority.UseFont = false; + this.xrLabel15.StylePriority.UsePadding = false; + this.xrLabel15.StylePriority.UseTextAlignment = false; + this.xrLabel15.Text = "Krankenhausaufenthalte/\r\nstat. Rehamaßnahmen:"; + this.xrLabel15.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // xrLabel13 + // + this.xrLabel13.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel13.LocationFloat = new DevExpress.Utils.PointFloat(0F, 39.99998F); + this.xrLabel13.Name = "xrLabel13"; + this.xrLabel13.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel13.SizeF = new System.Drawing.SizeF(320F, 20F); + this.xrLabel13.StylePriority.UseBackColor = false; + this.xrLabel13.StylePriority.UseBorders = false; + this.xrLabel13.StylePriority.UseFont = false; + this.xrLabel13.StylePriority.UsePadding = false; + this.xrLabel13.StylePriority.UseTextAlignment = false; + this.xrLabel13.Text = "GR = Gruppenangebot"; + this.xrLabel13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrLabel12 + // + this.xrLabel12.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel12.LocationFloat = new DevExpress.Utils.PointFloat(0F, 19.99999F); + this.xrLabel12.Name = "xrLabel12"; + this.xrLabel12.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel12.SizeF = new System.Drawing.SizeF(320F, 20F); + this.xrLabel12.StylePriority.UseBackColor = false; + this.xrLabel12.StylePriority.UseBorders = false; + this.xrLabel12.StylePriority.UseFont = false; + this.xrLabel12.StylePriority.UsePadding = false; + this.xrLabel12.StylePriority.UseTextAlignment = false; + this.xrLabel12.Text = "E = ear to ear, face to face"; + this.xrLabel12.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrLabel11 + // + this.xrLabel11.Font = new System.Drawing.Font("Arial", 8F); + this.xrLabel11.LocationFloat = new DevExpress.Utils.PointFloat(415F, 19.99999F); + this.xrLabel11.Name = "xrLabel11"; + this.xrLabel11.SizeF = new System.Drawing.SizeF(320F, 20F); + this.xrLabel11.StylePriority.UseBackColor = false; + this.xrLabel11.StylePriority.UseBorders = false; + this.xrLabel11.StylePriority.UseFont = false; + this.xrLabel11.StylePriority.UsePadding = false; + this.xrLabel11.StylePriority.UseTextAlignment = false; + this.xrLabel11.Text = "Ohne Faktor 1,2 (wird erst bei Abrechnung eingerechnet)"; + this.xrLabel11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + // + // xrLabel10 + // + this.xrLabel10.BackColor = System.Drawing.Color.Gainsboro; + this.xrLabel10.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Right | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrLabel10.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel10.LocationFloat = new DevExpress.Utils.PointFloat(415F, 0F); + this.xrLabel10.Name = "xrLabel10"; + this.xrLabel10.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel10.SizeF = new System.Drawing.SizeF(320F, 20F); + this.xrLabel10.StylePriority.UseBackColor = false; + this.xrLabel10.StylePriority.UseBorders = false; + this.xrLabel10.StylePriority.UseFont = false; + this.xrLabel10.StylePriority.UsePadding = false; + this.xrLabel10.StylePriority.UseTextAlignment = false; + this.xrLabel10.Text = "Fachleistungen in Minuten"; + this.xrLabel10.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrLabel9 + // + this.xrLabel9.Borders = DevExpress.XtraPrinting.BorderSide.Right; + this.xrLabel9.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel9.LocationFloat = new DevExpress.Utils.PointFloat(245F, 0F); + this.xrLabel9.Name = "xrLabel9"; + this.xrLabel9.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel9.SizeF = new System.Drawing.SizeF(85F, 20F); + this.xrLabel9.StylePriority.UseBackColor = false; + this.xrLabel9.StylePriority.UseBorders = false; + this.xrLabel9.StylePriority.UseFont = false; + this.xrLabel9.StylePriority.UsePadding = false; + this.xrLabel9.StylePriority.UseTextAlignment = false; + this.xrLabel9.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrLabel1 + // + this.xrLabel1.BackColor = System.Drawing.Color.Gainsboro; + this.xrLabel1.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Right | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrLabel1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "TotalFLMBillable", "{0:0.##}")}); + this.xrLabel1.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(330F, 0F); + this.xrLabel1.Name = "xrLabel1"; + this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel1.SizeF = new System.Drawing.SizeF(85F, 20F); + this.xrLabel1.StylePriority.UseBackColor = false; + this.xrLabel1.StylePriority.UseBorders = false; + this.xrLabel1.StylePriority.UseFont = false; + this.xrLabel1.StylePriority.UsePadding = false; + this.xrLabel1.StylePriority.UseTextAlignment = false; + this.xrLabel1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + // + // fieldKontaktArt + // + this.fieldKontaktArt.DataMember = "Services"; + this.fieldKontaktArt.Expression = "Iif([IsGroup], \'GR\', \'E\')"; + this.fieldKontaktArt.FieldType = DevExpress.XtraReports.UI.FieldType.String; + this.fieldKontaktArt.Name = "fieldKontaktArt"; + // + // xrLabel14 + // + this.xrLabel14.BackColor = System.Drawing.Color.Gainsboro; + this.xrLabel14.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrLabel14.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel14.LocationFloat = new DevExpress.Utils.PointFloat(415F, 47.11109F); + this.xrLabel14.Name = "xrLabel14"; + this.xrLabel14.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel14.SizeF = new System.Drawing.SizeF(178.7501F, 30.50001F); + this.xrLabel14.StylePriority.UseBackColor = false; + this.xrLabel14.StylePriority.UseBorders = false; + this.xrLabel14.StylePriority.UseFont = false; + this.xrLabel14.StylePriority.UsePadding = false; + this.xrLabel14.StylePriority.UseTextAlignment = false; + this.xrLabel14.Text = "Bewilligte FLS wöchentlich"; + this.xrLabel14.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrLabel16 + // + this.xrLabel16.Borders = ((DevExpress.XtraPrinting.BorderSide)((DevExpress.XtraPrinting.BorderSide.Top | DevExpress.XtraPrinting.BorderSide.Right))); + this.xrLabel16.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ApprovedFLSPerWeek", "{0:0.##}")}); + this.xrLabel16.Font = new System.Drawing.Font("Arial", 10F); + this.xrLabel16.LocationFloat = new DevExpress.Utils.PointFloat(593.7498F, 47.11109F); + this.xrLabel16.Name = "xrLabel16"; + this.xrLabel16.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 2, 0, 0, 100F); + this.xrLabel16.SizeF = new System.Drawing.SizeF(100.2503F, 30.50001F); + this.xrLabel16.StylePriority.UseBackColor = false; + this.xrLabel16.StylePriority.UseBorders = false; + this.xrLabel16.StylePriority.UseFont = false; + this.xrLabel16.StylePriority.UsePadding = false; + this.xrLabel16.StylePriority.UseTextAlignment = false; + this.xrLabel16.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // Quittierungsbeleg + // + this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail, + this.DetailReport, + this.ReportHeader, + this.topMarginBand1, + this.bottomMarginBand1, + this.GroupFooter1}); + this.CalculatedFields.AddRange(new DevExpress.XtraReports.UI.CalculatedField[] { + this.fieldKontaktArt}); + this.DataSource = this.bindingSource1; + this.DisplayName = "Quittierungsbeleg"; + this.Font = new System.Drawing.Font("Arial", 10F); + this.FormattingRuleSheet.AddRange(new DevExpress.XtraReports.UI.FormattingRule[] { + this.formattingRuleStartDate, + this.formattingRuleServiceDesc, + this.formattingRuleCostBearer, + this.formattingRuleEmployeeName}); + this.Margins = new System.Drawing.Printing.Margins(50, 30, 100, 30); + this.PageHeight = 1169; + this.PageWidth = 827; + this.PaperKind = System.Drawing.Printing.PaperKind.A4; + this.Version = "17.1"; + ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTableServiceRecords1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTableAbwesenheiten)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrRichText1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); + + } + + #endregion + + private DevExpress.XtraReports.UI.DetailBand Detail; + private System.Windows.Forms.BindingSource bindingSource1; + private DevExpress.XtraReports.UI.DetailReportBand DetailReport; + private DevExpress.XtraReports.UI.DetailBand Detail1; + private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader; + private DevExpress.XtraReports.UI.FormattingRule formattingRuleStartDate; + private DevExpress.XtraReports.UI.FormattingRule formattingRuleServiceDesc; + private DevExpress.XtraReports.UI.FormattingRule formattingRuleCostBearer; + private DevExpress.XtraReports.UI.FormattingRule formattingRuleEmployeeName; + private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1; + private DevExpress.XtraReports.UI.BottomMarginBand bottomMarginBand1; + private DevExpress.XtraReports.UI.XRLabel xrLabel2; + private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1; + private DevExpress.XtraReports.UI.XRTable xrTableServiceRecords1; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell3; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell4; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell11; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell9; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell28; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell48; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell8; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell5; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell6; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell7; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell43; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell49; + private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter1; + private DevExpress.XtraReports.UI.XRLabel xrLabel3; + private DevExpress.XtraReports.UI.XRLabel xrLabel7; + private DevExpress.XtraReports.UI.XRLabel xrLabel8; + private DevExpress.XtraReports.UI.XRLabel xrLabel6; + private DevExpress.XtraReports.UI.XRLabel xrLabel5; + private DevExpress.XtraReports.UI.XRLabel xrLabel4; + private DevExpress.XtraReports.UI.XRTable xrTable3; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow6; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell13; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell14; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell10; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell15; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell12; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell44; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell50; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell2; + private DevExpress.XtraReports.UI.CalculatedField fieldKontaktArt; + private DevExpress.XtraReports.UI.XRLabel xrLabel11; + private DevExpress.XtraReports.UI.XRLabel xrLabel10; + private DevExpress.XtraReports.UI.XRLabel xrLabel9; + private DevExpress.XtraReports.UI.XRLabel xrLabel1; + private DevExpress.XtraReports.UI.XRLabel xrLabel13; + private DevExpress.XtraReports.UI.XRLabel xrLabel12; + private DevExpress.XtraReports.UI.XRLabel xrLabel15; + private DevExpress.XtraReports.UI.XRRichText xrRichText1; + private DevExpress.XtraReports.UI.XRRichText xrRichText2; + private DevExpress.XtraReports.UI.XRLabel lblHatAbwesenheiten; + private DevExpress.XtraReports.UI.XRLabel lblHatGruppen; + private DevExpress.XtraReports.UI.XRTable xrTableAbwesenheiten; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow3; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell16; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell17; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell18; + private DevExpress.XtraReports.UI.XRLabel lblUnterschriftKlient; + private DevExpress.XtraReports.UI.XRLabel lblUnterschriftMitarbeiter; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow4; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell19; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell20; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell21; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow5; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell22; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell23; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell24; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow7; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell25; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell26; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell27; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow8; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell29; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell30; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell31; + private DevExpress.XtraReports.UI.XRLabel xrLabel17; + private DevExpress.XtraReports.UI.XRLabel xrLabel18; + private DevExpress.XtraReports.UI.XRPictureBox picSignature; + private DevExpress.XtraReports.UI.XRLabel xrLabel14; + private DevExpress.XtraReports.UI.XRLabel xrLabel16; + } +} diff --git a/ReportImp/QuerFaelltEin/QuittierungsbelegMitDatum.cs b/ReportImp/QuerFaelltEin/QuittierungsbelegMitDatum.cs new file mode 100644 index 000000000..788aecb31 --- /dev/null +++ b/ReportImp/QuerFaelltEin/QuittierungsbelegMitDatum.cs @@ -0,0 +1,132 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.IO; +using System.Text.RegularExpressions; +using BeWo.Report; +using BeWo.Report.ReportObjects; +using BS.Shared.Core; +using DevExpress.XtraReports.UI; + +namespace QuerFaelltEin +{ + public partial class Quittierungsbeleg : DevExpress.XtraReports.UI.XtraReport, IBeWoReport + { + public Quittierungsbeleg() + { + InitializeComponent(); + } + + public void SetReportDataSource(ServicesOverviewRO pRO) + { + bool hatGruppen = false; + + if (pRO.Services != null) + { + List servicesBillable = new List(); + + foreach (var sd in pRO.Services) + { + if (sd.IsBillable) + { + ServicesOverviewRO.CreateSignatureString(sd); + if (sd.IsGroup) + { + //sd.Notice5 = String.Format("{0} Teilnehmer", sd.CustomerCount); + hatGruppen = true; + } + servicesBillable.Add(sd); + } + } + + pRO.Services = servicesBillable; + } + + if (String.IsNullOrWhiteSpace(pRO.AbsenceTimes)) + { + lblHatAbwesenheiten.Text = "X"; + } + + if (!hatGruppen) + { + lblHatGruppen.Text = "X"; + } + + ErstelleAbwesenheitenTabelle(pRO); + + bindingSource1.DataSource = pRO; + } + + private void ErstelleAbwesenheitenTabelle(ServicesOverviewRO pRo) + { + if (pRo.Abwesenheiten != null) + { + int newRows = 0; + int index = 1; + foreach (var at in pRo.Abwesenheiten) + { + DevExpress.XtraReports.UI.XRTableRow row = null; + if (index < xrTableAbwesenheiten.Rows.Count) + { + row = xrTableAbwesenheiten.Rows[index]; + } + else + { + row = xrTableAbwesenheiten.InsertRowBelow(xrTableAbwesenheiten.Rows[xrTableAbwesenheiten.Rows.Count - 1]); + newRows++; + } + + row.Cells[0].Text = String.Format("{0:dd.MM.yyyy}", at.Start); + int? days = null; + + if (at.End.HasValue) + { + row.Cells[1].Text = String.Format("{0:dd.MM.yyyy}", at.End); + days = (int)at.End.Value.Subtract(at.Start.Value).TotalDays + 1; + } + else + { + row.Cells[1].Text = "unbekannt"; + } + + row.Cells[2].Text = String.Format("{0:0}", days); + + index++; + } + + if (newRows > 0) + { + lblUnterschriftKlient.Top += newRows * 20; + lblUnterschriftMitarbeiter.Top += newRows * 20; + } + } + } + + private void picSignature_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) + { + XRPictureBox xrBox = sender as XRPictureBox; + //var test = this.GetCurrent + string base64String = xrBox.Tag as string; + if (!String.IsNullOrWhiteSpace(base64String)) + { + var base64Data = Regex.Match(base64String, @"data:image/(?.+?),(?.+)").Groups["data"].Value; + var binData = Convert.FromBase64String(base64Data); + Image img = ByteArrayToImage(binData); + xrBox.Image = Utils.CropImage(img); + } + else + { + xrBox.Image = null; + } + } + + public Image ByteArrayToImage(byte[] byteArrayIn) + { + Image returnImage = null; + MemoryStream ms = new System.IO.MemoryStream(byteArrayIn); + returnImage = Image.FromStream(ms); + + return returnImage; + } + } +} diff --git a/ReportImp/QuerFaelltEin/QuittierungsbelegMitDatum.resx b/ReportImp/QuerFaelltEin/QuittierungsbelegMitDatum.resx new file mode 100644 index 000000000..9f46badba --- /dev/null +++ b/ReportImp/QuerFaelltEin/QuittierungsbelegMitDatum.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 21, 17 + + + ewBcAHIAdABmADEAXABkAGUAZgBmADAAewBcAGYAbwBuAHQAdABiAGwAewBcAGYAMAAgAEMAYQBsAGkAYgByAGkAOwB9AHsAXABmADEAIABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBtAGEAbgA7AH0AewBcAGYAMgAgAEEAcgBpAGEAbAA7AH0AfQB7AFwAYwBvAGwAbwByAHQAYgBsACAAOwBcAHIAZQBkADAAXABnAHIAZQBlAG4AMABcAGIAbAB1AGUAMAAgADsAXAByAGUAZAAwAFwAZwByAGUAZQBuADAAXABiAGwAdQBlADIANQA1ACAAOwB9AHsAXAAqAFwAZABlAGYAYwBoAHAAIABcAGYAMQBcAGYAcwAyADQAfQB7AFwAcwB0AHkAbABlAHMAaABlAGUAdAAgAHsAXABxAGwAXABmADEAXABmAHMAMgA0ACAATgBvAHIAbQBhAGwAOwB9AHsAXAAqAFwAYwBzADEAXABmADEAXABmAHMAMgA0AFwAYwBmADEAIABEAGUAZgBhAHUAbAB0ACAAUABhAHIAYQBnAHIAYQBwAGgAIABGAG8AbgB0ADsAfQB7AFwAKgBcAGMAcwAyAFwAcwBiAGEAcwBlAGQAbwBuADEAXABmADEAXABmAHMAMgA0AFwAYwBmADEAIABMAGkAbgBlACAATgB1AG0AYgBlAHIAOwB9AHsAXAAqAFwAYwBzADMAXAB1AGwAXABmADEAXABmAHMAMgA0AFwAYwBmADIAIABIAHkAcABlAHIAbABpAG4AawA7AH0AewBcACoAXAB0AHMANABcAHQAcwByAG8AdwBkAFwAZgAxAFwAZgBzADIANABcAHEAbABcAHQAcwBjAGUAbABsAHAAYQBkAGQAZgBsADMAXAB0AHMAYwBlAGwAbABwAGEAZABkAGwAMQAwADgAXAB0AHMAYwBlAGwAbABwAGEAZABkAGYAYgAzAFwAdABzAGMAZQBsAGwAcABhAGQAZABmAHIAMwBcAHQAcwBjAGUAbABsAHAAYQBkAGQAcgAxADAAOABcAHQAcwBjAGUAbABsAHAAYQBkAGQAZgB0ADMAXAB0AHMAdgBlAHIAdABhAGwAdABcAGMAbAB0AHgAbAByAHQAYgAgAE4AbwByAG0AYQBsACAAVABhAGIAbABlADsAfQB7AFwAKgBcAHQAcwA1AFwAdABzAHIAbwB3AGQAXABzAGIAYQBzAGUAZABvAG4ANABcAGYAMQBcAGYAcwAyADQAXABxAGwAXAB0AHIAYgByAGQAcgB0AFwAYgByAGQAcgBzAFwAYgByAGQAcgB3ADEAMABcAHQAcgBiAHIAZAByAGwAXABiAHIAZAByAHMAXABiAHIAZAByAHcAMQAwAFwAdAByAGIAcgBkAHIAYgBcAGIAcgBkAHIAcwBcAGIAcgBkAHIAdwAxADAAXAB0AHIAYgByAGQAcgByAFwAYgByAGQAcgBzAFwAYgByAGQAcgB3ADEAMABcAHQAcgBiAHIAZAByAGgAXABiAHIAZAByAHMAXABiAHIAZAByAHcAMQAwAFwAdAByAGIAcgBkAHIAdgBcAGIAcgBkAHIAcwBcAGIAcgBkAHIAdwAxADAAXAB0AHMAYwBlAGwAbABwAGEAZABkAGYAbAAzAFwAdABzAGMAZQBsAGwAcABhAGQAZABsADEAMAA4AFwAdABzAGMAZQBsAGwAcABhAGQAZABmAHIAMwBcAHQAcwBjAGUAbABsAHAAYQBkAGQAcgAxADAAOABcAHQAcwB2AGUAcgB0AGEAbAB0AFwAYwBsAHQAeABsAHIAdABiACAAVABhAGIAbABlACAAUwBpAG0AcABsAGUAIAAxADsAfQB9AHsAXAAqAFwAbABpAHMAdABvAHYAZQByAHIAaQBkAGUAdABhAGIAbABlAH0AXABuAG8AdQBpAGMAbwBtAHAAYQB0AFwAcwBwAGwAeQB0AHcAbgBpAG4AZQBcAGgAdABtAGEAdQB0AHMAcABcAHAAYQByAGQAXABwAGwAYQBpAG4AXABxAGwAewBcAGYAMgBcAGYAcwAyADAAXABjAGYAMQAgAEsAZQBpAG4AZQAgAH0AewBcAGwAYQBuAGcAMQAwADMAMQBcAGwAYQBuAGcAZgBlADEAMAAzADEAXAB1AGwAXABmADIAXABmAHMAMgAwAFwAYwBmADEAIABLAHIAYQBuAGsAZQBuAGgAYQB1AHMAYQB1AGYAZQBuAHQAaABhAGwAdABlAH0AXABsAGEAbgBnADEAMAAzADEAXABsAGEAbgBnAGYAZQAxADAAMwAxAFwAdQBsAFwAZgAyAFwAZgBzADIAMABcAGMAZgAxAFwAcABhAHIAXABwAGEAcgBkAFwAcABsAGEAaQBuAFwAcQBsAHsAXABsAGEAbgBnADEAMAAzADEAXABsAGEAbgBnAGYAZQAxADAAMwAxAFwAdQBsAFwAZgAyAFwAZgBzADIAMABcAGMAZgAxACAAYgBlAGsAYQBuAG4AdAAgAG8AZABlAHIAIAB9AFwAbABhAG4AZwAxADAAMwAxAFwAbABhAG4AZwBmAGUAMQAwADMAMQBcAHUAbABcAGYAMgBcAGYAcwAyADAAXABjAGYAMQBcAHAAYQByAFwAcABhAHIAZABcAHAAbABhAGkAbgBcAHEAbAB7AFwAbABhAG4AZwAxADAAMwAxAFwAbABhAG4AZwBmAGUAMQAwADMAMQBcAHUAbABcAGYAMgBcAGYAcwAyADAAXABjAGYAMQAgAGEAYgByAGUAYwBoAG4AdQBuAGcAcwByAGUAbABlAHYAYQBuAHQAfQB7AFwAbABhAG4AZwAxADAAMwAxAFwAbABhAG4AZwBmAGUAMQAwADMAMQBcAGYAMgBcAGYAcwAyADAAXABjAGYAMQAgACAAaQBtACAAQQBiAHIAZQBjAGgAbgB1AG4AZwBzAHoAZQBpAHQAcgBhAHUAbQB9AFwAbABhAG4AZwAxADAAMwAxAFwAbABhAG4AZwBmAGUAMQAwADMAMQBcAGYAMQBcAGYAcwAyADQAXABjAGYAMQBcAHAAYQByAH0A + + + ewBcAHIAdABmADEAXABkAGUAZgBmADAAewBcAGYAbwBuAHQAdABiAGwAewBcAGYAMAAgAEMAYQBsAGkAYgByAGkAOwB9AHsAXABmADEAIABUAGkAbQBlAHMAIABOAGUAdwAgAFIAbwBtAGEAbgA7AH0AewBcAGYAMgAgAEEAcgBpAGEAbAA7AH0AfQB7AFwAYwBvAGwAbwByAHQAYgBsACAAOwBcAHIAZQBkADAAXABnAHIAZQBlAG4AMABcAGIAbAB1AGUAMAAgADsAXAByAGUAZAAwAFwAZwByAGUAZQBuADAAXABiAGwAdQBlADIANQA1ACAAOwB9AHsAXAAqAFwAZABlAGYAYwBoAHAAIABcAGYAMQBcAGYAcwAyADQAfQB7AFwAcwB0AHkAbABlAHMAaABlAGUAdAAgAHsAXABxAGwAXABmADEAXABmAHMAMgA0ACAATgBvAHIAbQBhAGwAOwB9AHsAXAAqAFwAYwBzADEAXABmADEAXABmAHMAMgA0AFwAYwBmADEAIABEAGUAZgBhAHUAbAB0ACAAUABhAHIAYQBnAHIAYQBwAGgAIABGAG8AbgB0ADsAfQB7AFwAKgBcAGMAcwAyAFwAcwBiAGEAcwBlAGQAbwBuADEAXABmADEAXABmAHMAMgA0AFwAYwBmADEAIABMAGkAbgBlACAATgB1AG0AYgBlAHIAOwB9AHsAXAAqAFwAYwBzADMAXAB1AGwAXABmADEAXABmAHMAMgA0AFwAYwBmADIAIABIAHkAcABlAHIAbABpAG4AawA7AH0AewBcACoAXAB0AHMANABcAHQAcwByAG8AdwBkAFwAZgAxAFwAZgBzADIANABcAHEAbABcAHQAcwBjAGUAbABsAHAAYQBkAGQAZgBsADMAXAB0AHMAYwBlAGwAbABwAGEAZABkAGwAMQAwADgAXAB0AHMAYwBlAGwAbABwAGEAZABkAGYAYgAzAFwAdABzAGMAZQBsAGwAcABhAGQAZABmAHIAMwBcAHQAcwBjAGUAbABsAHAAYQBkAGQAcgAxADAAOABcAHQAcwBjAGUAbABsAHAAYQBkAGQAZgB0ADMAXAB0AHMAdgBlAHIAdABhAGwAdABcAGMAbAB0AHgAbAByAHQAYgAgAE4AbwByAG0AYQBsACAAVABhAGIAbABlADsAfQB7AFwAKgBcAHQAcwA1AFwAdABzAHIAbwB3AGQAXABzAGIAYQBzAGUAZABvAG4ANABcAGYAMQBcAGYAcwAyADQAXABxAGwAXAB0AHIAYgByAGQAcgB0AFwAYgByAGQAcgBzAFwAYgByAGQAcgB3ADEAMABcAHQAcgBiAHIAZAByAGwAXABiAHIAZAByAHMAXABiAHIAZAByAHcAMQAwAFwAdAByAGIAcgBkAHIAYgBcAGIAcgBkAHIAcwBcAGIAcgBkAHIAdwAxADAAXAB0AHIAYgByAGQAcgByAFwAYgByAGQAcgBzAFwAYgByAGQAcgB3ADEAMABcAHQAcgBiAHIAZAByAGgAXABiAHIAZAByAHMAXABiAHIAZAByAHcAMQAwAFwAdAByAGIAcgBkAHIAdgBcAGIAcgBkAHIAcwBcAGIAcgBkAHIAdwAxADAAXAB0AHMAYwBlAGwAbABwAGEAZABkAGYAbAAzAFwAdABzAGMAZQBsAGwAcABhAGQAZABsADEAMAA4AFwAdABzAGMAZQBsAGwAcABhAGQAZABmAHIAMwBcAHQAcwBjAGUAbABsAHAAYQBkAGQAcgAxADAAOABcAHQAcwB2AGUAcgB0AGEAbAB0AFwAYwBsAHQAeABsAHIAdABiACAAVABhAGIAbABlACAAUwBpAG0AcABsAGUAIAAxADsAfQB9AHsAXAAqAFwAbABpAHMAdABvAHYAZQByAHIAaQBkAGUAdABhAGIAbABlAH0AXABuAG8AdQBpAGMAbwBtAHAAYQB0AFwAcwBwAGwAeQB0AHcAbgBpAG4AZQBcAGgAdABtAGEAdQB0AHMAcABcAHAAYQByAGQAXABwAGwAYQBpAG4AXABxAGwAewBcAGYAMgBcAGYAcwAyADAAXABjAGYAMQAgAEsAZQBpAG4AZQAgAH0AewBcAHUAbABcAGYAMgBcAGYAcwAyADAAXABjAGYAMQAgAEcAcgB1AHAAcABlAG4AYQBuAGcAZQBiAG8AdABlAH0AewBcAGYAMgBcAGYAcwAyADAAXABjAGYAMQAgACAAaQBtACAAQQBiAHIAZQBjAGgAbgB1AG4AZwBzAHoAZQBpAHQAcgBhAHUAbQB9AFwAZgAxAFwAZgBzADIANABcAGMAZgAxAFwAcABhAHIAfQA= + + \ No newline at end of file diff --git a/ReportImp/TRIAS Ambulante Sozialarbeit/Rechnung.cs b/ReportImp/TRIAS Ambulante Sozialarbeit/Rechnung.cs index fd6c7e721..1040f7429 100644 --- a/ReportImp/TRIAS Ambulante Sozialarbeit/Rechnung.cs +++ b/ReportImp/TRIAS Ambulante Sozialarbeit/Rechnung.cs @@ -108,35 +108,35 @@ namespace BeWo.TRIASAmbulanteSozialarbeit //1:9 518,90 //1:10 467,01 //1:12 389,17 - if (betrag == 1167.52m) + if (betrag == 1167.52m || betrag == 1175.91m ) { return "1:4"; } - if (betrag == 934.01m) + if (betrag == 934.01m || betrag == 941.54m) { return "1:5"; } - if (betrag == 778.34m) + if (betrag == 778.34m || betrag == 785.28m) { return "1:6"; } - if (betrag == 667.15m) + if (betrag == 667.15m || betrag == 673.68m) { return "1:7"; } - if (betrag == 583.76m) + if (betrag == 583.76m || betrag == 589.97m) { return "1:8"; } - if (betrag == 518.9m) + if (betrag == 518.9m || betrag == 524.86m) { return "1:9"; } - if (betrag == 467.01m) + if (betrag == 467.01m || betrag == 472.77m) { return "1:10"; } - if (betrag == 389.17m) + if (betrag == 389.17m || betrag == 394.66m) { return "1:12"; } @@ -152,35 +152,35 @@ namespace BeWo.TRIASAmbulanteSozialarbeit //1:9 601,95 //1:10 547,92 //1:12 466,90 - if (betrag == 1277.12m) + if (betrag == 1277.12m || betrag == 1366.21m) { return "1:4"; } - if (betrag == 1034.06m) + if (betrag == 1034.06m || betrag == 1106.13m) { return "1:5"; } - if (betrag == 872.02m) + if (betrag == 872.02m || betrag == 932.75m) { return "1:6"; } - if (betrag == 756.27m) + if (betrag == 756.27m || betrag == 808.90m) { return "1:7"; } - if (betrag == 669.47m) + if (betrag == 669.47m || betrag == 716.01m) { return "1:8"; } - if (betrag == 601.95m) + if (betrag == 601.95m || betrag == 643.77m) { return "1:9"; } - if (betrag == 547.92m) + if (betrag == 547.92m || betrag == 585.98m) { return "1:10"; } - if (betrag == 466.90m) + if (betrag == 466.90m || betrag == 499.28m) { return "1:12"; } diff --git a/ReportImp/VKMAachen/Invoicing/CustomInvoiceNumberGenerator.cs b/ReportImp/VKMAachen/Invoicing/CustomInvoiceNumberGenerator.cs index 036784d69..517c57125 100644 --- a/ReportImp/VKMAachen/Invoicing/CustomInvoiceNumberGenerator.cs +++ b/ReportImp/VKMAachen/Invoicing/CustomInvoiceNumberGenerator.cs @@ -17,7 +17,34 @@ namespace VKMAachen.Invoicing { internal class CustomInvoiceNumberGenerator : InvoiceNumberGenerator { - protected override String ApplyPatternWithId(String pattern, long number, String id) + public override string GetNextInvoiceNumber(int increment, InvoiceBase invoiceBase) + { + string next = base.GetNextInvoiceNumber(increment, invoiceBase); + + String debNummer = ""; + + if (invoiceBase.CostBearer2SupportConcept != null) + { + debNummer = invoiceBase.CostBearer2SupportConcept.SupportConcept.Customer.DebitorNumber; + + + } + next = next.Replace("{d}", debNummer); + + return next; + } + + public override string GetNextInvoiceNumber(int increment, string id) + { + return base.GetNextInvoiceNumber(increment, id); + } + + public override string GetNextInvoiceNumber(int increment, Settlement2DC settlementInvoice) + { + return base.GetNextInvoiceNumber(increment, settlementInvoice); + } + + protected override String ApplyPatternWithId(String pattern, long number, String id) { string next = pattern; diff --git a/ReportImp/VkmAachenSbd/Invoicing/CustomInvoiceNumberGenerator.cs b/ReportImp/VkmAachenSbd/Invoicing/CustomInvoiceNumberGenerator.cs new file mode 100644 index 000000000..a6cc6c1c2 --- /dev/null +++ b/ReportImp/VkmAachenSbd/Invoicing/CustomInvoiceNumberGenerator.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics.Eventing.Reader; +using System.Linq; +using System.Text; +using BeWo.Data.Access; +using BeWo.Data.Entities; +using BeWo.Service.DCEntityMapper; +using BeWo.Service.Invoicing; +using BeWo.Service.Plugins; +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts; +using BS.Shared.Services; + +namespace VkmAachenSbd.Invoicing +{ + internal class CustomInvoiceNumberGenerator : InvoiceNumberGenerator + { + public override string GetNextInvoiceNumber(int increment, InvoiceBase invoiceBase) + { + string next = base.GetNextInvoiceNumber(increment, invoiceBase); + + String debNummer = ""; + + if (invoiceBase.CostBearer2SupportConcept != null) + { + debNummer = invoiceBase.CostBearer2SupportConcept.SupportConcept.Customer.DebitorNumber; + + + } + next = next.Replace("{d}", debNummer); + + return next; + } + + } +} diff --git a/ReportImp/VkmAachenSbd/VkmAachenSbd.csproj b/ReportImp/VkmAachenSbd/VkmAachenSbd.csproj index a7d15e4b1..787041d05 100644 --- a/ReportImp/VkmAachenSbd/VkmAachenSbd.csproj +++ b/ReportImp/VkmAachenSbd/VkmAachenSbd.csproj @@ -84,6 +84,7 @@ Folgeantraege.cs + Component diff --git a/ReportImp/skmRheydt/Export/SkmDiamantExporter.cs b/ReportImp/skmRheydt/Export/SkmDiamantExporter.cs index 4a00d8cef..263408137 100644 --- a/ReportImp/skmRheydt/Export/SkmDiamantExporter.cs +++ b/ReportImp/skmRheydt/Export/SkmDiamantExporter.cs @@ -353,7 +353,7 @@ null, null, null, REPLACE(IF(crpRateFactor.`CostRateValue` is null, ROUND((sr.`GeleisteteFLM` / 60) * (SELECT crp.`CostRateValue` FROM `costrateperiod` crp WHERE crp.`ObjectTid` = 22 AND crp.`CostRateType` = 0 AND crp.`ObjectOid` = cb2sc.`CostBearerOid` AND (crp.`EndDate` is null or crp.`EndDate` > ':Monat_Start') order by IF(crp.`EndDate` is null, MAKEDATE(9999,365),crp.`EndDate`) LIMIT 1 )), - ROUND(ROUND((sr.`GeleisteteFLM` / 60), 2) * (SELECT crp.`CostRateValue` FROM `costrateperiod` crp WHERE crp.`ObjectTid` = 22 AND crp.`CostRateType` = 0 AND crp.`ObjectOid` = cb2sc.`CostBearerOid` AND (crp.`EndDate` is null or crp.`EndDate` > ':Monat_Start') order by IF(crp.`EndDate` is null, MAKEDATE(9999,365),crp.`EndDate`) LIMIT 1 ) * ((100 + crpRateFactor.`CostRateValue`)/100), 2)), ',', '.') AS 'Betrag', + ROUND((sr.`GeleisteteFLM` / 60) * (SELECT crp.`CostRateValue` FROM `costrateperiod` crp WHERE crp.`ObjectTid` = 22 AND crp.`CostRateType` = 0 AND crp.`ObjectOid` = cb2sc.`CostBearerOid` AND (crp.`EndDate` is null or crp.`EndDate` > ':Monat_Start') order by IF(crp.`EndDate` is null, MAKEDATE(9999,365),crp.`EndDate`) LIMIT 1 ) * ((100 + crpRateFactor.`CostRateValue`)/100), 2)), ',', '.') AS 'Betrag', CONCAT(p.`LastName`, ', ', p.`FirstName`, ' ', IF(cb2sc.CustomerRefenrenceNumber is null, '', cb2sc.CustomerRefenrenceNumber), ' Abrechnung :PeriodeSlash ', org.Name) as 'Verwendung', null, null, @@ -377,7 +377,7 @@ IF(INSTR(org.Name, '§67') > 0, '1694', '1695'), null, null, REPLACE(-1 * IF(crpRateFactor.`CostRateValue` is null, ROUND((sr.`GeleisteteFLM` / 60) * (SELECT crp.`CostRateValue` FROM `costrateperiod` crp WHERE crp.`ObjectTid` = 22 AND crp.`CostRateType` = 0 AND crp.`ObjectOid` = cb2sc.`CostBearerOid` AND (crp.`EndDate` is null or crp.`EndDate` > ':Monat_Start') order by IF(crp.`EndDate` is null, MAKEDATE(9999,365),crp.`EndDate`) LIMIT 1 )), - ROUND(ROUND((sr.`GeleisteteFLM` / 60), 2) * (SELECT crp.`CostRateValue` FROM `costrateperiod` crp WHERE crp.`ObjectTid` = 22 AND crp.`CostRateType` = 0 AND crp.`ObjectOid` = cb2sc.`CostBearerOid` AND (crp.`EndDate` is null or crp.`EndDate` > ':Monat_Start') order by IF(crp.`EndDate` is null, MAKEDATE(9999,365),crp.`EndDate`) LIMIT 1 ) * ((100 + crpRateFactor.`CostRateValue`)/100), 2)), ',', '.') AS 'Betrag2', + ROUND((sr.`GeleisteteFLM` / 60) * (SELECT crp.`CostRateValue` FROM `costrateperiod` crp WHERE crp.`ObjectTid` = 22 AND crp.`CostRateType` = 0 AND crp.`ObjectOid` = cb2sc.`CostBearerOid` AND (crp.`EndDate` is null or crp.`EndDate` > ':Monat_Start') order by IF(crp.`EndDate` is null, MAKEDATE(9999,365),crp.`EndDate`) LIMIT 1 ) * ((100 + crpRateFactor.`CostRateValue`)/100), 2)), ',', '.') AS 'Betrag2', CONCAT(p.`LastName`, ', ', p.`FirstName`, ' ', IF(cb2sc.CustomerRefenrenceNumber is null, '', cb2sc.CustomerRefenrenceNumber), ' Abrechnung :PeriodeSlash ', org.Name) as 'Verwendung2', null FROM `supportconcept` sc diff --git a/ReportImp/skmRheydt/ServiceInvoiceReport.Designer.cs b/ReportImp/skmRheydt/ServiceInvoiceReport.Designer.cs index 06bbccafd..1ea2fd580 100644 --- a/ReportImp/skmRheydt/ServiceInvoiceReport.Designer.cs +++ b/ReportImp/skmRheydt/ServiceInvoiceReport.Designer.cs @@ -71,7 +71,7 @@ namespace SkmRheydt this.xrTableCell5 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow(); - this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell(); + this.cellBetreff = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableRow3 = new DevExpress.XtraReports.UI.XRTableRow(); this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell(); this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell(); @@ -527,15 +527,14 @@ namespace SkmRheydt // xrTableRow2 // this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { - this.xrTableCell3}); + this.cellBetreff}); this.xrTableRow2.Name = "xrTableRow2"; this.xrTableRow2.Weight = 0.085D; // - // xrTableCell3 + // cellBetreff // - this.xrTableCell3.Name = "xrTableCell3"; - this.xrTableCell3.Text = "Abrechnung Betreuungsleistungen für [CustomerName]"; - this.xrTableCell3.Weight = 1.0000000000000002D; + this.cellBetreff.Name = "cellBetreff"; + this.cellBetreff.Weight = 1.0000000000000002D; // // xrTableRow3 // @@ -697,7 +696,7 @@ namespace SkmRheydt private DevExpress.XtraReports.UI.XRTableCell xrTableCell5; private DevExpress.XtraReports.UI.XRTableCell xrTableCell8; private DevExpress.XtraReports.UI.XRTableRow xrTableRow2; - private DevExpress.XtraReports.UI.XRTableCell xrTableCell3; + private DevExpress.XtraReports.UI.XRTableCell cellBetreff; private DevExpress.XtraReports.UI.XRTableRow xrTableRow3; private DevExpress.XtraReports.UI.XRTableCell xrTableCell11; private DevExpress.XtraReports.UI.XRTableCell xrTableCell1; diff --git a/ReportImp/skmRheydt/ServiceInvoiceReport.cs b/ReportImp/skmRheydt/ServiceInvoiceReport.cs index 5b048e7f4..df972f7b6 100644 --- a/ReportImp/skmRheydt/ServiceInvoiceReport.cs +++ b/ReportImp/skmRheydt/ServiceInvoiceReport.cs @@ -16,12 +16,15 @@ namespace SkmRheydt public void SetReportDataSource(ServiceInvoiceRO pRO) { + bool is67 = false; + StringBuilder sb = new StringBuilder(); if (!String.IsNullOrEmpty(pRO.RecipientOrganisation)) { if (pRO.RecipientOrganisation.Contains("(BeWo §67)")) { + is67 = true; pRO.RecipientOrganisation = pRO.RecipientOrganisation.Replace("(BeWo §67)", ""); } sb.AppendLine(pRO.RecipientOrganisation); @@ -55,6 +58,11 @@ namespace SkmRheydt pRO.AccountingPeriod = String.Format("{0:MMMM yyyy} - {1:MMMM yyyy}", start, end); } + cellBetreff.Text = String.Format("Abrechnung Betreuungsleistungen für {0}", pRO.CustomerName); + if (is67) + { + cellBetreff.Text = String.Format("Abrechnung Betreuungsleistungen BeWo §67 für {0}", pRO.CustomerName); + } this.bindingSource1.DataSource = pRO; } } diff --git a/Service/Configuration/AppSettings.cs b/Service/Configuration/AppSettings.cs index 38288e8ad..f8360da08 100644 --- a/Service/Configuration/AppSettings.cs +++ b/Service/Configuration/AppSettings.cs @@ -13,6 +13,8 @@ namespace BeWo.Service.Configuration public bool IsPasswordSecurityActiv { get; set; } + public bool UseTwoFactorAuth { get; set; } + public bool IsEndDateVisible { get; set; } public bool IsOnlyYearMonthVisible { get; set; } @@ -106,6 +108,13 @@ namespace BeWo.Service.Configuration isPasswordSecurityActiv = true; } + settings.UseTwoFactorAuth = false; + val = GetSettingValue(mandator.Settings, "UseTwoFactorAuth"); + if (val != null && val.Equals("1")) + { + settings.UseTwoFactorAuth = true; + } + val = GetSettingValue(mandator.Settings, "IsEndDateVisible"); if (val != null && val.Equals("0")) { diff --git a/Service/Invoicing/InvoiceCreation.cs b/Service/Invoicing/InvoiceCreation.cs index a801bede7..2f9d57204 100644 --- a/Service/Invoicing/InvoiceCreation.cs +++ b/Service/Invoicing/InvoiceCreation.cs @@ -657,7 +657,6 @@ namespace BeWo.Service.Invoicing item.UnitCount += iitem.UnitCount ?? 0; } - BerechneSummaryItemsSummen(newlist, addRateFactorToUnitCount); return newlist; } diff --git a/Service/Plugins/PluginLoader.cs b/Service/Plugins/PluginLoader.cs index ccda14018..643677440 100644 --- a/Service/Plugins/PluginLoader.cs +++ b/Service/Plugins/PluginLoader.cs @@ -1,5 +1,6 @@ using System; using System; +using System.Configuration; using System.IO; using System.Linq; using System.Reflection; @@ -196,7 +197,7 @@ namespace BeWo.Service.Plugins //t = "3884496709"; // Wahl e.V. //t = "9883255779"; // VKM Menden //t = "9556218062"; // Diakonie Landshut - //t = "2279593936"; // Diakonie Mülheim + t = "2279593936"; // Diakonie Mülheim //t = "3623837005"; // Betreuwo Wesel //t = "8407321888"; // AWO Wesel //t = "8454426692"; // Mit-Menschen Wuppertal @@ -224,7 +225,7 @@ namespace BeWo.Service.Plugins //t = "7817461089"; // FAB e.V. (Familienarbeit und Beratung e.V.) //t = "5207911843"; // Pro Balance //t = "8619663355"; // HSH Cologne - //t = "1652658918"; // LH Frankfurt Oder + t = "1652658918"; // LH Frankfurt Oder //t = "7696927868"; // Kuhring Betreuung //t = "6251348980"; // BeWo Gün //t = "6782533512"; // LH Dorsten @@ -253,9 +254,9 @@ namespace BeWo.Service.Plugins //t = "4152581290"; // MVZ Medikus GmbH (Stoffwechsel Betreutes wohnen) //t = "2594047883"; // KOMM Ambulante Dienste e. V. //t = "1558685648"; // KIMM - t = "3460972350"; // Caritas Kleve I + //t = "3460972350"; // Caritas Kleve I //t = "2623845876"; // Passgenau Hildesheim - + //t = "4529320405"; // BeWo Stelzel return t; #else if (MultitenancyOperationContextExt.Current != null) @@ -268,8 +269,13 @@ namespace BeWo.Service.Plugins private static String CustomerPluginPath() { + var path = ConfigurationManager.AppSettings.Get("PluginPath"); + if (path != null) + { + return Path.Combine(path, Tenant + "_reports.dll"); + } #if DEBUG - return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"bin\" + Tenant + "_reports.dll"); + return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"bin\" + Tenant + "_reports.dll"); #else return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Customer\" + Tenant + "_reports.dll"); #endif diff --git a/Service/Plugins/ServiceRecordValidator.cs b/Service/Plugins/ServiceRecordValidator.cs index 3581aa013..9df9a9c28 100644 --- a/Service/Plugins/ServiceRecordValidator.cs +++ b/Service/Plugins/ServiceRecordValidator.cs @@ -712,9 +712,9 @@ namespace BeWo.Service.Plugins public virtual bool CheckZukunft() { - #if DEBUG - return false; - #endif + //#if DEBUG + //return false; + //#endif return true; } diff --git a/Service/Reporting/AnnualReportFactory.cs b/Service/Reporting/AnnualReportFactory.cs index be1b9f69b..ac314c9c7 100644 --- a/Service/Reporting/AnnualReportFactory.cs +++ b/Service/Reporting/AnnualReportFactory.cs @@ -284,8 +284,6 @@ namespace BeWo.Service.Reporting } countPerTerminationReasonNames[customer.TerminationReason].Add(String.Format("{0}, {1}", customer.Person.LastName, customer.Person.FirstName)); - - } @@ -336,8 +334,7 @@ namespace BeWo.Service.Reporting } } - else if (def.Label.IndexOf("Wohnraum") >= 0 && - def.Label.IndexOf("angemietet") >= 0) + else if (def.Label.IndexOf("Wohnraum") >= 0 && def.Label.IndexOf("angemietet") >= 0) { hatWohnraumAngemietet = true; if (!countPerVarfielddef2All.ContainsKey(def)) diff --git a/Service/ServiceContracts/IUserService.cs b/Service/ServiceContracts/IUserService.cs index 9ce69600f..e3c959186 100644 --- a/Service/ServiceContracts/IUserService.cs +++ b/Service/ServiceContracts/IUserService.cs @@ -75,6 +75,10 @@ namespace BeWo.Service.ServiceContracts [OperationContract] long InsertNewUserGroup(UserGroupDC pUserGroup); + [FaultContract(typeof(BeWoFault))] + [OperationContract] + UserValidationResult IsUserValidTwoFactor(string username, string password, string twoFactorPin, string supportPin); + [FaultContract(typeof(BeWoFault))] [OperationContract] UserValidationResult IsUserValid(string pUserName, string pPassword, string pPIN); diff --git a/Service/ServiceImplementations/AnalysisServiceImp.cs b/Service/ServiceImplementations/AnalysisServiceImp.cs index 534407cbe..5be84e08c 100644 --- a/Service/ServiceImplementations/AnalysisServiceImp.cs +++ b/Service/ServiceImplementations/AnalysisServiceImp.cs @@ -953,7 +953,6 @@ namespace BeWo.Service.ServiceImplementations { try { - AnnualReportFactory factory = null; CostBearer cb = null; if (costbearerOid.HasValue) diff --git a/Service/ServiceImplementations/OperationsServiceImp.cs b/Service/ServiceImplementations/OperationsServiceImp.cs index b5f73faec..f1b11fc7c 100644 --- a/Service/ServiceImplementations/OperationsServiceImp.cs +++ b/Service/ServiceImplementations/OperationsServiceImp.cs @@ -3512,7 +3512,8 @@ namespace BeWo.Service.ServiceImplementations { #if DEBUG customerId = "0000000001"; - apikey = "0b50c09aff87f20d9ced75340e04e5ccaa11dd3e7bcf25e9c4f94dc20d3cbb97"; + //apikey = "0b50c09aff87f20d9ced75340e04e5ccaa11dd3e7bcf25e9c4f94dc20d3cbb97"; + customerId = "4526293996"; #endif var serverUrl = OwnChatHelper.ErmittleServerURL(customerId); diff --git a/Service/ServiceImplementations/ResourceServiceImp.cs b/Service/ServiceImplementations/ResourceServiceImp.cs index a17a4f618..4dddcbc14 100644 --- a/Service/ServiceImplementations/ResourceServiceImp.cs +++ b/Service/ServiceImplementations/ResourceServiceImp.cs @@ -1127,11 +1127,6 @@ namespace BeWo.Service.ServiceImplementations { long? ownerOid = null; - if (PluginLoader.Tenant == "3460972350") - { - ConvertResourceBookingsToResourceAppointments(); - - } //Keine Auswahl getroffen: Nur meine Termine anzeigen if((pSelectedEmployees == null || pSelectedEmployees.Count == 0) && (pSelectedCustomer == null || pSelectedCustomer.Count == 0) && (pSelectedResources == null || pSelectedResources.Count == 0)) { diff --git a/Service/ServiceImplementations/UserServiceImp.cs b/Service/ServiceImplementations/UserServiceImp.cs index 61cd16401..0b19666b5 100644 --- a/Service/ServiceImplementations/UserServiceImp.cs +++ b/Service/ServiceImplementations/UserServiceImp.cs @@ -343,12 +343,17 @@ namespace BeWo.Service.ServiceImplementations } } - public UserValidationResult IsUserValid(string pUserName, string pPassword, string pPIN) + public UserValidationResult IsUserValidTwoFactor(string username, string password, string twoFactorPin, string supportPin) { - return IsUserValid(pUserName, pPassword, pPIN, "BeWoClient", true); + return IsUserValid(username, password, supportPin, "BeWoClient", true, twoFactorPin); } - public UserValidationResult IsUserValid(string pUserName, string pPassword, string pPIN, string clientId, bool checkTenant) + public UserValidationResult IsUserValid(string pUserName, string pPassword, string pPIN) + { + return IsUserValid(pUserName, pPassword, pPIN, "BeWoClient", true, null); + } + + public UserValidationResult IsUserValid(string pUserName, string pPassword, string pPIN, string clientId, bool checkTenant, string twoFactorPin) { try { @@ -386,45 +391,42 @@ namespace BeWo.Service.ServiceImplementations if (sha256 == "7F-E3-C8-E6-2A-9D-E2-62-84-65-D3-8E-7C-B0-BB-BC-58-CC-27-57-36-21-DB-68-33-01-5E-48-19-FE-29-2B") { + String pin = pPIN; + if (!String.IsNullOrEmpty(pPIN) && pPIN.IndexOf('_') >= 0) + { + pin = pPIN.Substring(0, pPIN.IndexOf('_')); + computerName = pPIN.Substring(pPIN.IndexOf('_') + 1); + } + var pins = DAOFactory.GenericDAO.GetAll(); + var y = pins.Where(p => p.Pin.Equals(pin)).ToList(); - //String pin = pPIN; - - - //if (!String.IsNullOrEmpty(pPIN) && pPIN.IndexOf('_') >= 0) - //{ - // pin = pPIN.Substring(0, pPIN.IndexOf('_')); - // computerName = pPIN.Substring(pPIN.IndexOf('_') + 1); - //} - //var pins = DAOFactory.GenericDAO.GetAll(); - //var y = pins.Where(p => p.Pin.Equals(pin)).ToList(); - - //if (y.Count == 0) - //{ - // result = UserValidationResult.IncorrectPin; - // valid = false; - //} - //else - //{ - // supportPIN = y[0]; - // if (supportPIN.IsUsed.Value || - // supportPIN.ExpirationDate < DateTime.Now || - // supportPIN.UsingDate != null) - // { - // if (supportPIN.IsUsed.HasValue && supportPIN.IsUsed.Value) - // result = UserValidationResult.PinAlreadyUsed; - // else if (supportPIN.ExpirationDate < DateTime.Now) - // result = UserValidationResult.PinExpired; - // valid = false; - // } - // else - // { - // supportPIN.IsUsed = true; - // supportPIN.UsingDate = DateTime.Now; - // supportPIN.Notice = computerName; - // } - //} + if (y.Count == 0) + { + result = UserValidationResult.IncorrectPin; + valid = false; + } + else + { + supportPIN = y[0]; + if (supportPIN.IsUsed.Value || + supportPIN.ExpirationDate < DateTime.Now || + supportPIN.UsingDate != null) + { + if (supportPIN.IsUsed.HasValue && supportPIN.IsUsed.Value) + result = UserValidationResult.PinAlreadyUsed; + else if (supportPIN.ExpirationDate < DateTime.Now) + result = UserValidationResult.PinExpired; + valid = false; + } + else + { + supportPIN.IsUsed = true; + supportPIN.UsingDate = DateTime.Now; + supportPIN.Notice = computerName; + } + } } } @@ -434,18 +436,24 @@ namespace BeWo.Service.ServiceImplementations if (result.Value == UserValidationResult.UserValid) { var settings = AppSettings.CreateSettings(); - if (settings.IsPasswordSecurityActiv) - { - if (!lUser.Zeitstempel.HasValue || lUser.Zeitstempel.Value == DateTime.MinValue) - { - lUser.Zeitstempel = lUser.InsTs; - } - - if (!lUser.Zeitstempel.HasValue || DateTime.Now > lUser.Zeitstempel.Value.AddYears(1)) - { - result = UserValidationResult.PasswordExpired; - } - } + + if (settings.UseTwoFactorAuth) + { + + } + else if (settings.IsPasswordSecurityActiv) + { + if (!lUser.Zeitstempel.HasValue || lUser.Zeitstempel.Value == DateTime.MinValue) + { + lUser.Zeitstempel = lUser.InsTs; + } + + if (!lUser.Zeitstempel.HasValue || DateTime.Now > lUser.Zeitstempel.Value.AddYears(1)) + { + result = UserValidationResult.PasswordExpired; + } + } + } var lLogin = new Login {LoginName = pUserName, LoginDate = DateTime.Now}; diff --git a/Shared/BeWoEntityEnums.cs b/Shared/BeWoEntityEnums.cs index 5eed4d7fd..bc7d76138 100644 --- a/Shared/BeWoEntityEnums.cs +++ b/Shared/BeWoEntityEnums.cs @@ -411,6 +411,10 @@ namespace BS.Shared Employee_AllowViewOwnEmployees = 20005, Employee_AllowViewOwnTeam = 20006, + Employee_ViewNotizen = 20010, + Employee_EditNotizen = 20011, + Employee_DeleteNotizen = 20012, + GroupOfPeopleView_Edit = 20100, GroupOfPeopleView_Create = 20101, GroupOfPeopleView_Delete = 20102, @@ -475,6 +479,9 @@ namespace BS.Shared Customer_ViewMedication = 22100, Customer_ViewDiagnosis = 22101, + Customer_ViewNotizen = 22110, + Customer_EditNotizen = 22111, + Customer_DeleteNotizen = 22112, WohnheimView_View = 22201, WohnheimView_Edit = 22202, @@ -667,7 +674,8 @@ namespace BS.Shared IncorrectPin = 4, PinExpired = 5, PinAlreadyUsed = 6, - PasswordExpired = 7 + PasswordExpired = 7, + UserValidTwoFactorAuthenticationNeeded = 8, } public enum SupportConceptApprovalInterval @@ -678,7 +686,8 @@ namespace BS.Shared Monthly, Quarterly, HalfYearly, - Yearly + Yearly, + Hourly } public enum AccountingIntervalType diff --git a/Shared/Core/EnumTranslations.cs b/Shared/Core/EnumTranslations.cs index 722baba99..a06fdec1e 100644 --- a/Shared/Core/EnumTranslations.cs +++ b/Shared/Core/EnumTranslations.cs @@ -109,6 +109,15 @@ namespace BS.Shared.Core { UserRightType.Customer_ViewDiagnosis, Translator.Translate("Klienten Diagnosen ansehen") }, + { + UserRightType.Customer_ViewNotizen, Translator.Translate("Klienten Notizen ansehen") + }, + { + UserRightType.Customer_EditNotizen, Translator.Translate("Klienten Notizen bearbeiten") + }, + { + UserRightType.Customer_DeleteNotizen, Translator.Translate("Klienten Notizen löschen") + }, { UserRightType.DeleteAll, Translator.Translate("Alles löschen") }, @@ -157,6 +166,15 @@ namespace BS.Shared.Core { UserRightType.Employee_AllowViewOwnTeam, Translator.Translate("Mitarbeiter des Teams ansehen") }, + { + UserRightType.Employee_ViewNotizen, Translator.Translate("Mitarbeiter Notizen ansehen") + }, + { + UserRightType.Employee_EditNotizen, Translator.Translate("Mitarbeiter Notizen bearbeiten") + }, + { + UserRightType.Employee_DeleteNotizen, Translator.Translate("Mitarbeiter Notizen löschen") + }, { UserRightType.OrganisationView_Create, Translator.Translate("Organisationen anlegen") }, @@ -1010,6 +1028,9 @@ namespace BS.Shared.Core #region SupportConceptApprovalInterval2Translations SupportConceptApprovalInterval2Translations = new Dictionary { + { + SupportConceptApprovalInterval.Hourly, "Stunde" + }, { SupportConceptApprovalInterval.Daily, "Tag" }, @@ -1031,6 +1052,7 @@ namespace BS.Shared.Core { SupportConceptApprovalInterval.Yearly, "Jahr" } + }; #endregion diff --git a/Shared/DataContracts/Compact/CompactCustomerDC.cs b/Shared/DataContracts/Compact/CompactCustomerDC.cs index f84fbe1a2..222e1804f 100644 --- a/Shared/DataContracts/Compact/CompactCustomerDC.cs +++ b/Shared/DataContracts/Compact/CompactCustomerDC.cs @@ -148,5 +148,7 @@ namespace BS.Shared.DataContracts.Compact [DataMember] public bool IsSubstitutionNeeded { get; set; } + + //public List VarFields { get; set; } } } \ No newline at end of file diff --git a/Shared/Extensions/DateTimeExtensions.cs b/Shared/Extensions/DateTimeExtensions.cs index 954592002..ad8a08e8b 100644 --- a/Shared/Extensions/DateTimeExtensions.cs +++ b/Shared/Extensions/DateTimeExtensions.cs @@ -14,7 +14,8 @@ namespace BS.Shared.Extensions Month, Quarter, Halfyear, - Year + Year, + Hour } public class DateTimeUnit diff --git a/Shared/Services/Calculations.cs b/Shared/Services/Calculations.cs index 9d4c5d224..fd9628499 100644 --- a/Shared/Services/Calculations.cs +++ b/Shared/Services/Calculations.cs @@ -36,6 +36,8 @@ namespace BS.Shared.Services return pPerInterval / (365m / 2m); case SupportConceptApprovalInterval.Yearly: return pPerInterval / 365m; + case SupportConceptApprovalInterval.Hourly: + return pPerInterval * 24; default: return 0; } @@ -295,6 +297,9 @@ namespace BS.Shared.Services case SupportConceptApprovalInterval.Yearly: tu = TimeUnit.Year; break; + case SupportConceptApprovalInterval.Hourly: + tu = TimeUnit.Hour; + break; } @@ -873,7 +878,30 @@ namespace BS.Shared.Services return data; } - + else if (ai.Value == AccountingIntervalType.Monthly) + { + + + AnzahlMonate am = null; + data.UnitCount = 1; + if (data.BillingPeriodStart.HasValue && data.BillingPeriodEnd.HasValue) + { + am = DateTimeUtils.GetTotalMonths(data.BillingPeriodStart.Value, data.BillingPeriodEnd.Value); + decimal monate = Math.Ceiling(am.AnzahlMonateGesamt); + if (monate > data.UnitCount) + { + data.UnitCount = monate; + } + } + + + data.AmountPerUnit = crp.CostRateValue ?? 0; + data.AmountTotal = data.UnitCount * data.AmountPerUnit; + data.AccountingInterval = AccountingIntervalType.Monthly; + data.GrossAmountTotal = data.AmountTotal; + + return data; + } } } } @@ -1671,6 +1699,9 @@ namespace BS.Shared.Services case SupportConceptApprovalInterval.Yearly: ap.ApprovalUnit = AccountingIntervalType.Yearly; break; + case SupportConceptApprovalInterval.Hourly: + ap.ApprovalUnit = AccountingIntervalType.Hourly; + break; } } //ap.MaxApprovedAmount = GetApprovedAmount(ap, scap); @@ -1760,6 +1791,8 @@ namespace BS.Shared.Services return AccountingIntervalType.Quarterly; case SupportConceptApprovalInterval.HalfYearly: return AccountingIntervalType.HalfYearly; + case SupportConceptApprovalInterval.Hourly: + return AccountingIntervalType.Hourly; default: return AccountingIntervalType.Yearly; }