|
@@ -15,11 +15,46 @@
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Height="50" Margin="0,0,0,-13">
|
|
|
- <ComboBox Margin="5" Width="200" Height="25" Name="cbManager" DisplayMemberPath="" FontSize="16" SelectionChanged="cbManager_SelectionChanged" />
|
|
|
- <ComboBox Margin="5" Width="200" Height="25" Name="cbExecutor" DisplayMemberPath="" FontSize="16" SelectionChanged="cbExecutor_SelectionChanged"/>
|
|
|
- <ComboBox Margin="5" Width="200" Height="25" Name="cbStatus" FontSize="16" DisplayMemberPath="Name" SelectionChanged="cbStatus_SelectionChanged"/>
|
|
|
- <TextBox Margin="5" Width="200" Height="25" Name="Search" FontSize="16" TextChanged="Search_TextChanged"/>
|
|
|
- <Button Height="25" Name="btnClearFilter" Content="Очистка фильтра" Width="200" Margin ="5" FontSize="16" Click="btnClearFilter_Click"/>
|
|
|
+ <ComboBox Margin="5" Width="200" Height="25" Name="cbManager" DisplayMemberPath="" FontSize="16" SelectionChanged="cbManager_SelectionChanged">
|
|
|
+ <ComboBox.ToolTip>
|
|
|
+ <ToolTip>
|
|
|
+ Отбор по менеджеру
|
|
|
+ </ToolTip>
|
|
|
+ </ComboBox.ToolTip>
|
|
|
+ </ComboBox>
|
|
|
+ <ComboBox Margin="5" Width="200" Height="25" Name="cbExecutor" DisplayMemberPath="" FontSize="16" SelectionChanged="cbExecutor_SelectionChanged">
|
|
|
+ <ComboBox.ToolTip>
|
|
|
+ <ToolTip>
|
|
|
+ Отбор по исполнителю
|
|
|
+ </ToolTip>
|
|
|
+ </ComboBox.ToolTip>
|
|
|
+ </ComboBox>
|
|
|
+ <ComboBox Margin="5" Width="200" Height="25" Name="cbStatus" FontSize="16" DisplayMemberPath="Name" SelectionChanged="cbStatus_SelectionChanged">
|
|
|
+ <ComboBox.ToolTip>
|
|
|
+ <ToolTip>
|
|
|
+ Отбор по статусу
|
|
|
+ </ToolTip>
|
|
|
+ </ComboBox.ToolTip>
|
|
|
+ </ComboBox>
|
|
|
+ <TextBox Margin="5" Width="200" Height="25" Name="Search" FontSize="16" TextChanged="Search_TextChanged">
|
|
|
+ <TextBox.Resources>
|
|
|
+ <Style TargetType="{x:Type Border}">
|
|
|
+ <Setter Property="CornerRadius" Value="12"/>
|
|
|
+ </Style>
|
|
|
+ </TextBox.Resources>
|
|
|
+ <TextBox.ToolTip>
|
|
|
+ <ToolTip>
|
|
|
+ Поиск по наименованию
|
|
|
+ </ToolTip>
|
|
|
+ </TextBox.ToolTip>
|
|
|
+ </TextBox>
|
|
|
+ <Button Height="25" Name="btnClearFilter" Content="Очистка фильтра" Width="200" Margin ="5" FontSize="16" Click="btnClearFilter_Click" Style="{StaticResource StandartButtons}">
|
|
|
+ <Button.Resources>
|
|
|
+ <Style TargetType="Border">
|
|
|
+ <Setter Property="CornerRadius" Value="10"/>
|
|
|
+ </Style>
|
|
|
+ </Button.Resources>
|
|
|
+ </Button>
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Background="#e6e6e6" Margin="0,15,0,0" Grid.Row="1">
|
|
@@ -35,12 +70,25 @@
|
|
|
<Style TargetType="ListViewItem">
|
|
|
<Setter Property="Margin" Value="0,0,0,10"/>
|
|
|
<Setter Property="Width" Value="1870"/>
|
|
|
- <Setter Property="Background" Value="#99d3ff"/>
|
|
|
<Style.Resources>
|
|
|
<Style TargetType="Border">
|
|
|
<Setter Property="CornerRadius" Value="30"/>
|
|
|
</Style>
|
|
|
</Style.Resources>
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding Status}" Value="запланирована">
|
|
|
+ <Setter Property="Background" Value="#73bbff"/>
|
|
|
+ </DataTrigger>
|
|
|
+ <DataTrigger Binding="{Binding Status}" Value="исполняется">
|
|
|
+ <Setter Property="Background" Value="#ffef5e"/>
|
|
|
+ </DataTrigger>
|
|
|
+ <DataTrigger Binding="{Binding Status}" Value="выполнена">
|
|
|
+ <Setter Property="Background" Value="#76cc6e"/>
|
|
|
+ </DataTrigger>
|
|
|
+ <DataTrigger Binding="{Binding Status}" Value="отменена">
|
|
|
+ <Setter Property="Background" Value="#cc6e6e"/>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
</Style>
|
|
|
</ListView.ItemContainerStyle>
|
|
|
|