<localView:BeWoView x:Class="BeWo.View.Report.AnnualReport.AnnualReportView" 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" Height="Auto" Width="Auto" 
                    xmlns:shared="clr-namespace:BS.Shared.DataContracts;assembly=BS.Shared" 
                    xmlns:core="clr-namespace:BeWo.Core"
                    HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Focusable="True" 
                    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
                    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    <GroupBox Style="{StaticResource ObjectEditGroupBox}" Header="Jahresbericht">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>




            <Grid>
                <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 Content="Jahr:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" />
                <ComboBox Grid.Column="1" Grid.Row="0" Margin="3" Height="23" Name="combobox_year" />
                
                <Label x:Name="lblCostcenter" Content="Kostenträger:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" />
                <uc:PopUpEdit Grid.Column="1" Grid.ColumnSpan="1" Grid.Row="1" 
                              IsReadOnly="True" x:Name="popupedit_costcenter" DeleteButtonVisibility="Collapsed" PopUpClick="popupedit_costcenter_PopUpClick" HorizontalAlignment="Left" Width="200" HorizontalContentAlignment="Left" Height="24" Margin="3" />

                <Label  Content="Team:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" />
                <uc:PopUpEdit Grid.Column="1" Grid.ColumnSpan="1" Grid.Row="2" 
                              IsReadOnly="True" x:Name="popupedit_team" DeleteButtonVisibility="Collapsed" PopUpClick="popupedit_team_PopUpClick" 
                              HorizontalAlignment="Left" Width="200" HorizontalContentAlignment="Left" Height="24" Margin="3" />

                <Label  Content="Betreuungsart:" HorizontalAlignment="Left" Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" />
                <ComboBox Grid.Column="1" Grid.Row="3" Margin="3" Height="23" Name="combobox_customercaretype" />
                
                <Button x:Name="button_generate" Grid.Column="1" Grid.Row="4"  Content="Aktualisieren" Click="button_generate_Click" Height="24" HorizontalAlignment="Right" Width="90" Margin="3" />

              <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>
            </Grid>
            <ScrollViewer Grid.Row="1" Grid.ColumnSpan="7" >
                <Grid x:Name="reportContent" Margin="0,10,0,18">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                </Grid>
            </ScrollViewer>
            <!--<TextBlock Grid.Column="0" Grid.ColumnSpan="7" Grid.Row="1" x:Name="textblock_link_pdfexport" VerticalAlignment="Bottom" Margin="0,0,5,0" HorizontalAlignment="Right" FontSize="14">
				<Hyperlink x:Name="linkPdfExport" TargetName="_NewWindow" Foreground="#FF2B508B" RequestNavigate="linkPdfExport_RequestNavigate">
					<Run Text="Drucken" />
				</Hyperlink>
            </TextBlock>-->
            <Popup Margin="10" x:Name="popup_costcenter" StaysOpen="False" Placement="MousePoint" Width="400" Grid.Row="5" Height="400" Grid.ColumnSpan="7">
                <localSearchView:OrganisationSearchView SearchMode="CostBearer" ItemSelected="OrganisationSearchView_ItemSelected" />
            </Popup>
            <Popup Margin="10" x:Name="popup_team" StaysOpen="False" Placement="MousePoint" Width="400" Grid.Row="5" Height="400" Grid.ColumnSpan="7">
                <localSearchView:TeamSearchView ItemSelected="TeamSearchView_ItemSelected" />
            </Popup>
        </Grid>
    </GroupBox>
</localView:BeWoView>