<localView:BeWoView x:Class="BeWo.View.Report.Auslastung.AuslastungReportView2"
    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"
    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:dxp="http://schemas.devexpress.com/winfx/2008/xaml/printing"
                    mc:Ignorable="d">

	<GroupBox Style="{StaticResource ObjectEditGroupBox}" Header="Mitarbeiterauslastung" >
		<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="*" />
				<RowDefinition Height="Auto" />
			</Grid.RowDefinitions>
			<dxp:DocumentPreview x:Name="docPrevControl" Grid.Row="5" Grid.ColumnSpan="5" Visibility="Collapsed"></dxp:DocumentPreview>
			<CheckBox Margin="3 7" Name="checkbox_showTeamReport" Grid.Row="0" IsChecked="False" Content="Nach Teams sortieren" />

			<CheckBox Margin="3 7" Name="checkbox_all" Grid.Row="1" IsChecked="True" Content="Alle Mitarbeiter" Checked="CheckBox_Checked" />
			<!--<CheckBox Margin="3 7" Name="checkbox_allTeams" Grid.Row="1" IsChecked="True" Content="Alle Teams" Checked="CheckBoxTeam_Checked" Visibility="Collapsed"/>-->

			<uc:PopUpEdit Grid.Row="1" IsReadOnly="True" MinWidth="50" Grid.Column="1" Grid.ColumnSpan="3"
                          x:Name="popupedit_employee" DeleteButtonVisibility="Collapsed"
                          Visibility="{Binding Path=IsChecked, ElementName=checkbox_all, Converter={StaticResource BoolVisibilityHiddenConverter}, ConverterParameter='false'}"
                          Margin="3" VerticalAlignment="Top" PopUpClick="popupedit_employee_PopUpClick" Cursor="Arrow" />

			<!--<uc:PopUpEdit Grid.Row="1" IsReadOnly="True"  MinWidth="50" Grid.Column="1" Grid.ColumnSpan="3"
						  x:Name="popupedit_team" DeleteButtonVisibility="Collapsed"
						  Visibility="{Binding Path=IsChecked, Converter={StaticResource BoolVisibilityHiddenConverter}, ConverterParameter=false, ElementName=checkbox_allTeams}"
						  Margin="3" VerticalAlignment="Top" PopUpClick="popupedit_team_PopUpClick" Cursor="Arrow" />-->


			<Label Margin="0 2" Content="Monat" Grid.Row="2" />
			<ComboBox Height="23" x:Name="combobox_month" Grid.Row="2" Grid.Column="1" Margin="3" VerticalAlignment="Top" Width="90" />

			<TextBlock Margin="0 7,3,0" Text=".   Jahr" Grid.Row="2" Grid.Column="2" Foreground="Black"/>
			<ComboBox Height="23" x:Name="combobox_year" Grid.Row="2" Grid.Column="3" VerticalAlignment="Top" Margin="3" Width="60" />

			<Button Name="button_generate" Grid.Row="3" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Top" FontWeight="Bold" Content="Erstellen" Click="button_generate_Click" Height="23" Margin="3" />


			<Popup Margin="10" Name="popup_employee" StaysOpen="False" Placement="MousePoint" Width="400" Grid.Row="5" Height="400" Closed="popup_Closed" Opened="popup_Opened">
				<localSearchView:EmployeeSearchView ItemSelected="EmployeeSearchView_EmployeeSelected" x:Name="employeesearchview" />
			</Popup>
			<!--<Popup Margin="10" Name="popup_team" StaysOpen="False" Placement="MousePoint" Width="400" Grid.Row="5" Height="400" Closed="popup_Closed" Opened="popup_Opened">
				<localSearchView:TeamSearchView ItemSelected="TeamSearchView_TeamSelected" x:Name="teamsearchview" />
			</Popup>-->
		</Grid>
	</GroupBox>

</localView:BeWoView>
