<localView:BeWoView x:Class="BeWo.View.Report.MitarbeiterKoelnRing.FLSReportView"
    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:proxy="clr-namespace:BeWo.ServiceProxy"
    xmlns:sharedCompact="clr-namespace:BS.Shared.DataContracts.Compact;assembly=BS.Shared"
    xmlns:shared="clr-namespace:BS.Shared.DataContracts;assembly=BS.Shared"
    Height="Auto" Width="Auto" HorizontalAlignment="Stretch"
    VerticalAlignment="Stretch" Focusable="True" 
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    xmlns:clientPartials="clr-namespace:BS.Shared.DataContracts.ClientPartials;assembly=BS.Shared"
                    mc:Ignorable="d">

	<GroupBox Style="{StaticResource ObjectEditGroupBox}" Header="Mitarbeiterauswertung" >
		<Grid>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*"/>
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="*"/>
			</Grid.RowDefinitions>
            
            <Grid Width="Auto" Height="Auto" Margin="0,0,0,2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
					<RowDefinition Height="Auto"/>
					<RowDefinition Height="Auto"/>
					<RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                
                <Label x:Name="lblText1" Content="Mitarbeiter:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" />
                <TextBox x:Name="txtText1" HorizontalAlignment="Left" Width="200" HorizontalContentAlignment="Left" Height="22" Grid.Column="1" Grid.Row="0" Margin="3,0,0,0" TextChanged="txtText_TextChanged" />
                <Label x:Name="lblText2" Content="Abteilung:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" />
                <TextBox x:Name="txtText2" HorizontalAlignment="Left" Width="200" HorizontalContentAlignment="Left" Height="22" Grid.Column="1" Grid.Row="1" Margin="3,0,0,0" TextChanged="txtText_TextChanged" />
                <Label x:Name="lblText3" Content="Team:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" />
                <TextBox x:Name="txtText3" HorizontalAlignment="Left" Width="200" HorizontalContentAlignment="Left" Height="22" Grid.Column="1" Grid.Row="2" Margin="3,0,0,0" TextChanged="txtText_TextChanged" />
                <Label x:Name="lblText4" Content="ambulant/stationär:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" />
                <TextBox x:Name="txtText4" HorizontalAlignment="Left" Width="200" HorizontalContentAlignment="Left" Height="22" Grid.Column="1" Grid.Row="3" Margin="3,0,0,0" TextChanged="txtText_TextChanged" />
                <Label x:Name="lblText5" Content="Eingruppierung:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="4" VerticalAlignment="Center" />
                <TextBox x:Name="txtText5" HorizontalAlignment="Left" Width="200" HorizontalContentAlignment="Left" Height="22" Grid.Column="1" Grid.Row="4" Margin="3,0,0,0" TextChanged="txtText_TextChanged" />

				
                <Label Content="Startdatum:" Grid.Column="0" Grid.Row="5" VerticalAlignment="Center"/>
                <dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Column="1" Grid.Row="5" x:Name="datePickerStartDate" Width="120" HorizontalAlignment="Left" Margin="3,0,0,0" />
                <Label Content="Enddatum:"  Grid.Column="0" Grid.Row="6" VerticalAlignment="Center" />
                <dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Column="1" Grid.Row="6" x:Name="datePickerEndDate" HorizontalAlignment="Left" Width="120" Margin="3,0,0,0" />

                <Label Grid.Row="0" Content="Intervall" Margin="10,0,0,0" Grid.Column="2" Padding="0,5,0,0" />
                <StackPanel Grid.ColumnSpan="1" Grid.Row="1" Grid.Column="2" HorizontalAlignment="Left" Orientation="Vertical" Margin="10,8,0,0" Grid.RowSpan="8" VerticalAlignment="Stretch"  >
                    <RadioButton Content="Tag" Height="23" GroupName="interval" x:Name="radioButtonIntervalDay"/>
                    <RadioButton Content="Woche" Height="23" IsChecked="True" GroupName="interval" x:Name="radioButtonIntervalWeek" Margin="0,0,0,0"/>
                    <RadioButton Content="Monat" Height="23" GroupName="interval" x:Name="radioButtonIntervalMonth" Margin="0,0,0,0"/>
                    <RadioButton Content="Quartal" Height="23" GroupName="interval" x:Name="radioButtonIntervalQuarter" Margin="0,0,0,0"/>
                    <RadioButton Content="Jahr" Height="23" GroupName="interval" x:Name="radioButtonIntervalYear" Margin="0,0,0,0"/>
                </StackPanel>
                <Label Grid.Row="0" Content="Leistungskategorien" Margin="10,0,0,0" Grid.Column="3" Padding="0,5,0,0" />
                <ListBox IsSynchronizedWithCurrentItem="True" Grid.Column="3" Grid.Row="1" Grid.RowSpan="4" Margin="10,0,0,0" x:Name="serviceCategoryList" Height="96" VerticalAlignment="Top"/>
				<CheckBox x:Name="checkbox_showServiceRecords" Grid.Column="3" Grid.Row="5" IsChecked="False" Content="Einträge auflisten" Margin="10,5,0,0" Grid.ColumnSpan="1" />
				<CheckBox x:Name="checkbox_sortBySubGroup" Grid.Column="3" Grid.Row="6" IsChecked="False" Content="Nach Klienten sortieren" Margin="10,5,0,0" Grid.ColumnSpan="1" />
                
                <Label Grid.Column="4" Grid.Row="0" Content="Ziele" x:Name="lblGoals" Margin="10,0,0,0" Padding="0,5,0,0" />
                <TreeView x:Name="treeview_Goals" Grid.Column="4" Grid.Row="1" Grid.RowSpan="7" Margin="10,0,0,0" ItemContainerStyle="{DynamicResource goal_treeitemstyle}" ItemTemplate="{DynamicResource goal_treeitemtemplate}" Height="161" VerticalAlignment="Top"   >
                    <TreeView.Resources>
                        <Style x:Key="goal_treeitemstyle" TargetType="TreeViewItem">
                            <Setter Property="IsExpanded" Value="{Binding Path=IsExpanded, Mode=TwoWay}" />
                        </Style>
                        <HierarchicalDataTemplate x:Key="goal_treeitemtemplate" DataType="{x:Type clientPartials:SupportConceptGoalDC}" ItemsSource="{Binding Path=Children}" >
                            <Grid >
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                </Grid.ColumnDefinitions>
                                <CheckBox x:Name="Bd" Tag="{Binding}" IsChecked="{Binding Path=IsChecked}" Visibility="{Binding Path=HasParent, Converter={StaticResource BoolVisibilityConverter}}" Grid.Column="0" Margin="3 2" VerticalAlignment="Center"/>
                                <TextBlock x:Name="BdText" Tag="{Binding}" Grid.Column="1" Margin="3 2" Text="{Binding Path=Name}" VerticalAlignment="Center" />
                            </Grid>
                        </HierarchicalDataTemplate>
                    </TreeView.Resources>
                </TreeView>
                <Button x:Name="button_generate" Grid.Row="7" Grid.Column="0" Content="Aktualisieren" Click="button_generate_Click" Height="24" HorizontalAlignment="Left" Width="80" />
            </Grid>

            
            <Grid Background="{DynamicResource EmployeeContentBrush}" x:Name="reportContent" Grid.Row="1" Grid.ColumnSpan="7" Margin="0,0,0,18"/>
            <TextBlock Grid.Column="0" Grid.ColumnSpan="7" Grid.Row="1" x:Name="textblock_link_pdfexport" VerticalAlignment="Bottom" Margin="0,0,90,0" HorizontalAlignment="Right" FontSize="14"><Hyperlink x:Name="linkPdfExport" TargetName="_NewWindow" Foreground="#FF2B508B" RequestNavigate="linkPdfExport_RequestNavigate" ><Run Text="Drucken"/></Hyperlink></TextBlock>
            <TextBlock Grid.Column="0" Grid.ColumnSpan="7" Grid.Row="1" x:Name="textblock_link" VerticalAlignment="Bottom" Margin="0,0,5,0" HorizontalAlignment="Right" FontSize="14"><Hyperlink x:Name="linkExcelExport" TargetName="newWindow" Foreground="#FF2B508B" RequestNavigate="linkExcelExport_RequestNavigate" ><Run Text="Excel Export"/></Hyperlink></TextBlock>
			

        </Grid>
	</GroupBox>

</localView:BeWoView>
