|
|
|
@ -5,13 +5,15 @@
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
|
|
|
|
xmlns:local="clr-namespace:Aucma.Core.SheetMetal.Views"
|
|
|
|
|
mc:Ignorable="d" Background="#1152AC" FontFamily="Microsoft YaHei"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
Background="#1152AC"
|
|
|
|
|
FontFamily="Microsoft YaHei"
|
|
|
|
|
d:DesignHeight="1080"
|
|
|
|
|
d:DesignWidth="1920" >
|
|
|
|
|
<UserControl.Resources>
|
|
|
|
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="FontSize" Value="15"/>
|
|
|
|
|
<Setter Property="FontSize" Value="20"/>
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
<Style TargetType="DataGrid">
|
|
|
|
@ -43,6 +45,7 @@
|
|
|
|
|
<Setter Property="FontSize" Value="18"/>
|
|
|
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
<!--单元格样式-->
|
|
|
|
@ -190,7 +193,7 @@
|
|
|
|
|
<Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="0" Background="Transparent" Margin="1,1,0,0" >
|
|
|
|
|
<lvc:Gauge Margin="5" Uses360Mode="True" From="0" To="{Binding PlanMaxNum,Mode=TwoWay}"
|
|
|
|
|
Value="{Binding RealQuantity,Mode=TwoWay}"
|
|
|
|
|
Foreground="White"/>
|
|
|
|
|
Foreground="White" />
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
@ -251,12 +254,12 @@
|
|
|
|
|
<Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
|
|
|
|
|
<Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
|
|
|
|
|
<Grid Margin="10,10">
|
|
|
|
|
<lvc:CartesianChart Series="{Binding Achievement, UpdateSourceTrigger=PropertyChanged}" LegendLocation="Top" Foreground="White">
|
|
|
|
|
<lvc:CartesianChart Series="{Binding Achievement, UpdateSourceTrigger=PropertyChanged}" LegendLocation="Top" Foreground="White">
|
|
|
|
|
<lvc:CartesianChart.DataTooltip >
|
|
|
|
|
<lvc:DefaultTooltip SelectionMode="OnlySender" BulletSize="10" Foreground="Black"></lvc:DefaultTooltip>
|
|
|
|
|
</lvc:CartesianChart.DataTooltip>
|
|
|
|
|
<lvc:CartesianChart.AxisX>
|
|
|
|
|
<lvc:Axis Labels="{Binding ProductionHourList}" FontSize="12" LabelsRotation="0" DisableAnimations="True" Position="LeftBottom" Foreground="White">
|
|
|
|
|
<lvc:CartesianChart.AxisX >
|
|
|
|
|
<lvc:Axis Labels="{Binding ProductionHourList}" FontSize="18" Foreground="White" LabelsRotation="0" DisableAnimations="True" Position="LeftBottom" >
|
|
|
|
|
<lvc:Axis.Separator>
|
|
|
|
|
<lvc:Separator Visibility="Hidden" Step="1" StrokeThickness="1.5" StrokeDashArray="0" Stroke="#404F56" >
|
|
|
|
|
</lvc:Separator>
|
|
|
|
@ -264,7 +267,7 @@
|
|
|
|
|
</lvc:Axis>
|
|
|
|
|
</lvc:CartesianChart.AxisX>
|
|
|
|
|
<lvc:CartesianChart.AxisY>
|
|
|
|
|
<lvc:Axis FontSize="18" Foreground="White" >
|
|
|
|
|
<lvc:Axis FontSize="18" Foreground="White">
|
|
|
|
|
<lvc:Axis.Separator>
|
|
|
|
|
<lvc:Separator Visibility="Hidden" StrokeThickness="1" StrokeDashArray="3" Stroke="#404F56" >
|
|
|
|
|
</lvc:Separator>
|
|
|
|
@ -308,6 +311,7 @@
|
|
|
|
|
<DataGridTextColumn Binding="{Binding TaskAmount}" Header="计划" Width="0.6*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding CompleteAmount}" Header="完成" Width="0.6*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding PlanType}" Header="计划类型" Width="1*" 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"/>
|
|
|
|
|
|
|
|
|
@ -328,13 +332,13 @@
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
|
|
|
|
|
<Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="0,0,0,1">
|
|
|
|
|
<Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="0,0,0,1" >
|
|
|
|
|
<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 Width="200" Height="30" Margin="10 0 0 0"
|
|
|
|
|
<TextBlock Text="执行方式" VerticalAlignment="Center" Foreground="White" FontSize="20" Margin="20,0,0,0"/>
|
|
|
|
|
<ComboBox Width="200" Height="30" Margin="10 0 0 0" FontSize="18"
|
|
|
|
|
ItemsSource="{Binding LocationSource,Mode=OneWay}"
|
|
|
|
|
Style="{x:Null}" Background="#1152AC" VerticalAlignment="Center" FontSize="15"
|
|
|
|
|
Style="{x:Null}" Background="#1152AC" VerticalAlignment="Center"
|
|
|
|
|
SelectedItem="{Binding SelectLocation,Mode=TwoWay}"
|
|
|
|
|
SelectedValuePath="SelectedModel"
|
|
|
|
|
DisplayMemberPath="TypeName"
|
|
|
|
@ -342,8 +346,8 @@
|
|
|
|
|
<!--<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" />
|
|
|
|
|
<Button Content="计划创建" Command="{Binding SplitPlanCommand}" Margin="20,0,0,0" FontSize="18" Height="40" BorderThickness="1" />
|
|
|
|
|
<Button Content="物料库存" Command="{Binding InventoryStatisticsCommand}" Margin="20,0,0,0" FontSize="18" Height="40" BorderThickness="1" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
|
|
|
@ -369,8 +373,8 @@
|
|
|
|
|
<lvc:CartesianChart.DataTooltip>
|
|
|
|
|
<lvc:DefaultTooltip BulletSize="10" Foreground="Black"></lvc:DefaultTooltip>
|
|
|
|
|
</lvc:CartesianChart.DataTooltip>
|
|
|
|
|
<lvc:CartesianChart.AxisX>
|
|
|
|
|
<lvc:Axis Labels="{Binding MaterialNameList}" FontSize="12" Foreground="White">
|
|
|
|
|
<lvc:CartesianChart.AxisX FontSize ="18">
|
|
|
|
|
<lvc:Axis Labels="{Binding MaterialNameList}" FontSize="18" Foreground="White">
|
|
|
|
|
<lvc:Axis.Separator>
|
|
|
|
|
<lvc:Separator Step="1" Visibility="Hidden" StrokeThickness="1.5" StrokeDashArray="0" Stroke="#404F56" >
|
|
|
|
|
</lvc:Separator>
|
|
|
|
|