<Page x:Class="WPF_Sample.Views.Examples.TimeCard"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="460" d:DesignWidth="844"
	Title="TimeCard">

    <Grid>
        <Rectangle Height="1" HorizontalAlignment="Stretch" Margin="16,45,10,0" Name="rectangle1" Stroke="Black" VerticalAlignment="Top" />
        <Label Content="Time Card Services" FontSize="22" FontWeight="Normal" Height="44" HorizontalAlignment="Left" Margin="10,10,0,0" Name="label2" VerticalAlignment="Top" Width="318" />



        <DataGrid AutoGenerateColumns="False" HorizontalAlignment="Stretch" Margin="15,81,381,0" Name="userDataGrid" VerticalAlignment="Top" ItemsSource="{Binding STWS.UserInfo}" VerticalContentAlignment="Stretch" SelectionMode="Extended" MaxHeight="125" CanUserAddRows="False">
            <DataGrid.Columns>
                <DataGridTextColumn Header="User ID" Binding="{Binding UserID}" />
                <DataGridTextColumn Header="Employee ID" Binding="{Binding EmpIdentifier}" />
                <DataGridTextColumn Header="First Name" Binding="{Binding FirstName}" />
                <DataGridTextColumn Header="Middle" Binding="{Binding MiddleName}" />
                <DataGridTextColumn Header="Last Name" Binding="{Binding LastName}" />
                <DataGridTextColumn Header="WebLogin" Binding="{Binding WebLogin}" />
            </DataGrid.Columns>
        </DataGrid>
        <Border BorderBrush="#FFA3A3A3" BorderThickness="1" Height="95" HorizontalAlignment="Stretch" Margin="15,105,381,0" Name="borderNoRecords" VerticalAlignment="Top" Background="White">
            <Label Content="No Records Found" Height="28" Name="label3" HorizontalContentAlignment="Center" />
        </Border>
        <Button Content="Show All" Height="20" HorizontalAlignment="Right" Margin="0,59,382,0" Name="btnGetAll" VerticalAlignment="Top" Width="60" Click="btnGetAll_Click" FontSize="11" FontStyle="Italic" />
        <DatePicker Height="25" HorizontalAlignment="Right" Margin="0,102,104,0" Name="txtStartDate" VerticalAlignment="Top" Width="132" />
        <DatePicker Height="25" HorizontalAlignment="Right" Margin="0,135,104,0" Name="txtEndDate" VerticalAlignment="Top" Width="132" />
        <Label Content="Start Date:" Height="28" HorizontalAlignment="Right" Margin="0,99,242,0" Name="label1" VerticalAlignment="Top" FontWeight="Normal" />
        <Label Content="End Date:" FontWeight="Normal" Height="28" HorizontalAlignment="Right" Margin="0,132,242,0" Name="label4" VerticalAlignment="Top" />
        <Label Content="Select Users:" Height="28" HorizontalAlignment="Left" Margin="12,58,0,0" Name="lblUsers" VerticalAlignment="Top" FontWeight="Normal" />
        
        
        <DataGrid AutoGenerateColumns="False" Height="Auto" HorizontalAlignment="Stretch" Margin="14,290,32,0" Name="timeDataGrid" VerticalAlignment="Top" Width="Auto" MaxHeight="150" CanUserAddRows="False">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Employee ID" Binding="{Binding EmpIdentifier}" />
                <DataGridTextColumn Header="First Name" Binding="{Binding FirstName}" />
                <DataGridTextColumn Header="Last Name" Binding="{Binding LastName}" />
                <DataGridTextColumn Header="PayTypeID" Binding="{Binding PayTypeID}" />
                <DataGridTextColumn Header="PayTypeName" Binding="{Binding PayTypeName}" />
                <DataGridTextColumn Header="ApplyToDate" Binding="{Binding ApplyToDate}" />
                <DataGridTextColumn Header="InTime" Binding="{Binding InTime}" />
                <DataGridTextColumn Header="InType" Binding="{Binding InType}" />
                <DataGridTextColumn Header="OutTime" Binding="{Binding OutTime}" />
                <DataGridTextColumn Header="OutType" Binding="{Binding OutType}" />
                <DataGridTextColumn Header="RegularMinutes" Binding="{Binding RegularMinutes}" />
                <DataGridTextColumn Header="UnpaidMinutes" Binding="{Binding UnpaidMinutes}" />                
            </DataGrid.Columns>

        </DataGrid>
            
           
        <Button Content="GetTimes" Height="23" HorizontalAlignment="Right" Margin="0,177,148,0" Name="btnGetTime" VerticalAlignment="Top" Width="75" Click="btnGetTime_Click" />
        <Label Content="Results:" FontWeight="Normal" Height="28" Margin="11,267,783,0" Name="label5" VerticalAlignment="Top" />
        <Border Background="White" BorderBrush="#FFA3A3A3" BorderThickness="1" Height="100" HorizontalAlignment="Stretch" Margin="15,316,32,0" Name="borderNoRecordsTime" VerticalAlignment="Top">
            <Label Content="No Records Found" Height="28" HorizontalContentAlignment="Center" Name="label6" />
        </Border>
        <Label Content="0" Height="28" HorizontalAlignment="Left" Margin="57,267,0,0" Name="lblRecordCount" VerticalAlignment="Top" HorizontalContentAlignment="Stretch" />
        <Label Height="23" HorizontalAlignment="Right" Margin="0,270,33,0" Name="lblProcessingTime" VerticalAlignment="Top" FontStyle="Italic" HorizontalContentAlignment="Stretch" />
        <Label Content="(Hold Ctrl or Shift to select)" Height="28" HorizontalAlignment="Left" Margin="12,196,0,0" Name="label7" VerticalAlignment="Top" FontStyle="Italic" FontSize="11" />
    </Grid>

</Page>
