<Page x:Class="esoft.Pages.AddEditServicePage"
      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" 
      xmlns:local="clr-namespace:esoft.Pages"
      xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
      mc:Ignorable="d"
      Title="Создание задачи" Height="1080" Width="1920">

    <Grid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Height="1080" Width="1920" Background="White">
            <StackPanel VerticalAlignment="Center" Height="1080" Width="1920" Background="#e8e8e8">
                <Separator Height="50" Background="{x:Null}" />
                <StackPanel>
                    <StackPanel Orientation="Horizontal" Width="1750" HorizontalAlignment = "Left">
                        <Separator Width="20" Background="{x:Null}"/>
                        <StackPanel Orientation="Horizontal" Width="1200">
                            <TextBlock Style="{StaticResource BlockCommon}" Text="Название задачи:" FontSize="40"></TextBlock>
                            <Separator Width="26" Background="{x:Null}" />
                            <TextBox x:Name="TBoxTitle" Width="851" Height="40" FontSize="30"></TextBox>
                        </StackPanel>
                        <Separator Width="20" Background="{x:Null}" />
                        <StackPanel Orientation="Horizontal" Width="485">
                            <TextBlock Style="{StaticResource BlockCommon}" Text="Дата:" FontSize="40"></TextBlock>
                            <Separator Width="5" Background="{x:Null}" />
                            <DatePicker Name="DPickerDateCreate" Background="White" Height="40" FontSize="24" Width="350" IsEnabled="False" />
                        </StackPanel>
                    </StackPanel>

                    <Separator Height="30" Background="{x:Null}" />

                    <StackPanel Orientation="Horizontal" Width="1750" HorizontalAlignment = "Left">
                        <StackPanel Orientation="Horizontal" Width="1222">
                            <Separator Width="20" Background="{x:Null}"/>
                            <TextBlock Style="{StaticResource BlockCommon}" Text="ФИО исполнителя:" FontSize="40"></TextBlock>
                            <Separator Width="5" Background="{x:Null}" />
                            <ComboBox Name="cbExecutor" Width="850" Height="40" FontSize="29" DisplayMemberPath=""></ComboBox>
                        </StackPanel>

                        <Separator Width="17" Background="{x:Null}" />

                        <StackPanel Orientation="Horizontal" Width="270">
                            <TextBlock Style="{StaticResource BlockCommon}" Text="Крайний срок:" FontSize="40"/>
                        </StackPanel>
                    </StackPanel>

                    <Separator Height="0" Background="{x:Null}" />

                    <StackPanel Orientation="Horizontal" Width="1750" HorizontalAlignment = "Left">
                        <StackPanel Orientation="Horizontal" Width="1222">
                            <Separator Width="20" Background="{x:Null}"/>
                            <TextBlock Style="{StaticResource BlockCommon}" Text="ФИО менеджера:" FontSize="40"></TextBlock>
                            <Separator Width="30" Background="{x:Null}" />
                            <ComboBox Name="cbManager" Width="850" Height="40" FontSize="29" DisplayMemberPath=""></ComboBox>
                        </StackPanel>

                        <Separator Width="17" Background="{x:Null}" />

                        <StackPanel Orientation="Horizontal" Width="500">
                            <DatePicker Name="DPickerDateDeadLine" Background="White" Height="40" FontSize="24" Width="450" />
                        </StackPanel>
                    </StackPanel>


                    <Separator Height="30" Background="{x:Null}" />

                    <StackPanel Orientation="Horizontal" Width="1750" HorizontalAlignment = "Left">
                        <Separator Width="20" Background="{x:Null}"/>
                        <TextBlock Style="{StaticResource BlockCommon}" Text="Cтатус:" FontSize="40"></TextBlock>
                        <Separator Width="25" Background="{x:Null}" />
                        <ComboBox Name="cbStatus" Width="440" Height="40" FontSize="29" DisplayMemberPath="Name"/>

                        <Separator Width="20" Background="{x:Null}"/>

                        <TextBlock Style="{StaticResource BlockCommon}" Text="Сложность:" FontSize="40"></TextBlock>
                        <Separator Width="5" Background="{x:Null}"/>
                        <xctk:IntegerUpDown x:Name="IUDComplexityTask" Width="375" Height="40" FontSize="29"/>

                        <Separator Width="25" Background="{x:Null}"/>

                        <StackPanel Orientation="Horizontal" Width="450">
                            <TextBlock Style="{StaticResource BlockCommon}" Text="Дата выполнения:" FontSize="40"></TextBlock>
                        </StackPanel>

                    </StackPanel>

                    <StackPanel Orientation="Horizontal" Width="1750" HorizontalAlignment = "Left">
                        <Separator Width="20" Background="{x:Null}"/>
                        <TextBlock Style="{StaticResource BlockCommon}" Text="Время выполнение задачи:" FontSize="40"></TextBlock>
                        <Separator Width="45" Background="{x:Null}" />
                        <xctk:IntegerUpDown x:Name="IUDTimeTask" Width="653" Height="40" FontSize="29"/>
                        <Separator Width="25" Background="{x:Null}" />
                        <StackPanel Orientation="Horizontal" Width="480">
                            <DatePicker Name="DPickerDateCompleted" Background="White" Height="40" FontSize="24" Width="450" IsEnabled="False" />
                        </StackPanel>
                        
                    </StackPanel>

                    <Separator Height="30" Background="{x:Null}" />

                    <StackPanel Orientation="Horizontal" Width="1750" HorizontalAlignment = "Left">
                        <Separator Width="20" Background="{x:Null}"/>
                        <TextBlock Style="{StaticResource BlockCommon}" Text="Характер задачи:" FontSize="40"></TextBlock>
                        <Separator Width="20" Background="{x:Null}" />
                        <ComboBox Name="cbNatureTask" Width="864" Height="40" FontSize="29">
                            <ComboBoxItem Content="Анализ и проектирование"/>
                            <ComboBoxItem Content="Установка оборудования"/>
                            <ComboBoxItem Content="Техническое обслуживание и сопровождение"/>
                        </ComboBox>
                    </StackPanel>

                    <Separator Height="30" Background="{x:Null}" />

                    <StackPanel Orientation="Horizontal" Width="1750" HorizontalAlignment = "Left" Height="320">
                        <StackPanel Orientation="Horizontal" Width="1232">
                            <Separator Width="20" Background="{x:Null}"/>
                            <TextBlock Style="{StaticResource BlockCommon}" Text="Описание:" FontSize="40" HorizontalAlignment="Left" VerticalAlignment="Top"></TextBlock>
                            <Separator Width="20" Background="{x:Null}" />
                            <TextBox x:Name="TBoxDescription" Width="988" Height="310" FontSize="30" VerticalAlignment="Top" TextWrapping="Wrap" AcceptsReturn="True"></TextBox>
                        </StackPanel>

                        <Button Grid.Row="3" Name="BtnSaveTask" Content="Сохранить" Width="450" Height="79" BorderThickness="0" Style="{StaticResource  StandartButtons}" Margin="16,10,0,15" Click ="BtnSaveTask_Click" FontSize="36" VerticalAlignment="Bottom">
                            <Button.Resources>
                                <Style TargetType="Border">
                                    <Setter Property="CornerRadius" Value="10"/>
                                </Style>
                            </Button.Resources>
                        </Button>
                    </StackPanel>
                </StackPanel>
            </StackPanel>
        </StackPanel>
    </Grid>
</Page>
