|
|
|
<UserControl x:Class="Aucma.Scada.UI.Page.TaskInfo.TaskInfoControl"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:local="clr-namespace:Aucma.Scada.UI.Page.TaskInfo"
|
|
|
|
xmlns:local1="clr-namespace:Aucma.Scada.UI.Converter.TaskInfo"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
d:DesignHeight="750" d:DesignWidth="1920" Background="#1152AC" >
|
|
|
|
|
|
|
|
<UserControl.Resources>
|
|
|
|
<local1:TaskStatusConverter x:Key="TaskStatusConverter" />
|
|
|
|
<local1:TaskTypeConverter x:Key="TaskTypeConverter"/>
|
|
|
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
<Setter Property="FontSize" Value="20"/>
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="DataGrid">
|
|
|
|
<!--网格线颜色-->
|
|
|
|
<Setter Property="CanUserResizeColumns" Value="false"/>
|
|
|
|
<Setter Property="Background" Value="#1152AC" />
|
|
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
|
|
<Setter Property="HorizontalGridLinesBrush">
|
|
|
|
<Setter.Value>
|
|
|
|
<SolidColorBrush Color="#4285DE"/>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Setter Property="VerticalGridLinesBrush">
|
|
|
|
<Setter.Value>
|
|
|
|
<SolidColorBrush Color="#1152AC"/>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<!--列头标题栏样式-->
|
|
|
|
<Style TargetType="DataGridColumnHeader">
|
|
|
|
<!--<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>-->
|
|
|
|
<!--<Setter Property="Background" Value="#dddddd"/>
|
|
|
|
<Setter Property="Foreground" Value="Black"/>-->
|
|
|
|
<!--<Setter Property="BorderThickness" Value="1" />-->
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
|
|
<Setter Property="Height" Value="40"/>
|
|
|
|
<Setter Property="FontSize" Value="18"/>
|
|
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<!--单元格样式-->
|
|
|
|
<Style TargetType="DataGridCell">
|
|
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
|
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
|
|
<Setter Property="Height" Value="40"/>
|
|
|
|
<Setter Property="FontSize" Value="18"/>
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
|
|
|
<Grid Background="{TemplateBinding Background}" >
|
|
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
</Grid>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
|
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
</Trigger>
|
|
|
|
<DataTrigger Binding="{Binding ExecuteStatus}" Value="2">
|
|
|
|
<Setter Property="Background" Value="Green" />
|
|
|
|
</DataTrigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</UserControl.Resources>
|
|
|
|
<Grid Margin="5,5">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="1.3*"/>
|
|
|
|
<RowDefinition Height="14*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" Margin="20,0,0,0">
|
|
|
|
<Button Content="入库任务" x:Name="inStore" Command="{Binding TaskCommand}" CommandParameter="{Binding Name,ElementName=inStore}" Style="{StaticResource BUTTON_AGREE}" FontSize="20" Width="100" Height="42" Background="#009999" BorderBrush="#FF36B5C1" Margin="10,0,10,0"/>
|
|
|
|
<Button Content="出库任务" x:Name="outStore" Command="{Binding TaskCommand}" CommandParameter="{Binding Name,ElementName=outStore}" Style="{StaticResource BUTTON_AGREE}" FontSize="20" Width="100" Height="42" Background="#009999" BorderBrush="#FF36B5C1" Margin="0,0,10,0"/>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
<Border Grid.Row="1" BorderBrush="CadetBlue" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="2,2">
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="3*"/>
|
|
|
|
<RowDefinition Height="1*"/>
|
|
|
|
<RowDefinition Height="5*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Grid.Row="0" BorderBrush="#1254AB" BorderThickness="1" CornerRadius="5">
|
|
|
|
<Border.Effect>
|
|
|
|
<DropShadowEffect Color="#1254AB" Direction="270" BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
|
|
|
|
</Border.Effect>
|
|
|
|
<DataGrid ItemsSource="{Binding TaskInfoDataGrid}" Background="Transparent"
|
|
|
|
FontSize="20" ColumnHeaderHeight="35"
|
|
|
|
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False"
|
|
|
|
Foreground="#FFFFFF" >
|
|
|
|
<!--resourceStyle 399行修改选中字体颜色-->
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Binding="{Binding taskCode}" Header="任务编号" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding taskType,Converter={StaticResource TaskTypeConverter}}" Header="任务类型" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding planCode}" Header="计划编号" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding materialCode}" Header="物料编码" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding materialType}" Header="物料型号" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding storeCode}" Header="仓库" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding spaceName}" Header="货道" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding createTime,StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}" Header="创建时间" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding beginTime,StringFormat=\{0:MM-dd HH:mm\}}" Header="执行时间" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding taskStatus,Converter={StaticResource TaskStatusConverter}}" Header="状态" Width="*" IsReadOnly="True" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<Border Grid.Row="2" BorderBrush="#1254AB" BorderThickness="1" CornerRadius="5" Margin="0,10,0,0">
|
|
|
|
<Border.Effect>
|
|
|
|
<DropShadowEffect Color="#1254AB" Direction="270" BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
|
|
|
|
</Border.Effect>
|
|
|
|
<DataGrid ItemsSource="{Binding RecordInfoDataGrid}" Background="Transparent"
|
|
|
|
FontSize="20" ColumnHeaderHeight="35"
|
|
|
|
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False"
|
|
|
|
Foreground="#FFFFFF" >
|
|
|
|
<!--resourceStyle 399行修改选中字体颜色-->
|
|
|
|
<DataGrid.Columns>
|
|
|
|
<DataGridTextColumn Binding="{Binding taskCode}" Header="任务编号" Width="*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding taskType,Converter={StaticResource TaskTypeConverter}}" Header="任务类型" Width="*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding planCode}" Header="计划编号" Width="*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding materialCode}" Header="物料编码" Width="*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding materialType}" Header="物料型号" Width="*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding storeCode}" Header="仓库" Width="*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding spaceName}" Header="货道" Width="*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding createTime,StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}" Header="创建时间" Width="*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding beginTime,StringFormat=\{0:MM-dd HH:mm\}}" Header="开始时间" Width="*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding endTime,StringFormat=\{0:MM-dd HH:mm\}}" Header="结束时间" Width="*" IsReadOnly="True"/>
|
|
|
|
<DataGridTextColumn Binding="{Binding taskStatus,Converter={StaticResource TaskStatusConverter}}" Header="状态" Width="*" IsReadOnly="True"/>
|
|
|
|
</DataGrid.Columns>
|
|
|
|
</DataGrid>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|