194 lines
12 KiB
XML
194 lines
12 KiB
XML
<localView:BeWoView x:Class="BeWo.View.Detail.Report.ServicesReportView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:localSearchView="clr-namespace:BeWo.View.Search"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
xmlns:dxp="http://schemas.devexpress.com/winfx/2008/xaml/printing"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxpbars="http://schemas.devexpress.com/winfx/2008/xaml/printing/bars"
|
|
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Focusable="True">
|
|
|
|
<GroupBox Header="{markup:Translate Quittierungsbelege}" Style="{StaticResource ObjectEditGroupBox}">
|
|
<!--<TabControl>
|
|
<TabItem Header="Neu Erstellen" x:Name="TabItemNeuErstellen">-->
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Grid.Row="0">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" MinWidth="50"/>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<ComboBox Height="23" x:Name="FilterComboBox" Margin="3" VerticalAlignment="Top" />
|
|
<CheckBox Margin="3 7" Name="checkbox_all" IsChecked="True" Content="Alle Klienten" Checked="CheckBox_Checked" />
|
|
|
|
<uc:PopUpEdit IsReadOnly="True" Height="23" Grid.Row="0" Grid.Column="2"
|
|
x:Name="popupedit_customer" DeleteButtonVisibility="Collapsed"
|
|
Visibility="{Binding Path=IsChecked, ElementName=checkbox_all, Converter={StaticResource BoolVisibilityConverter}, ConverterParameter='false'}"
|
|
Margin="3" VerticalAlignment="Top" PopUpClick="popupedit_customer_PopUpClick" Cursor="Arrow" PreviewMouseDoubleClick="Popupedit_customer_OnPreviewMouseDoubleClick" />
|
|
|
|
<Label Margin="0 2" Content="Monat" Grid.Row="0" Grid.Column="3" />
|
|
<ComboBox Height="23" x:Name="combobox_month" Grid.Row="0" Grid.Column="4" Margin="3" VerticalAlignment="Top" Width="90" />
|
|
|
|
<Label Margin="0 2" Content="Vom" Grid.Row="0" Grid.Column="5" />
|
|
<ComboBox Height="23" x:Name="combobox_Startday" Grid.Row="0" Grid.Column="6" Margin="3,3,0,3" VerticalAlignment="Top" Width="50" />
|
|
|
|
<TextBlock Margin="0 7,3,0" Text=". bis" Grid.Row="0" Grid.Column="7" Foreground="Black" />
|
|
<ComboBox Height="23" x:Name="combobox_Endday" Grid.Row="0" Grid.Column="8" Margin="3,3,0,3" VerticalAlignment="Top" Width="50" />
|
|
|
|
<TextBlock Margin="0 7,3,0" Text=". Jahr" Grid.Row="0" Grid.Column="9" Foreground="Black"/>
|
|
<ComboBox Height="23" x:Name="combobox_year" Grid.Row="0" Grid.Column="10" VerticalAlignment="Top" Margin="3" Width="60" />
|
|
|
|
<Button Name="button_generate" Grid.Row="0" Grid.Column="11" VerticalAlignment="Top" FontWeight="Bold" Content="Erstellen" Click="button_generate_Click" Height="23" Margin="3" />
|
|
|
|
<StackPanel Grid.Row="1" Grid.ColumnSpan="12" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Stretch">
|
|
<CheckBox Margin="3 7" Grid.Row="1" Name="chkForAllCostbearer" Content="{markup:Translate Nur für ausgewählten Kostenträger erstellen}" IsChecked="False" />
|
|
<uc:PopUpEdit PreviewMouseDoubleClick="Popupedit_costbearer_OnPreviewMouseDoubleClick"
|
|
IsReadOnly="True" Width="250" Height="23"
|
|
x:Name="popupedit_costbearer"
|
|
DeleteButtonVisibility="Collapsed"
|
|
Visibility="{Binding Path=IsChecked, ElementName=chkForAllCostbearer, Converter={StaticResource BoolVisibilityConverter}, ConverterParameter='true'}"
|
|
Margin="3" VerticalAlignment="Top" PopUpClick="popupedit_costbearer_PopUpClick" Cursor="Arrow" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="2" Grid.ColumnSpan="12" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Stretch">
|
|
<CheckBox Margin="3 7" Grid.Row="1" Name="chkForAllEmployees" Content="Nur für ausgewählten Mitarbeiter erstellen" IsChecked="False" />
|
|
<uc:PopUpEdit PreviewMouseDoubleClick="Popupedit_employee_OnPreviewMouseDoubleClick"
|
|
IsReadOnly="True" Width="250" Height="23"
|
|
x:Name="popupedit_employee"
|
|
DeleteButtonVisibility="Collapsed"
|
|
Visibility="{Binding Path=IsChecked, ElementName=chkForAllEmployees, Converter={StaticResource BoolVisibilityConverter}, ConverterParameter='true'}"
|
|
Margin="3" VerticalAlignment="Top" PopUpClick="popupedit_employee_PopUpClick" Cursor="Arrow" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Row="3" Grid.ColumnSpan="12" Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Stretch">
|
|
<CheckBox Margin="3 7" Grid.Row="1" Name="ChkForAllServiceCategories" Content="Nur für ausgewählte Leistungskategorie erstellen" IsChecked="False" />
|
|
<uc:NullItemComboBox Width="250" Margin="3" VerticalAlignment="Top" x:Name="ServiceCategoriesComboBox" SelectedIndex="0"
|
|
Visibility="{Binding Path=IsChecked, ElementName=ChkForAllServiceCategories, Converter={StaticResource BoolVisibilityConverter}, ConverterParameter='true'}"/>
|
|
</StackPanel>
|
|
|
|
<Popup Margin="10" Name="popup_customer" StaysOpen="False" Placement="MousePoint" Width="400" Grid.Row="3"
|
|
Grid.Column="0" Height="400" Closed="popup_Closed" Opened="popup_Opened">
|
|
<localSearchView:CustomerSearchView ItemSelected="CustomerSearchView_CustomerSelected" x:Name="customersearchview" />
|
|
</Popup>
|
|
|
|
<Popup Margin="10" Name="popup_costbearer" StaysOpen="False" Placement="MousePoint" Width="400" Grid.Row="3"
|
|
Grid.Column="0" Height="400" Closed="popup_Closed" Opened="popup_Opened">
|
|
<localSearchView:OrganisationSearchView SearchMode="CostBearer" ItemSelected="OrganisationSearchView_OrganisationSelected" x:Name="organisationsearchview" />
|
|
</Popup>
|
|
|
|
<Popup Margin="10" Name="popup_employee" StaysOpen="False" Placement="MousePoint" Width="400" Grid.Row="3"
|
|
Grid.Column="0" Height="400" Closed="popup_Closed" Opened="popup_Opened">
|
|
<localSearchView:EmployeeSearchView ItemSelected="EmployeeSearchView_EmployeeSelected" x:Name="employeesearchview" />
|
|
</Popup>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
|
|
<dxp:DocumentPreviewControl x:Name="docPrevControl" Grid.Row="1" Visibility="Collapsed" CommandBarStyle="Bars">
|
|
<dxp:DocumentPreviewControl.CommandProvider>
|
|
<dxp:DocumentCommandProvider>
|
|
<dxp:DocumentCommandProvider.Actions>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.ExportCsv}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.ExportMht}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.ExportTxt}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.Open}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.DocumentMap}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.Watermark}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.Scale}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.PrintDirect}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.PageSetup}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.Save}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.Send}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.Parameters}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.Thumbnails}"/>
|
|
<dxb:RemoveAction ElementName="{x:Static dxpbars:DefaultPreviewBarItemNames.EditingFields}"/>
|
|
</dxp:DocumentCommandProvider.Actions>
|
|
</dxp:DocumentCommandProvider>
|
|
</dxp:DocumentPreviewControl.CommandProvider>
|
|
|
|
</dxp:DocumentPreviewControl>
|
|
</Grid>
|
|
<!--</TabItem>
|
|
|
|
|
|
|
|
<TabItem Header="Übersicht" x:Name="TabItemUebersicht">
|
|
<StackPanel Orientation="Vertical">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<dxe:ComboBoxEdit Margin="3" Height="23" Width="100" x:Name="MonthCombobox" HorizontalAlignment="Left" EditValueChanged="MonthCombobox_OnEditValueChanged" />
|
|
<dxe:ComboBoxEdit Margin="3" Height="23" Width="100" x:Name="YearCombobox" HorizontalAlignment="Left" EditValueChanged="YearCombobox_OnEditValueChanged" />
|
|
</StackPanel>
|
|
|
|
<dxg:GridControl x:Name="GridControlQuittierungsCheck" Visibility="Visible" AllowDrop="True" Margin="5,5,5,5" VerticalContentAlignment="Center" BorderBrush="Black" >
|
|
<dxg:GridControl.Columns>
|
|
<dxg:GridColumn Header="Klient" FieldName="Klient" Width="150" ReadOnly="True"/>
|
|
|
|
<dxg:GridColumn Header="Quittierungsbeleg Gedruckt" FieldName="QuittierungsbelegGedruckt" Width="175" ReadOnly="True" />
|
|
|
|
<dxg:GridColumn Header="Quittierungsbeleg Gedruckt Am" FieldName="QuittierungsbelegGedrucktAm" Width="175" ReadOnly="True"/>
|
|
|
|
<dxg:GridColumn Header="Quittierungsbeleg Gedruckt Von" FieldName="QuittierungsbelegGedrucktVon" Width="175" ReadOnly="True" />
|
|
|
|
|
|
<dxg:GridColumn Header="Quittierungsbeleg Unterschrieben" FieldName="QuittierungsbelegUnterschrieben" Width="175" >
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<dxe:CheckEdit x:Name="CheckBoxQBU" HorizontalAlignment="Center" IsChecked="{Binding RowData.Row.QuittierungsbelegUnterschrieben, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" EditValueChanged="CheckBoxQBU_OnEditValueChanged" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
<dxg:GridColumn.CellStyle>
|
|
<Style TargetType="{x:Type dxg:LightweightCellEditor}" >
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding RowData.Row.IsQbUnterschriebenAvailable}" Value="True">
|
|
<Setter Property="IsEnabled" Value="True" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding RowData.Row.IsQbUnterschriebenAvailable}" Value="False">
|
|
<Setter Property="IsEnabled" Value="False" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</dxg:GridColumn.CellStyle>
|
|
</dxg:GridColumn>
|
|
|
|
<dxg:GridColumn Header="Quittierungsbeleg Unterschrieben Von" FieldName="QuittierungsbelegUnterschriebenVon" Width="175" ReadOnly="True" />
|
|
|
|
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView AllowPerPixelScrolling="True" ShowTotalSummary="False" AutoWidth="True" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
|
|
</StackPanel>
|
|
</TabItem>
|
|
</TabControl>-->
|
|
</GroupBox>
|
|
|
|
</localView:BeWoView> |