1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153 |
- <Window 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:local="clr-namespace:LogoForceTestApp.Modules.MainModule.Views"
- xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:viewmodels="clr-namespace:LogoForceTestApp.Modules.MainModule.ViewModels"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- x:Class="LogoForceTestApp.Modules.MainModule.Views.KBWindow"
- prism:ViewModelLocator.AutoWireViewModel="True"
- Title="{Binding 数字工厂监控看板}"
- Height="700"
- Width="1150"
- WindowStyle="None"
- AllowsTransparency="True"
- WindowStartupLocation="CenterScreen"
- d:DataContext="{d:DesignInstance Type={x:Type viewmodels:KBWindowViewModel}}"
- FontWeight="ExtraLight"
- mc:Ignorable="d">
- <Window.Resources>
- <Style TargetType="{x:Type Button}"
- x:Key="ControlButtonStyle">
- <Setter Property="Width"
- Value="40" />
- <Setter Property="Background"
- Value="#11FFFFFF" />
- <Setter Property="Foreground"
- Value="White" />
- <Setter Property="FontFamily"
- Value="/Assets/#iconfont" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid Background="{TemplateBinding Background}">
- <Border x:Name="root">
- <ContentPresenter VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- </Border>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver"
- Value="True">
- <Setter TargetName="root"
- Property="Background"
- Value="#33FFFFFF" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="{x:Type GroupBox}">
- <Setter Property="Margin"
- Value="0,5" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type GroupBox}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal"
- VerticalAlignment="Center">
- <TextBlock Text="{TemplateBinding Header}"
- Foreground="#7D96C4"
- FontSize="22" />
- <TextBlock Text="{TemplateBinding Tag}"
- Foreground="#55FFFFFF"
- VerticalAlignment="Bottom"
- FontSize="15"
- Margin="15,0,0,0" />
- </StackPanel>
- <Border Grid.Row="1"
- BorderThickness="1"
- BorderBrush="#447D96C4"
- Margin="0,7,5,5">
- <ContentPresenter />
- </Border>
- <!--装饰-->
- <Grid Grid.Row="1"
- Margin="0,7,0,0">
- <Border BorderBrush="#447D96C4"
- BorderThickness="0,0,1,1"
- Margin="5,5,0,0" />
- <Line X1="0"
- Y1="0"
- X2="5"
- Y2="0"
- Stroke="#447D96C4"
- StrokeThickness="1"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Margin="0,5,0,0" />
- <Line X1="0"
- Y1="0"
- X2="0"
- Y2="5"
- Stroke="#447D96C4"
- StrokeThickness="1"
- HorizontalAlignment="Left"
- VerticalAlignment="Bottom"
- Margin="5,0,0,0" />
- <Polygon Points="5,0 0,0 0,5"
- Stroke="#7D96C4"
- VerticalAlignment="Top"
- HorizontalAlignment="Left" />
- <Polygon Points="0,0 5,0 5,5"
- Stroke="#7D96C4"
- VerticalAlignment="Top"
- HorizontalAlignment="Right"
- Margin="0,0,5,0" />
- <Polygon Points="0,5 5,5 5,0"
- Stroke="#FF7D96C4"
- VerticalAlignment="Bottom"
- HorizontalAlignment="Right"
- Grid.Row="1"
- Margin="0,0,5,5" />
- <Polygon Points="0,0 0,5 5,5"
- Stroke="#FF7D96C4"
- VerticalAlignment="Bottom"
- HorizontalAlignment="Left"
- Grid.Row="1"
- Margin="0,0,0,5" />
- </Grid>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Window.Resources>
- <Window.Background>
- <RadialGradientBrush GradientOrigin="0.5,-0.8"
- Center="0.5,0"
- RadiusX="0.7"
- RadiusY="0.7">
- <GradientStop Color="#A02B40"
- Offset="0" />
- <GradientStop Color="#08113C"
- Offset="1" />
- </RadialGradientBrush>
- </Window.Background>
- <b:Interaction.Triggers>
- <b:EventTrigger EventName="Loaded">
- <b:InvokeCommandAction Command="{Binding LoadedCommand}" />
- </b:EventTrigger>
- </b:Interaction.Triggers>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="70" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Border Grid.RowSpan="2"
- VerticalAlignment="Top"
- Height="130"
- Margin="-3,-12,-3,0">
- <Border.Background>
- <VisualBrush Stretch="Fill">
- <VisualBrush.Visual>
- <Path Data="M0,0 L0,30 400,30 A15,10,0,0,1,414,35 L425,51 A10,10,0,0,0,434,55 L666,55 A10,10,0,0,0,675 51 L686,35 A15 10 0 0 1 700 30 L1100,30 1100,0 z"
- StrokeThickness="1"
- Stretch="Fill">
- <Path.Fill>
- <RadialGradientBrush RadiusX="0.6"
- RadiusY="1.8"
- Center="0.5,1.8"
- GradientOrigin="0.5,2">
- <GradientStop Color="#2BB6FE"
- Offset="0" />
- <GradientStop Color="#112BB6FE"
- Offset="1" />
- </RadialGradientBrush>
- </Path.Fill>
- <Path.Effect>
- <DropShadowEffect BlurRadius="10"
- ShadowDepth="5"
- Direction="270"
- Color="Black"
- Opacity="0.5" />
- </Path.Effect>
- <Path.Stroke>
- <LinearGradientBrush StartPoint="0,0"
- EndPoint="1,0">
- <GradientStop Color="Transparent"
- Offset="0" />
- <GradientStop Color="#2BB6FE"
- Offset="0.5" />
- <GradientStop Color="Transparent"
- Offset="1" />
- </LinearGradientBrush>
- </Path.Stroke>
- </Path>
- </VisualBrush.Visual>
- </VisualBrush>
- </Border.Background>
- </Border>
- <TextBlock Text="TEAM"
- Foreground="#2BB6FE"
- FontSize="20"
- Margin="20,0,0,0"
- FontWeight="Bold"
- HorizontalAlignment="Left"
- VerticalAlignment="Center" />
- <TextBlock Text="德盾智能锁生产流水线"
- HorizontalAlignment="Center"
- Foreground="White"
- VerticalAlignment="Bottom"
- FontSize="35" />
- <TextBlock Grid.Row="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="20">
- <Run Text=""
- FontFamily="../Assets/#iconfont"
- Foreground="#2BB6FE" />
- <Run Text=" " />
- <Run Text="{Binding TimeNow}"
- Foreground="#55FFFFFF" />
- </TextBlock>
- <Border HorizontalAlignment="Right"
- VerticalAlignment="Top"
- WindowChrome.IsHitTestVisibleInChrome="True"
- Background="Transparent">
- <StackPanel Orientation="Horizontal"
- HorizontalAlignment="Right">
- <!--<Button Width="40"
- Height="40"
- Content=""
- Style="{StaticResource ControlButtonStyle}"
- x:Name="btnMax"/>-->
- <Button Width="40"
- Height="40"
- Content="×"
- FontSize="35"
- Style="{StaticResource ControlButtonStyle}"
- x:Name="btnClose"
- Background="Transparent" />
- </StackPanel>
- </Border>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition Width="1.5*" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="300" />
- <RowDefinition Height="200"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
-
- <GroupBox Header="出勤信息"
- Margin="15"
- Grid.Row="0">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*" />
- <ColumnDefinition Width="1*" />
- </Grid.ColumnDefinitions>
- <lvc:PieChart Series="{Binding Series12}"
- InitialRotation="{Binding InitialRotation12}"
- MaxAngle="{Binding MaxAngle12}"
- MaxValue="{Binding GaugeTotal12}"
- Grid.Column="0" />
- <StackPanel Orientation="Vertical"
- Grid.Column="1"
- Margin="10,50,5,50">
- <TextBlock Text="{Binding TotalPer}"
- FontSize="18"
- Foreground="#DD2BB6FE"
- Margin="5"
- VerticalAlignment="Center"/>
- <TextBlock Text="{Binding ActualPer}"
- FontSize="18"
- Foreground="#DD2BB6FE"
- Margin="5"
- VerticalAlignment="Center"/>
- <TextBlock Text="{Binding FallIllPer}"
- FontSize="18"
- Foreground="#DD2BB6FE"
- Margin="5"
- VerticalAlignment="Center"/>
- <TextBlock Text="{Binding AbsenPer}"
- FontSize="18"
- Foreground="#DD2BB6FE"
- Margin="5"
- VerticalAlignment="Center"/>
- </StackPanel>
- </Grid>
- </GroupBox>
-
- <GroupBox Header="优秀员工"
- Margin="15"
- Grid.Row="1">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Image Grid.RowSpan="3"
- Grid.Column="0"
- Margin="5"
- Source="/LogoForceTestApp.Modules.MainModule;component/Views/persons.png" />
- <Border BorderBrush="#22FFFFFF"
- BorderThickness="0,0,0,1"
- Grid.Column="1"
- Grid.Row="0">
- <TextBlock FontSize="18"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Foreground="#E6B2DE">
- <Run Text=""
- FontFamily="../Assets/#iconfont"
- Foreground="Yellow" />
- <Run Text=" 第一名" />
- </TextBlock>
- </Border>
- <Border BorderBrush="#22FFFFFF"
- BorderThickness="0,0,0,1"
- Grid.Column="2"
- Grid.Row="0">
- <TextBlock Text="{Binding FirstName}"
- FontSize="18"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Foreground="#C3C498" />
- </Border>
- <Border BorderBrush="#22FFFFFF"
- BorderThickness="0,0,0,1"
- Grid.Column="1"
- Grid.Row="1">
- <TextBlock Text="【 第二名 】"
- FontSize="18"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Foreground="#AB93FF"/>
- </Border>
- <Border BorderBrush="#22FFFFFF"
- BorderThickness="0,0,0,1"
- Grid.Column="2"
- Grid.Row="1">
- <TextBlock Text="{Binding SecondName}"
- Grid.Column="2"
- Grid.Row="1"
- FontSize="18"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Foreground="#C3C498" />
- </Border>
- <TextBlock Text="【 第三名 】"
- Grid.Column="1"
- Grid.Row="2"
- FontSize="18"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Foreground="#AB93FF" />
- <TextBlock Text="{Binding ThirdName}"
- Grid.Column="2"
- Grid.Row="2"
- FontSize="18"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Foreground="#C3C498" />
- </Grid>
- </GroupBox>
-
- <GroupBox Header="绩效管理"
- Margin="15"
- Grid.Row="2">
- <DataGrid x:Name="datagrid_person"
- AutoGenerateColumns="False"
- IsReadOnly="True"
- Margin="3"
- Background="Transparent"
- FontSize="20"
- BorderThickness="1"
- BorderBrush="#0000CD"
- Foreground="#afb4db"
- ItemsSource="{Binding PerManage}"
- LoadingRow="datagrid_person_LoadingRow">
- <DataGrid.RowStyle>
- <Style TargetType="{x:Type DataGridRow}">
- <Setter Property="Background"
- Value="Transparent" />
- </Style>
- </DataGrid.RowStyle>
- <DataGrid.Style>
- <Style TargetType="{x:Type DataGrid}">
- <Setter Property="CanUserResizeColumns"
- Value="false" />
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility"
- Value="Auto" />
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
- Value="Auto" />
- <Setter Property="HeadersVisibility"
- Value="Column" />
- <Setter Property="HorizontalGridLinesBrush"
- Value="#0000CD" />
- <Setter Property="VerticalGridLinesBrush"
- Value="#0000CD" />
- </Style>
- </DataGrid.Style>
- <DataGrid.ColumnHeaderStyle>
- <Style TargetType="{x:Type DataGridColumnHeader}">
- <Setter Property="HorizontalContentAlignment"
- Value="Center" />
- <Setter Property="Background"
- Value="#001f55" />
- <Setter Property="Foreground"
- Value="#17acae" />
- <Setter Property="BorderThickness"
- Value="1" />
- <Setter Property="BorderBrush"
- Value="#0000CD" />
- </Style>
- </DataGrid.ColumnHeaderStyle>
- <DataGrid.Columns>
- <DataGridTemplateColumn Width="auto"
- Header="排序">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Header, RelativeSource={RelativeSource AncestorType={x:Type DataGridRow}, Mode=FindAncestor}}"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Margin="10,0,0,0" />
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTextColumn Width="*"
- Binding="{Binding EmployeeName}"
- Header="员工" />
- <DataGridTextColumn Width="*"
- Binding="{Binding Yield}"
- Header="产量" />
- </DataGrid.Columns>
- </DataGrid>
- </GroupBox>
- </Grid>
- <Grid Grid.Column="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="60" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="2*" />
- <RowDefinition Height="3*" />
- </Grid.RowDefinitions>
-
- <Image Grid.ColumnSpan="2"
- Grid.Row="1"
- Margin="5"
- Source="/LogoForceTestApp.Modules.MainModule;component/Views/dev.png" />
- <GroupBox Margin="10,0,10,3"
- Grid.Row="2">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="3*" />
- <ColumnDefinition Width="2*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <StackPanel Orientation="Horizontal"
- Grid.Row="1"
- Grid.Column="0"
- Grid.ColumnSpan="3">
- <TextBlock Text="{Binding BillNo}"
- FontSize="20"
- Foreground="PaleVioletRed"
- Margin="5"
- VerticalAlignment="Center"
- FontFamily="Comic Sans MS" />
- <TextBlock Text="计划产量"
- FontSize="20"
- Foreground="#17acae"
- Margin="5"
- VerticalAlignment="Center" />
- <TextBlock Text="{Binding AuxQty}"
- FontSize="20"
- Foreground="#DD2BB6FE"
- Margin="5"
- VerticalAlignment="Center" />
- <TextBlock Text="已完成"
- FontSize="20"
- Foreground="#17acae"
- Margin="5"
- VerticalAlignment="Center" />
- <TextBlock Text="{Binding Finished}"
- FontSize="20"
- Foreground="#DD2BB6FE"
- Margin="5"
- VerticalAlignment="Center" />
- </StackPanel>
- <StackPanel Orientation="Horizontal"
- Grid.Row="1"
- Grid.Column="2">
- <TextBlock Text="完成度"
- FontSize="20"
- Foreground="#17acae"
- Margin="5"
- VerticalAlignment="Center" />
- <ProgressBar Width="200"
- Height="20"
- Minimum="0"
- Maximum="100"
- Value="{Binding FinishRate}"
- Background="#803338AE" />
- </StackPanel>
- </Grid>
- </GroupBox>
- <GroupBox Header="生产进度"
- Margin="15"
- Grid.Row="3">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto" />
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <TextBlock VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Text="近一周产量趋势"
- FontSize="16"
- Foreground="#2780D6"
- Margin="3"/>
- <StackPanel Orientation="Horizontal"
- VerticalAlignment="Top"
- HorizontalAlignment="Right"
- Margin="3"
- Grid.Row="1">
- <Border Width="10"
- Height="10"
- Background="#AFD179"
- Margin="5,0" />
- <TextBlock Text="产量"
- FontSize="10"
- Foreground="#44FFFFFF" />
- <Border Width="10"
- Height="10"
- Background="#D17DCB"
- Margin="5,0" />
- <TextBlock Text="合格率(%)"
- FontSize="10"
- Foreground="#44FFFFFF" />
- </StackPanel>
- <lvc:CartesianChart Series="{Binding SeriesLine}"
- DrawMarginFrame="{Binding DrawMarginFrame}"
- XAxes="{Binding XAxesLine}"
- YAxes="{Binding YAxesLine}"
- Grid.Row="2" />
- </Grid>
-
- </GroupBox>
- <GroupBox Header="质量保证"
- Margin="15"
- Grid.Row="4">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="25"/>
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock Text="生产问题汇总"
- Margin="3"
- FontSize="14"
- Foreground="#2F98FF"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Grid.Row="0"
- Grid.Column="0"/>
- <lvc:CartesianChart Series="{Binding SeriesQuality1}"
- XAxes="{Binding XAxes1}"
- YAxes="{Binding YAxes1}"
- Grid.Row="1"
- Grid.Column="0"/>
- <TextBlock Text="工艺问题汇总"
- Margin="3"
- FontSize="14"
- Foreground="#2F98FF"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Grid.Row="0"
- Grid.Column="1" />
- <lvc:CartesianChart Series="{Binding SeriesQuality2}"
- XAxes="{Binding XAxes2}"
- YAxes="{Binding YAxes2}"
- Grid.Row="1"
- Grid.Column="1" />
- <TextBlock Text="物料问题汇总"
- Margin="3"
- FontSize="14"
- Foreground="#2F98FF"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Grid.Row="0"
- Grid.Column="2" />
- <lvc:CartesianChart Series="{Binding SeriesQuality3}"
- XAxes="{Binding XAxes3}"
- YAxes="{Binding YAxes3}"
- Grid.Row="1"
- Grid.Column="2" />
- </Grid>
- </GroupBox>
- </Grid>
- <Grid Grid.Column="2">
- <Grid.RowDefinitions>
- <RowDefinition Height="200" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="1*" />
- </Grid.RowDefinitions>
- <GroupBox Header="实时产量"
- Margin="15"
- Grid.Row="0">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="1*" />
- <RowDefinition Height="2*" />
- </Grid.RowDefinitions>
- <TextBlock Text="【 今日总产量 】"
- FontSize="18"
- Foreground="#DD2BB6FE"
- Margin="5"
- Grid.Row="0"
- Grid.Column="0"
- VerticalAlignment="Bottom"
- HorizontalAlignment="Left" />
- <TextBlock Text="{Binding TotalNum}"
- FontSize="22"
- Foreground="#FFAEC9"
- Margin="5"
- Grid.Row="1"
- Grid.Column="0"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- FontFamily="Comic Sans MS" />
- <TextBlock Text="【 合格数 】"
- FontSize="18"
- Foreground="#DD2BB6FE"
- Margin="5"
- Grid.Row="0"
- Grid.Column="1"
- VerticalAlignment="Bottom"
- HorizontalAlignment="Left" />
- <TextBlock Text="{Binding PassNum}"
- FontSize="22"
- Foreground="#FFAEC9"
- Margin="5"
- Grid.Row="1"
- Grid.Column="1"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- FontFamily="Comic Sans MS" />
- <TextBlock Text="【 合格率 】"
- FontSize="18"
- Foreground="#DD2BB6FE"
- Margin="5"
- Grid.Row="0"
- Grid.Column="2"
- VerticalAlignment="Bottom"
- HorizontalAlignment="Left" />
- <lvc:PieChart Series="{Binding Series}"
- InitialRotation="-225"
- MaxAngle="270"
- MinValue="0"
- MaxValue="100"
- Grid.Column="2"
- Grid.Row="1" />
- </Grid>
- </GroupBox>
- <GroupBox Header="线边仓管理"
- Margin="15"
- Grid.Row="1">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="67" />
- </Grid.RowDefinitions>
- <lvc:PieChart Series="{Binding Series13}"
- InitialRotation="{Binding InitialRotation13}"
- MaxAngle="{Binding MaxAngle13}"
- MaxValue="{Binding GaugeTotal13}" />
- <DataGrid AutoGenerateColumns="False"
- IsReadOnly="True"
- Margin="3"
- Background="Transparent"
- FontSize="20"
- BorderThickness="1"
- BorderBrush="#0000CD"
- Foreground="#afb4db"
- ItemsSource="{Binding MyHouse}"
- Grid.Row="1">
- <DataGrid.RowStyle>
- <Style TargetType="{x:Type DataGridRow}">
- <Setter Property="Background"
- Value="Transparent" />
- </Style>
- </DataGrid.RowStyle>
- <DataGrid.Style>
- <Style TargetType="{x:Type DataGrid}">
- <!--网格线颜色-->
- <Setter Property="CanUserResizeColumns"
- Value="false" />
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility"
- Value="Auto" />
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
- Value="Auto" />
- <Setter Property="HeadersVisibility"
- Value="Column" />
- <Setter Property="HorizontalGridLinesBrush"
- Value="#0000CD" />
- <Setter Property="VerticalGridLinesBrush"
- Value="#0000CD" />
- </Style>
- </DataGrid.Style>
- <DataGrid.ColumnHeaderStyle>
- <Style TargetType="{x:Type DataGridColumnHeader}">
- <Setter Property="HorizontalContentAlignment"
- Value="Center" />
- <Setter Property="Background"
- Value="#001f55" />
- <Setter Property="Foreground"
- Value="#17acae" />
- <Setter Property="BorderThickness"
- Value="1" />
- <Setter Property="BorderBrush"
- Value="#0000CD" />
- </Style>
- </DataGrid.ColumnHeaderStyle>
- <DataGrid.Columns>
- <DataGridTextColumn Width="*"
- Binding="{Binding DateH}"
- Header="日期" />
- <DataGridTextColumn Width="*"
- Binding="{Binding TotalH}"
- Header="当日订单" />
- <DataGridTextColumn Width="*"
- Binding="{Binding UsedH}"
- Header="已领料订单" />
- <DataGridTextColumn Width="*"
- Binding="{Binding LackH}"
- Header="缺料订单" />
- </DataGrid.Columns>
- </DataGrid>
- </Grid>
- </GroupBox>
- <GroupBox Header="设备监控"
- Margin="15"
- Grid.Row="2">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="35" />
- <RowDefinition Height="*" />
- <RowDefinition Height="30" />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- Margin="5">
- <Image Source="/LogoForceTestApp.Modules.MainModule;component/Views/绿灯.png"
- Margin="5" />
- <TextBlock Text="正常 "
- FontSize="16"
- Foreground="#44FFFFFF"
- Margin="3" />
- <Image Source="/LogoForceTestApp.Modules.MainModule;component/Views/黄灯.png"
- Margin="5" />
- <TextBlock Text="缺料 "
- FontSize="16"
- Foreground="#44FFFFFF"
- Margin="3" />
- <Image Source="/LogoForceTestApp.Modules.MainModule;component/Views/红灯.png"
- Margin="5" />
- <TextBlock Text="报警 "
- FontSize="16"
- Foreground="#44FFFFFF"
- Margin="3" />
- </StackPanel>
- <Grid Grid.Row="1">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Border BorderBrush="#22FFFFFF"
- BorderThickness="0,1,1,0"
- Grid.Column="0">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0"
- Orientation="Horizontal">
- <TextBlock Text="螺丝机1"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight15}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="1"
- Orientation="Horizontal">
- <TextBlock Text="螺丝机2"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight16}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="2"
- Orientation="Horizontal">
- <TextBlock Text="螺丝机3"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight17}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="3"
- Orientation="Horizontal">
- <TextBlock Text="螺丝机4"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight18}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="4"
- Orientation="Horizontal">
- <TextBlock Text="螺丝机5"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight19}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="5"
- Orientation="Horizontal">
- <TextBlock Text="螺丝机6"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight20}"
- Height="20"
- Width="20" />
- </StackPanel>
- </Grid>
- </Border>
- <Border BorderBrush="#22FFFFFF"
- BorderThickness="0,1,1,0"
- Grid.Column="1">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0"
- Orientation="Horizontal">
- <TextBlock Text="1号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight1}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="1"
- Orientation="Horizontal">
- <TextBlock Text="2号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight2}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="2"
- Orientation="Horizontal">
- <TextBlock Text="3号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight3}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="3"
- Orientation="Horizontal">
- <TextBlock Text="4号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight4}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="4"
- Orientation="Horizontal">
- <TextBlock Text="5号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight5}"
- Height="20"
- Width="20" />
- </StackPanel>
- </Grid>
- </Border>
- <Border BorderBrush="#22FFFFFF"
- BorderThickness="0,1,1,0"
- Grid.Column="2">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0"
- Orientation="Horizontal">
- <TextBlock Text="6号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight6}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="1"
- Orientation="Horizontal">
- <TextBlock Text="7号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight7}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="2"
- Orientation="Horizontal">
- <TextBlock Text="8号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight8}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="3"
- Orientation="Horizontal">
- <TextBlock Text="9号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight9}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="4"
- Orientation="Horizontal">
- <TextBlock Text="10号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight10}"
- Height="20"
- Width="20" />
- </StackPanel>
- </Grid>
- </Border>
- <Border BorderBrush="#22FFFFFF"
- BorderThickness="0,1,1,0"
- Grid.Column="3">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0"
- Orientation="Horizontal">
- <TextBlock Text="11号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight11}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="1"
- Orientation="Horizontal">
- <TextBlock Text="12号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight12}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="2"
- Orientation="Horizontal">
- <TextBlock Text="13号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight13}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="3"
- Orientation="Horizontal">
- <TextBlock Text="14号机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight14}"
- Height="20"
- Width="20" />
- </StackPanel>
- </Grid>
- </Border>
- <Border BorderBrush="#22FFFFFF"
- BorderThickness="0,1,0,0"
- Grid.Column="4">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0"
- Orientation="Horizontal">
- <TextBlock Text="提升机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight21}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="1"
- Orientation="Horizontal">
- <TextBlock Text="检测机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight22}"
- Height="20"
- Width="20" />
- </StackPanel>
- <StackPanel Grid.Row="2"
- Orientation="Horizontal">
- <TextBlock Text="返修机"
- FontSize="15"
- Foreground="#85A5EB"
- Margin="5"
- VerticalAlignment="Center" />
- <Image Source="{Binding ImgLight23}"
- Height="20"
- Width="20" />
- </StackPanel>
- </Grid>
- </Border>
- </Grid>
- </Grid>
- <Border BorderBrush="#22FFFFFF"
- BorderThickness="0,1,0,0"
- Grid.Row="2">
- <TextBlock Text="{Binding Fix}"
- FontSize="16"
- Foreground="#44FFFFFF"
- Margin="3" />
- </Border>
- </Grid>
- </GroupBox>
- </Grid>
- </Grid>
- </Grid>
- </Window>
|