| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- <UserControl x:Class="TeamAAS_VP.Views.Statistics.ProductionStatement"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels.Statistics"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:oxy="http://oxyplot.org/wpf"
- xmlns:lex="http://wpflocalizeextension.codeplex.com"
- lex:LocalizeDictionary.DesignCulture="zh-CN"
- lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
- lex:ResxLocalizationProvider.DefaultDictionary="Lang"
- prism:ViewModelLocator.AutoWireViewModel="True"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch"
- FontFamily="{DynamicResource DefaultFont}"
- mc:Ignorable="d"
- d:DataContext="{d:DesignInstance Type=vm:AlarmQueryViewModel}"
- d:Height="600"
- d:Width="1024"
- d:Background="White">
- <b:Interaction.Triggers>
- <b:EventTrigger EventName="Loaded">
- <b:InvokeCommandAction Command="{Binding LoadedCommand}" />
- </b:EventTrigger>
- </b:Interaction.Triggers>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="200" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Column="0"
- Orientation="Vertical"
- Margin="10">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <oxy:PlotView Grid.Row="0"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- Model="{Binding YieldChartModel}"
- Width="180"
- Height="180"
- Background="Transparent" />
- <TextBlock Grid.Row="1"
- Text="{lex:Loc 总产能,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
- VerticalAlignment="Center"
- Margin="5" />
- <TextBox Grid.Row="1"
- Grid.Column="1"
- Text="{Binding TotalCount}"
- IsReadOnly="True"
- BorderBrush="Gray"
- TextAlignment="Center"
- BorderThickness="1"
- Margin="5" />
- <TextBlock Grid.Row="2"
- Text="{lex:Loc 月产能,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
- VerticalAlignment="Center"
- Margin="5" />
- <TextBox Grid.Row="2"
- Grid.Column="1"
- Text="{Binding MonthCount}"
- IsReadOnly="True"
- BorderBrush="Gray"
- TextAlignment="Center"
- BorderThickness="1"
- Margin="5" />
- <TextBlock Grid.Row="3"
- Text="{lex:Loc 周产能,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
- VerticalAlignment="Center"
- Margin="5" />
- <TextBox Grid.Row="3"
- Grid.Column="1"
- Text="{Binding WeekCount}"
- IsReadOnly="True"
- BorderBrush="Gray"
- TextAlignment="Center"
- BorderThickness="1"
- Margin="5" />
- <TextBlock Grid.Row="4"
- Text="{lex:Loc 日产能,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
- VerticalAlignment="Center"
- Margin="5" />
- <TextBox Grid.Row="4"
- Grid.Column="1"
- Text="{Binding DayCount}"
- IsReadOnly="True"
- BorderBrush="Gray"
- TextAlignment="Center"
- BorderThickness="1"
- Margin="5" />
- <TextBlock Grid.Row="5"
- Text="{lex:Loc 抛料数,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
- VerticalAlignment="Center"
- Margin="5" />
- <TextBox Grid.Row="5"
- Grid.Column="1"
- Text="{Binding ThrowNumber}"
- IsReadOnly="True"
- BorderBrush="Gray"
- TextAlignment="Center"
- BorderThickness="1"
- Margin="5" />
- <TextBlock Grid.Row="6"
- Text="{lex:Loc NG数量,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
- VerticalAlignment="Center"
- Margin="5" />
- <TextBox Grid.Row="6"
- Grid.Column="1"
- Text="{Binding NgNumber}"
- IsReadOnly="True"
- BorderBrush="Gray"
- TextAlignment="Center"
- BorderThickness="1"
- Margin="5" />
- <TextBlock Grid.Row="7"
- Text="{lex:Loc 良率,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
- VerticalAlignment="Center"
- Margin="5" />
- <TextBox Grid.Row="7"
- Grid.Column="1"
- Text="{Binding Yield,StringFormat={}{0:F2}%}"
- IsReadOnly="True"
- BorderBrush="Gray"
- TextAlignment="Center"
- BorderThickness="1"
- Margin="5" />
- </Grid>
- <Button Content="{lex:Loc 生成报表}"
- Margin="10"
- materialDesign:ButtonAssist.CornerRadius="10"
- Style="{StaticResource MaterialDesignRaisedButton}" />
- <StackPanel Orientation="Horizontal"
- Margin="2,100,2,2">
- <TextBlock Text="连续小时数:"
- Width="80"
- VerticalAlignment="Center" />
- <TextBox x:Name="txtConsecutiveHours"
- Width="100"
- Text="{Binding HourNumber}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal"
- Margin="2,5,2,2">
- <TextBlock Text="目标产能:"
- Width="80"
- VerticalAlignment="Center" />
- <TextBox x:Name="txtTargetCapacity"
- Width="100"
- Text="{Binding UphNumber}" />
- </StackPanel>
- <Button Content="保存配置"
- Width="120"
- Height="35"
- Margin="10"
- Command="{Binding SaveConfigCommand}" />
- </StackPanel>
- <ScrollViewer Grid.Column="1">
- <StackPanel Orientation="Vertical">
- <Border Background="#FFFFFF"
- CornerRadius="8"
- Margin="0,0,0,0"
- Padding="1">
- <StackPanel Orientation="Horizontal"
- HorizontalAlignment="Center"
- Margin="0">
- <!-- 良率 -->
- <StackPanel>
- <TextBlock Text="良率"
- Foreground="#2D2D30"
- FontSize="12"
- Margin="30,0,30,0"
- Opacity="0.8" />
- <TextBlock x:Name="TxtYieldRate"
- Foreground="#00FF00"
- FontSize="24"
- Margin="30,0,30,0"
- Text="{Binding NowYieldt}" />
- </StackPanel>
- <!-- 总数 -->
- <StackPanel>
- <TextBlock Text="总检测数"
- Foreground="#2D2D30"
- FontSize="12"
- Margin="30,0,30,0"
- Opacity="0.8" />
- <TextBlock x:Name="TxtTotalCount"
- Foreground="#2D2D30"
- FontSize="24"
- Margin="30,0,30,0"
- Text="{Binding NowNumbers}" />
- </StackPanel>
- <!-- 合格数 -->
- <StackPanel>
- <TextBlock Text="合格数量"
- Foreground="#2D2D30"
- FontSize="12"
- Margin="30,0,30,0"
- Opacity="0.8" />
- <TextBlock x:Name="TxtOkCount"
- Foreground="#00FF00"
- FontSize="24"
- Margin="30,0,30,0"
- Text="{Binding NowOkNumbers}" />
- </StackPanel>
- <!-- 不合格数 -->
- <StackPanel>
- <TextBlock Text="不良数量"
- Foreground="#2D2D30"
- FontSize="12"
- Margin="30,0,30,0"
- Opacity="0.8" />
- <TextBlock x:Name="TxtNgCount"
- Foreground="#FF4444"
- FontSize="24"
- Margin="30,0,30,0"
- Text="{Binding NowNgNumbers}" />
- </StackPanel>
- </StackPanel>
- </Border>
- <oxy:PlotView Model="{Binding WeekChartModel}"
- Background="Transparent"
- Height="300" />
- <oxy:PlotView Model="{Binding DayChartModel}"
- Background="Transparent"
- Height="300" />
- <oxy:PlotView Model="{Binding MonthChartModel}"
- Background="Transparent"
- Height="300" />
- </StackPanel>
- </ScrollViewer>
- <Button Grid.Column="1"
- Margin="16"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Command="{x:Static materialDesign:Transitioner.MoveNextCommand}"
- Style="{StaticResource MaterialDesignFloatingActionSecondaryButton}">
- <materialDesign:PackIcon Kind="StepForward" />
- </Button>
- </Grid>
- </UserControl>
|