blob: d8b536f09168eedd3668e9373832345c9147d005 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
<UserControl x:Class="Tango.FSE.Statistics.Dialogs.JobRunExtendedInfoView"
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:controls="clr-namespace:Tango.FSE.Common.Controls;assembly=Tango.FSE.Common"
xmlns:material="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:local="clr-namespace:Tango.FSE.Statistics.Dialogs"
xmlns:ms="clr-namespace:Tango.MachineStudio.Developer.Controls"
mc:Ignorable="d"
Width="800" Height="500" d:DataContext="{d:DesignInstance Type=local:JobRunExtendedInfoViewVM, IsDesignTimeCreatable=False}" Background="{StaticResource FSE_PrimaryBackgroundLightBrush}" Foreground="{StaticResource FSE_PrimaryForegroundBrush}">
<Grid>
<DockPanel Margin="10">
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal">
<Image Source="../Images/cmyk.png" Width="42" Height="42" VerticalAlignment="Center" RenderOptions.BitmapScalingMode="Fant" />
<TextBlock VerticalAlignment="Center" Margin="10 0 0 0" FontSize="{StaticResource FSE_LargeFontSize}">
<Run>Job Run</Run>
<Run>'</Run><Run Text="{Binding ExtendedInfo.JobRunID}"></Run><Run>'</Run>
<Run>Extended Information</Run>
</TextBlock>
</StackPanel>
<Grid Margin="0 10 0 0">
<controls:FSETabControl TabsWidth="600">
<Grid Tag="Job Outline">
<Border CornerRadius="10" Background="{StaticResource FSE_PrimaryBackgroundBrush}" Padding="10" BorderThickness="1" BorderBrush="{StaticResource FSE_BorderBrush}">
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
<ms:JobOutlineControl HorizontalAlignment="Left" DrawMainTitle="False" DataContext="{Binding ExtendedInfo.JobTicket}" />
</ScrollViewer>
</Border>
</Grid>
<Grid Tag="Machine Status">
<UniformGrid Rows="2">
<DockPanel Margin="0 2">
<TextBlock Width="45" Margin="0 5 0 0">START:</TextBlock>
<TextBox FontSize="{StaticResource FSE_SmallFontSize}" VerticalScrollBarVisibility="Auto" Text="{Binding ExtendedInfo.StartMachineStatus,Converter={StaticResource ObjectToJsonConverter}}" Style="{StaticResource FSE_Rounded_Corners_TextBox_Multiline}" IsReadOnly="True"/>
</DockPanel>
<DockPanel Margin="0 2">
<TextBlock Width="45" Margin="0 5 0 0">END:</TextBlock>
<TextBox FontSize="{StaticResource FSE_SmallFontSize}" VerticalScrollBarVisibility="Auto" Text="{Binding ExtendedInfo.EndMachineStatus,Converter={StaticResource ObjectToJsonConverter}}" Style="{StaticResource FSE_Rounded_Corners_TextBox_Multiline}" IsReadOnly="True"/>
</DockPanel>
</UniformGrid>
</Grid>
<Grid Tag="Events">
<Border CornerRadius="10" Background="{StaticResource FSE_PrimaryBackgroundBrush}" Padding="10" BorderThickness="1" BorderBrush="{StaticResource FSE_BorderBrush}">
<!--<ListBox Background="Transparent" HorizontalContentAlignment="Stretch" ItemsSource="{Binding Events}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid Margin="0 10">
<DockPanel>
<material:PackIcon Width="24" Height="24" Style="{StaticResource FSE_LogIcon}" />
<StackPanel Margin="10 0 0 0">
<DockPanel VerticalAlignment="Center">
<TextBlock FontSize="{StaticResource FSE_SmallFontSize}" DockPanel.Dock="Right" Text="{Binding DateTime,Converter={StaticResource DateTimeUtcToLocalDateTime},StringFormat='HH:mm:ss'}" ToolTip="{Binding DateTime,Converter={StaticResource DateTimeUtcHumanizeConverter}}"></TextBlock>
<TextBlock Text="{Binding EventType,Converter={StaticResource EventTypeTitleConverter}}"></TextBlock>
</DockPanel>
<Rectangle Margin="0 5 0 5" DockPanel.Dock="Top" VerticalAlignment="Bottom" StrokeThickness="1">
<Rectangle.Stroke>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
<GradientStop Offset="0" Color="{StaticResource FSE_BorderColor}" />
<GradientStop Offset="1" Color="Transparent" />
</LinearGradientBrush>
</Rectangle.Stroke>
</Rectangle>
<DockPanel TextElement.FontSize="{StaticResource FSE_SmallFontSize}" TextElement.Foreground="{StaticResource FSE_GrayBrush}">
<TextBlock DockPanel.Dock="Right"><Run>#</Run><Run Text="{Binding EventType.Code}"></Run></TextBlock>
<TextBlock Text="{Binding EventType,Converter={StaticResource EventTypeTechnicalDescriptionConverter}}" Margin="0 0 10 0" TextWrapping="Wrap"></TextBlock>
</DockPanel>
<StackPanel Margin="0 5 0 0" TextElement.FontSize="{StaticResource FSE_SmallerFontSize}" TextElement.Foreground="{StaticResource FSE_GrayBrush}">
<TextBlock TextWrapping="Wrap" Margin="0 2 0 0" Text="{Binding Description}"></TextBlock>
</StackPanel>
</StackPanel>
</DockPanel>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ListBox>-->
</Border>
</Grid>
</controls:FSETabControl>
</Grid>
</DockPanel>
<StackPanel HorizontalAlignment="Left" VerticalAlignment="Bottom" Height="22" Margin="40 0 0 -45" Orientation="Horizontal">
<controls:TextIconButton Command="{Binding ExportCsvCommand}" Style="{StaticResource FSE_TextIconButton_Flat_Accent}" FontSize="{StaticResource FSE_SmallFontSize}" Icon="FileCsv" Height="19" ToolTip="Export the job ticket dispensers information to csv file">Export Job Ticket</controls:TextIconButton>
<controls:TextIconButton Command="{Binding ExportJsonCommand}" Style="{StaticResource FSE_TextIconButton_Flat_Accent}" FontSize="{StaticResource FSE_SmallFontSize}" Margin="20 0 0 0" Icon="Json" Height="19" ToolTip="Export the entire extended information to a json formated file">Export All</controls:TextIconButton>
</StackPanel>
</Grid>
</UserControl>
|