StateChange.xaml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <UserControl x:Class="NEIntelligentControl2.Views.Infos.StateChange"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:NEIntelligentControl2.Views.Infos"
  7. xmlns:bc="clr-namespace:NEIntelligentControl2.Views.Basic"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800" Loaded="UserControl_Loaded">
  10. <UserControl.Resources>
  11. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  12. <Setter Property="VerticalAlignment" Value="Center"/>
  13. </Style>
  14. </UserControl.Resources>
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="Auto"/>
  18. <RowDefinition Height="Auto"/>
  19. <RowDefinition/>
  20. <RowDefinition Height="Auto"/>
  21. </Grid.RowDefinitions>
  22. <StackPanel Orientation="Horizontal">
  23. <TextBlock Text="时间:" Style="{StaticResource TextBlockStyle}"/>
  24. <bc:TimePicker VerticalAlignment="Center" x:Name="_tpstart"/>
  25. <TextBlock Text="-" Style="{StaticResource TextBlockStyle}"/>
  26. <bc:TimePicker VerticalAlignment="Center" x:Name="_tpend"/>
  27. <Button Content="查 询" Padding="12,3" Style="{StaticResource ConfirmButtonStyle}" Click="Button_Click" Tag="search"/>
  28. <Button Content="导 出" Padding="12,3" Style="{StaticResource ConfirmButtonStyle}" Click="Button_Click" Tag="output"/>
  29. </StackPanel>
  30. <local:StateInfo Grid.Row="1" x:Name="_si"/>
  31. <DataGrid x:Name="_DGMain" FontSize="14" ColumnWidth="*" Grid.Row="2" Background="#FFABABAB" IsReadOnly="True" AutoGenerateColumns="False" HorizontalGridLinesBrush="#FF9E9E9E" VerticalGridLinesBrush="#FF9E9E9E">
  32. <DataGrid.Columns>
  33. <DataGridTextColumn Header="风机" Binding="{Binding Code}"/>
  34. <DataGridTextColumn Header="状态" Binding="{Binding StatusName}"/>
  35. <DataGridTextColumn Header="开始时间" Binding="{Binding StartTime}"/>
  36. <DataGridTextColumn Header="结束时间" Binding="{Binding EndTime}"/>
  37. <DataGridTextColumn Header="持续时间(小时)" Binding="{Binding Duration}"/>
  38. </DataGrid.Columns>
  39. </DataGrid>
  40. <bc:HintBar x:Name="_IBMain" Grid.Row="3"/>
  41. </Grid>
  42. </UserControl>