<localView:BeWoView x:Class="BeWo.View.Detail.Report.AccountingReportView" 
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" 
                    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" 
                    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" 
                    xmlns:localView="clr-namespace:BeWo.View" 
                    xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
                    xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars" 
                    Height="Auto" Width="Auto" HorizontalAlignment="Stretch"
                    VerticalAlignment="Stretch" Focusable="True">
	<Grid>
		<GroupBox Header="Abrechnung" Style="{StaticResource ObjectEditGroupBox}">
			<Grid>
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
          <RowDefinition Height="*" />
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>
				<StackPanel Orientation="Vertical">
          <Grid>
            <Grid.ColumnDefinitions>
              <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" />
            </Grid.RowDefinitions>
            <Label VerticalAlignment="Center" HorizontalAlignment="Left" Content="Abfrage" Width="100" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="4" />
            <Label Content="Startdatum:" VerticalAlignment="Center" Grid.Column="0" Grid.Row="1" />
            <dxe:DateEdit x:Name="datePickerStartDate" Width="120" HorizontalAlignment="Left" Margin="3,0,0,0" Grid.Column="1" Grid.Row="1" EditValueChanged="datePickerStartDate_EditValueChanged" />
            <Label Content="Enddatum:" VerticalAlignment="Center" Grid.Column="2" Grid.Row="1" />
            <dxe:DateEdit x:Name="datePickerEndDate" HorizontalAlignment="Left" Width="120" Margin="3,0,0,0" Grid.Column="3" Grid.Row="1" EditValueChanged="datePickerEndDate_EditValueChanged" />
            <Button HorizontalAlignment="Left" x:Name="btnExecuteQuery" Width="80" Margin="0,3,0,3" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="4" Click="btnExecuteQuery_Click">Ausführen</Button>
          </Grid>
				</StackPanel>
                
        <TextBlock Grid.Row="2" x:Name="textblock_link_pdfexport_direct" VerticalAlignment="Center" Margin="3,3,0,3" FontSize="14" Visibility="Hidden">
            <Hyperlink x:Name="linkPdfExport_direct" TargetName="_NewWindow" Foreground="#FF2B508B" RequestNavigate="linkPdfExport_direct_RequestNavigate">
                <Run Text="Bericht öffnen" />
            </Hyperlink>
        </TextBlock>
        
        <dxg:GridControl x:Name="datagrid_result" AutoPopulateColumns="True" VerticalAlignment="Stretch" Visibility="Collapsed" Grid.Row="3" HorizontalAlignment="Stretch">
          <dxg:GridControl.View>
            <dxg:TableView AllowEditing="False" ShowGroupPanel="False" ShowGroupedColumns="False" NavigationStyle="Cell" Margin="3,22,3,3" IsColumnMenuEnabled="False" IsGroupPanelMenuEnabled="False" IsTotalSummaryMenuEnabled="False" IsRowCellMenuEnabled="False" />
          </dxg:GridControl.View>
           <!--ShowTotalSummary="True"<dxg:GridControl.TotalSummary>
            <dxg:GridSummaryItem SummaryType="Count" x:Name="summaryItem" />
          </dxg:GridControl.TotalSummary>-->
        </dxg:GridControl>
                
				<Grid Grid.Row="4" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="5,5,5,0">
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="*" />
						<ColumnDefinition Width="Auto" />
						<ColumnDefinition Width="Auto" />
					</Grid.ColumnDefinitions>
					<TextBlock Grid.Column="1" x:Name="textblock_link_pdfexport" VerticalAlignment="Center" Margin="5 0" HorizontalAlignment="Left" FontSize="14">
						<Hyperlink x:Name="linkPdfExport" TargetName="_NewWindow" Foreground="#FF2B508B" RequestNavigate="linkPdfExport_RequestNavigate">
							<Run Text="Drucken" />
						</Hyperlink>
					</TextBlock>
					<TextBlock Grid.Column="2" x:Name="textblock_link" VerticalAlignment="Center" Margin="5 0" HorizontalAlignment="Left" FontSize="14">
						<Hyperlink x:Name="linkExcelExport" TargetName="newWindow" Foreground="#FF2B508B" RequestNavigate="linkExcelExport_RequestNavigate">Excel Export</Hyperlink>
					</TextBlock>
				</Grid>
			</Grid>
		</GroupBox>
	</Grid>
</localView:BeWoView>