12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040 |
- <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="200"/>
- <RowDefinition Height="300" />
- <RowDefinition />
- </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.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="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 ProProcess}"
- Header="生产工序" />
- <DataGridTextColumn Width="*"
- Binding="{Binding WorkTime}"
- 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="1*" />
- <RowDefinition Height="1*" />
- </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="22"
- Foreground="PaleVioletRed"
- Margin="5"
- VerticalAlignment="Center"
- FontFamily="Comic Sans MS" />
- <TextBlock Text="计划产量"
- FontSize="22"
- Foreground="#17acae"
- Margin="5"
- VerticalAlignment="Center" />
- <TextBlock Text="{Binding AuxQty}"
- FontSize="22"
- Foreground="#DD2BB6FE"
- Margin="5"
- VerticalAlignment="Center" />
- <TextBlock Text="已完成"
- FontSize="22"
- Foreground="#17acae"
- Margin="5"
- VerticalAlignment="Center" />
- <TextBlock Text="{Binding Finished}"
- FontSize="22"
- Foreground="#DD2BB6FE"
- Margin="5"
- VerticalAlignment="Center" />
- </StackPanel>
- <StackPanel Orientation="Horizontal"
- Grid.Row="1"
- Grid.Column="2">
- <TextBlock Text="完成度"
- FontSize="22"
- 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">
- <lvc:CartesianChart Series="{Binding SeriesLine}"
- DrawMarginFrame="{Binding DrawMarginFrame}"
- XAxes="{Binding XAxesLine}"
- YAxes="{Binding YAxesLine}"
- Title="{Binding PcTitle}"
- Grid.Row="1" />
- </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="3*" />
- <RowDefinition Height="4*" />
- </Grid.RowDefinitions>
- <GroupBox Header="线边仓管理"
- Margin="15"
- Grid.Row="0">
- <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="1">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="35" />
- <RowDefinition Height="5*"/>
- <RowDefinition Height="6*"/>
- </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">
- <Border BorderBrush="#22FFFFFF"
- BorderThickness="0,0,0,1"
- VerticalAlignment="Top">
- <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>
- </Border>
- </Grid>
- <Grid Grid.Row="2">
-
- </Grid>
- </Grid>
- </GroupBox>
- </Grid>
- </Grid>
- </Grid>
- </Window>
|