|
@@ -57,7 +57,7 @@
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
<StackPanel Margin="10,0,0,0" Width="300" Height="500" Orientation="Vertical" HorizontalAlignment="Center">
|
|
|
<GroupBox Height="40" Header="Дата служебной записки" BorderThickness="2" BorderBrush="#FF0000">
|
|
|
- <TextBlock Text="{Binding Date_app}"/>
|
|
|
+ <TextBlock Text="{Binding Date_app,StringFormat=dd.MM.yyyy}"/>
|
|
|
</GroupBox>
|
|
|
<GroupBox Height="40" Header="Место" BorderThickness="2" BorderBrush="#FF0000">
|
|
|
<TextBlock Text="{Binding Place_app}"/>
|
|
@@ -100,17 +100,34 @@
|
|
|
</ListView.ItemsPanel>
|
|
|
<ListView.ItemTemplate>
|
|
|
<DataTemplate>
|
|
|
- <Border Width="500" Height="140" BorderThickness="1" BorderBrush="Red">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <StackPanel Margin="10,0,0,0" Width="300" HorizontalAlignment="Left" Orientation="Vertical">
|
|
|
- <TextBlock Text="{Binding Date_event}"/>
|
|
|
- <TextBlock Text="{Binding Place_for_event}" TextWrapping="Wrap"/>
|
|
|
- <TextBlock Text="{Binding Title_event}"/>
|
|
|
- <TextBlock Text="{Binding Path=Events_type.Title_events_type}"/>
|
|
|
- <TextBlock Text="{Binding Description_event}"/>
|
|
|
- <TextBlock Text="{Binding Path=User.Surname}"/>
|
|
|
- <TextBlock Text="{Binding Path=Status_event.Title_status_event}" FontWeight="Bold"/>
|
|
|
- <Button Content="Создать отчет" Click="Report_Click" Name="GoToReport" Style="{StaticResource BtnSt}" Uid="{Binding Id_event}"></Button>
|
|
|
+ <Border Width="500" Height="350" BorderThickness="1" BorderBrush="Red">
|
|
|
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
+ <StackPanel Margin="10,0,0,0" Width="300" HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Vertical">
|
|
|
+ <GroupBox Height="40" Header="Дата мероприятия" BorderThickness="2" BorderBrush="#FF0000">
|
|
|
+ <TextBlock Text="{Binding Date_event,StringFormat=dd.MM.yyyy}"/>
|
|
|
+ </GroupBox>
|
|
|
+ <GroupBox Height="40" Header="Место проведения" BorderThickness="2" BorderBrush="#FF0000">
|
|
|
+ <TextBlock Text="{Binding Place_for_event}" TextWrapping="Wrap"/>
|
|
|
+ </GroupBox>
|
|
|
+ <GroupBox Height="40" Header="Название " BorderThickness="2" BorderBrush="#FF0000">
|
|
|
+ <TextBlock Text="{Binding Title_event}"/>
|
|
|
+ </GroupBox>
|
|
|
+ <GroupBox Height="40" Header="Тип мероприятия" BorderThickness="2" BorderBrush="#FF0000">
|
|
|
+ <TextBlock Text="{Binding Path=Events_type.Title_events_type}"/>
|
|
|
+ </GroupBox>
|
|
|
+ <GroupBox Height="40" Header="Описание мероприятия" BorderThickness="2" BorderBrush="#FF0000">
|
|
|
+ <TextBlock Text="{Binding Description_event}"/>
|
|
|
+ </GroupBox>
|
|
|
+ <GroupBox Height="40" Header="Фамилия" BorderThickness="2" BorderBrush="#FF0000">
|
|
|
+ <TextBlock Text="{Binding Path=User.Surname}"/>
|
|
|
+ </GroupBox>
|
|
|
+ <GroupBox Height="40" Header="Статус мероприятия" BorderThickness="2" BorderBrush="#FF0000">
|
|
|
+ <TextBlock Text="{Binding Path=Status_event.Title_status_event}" FontWeight="Bold"/>
|
|
|
+ </GroupBox>
|
|
|
+ <GroupBox Height="40" Header="Оценка мероприятия" BorderThickness="2" BorderBrush="#FF0000">
|
|
|
+ <TextBlock Text="{Binding score}"></TextBlock>
|
|
|
+ </GroupBox>
|
|
|
+ <Button VerticalAlignment="Bottom" HorizontalAlignment="Left" Content="Создать отчет" Click="Report_Click" Name="GoToReport" Style="{StaticResource BtnSt}" Uid="{Binding Id_event}"></Button>
|
|
|
</StackPanel>
|
|
|
<Button VerticalAlignment="Bottom" HorizontalAlignment="Right" Content="Удалить" Name="DeleteBtn" Style="{StaticResource BtnSt}" Click="DeleteBtn_Click" Uid="{Binding Id_event}"></Button>
|
|
|
</StackPanel>
|