winWriteService.xaml 5.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <Window x:Class="school.winWriteService"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:school"
  7. mc:Ignorable="d"
  8. Title="Леарн | Запись на услугу" Height="450" Width="550"
  9. Icon="\Resource\school_logo.ico">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"></RowDefinition>
  13. <RowDefinition></RowDefinition>
  14. <RowDefinition Height="Auto"></RowDefinition>
  15. </Grid.RowDefinitions>
  16. <Grid Grid.Row="0" Margin="5">
  17. <TextBlock Name="TBHeader" FontSize="20" Style="{StaticResource usuallyTextBlockHeader}" HorizontalAlignment="Left">Запись на услугу</TextBlock>
  18. </Grid>
  19. <Grid Grid.Row="1" Margin="5">
  20. <ScrollViewer VerticalScrollBarVisibility="Auto">
  21. <Grid>
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="Auto"></RowDefinition>
  24. <RowDefinition Height="Auto"></RowDefinition>
  25. </Grid.RowDefinitions>
  26. <Grid.ColumnDefinitions>
  27. <ColumnDefinition Width="*"></ColumnDefinition>
  28. <ColumnDefinition Width="*"></ColumnDefinition>
  29. </Grid.ColumnDefinitions>
  30. <Grid Grid.Row="0" Grid.Column="0" Margin="0 5">
  31. <StackPanel>
  32. <TextBlock Style="{StaticResource usuallyTextBlockHeader}">Название</TextBlock>
  33. <TextBlock Name="TBName" TextWrapping="Wrap" Style="{StaticResource usuallyTextBlock}">Text</TextBlock>
  34. <TextBlock Style="{StaticResource usuallyTextBlockHeader}">Описание</TextBlock>
  35. <TextBlock Name="TBDescription" TextWrapping="Wrap" Style="{StaticResource usuallyTextBlock}">Text</TextBlock>
  36. <TextBlock Style="{StaticResource usuallyTextBlockHeader}">Продолжительность</TextBlock>
  37. <TextBlock Name="TBTime" TextWrapping="Wrap" Style="{StaticResource usuallyTextBlock}">Text</TextBlock>
  38. <TextBlock Style="{StaticResource usuallyTextBlockHeader}">Цена</TextBlock>
  39. <StackPanel Orientation="Horizontal">
  40. <TextBlock Name="TBOldPrice" Text="{Binding oldPrice}" TextDecorations="Strikethrough" Visibility="{Binding discountVisible}" Style="{StaticResource usuallyTextBlock}"/>
  41. <TextBlock Name="TBPrice" Text="{Binding price}" TextWrapping="Wrap" Style="{StaticResource usuallyTextBlock}"/>
  42. </StackPanel>
  43. </StackPanel>
  44. </Grid>
  45. <Grid Grid.Row="0" Grid.Column="1" Margin="0 5">
  46. <StackPanel>
  47. <TextBlock Style="{StaticResource usuallyTextBlock}">Дата</TextBlock>
  48. <DatePicker Name="DPDate" Margin="5" Height="25" Width="230" HorizontalAlignment="Left"></DatePicker>
  49. <TextBlock Style="{StaticResource usuallyTextBlock}">Время</TextBlock>
  50. <TextBox Name="TBTimeServ" Tag="Например, 08:00" TextChanged="TBTimeServTextChanged" Margin="5" Width="230" MinHeight="25" Height="25" Style="{StaticResource usuallyTextBlox}"></TextBox>
  51. <TextBlock Name="TBEndTime" Style="{StaticResource usuallyTextBlock}">Время окончания</TextBlock>
  52. </StackPanel>
  53. </Grid>
  54. <Grid Name="GInfo" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="0 5">
  55. <StackPanel>
  56. <TextBlock FontSize="16" Style="{StaticResource usuallyTextBlock}" HorizontalAlignment="Left">Сведения для администратора</TextBlock>
  57. <TextBlock Name="TBnoWrites" Style="{StaticResource usuallyTextBlock}" Visibility="Collapsed">Нет записей</TextBlock>
  58. <DataGrid Name="DGClientService" AutoGenerateColumns="False" CanUserAddRows="False">
  59. <DataGrid.Columns>
  60. <DataGridTextColumn Header="Клиент" Width="*" Binding="{Binding fullName}"></DataGridTextColumn>
  61. <DataGridTextColumn Header="Дата" Width="Auto" Binding="{Binding date}"></DataGridTextColumn>
  62. <DataGridTextColumn Header="Время" Width="Auto" Binding="{Binding time}"></DataGridTextColumn>
  63. </DataGrid.Columns>
  64. </DataGrid>
  65. </StackPanel>
  66. </Grid>
  67. </Grid>
  68. </ScrollViewer>
  69. </Grid>
  70. <Grid Grid.Row="2" Margin="5">
  71. <Button Name="BtnWrite" Click="BtnWriteClick" Style="{StaticResource usuallyButtonFill}" HorizontalAlignment="Center">Записаться</Button>
  72. </Grid>
  73. </Grid>
  74. </Window>