123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439 |
- <UserControl x:Class="DefaultEdit.Views.WorkRunView"
- 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"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:scottplot="clr-namespace:ScottPlot.WPF;assembly=ScottPlot.WPF"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:local="clr-namespace:DefaultEdit.Views"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:c="clr-namespace:DefaultEdit.ValueConverters"
- xmlns:Viewlocal="clr-namespace:DefaultEdit.ViewModels"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- d:DesignHeight="850"
- d:DesignWidth="1200">
- <UserControl.Resources>
- <c:BoolToStrConverter x:Key="boolTostr"></c:BoolToStrConverter>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border Grid.Row="0"
- Margin="5"
- BorderBrush="#7AB0F0"
- BorderThickness="2"
- CornerRadius="5"
- Padding="1">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="20*" />
- <ColumnDefinition Width="40*" />
- <ColumnDefinition Width="40*" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal"
- Grid.Row="0"
- VerticalAlignment="Bottom">
- <TextBlock Text="用户名"
- Margin="20,5,5,5"
- FontSize="18" />
- <TextBlock Text="{Binding Management.UserName}"
- Margin="20,5,5,5"
- FontSize="18" />
- </StackPanel>
- <StackPanel Orientation="Vertical"
- Grid.Row="1"
- VerticalAlignment="Bottom">
- <StackPanel Orientation="Horizontal">
- <Button Content="登录"
- Width="65"
- Background="#7E61E0"
- Margin="20,5,5,5"
- Command="{Binding OpenRoleLoginViewCommand}"
- FontSize="18" />
- <!--<Button Content="账户退出"
- Width="75"
- Background="#7E61E0"
- Margin="20,5,5,5"
- Command="{Binding DLoginCommand}"
- FontSize="18" />-->
- <TextBlock Text="当前:" Margin="10,10,0,0"/>
- <Button Content="{Binding Management.Ismeswork,Converter={StaticResource boolTostr}}"
- Width="65"
- Command="{Binding SwitchModeCommand}"
- Background="#7E61E0"
- Margin="0,5,5,5"
- FontSize="18" />
- </StackPanel>
- <!--<StackPanel Orientation="Horizontal">
- <TextBlock Text="当前:" Margin="10,10,0,0"/>
- <Button Content="{Binding Management.Ismeswork,Converter={StaticResource boolTostr}}"
- Width="65"
- Command="{Binding SwitchModeCommand}"
- Background="#7E61E0"
- Margin="0,5,5,5"
- FontSize="18" />
- </StackPanel>-->
- </StackPanel>
- </Grid>
- <Grid Grid.Column="1"
- Margin="5,5,30,5"
- Height="300">
- <scottplot:WpfPlot Name="plot"
- Grid.Column="0"
- />
- </Grid>
- <Grid Grid.Column="2"
- Margin="0,20,0,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock Text="顶出工位"
- Margin="0,0,80,0"
- Grid.Row="0"
- Grid.Column="0" />
- <TextBlock Text="{Binding Management.CurrStationRfid[0]}"
- Margin="0,0,80,0"
- Grid.Row="0"
- Grid.Column="0" />
- <TextBlock Text="离心工位#1-1"
- Grid.Row="2"
- Grid.Column="0" />
- <TextBlock Text="离心工位#1-2"
- Grid.Row="2"
- Grid.Column="1" />
- <TextBlock Text="{Binding Management.CurrStationRfid[1]}"
- Grid.Row="1"
- Grid.Column="0" />
- <TextBlock Text="{Binding Management.CurrStationRfid[2]}"
- Grid.Row="1"
- Grid.Column="1" />
- <TextBlock Text="离心工位#2-1"
- Grid.Row="4"
- Grid.Column="0" />
- <TextBlock Text="离心工位#2-2"
- Grid.Row="4"
- Grid.Column="1" />
- <TextBlock Text="{Binding Management.CurrStationRfid[3]}"
- Grid.Row="5"
- Grid.Column="0" />
- <TextBlock Text="{Binding Management.CurrStationRfid[4]}"
- Grid.Row="5"
- Grid.Column="1" />
- <TextBlock Text="#1固化工位1"
- Grid.Row="6"
- Grid.Column="0" />
- <TextBlock Text="#1固化工位#2"
- Grid.Row="6"
- Grid.Column="1" />
- <TextBlock Text="{Binding Management.CurrStationRfid[5]}"
- Grid.Row="7"
- Grid.Column="0" />
- <TextBlock Text="{Binding Management.CurrStationRfid[6]}"
- Grid.Row="7"
- Grid.Column="1" />
- </Grid>
- </Grid>
- </Border>
- <Border Grid.Row="1"
- Margin="5"
- BorderBrush="#7AB0F0"
- BorderThickness="2"
- CornerRadius="5"
- Padding="1">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <TextBlock Text="后处理"
- FontSize="20"
- Grid.Column="0"
- Margin="50,5,50,5"
- VerticalAlignment="Center" />
- <StackPanel Width="5"
- Height="140"
- Background="DarkGray"
- Grid.Column="1">
- </StackPanel>
- <Grid Grid.Column="2">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Row="0"
- Grid.Column="0">
- <TextBlock Text="离心1转速"
- Margin="0,0,80,0" />
- <TextBlock Text="{Binding Management.CurrConfig.RealSpeed}"
- Margin="0,0,80,0" />
- </StackPanel>
- <StackPanel Grid.Row="0"
- Grid.Column="1">
- <TextBlock Text="离心1时间"
- Margin="0,0,80,0" />
- <TextBlock Text="{Binding Management.CurrConfig.Realtime}"
- Margin="0,0,80,0" />
- </StackPanel>
- <StackPanel Grid.Row="0"
- Grid.Column="2">
- <TextBlock Text="离心2转速"
- Margin="0,0,80,0" />
- <TextBlock Text="{Binding Management.CurrConfig.RealSpeed2}"
- Margin="0,0,80,0" />
- </StackPanel>
- <StackPanel Grid.Row="0"
- Grid.Column="3">
- <TextBlock Text="离心2时间"
- Margin="0,0,80,0" />
- <TextBlock Text="{Binding Management.CurrConfig.Realtime2}"
- Margin="0,0,80,0" />
- </StackPanel>
- <StackPanel Grid.Row="1"
- Grid.Column="0">
- <TextBlock Text="固化箱压力"
- Margin="0,0,80,0" />
- <TextBlock Text="{Binding Management.CurrConfig.Pressure1}"
- Margin="0,0,80,0" />
- </StackPanel>
- <StackPanel Grid.Row="1"
- Grid.Column="1">
- <TextBlock Text="光固化时间"
- Margin="0,0,80,0" />
- <TextBlock Text="{Binding Management.CurrConfig.Realtime3}"
- Margin="0,0,80,0" />
- </StackPanel>
- </Grid>
- </Grid>
- </Border>
- <Grid Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="20*"/>
- <ColumnDefinition Width="40*"/>
- <ColumnDefinition Width="40*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock Text="后处理配方参数"
- FontSize="20" />
- <Border Margin="5"
- Grid.Row="1"
- BorderBrush="#7AB0F0"
- BorderThickness="2"
- CornerRadius="5"
- Padding="1">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock Text="配方名称"
- Grid.Row="0"
- Grid.Column="0" />
- <TextBlock Text="后处理配方"
- Grid.Row="0"
- Grid.Column="2" />
- <!--<TextBlock Text="后处理配方(本地)"
- Grid.Row="0"
- Grid.Column="2" />-->
- <TextBlock Text="第一次离心转速"
- Grid.Row="1"
- Grid.Column="0" />
- <!--<TextBlock Text="{Binding Management.CurrConfig.Speed}"
- Grid.Row="1"
- Grid.Column="1" />-->
- <TextBlock Text="{Binding Management.Formulasdata.第一次离心转速}"
- Grid.Row="1"
- Grid.Column="2" />
- <TextBlock Text="第一次离心时间"
- Grid.Row="2"
- Grid.Column="0" />
- <!--<TextBlock Text="{Binding Management.CurrConfig.Time.TotalSeconds}"
- Grid.Row="2"
- Grid.Column="1" />-->
- <TextBlock Text="{Binding Management.Formulasdata.第一次离心时间}"
- Grid.Row="2"
- Grid.Column="2" />
- <TextBlock Text="第二次离心转速"
- Grid.Row="3"
- Grid.Column="0" />
- <!--<TextBlock Text="{Binding Management.CurrConfig.Speed2}"
- Grid.Row="3"
- Grid.Column="1" />-->
- <TextBlock Text="{Binding Management.Formulasdata.第二次离心转速}"
- Grid.Row="3"
- Grid.Column="2" />
- <TextBlock Text="第二次离心时间"
- Grid.Row="4"
- Grid.Column="0" />
- <!--<TextBlock Text="{Binding Management.CurrConfig.Time2.TotalSeconds}"
- Grid.Row="4"
- Grid.Column="1" />-->
- <TextBlock Text="{Binding Management.Formulasdata.第二次离心时间}"
- Grid.Row="4"
- Grid.Column="2" />
- <TextBlock Text="光固化时间"
- Grid.Row="5"
- Grid.Column="0" />
- <!--<TextBlock Text="{Binding Management.CurrConfig.PTime1.TotalSeconds}"
- Grid.Row="5"
- Grid.Column="1" />-->
- <TextBlock Text="{Binding Management.Formulasdata.光固化时间}"
- Grid.Row="5"
- Grid.Column="2" />
- </Grid>
- </Border>
- </Grid>
- <Grid Grid.Column="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="过程信息"
- Margin="0,0,40,0"
- FontSize="20" />
- <Button Content="清空"
- Width="80"
- Command="{Binding ClearRunDataCommand}"
- Background="#1152D7"
- HorizontalAlignment="Right"
- FontSize="20" />
- </StackPanel>
- <Border Margin="5"
- Grid.Row="1"
- BorderBrush="#7AB0F0"
- BorderThickness="2"
- CornerRadius="5"
- Padding="1">
- <ListView ItemsSource="{Binding Management.RuningData}">
- <ListView.View>
- <GridView>
- <GridViewColumn Header="网板ID"
- DisplayMemberBinding="{Binding Rfid}"
- Width="150" />
- <GridViewColumn Header="状态"
- DisplayMemberBinding="{Binding State}"
- Width="200" />
- <GridViewColumn Header="批次信息"
- DisplayMemberBinding="{Binding ModelsInfo}"
- Width="200" />
- <GridViewColumn Header="开始时间"
- DisplayMemberBinding="{Binding StartTime,StringFormat=yyyy-MM-dd}"
- Width="200" />
- </GridView>
- </ListView.View>
- </ListView>
- </Border>
- </Grid>
- <Grid Grid.Column="2" >
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="日志"
- Margin="0,0,40,0"
- FontSize="20" />
- <Button Content="清空"
- Width="80"
- Background="#1152D7"
- Command="{Binding ClearLogDataCommand}"
- HorizontalAlignment="Right"
- FontSize="20" />
- </StackPanel>
- <Border Margin="5"
- Grid.Row="1"
- BorderBrush="#7AB0F0"
- BorderThickness="2"
- CornerRadius="5"
- Padding="1">
- <ListBox ItemsSource="{Binding Logs}">
- </ListBox>
- </Border>
- </Grid>
- </Grid>
- </Grid>
- </UserControl>
|