12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <Window x:Class="Practics.TicketWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:Practics"
- mc:Ignorable="d"
- Title="Заявки" Height="800" Width="1000" MinWidth="560" MinHeight="600">
-
- <Grid>
- <TabControl>
- <TabItem Header="Новая" Selector.IsSelected="True">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="80px"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Label Grid.Row="0" Content="TechSphere" HorizontalContentAlignment="Left" FontFamily="Segoe UI" FontWeight="SemiBold"/>
- <Label Grid.Row="1" Foreground="Black" Content="ФИО сотрудника" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold"/>
- <TextBox Grid.Row="2" x:Name="tbUserName" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5" IsReadOnly="False"/>
- <Label Grid.Row="3" Foreground="Black" Content="Наименование проблемы" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold"/>
- <TextBox Grid.Row="4" x:Name="tbProblemName" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5"/>
- <Label Grid.Row="5" Foreground="Black" Content="Тип проблемы" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold"/>
- <ComboBox Grid.Row="6" x:Name="cbProblemType" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5" />
- <Label Grid.Row="7" Foreground="Black" Content="Номер ПК" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold"/>
- <TextBox Grid.Row="8" x:Name="tbPCName" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5"/>
- <Label Grid.Row="9" Foreground="Black" Content="Описание проблемы" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontFamily="Segoe UI" FontWeight="SemiBold"/>
- <TextBox Grid.Row="10" x:Name="tbProblemDescribe" Width="300px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5" AcceptsReturn="True"/>
- <Button Grid.Row="11" x:Name="btnSendProblem" Content="Отправить" Background="LightSkyBlue" Foreground="Black" Width="200px" FontFamily="Segoe UI" FontWeight="SemiBold" Margin="0,5" Click="btnSendProblem_Click"/>
- <Button Grid.Row="0" x:Name="btnExit" Content="Выход" Width="100" Height="40" HorizontalAlignment="Right" VerticalAlignment="Top" Click="btnExit_Click"/>
- </Grid>
- </TabItem>
- <TabItem Header="Архив" Selector.IsSelected="False" GotFocus="TabItem_GotFocus" >
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40px"/>
- <RowDefinition Height="300px"/>
- <RowDefinition/>
- <RowDefinition Height="40px"/>
- </Grid.RowDefinitions>
- <StackPanel>
- <Button x:Name="btnRefillProblems" Click="btnRefillProblems_Click">Обновить</Button>
- </StackPanel>
- <DataGrid Grid.Row="1" x:Name="dgUserTickets" IsReadOnly="True" AutoGenerateColumns="False" CanUserAddRows="False" CanUserReorderColumns="True" HorizontalAlignment="Left" SelectionChanged="dgUserTickets_SelectionChanged">
- <DataGrid.Columns>
- <DataGridTextColumn Header="Фамилия" Binding="{Binding LastName}"/>
- <DataGridTextColumn Header="Время заявки" Binding="{Binding ProblemTime}" Width="*" MinWidth="100"/>
- <DataGridTextColumn Header="Время решения" Binding="{Binding SolvedTime}" Width="*" MinWidth="100"/>
- <DataGridTextColumn Header="Название заявки" Binding="{Binding ProblemName}" Width="*" MinWidth="100"/>
- <DataGridTextColumn Header="Номер компьютера" Binding="{Binding PCNumber}" Width="*" MinWidth="100"/>
- <DataGridComboBoxColumn x:Name="dgcbcStatus" SelectedValueBinding="{Binding ProblemStatusID}" Header="Статус" Width="100" MinWidth="100"/>
-
- </DataGrid.Columns>
- </DataGrid>
- <!--<TextBox x:Name="tbProblemDescribe2" Grid.Row="2" Text="{Binding ProblemDescribe,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" AcceptsReturn="True" IsReadOnly="True"/>-->
- <RichTextBox x:Name="rtbChat" Grid.Row="2" IsReadOnly="True"></RichTextBox>
- <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Left" Width="900">
- <TextBox x:Name="tbMessage" Width="700">123123</TextBox>
- <Button x:Name="btnSendMessage" Width="150px" HorizontalAlignment="Right" Click="btnSendMessage_Click">Отправить</Button>
- </StackPanel>
-
- </Grid>
- </TabItem>
- </TabControl>
- </Grid>
- </Window>
|