You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
5.0 KiB
Plaintext

3 weeks ago
<Window
3 weeks ago
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:SlnMesnac.WPF.Page.WindowPage"
3 weeks ago
xmlns:dxwui="http://schemas.devexpress.com/winfx/2008/xaml/windowsui" x:Class="SlnMesnac.WPF.Page.WindowPage.MachineStopHistoryWindow"
xmlns:ctls="clr-namespace:SlnMesnac.WPF.Templates"
mc:Ignorable="d"
3 weeks ago
Title="MachineStopHistoryWindow" d:DesignHeight="1080" d:DesignWidth="1920" Height="500" Width="1000" Background="#1254AB" StateChanged="Window_StateChanged">
3 weeks ago
<Window.Resources>
3 weeks ago
3 weeks ago
<!-- 定义样式 -->
3 weeks ago
<Style x:Key="CustomDatePicker" TargetType="{x:Type DatePicker}">
3 weeks ago
<!-- 设置背景颜色 -->
3 weeks ago
<Setter Property="Background" Value="LightBlue"/>
3 weeks ago
<!-- 设置边框颜色 -->
3 weeks ago
<Setter Property="BorderBrush" Value="DarkBlue"/>
3 weeks ago
<!-- 设置字体样式 -->
3 weeks ago
<Setter Property="FontSize" Value="20"/>
3 weeks ago
<!-- 设置前景色(文本颜色) -->
3 weeks ago
<Setter Property="Foreground" Value="Black"/>
3 weeks ago
</Style>
<!-- 定义日历的样式 -->
3 weeks ago
<Style x:Key="CustomCalendarStyle" TargetType="{x:Type Calendar}">
3 weeks ago
<!-- 设置背景颜色 -->
3 weeks ago
<Setter Property="Background" Value="White"/>
3 weeks ago
<!-- 设置边框颜色 -->
3 weeks ago
<Setter Property="BorderBrush" Value="Blue"/>
3 weeks ago
3 weeks ago
<Setter Property="Width" Value="350"/>
<Setter Property="Height" Value="250"/>
3 weeks ago
<!-- 设置字体样式 -->
3 weeks ago
<Setter Property="FontSize" Value="16"/>
3 weeks ago
</Style>
3 weeks ago
3 weeks ago
</Window.Resources>
<Grid Margin="5,5" >
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="10*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Border Grid.Row="1" Grid.Column="0" BorderBrush="Green" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
<DataGrid Grid.Row="0" ItemsSource="{Binding DmsShutDownModelDataGrid}" Background="Transparent"
FontSize="20" ColumnHeaderHeight="35"
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0"
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
ScrollViewer.VerticalScrollBarVisibility="Visible" BorderThickness="0" CanUserAddRows="False" HorizontalAlignment="Center"
Foreground="White" >
<DataGrid.Resources>
<!-- 定制 ScrollBar 样式 -->
3 weeks ago
<Style TargetType="{x:Type ScrollBar}">
3 weeks ago
<Setter Property="Background" Value="Transparent"/>
</Style>
</DataGrid.Resources>
<!--resourceStyle 399行修改选中字体颜色-->
<DataGrid.Columns>
<!--<DataGridTextColumn Binding="{Binding RawOutstockDetailId}" Header="序号" Width="1*" IsReadOnly="True"/>-->
<DataGridTextColumn Binding="{Binding id}" Header="序号" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding deviceName}" Header="设备名" Width="2*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding shutReason}" Header="停机类型" Width="4*" IsReadOnly="True"/>
3 weeks ago
<DataGridTextColumn Binding="{Binding shutBeginTime, StringFormat=\{0:MM月dd日 HH:mm:ss\}}" Header="停机开始时间" Width="4*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding shutEndTime, StringFormat=\{0:MM月dd日 HH:mm:ss\}}" Header="停机结束时间" Width="4*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding totalTime, StringFormat=\{0:MM月dd日 HH:mm:ss\}}" Header="停机总时长(min)" Width="2*" IsReadOnly="True"/>
3 weeks ago
</DataGrid.Columns>
</DataGrid>
</Border>
</Grid>
<Grid Grid.Row="2">
<ctls:Pagination Margin="5" Total="{Binding PagenationModel.Total}" Current="{Binding PagenationModel.Current, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Page="{Binding PagenationModel.Page, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
PageSize="{Binding PagenationModel.PageSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
PageSizes="{Binding PagenationModel.PageSizes}" PreCommand="{Binding PagenationModel.FindPreCommand}"
NextCommand="{Binding PagenationModel.FindNextCommand}" GoCommand="{Binding PagenationModel.FindTargetCommand}"
>
</ctls:Pagination>
3 weeks ago
</Grid>
3 weeks ago
</Grid>
</Window>