|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
<UserControl x:Class="Aucma.Core.SheetMetal.Views.IndexPage"
|
|
|
|
|
<UserControl x:Class="Aucma.Core.SheetMetal.Views.IndexPageView"
|
|
|
|
|
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"
|
|
|
|
@ -19,7 +19,6 @@
|
|
|
|
|
<Setter Property="CanUserResizeColumns" Value="false"/>
|
|
|
|
|
<Setter Property="Background" Value="#1152AC" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
|
<Setter Property="HorizontalGridLinesBrush">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<SolidColorBrush Color="#4285DE"/>
|
|
|
|
@ -65,9 +64,9 @@
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
|
|
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
|
|
|
<!--<Setter Property="Foreground" Value="#dddddd"/>-->
|
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
<DataTrigger Binding="{Binding No}" Value="3">
|
|
|
|
|
<DataTrigger Binding="{Binding ExecuteStatus}" Value="2">
|
|
|
|
|
<Setter Property="Background" Value="#4285DE" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
@ -293,24 +292,11 @@
|
|
|
|
|
<RowDefinition Height="6*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding PlanInfoDataGrid}" Background="#00000000"
|
|
|
|
|
ColumnHeaderHeight="35"
|
|
|
|
|
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False"
|
|
|
|
|
SelectionMode="Single" IsReadOnly="True"
|
|
|
|
|
Foreground="White">
|
|
|
|
|
<!--根据设定值变色-->
|
|
|
|
|
<!--<DataGrid.CellStyle>
|
|
|
|
|
<Style TargetType="DataGridCell">
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<DataTrigger Binding="{Binding No}" Value="3">
|
|
|
|
|
<Setter Property="Background" Value="#4285DE" />
|
|
|
|
|
</DataTrigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.CellStyle>-->
|
|
|
|
|
<DataGrid x:Name="dgvMH" ItemsSource="{Binding PlanInfoDataGrid}"
|
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Top" AlternationCount="2" RowHeaderWidth="0"
|
|
|
|
|
ColumnWidth="*" AutoGenerateColumns="False" IsReadOnly="True"
|
|
|
|
|
CanUserAddRows="False" SelectionMode="Single" Foreground="White"
|
|
|
|
|
SelectedItem="{Binding SelectedCells, Mode=OneWayToSource}" FontSize="18">
|
|
|
|
|
<DataGrid.Columns >
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ID}" Header="主键" Width="auto" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" Visibility="Hidden" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding No}" x:Name="No" Header="编号" Width="0.5*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
@ -320,6 +306,7 @@
|
|
|
|
|
<DataGridTextColumn Binding="{Binding CompleteAmount}" Header="完成" Width="0.6*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding PlanType}" Header="计划类型" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding BeginTime ,StringFormat=\{0:MM-dd HH:mm\}}" Header="开始时间" Width="1.2*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ExecuteStatus}" Header="执行状态" Visibility="Collapsed"/>
|
|
|
|
|
|
|
|
|
|
<DataGridTemplateColumn Header="操作" Width="3.5*" >
|
|
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
|
@ -341,9 +328,15 @@
|
|
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,20,0">
|
|
|
|
|
|
|
|
|
|
<TextBlock Text="执行方式" VerticalAlignment="Center" Foreground="White" FontSize="18" Margin="20,0,0,0"/>
|
|
|
|
|
<ComboBox Text="{Binding MaterialTypeCombox}" Width="200" Height="30" Margin="10 0 0 0" Style="{x:Null}" Background="#1152AC" VerticalAlignment="Center" FontSize="18" BorderBrush="#1152AC">
|
|
|
|
|
<ComboBoxItem Content="手动" IsSelected="True"/>
|
|
|
|
|
<ComboBoxItem Content="自动" />
|
|
|
|
|
<ComboBox Width="200" Height="30" Margin="10 0 0 0"
|
|
|
|
|
ItemsSource="{Binding LocationSource,Mode=OneWay}"
|
|
|
|
|
Style="{x:Null}" Background="#1152AC" VerticalAlignment="Center" FontSize="15"
|
|
|
|
|
SelectedItem="{Binding SelectLocation,Mode=TwoWay}"
|
|
|
|
|
SelectedValuePath="SelectedModel"
|
|
|
|
|
DisplayMemberPath="TypeName"
|
|
|
|
|
SelectedValue="{Binding SelectLocation,Mode=TwoWay}">
|
|
|
|
|
<!--<ComboBoxItem Content="手动" IsSelected="True"/>
|
|
|
|
|
<ComboBoxItem Content="自动" />-->
|
|
|
|
|
</ComboBox>
|
|
|
|
|
<Button Content="计划维护" Command="{Binding SplitPlanCommand}" Margin="20,0,0,0" BorderThickness="1" />
|
|
|
|
|
<Button Content="物料库存" Command="{Binding InventoryStatisticsCommand}" Margin="20,0,0,0" BorderThickness="1" />
|