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.
Aucma.Scada/Aucma.Scada.UI/Page/AssemblyPlan/PlanInfoEditWindow.xaml

60 lines
4.1 KiB
Plaintext

<Window x:Class="Aucma.Scada.UI.Page.AssemblyPlan.PlanInfoEditWindow"
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:Aucma.Scada.UI.Page.AssemblyPlan"
mc:Ignorable="d"
Title="MES生产计划" Height="450" Width="800">
<Border Margin="5" Background="White" CornerRadius="10">
<Border.Effect>
<DropShadowEffect Color="Gray" ShadowDepth="0" BlurRadius="5" Opacity="0.3" Direction="0"></DropShadowEffect>
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="7*"/>
<RowDefinition Height="3*"/>
</Grid.RowDefinitions>
<!--计划列表-->
<Border Grid.Row="0" BorderBrush="Green" BorderThickness="2" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
<DataGrid Name="dataGrid" ItemsSource="{Binding PlanInfoDataGrid}" Background="Transparent"
FontSize="15" ColumnHeaderHeight="35"
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False"
Foreground="Gray" SelectedItem="{Binding SelectedDataItem}" MouseLeftButtonDown="dataGrid_MouseLeftButtonDown">
<!--resourceStyle 399行修改选中字体颜色-->
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding userId}" Header="序号" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding userName}" Header="产品型号" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding userName}" Header="计划数量" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding userName}" Header="实际完成" Width="1*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding userName}" Header="开始时间" Width="1*" IsReadOnly="True"/>
</DataGrid.Columns>
</DataGrid>
</Border>
<Border Grid.Row="1" BorderBrush="Green" BorderThickness="2" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
<TextBlock Text="计划编号" FontSize="15" Foreground="#0288d1" Margin="10,0,0,0"/>
<TextBox FontSize="15" Text="{Binding ProductPlanCode}" Foreground="Gray" Width="150" IsReadOnly="True" Margin="5,0,10,0"/>
<TextBlock Text="产品型号" FontSize="15" Foreground="#0288d1"/>
<TextBox FontSize="15" Text="{Binding MaterialCode}" Foreground="Gray" Width="150" IsReadOnly="True" Margin="5,0,10,0"/>
<TextBlock Text="下达数量" FontSize="15" Foreground="#0288d1"/>
<TextBox FontSize="15" Text="{Binding TransmitAmount}" Foreground="Gray" Width="150" Margin="5,0,10,0"/>
</StackPanel>
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
<Button Content="计划下达" Command="{Binding PlanInfoTransmitCommand}" Background="#007DFA" Foreground="white" Margin="20,0,50,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" />
</StackPanel>
</Grid>
</Border>
</Grid>
</Border>
</Window>