|
@@ -0,0 +1,329 @@
|
|
|
+<UserControl x:Class="Venus_MainPages.Views.StatisticsView"
|
|
|
+ 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:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
|
|
+ xmlns:cal="http://www.caliburn.org"
|
|
|
+ xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
|
|
|
+ mc:Ignorable="d" >
|
|
|
+ <Grid HorizontalAlignment="Left">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="300"/>
|
|
|
+ <RowDefinition Height="300"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <TabControl Grid.Row="0">
|
|
|
+ <TabItem Header="Statistic Item List ">
|
|
|
+
|
|
|
+ <DataGrid Grid.Row="1" AlternationCount="2" HorizontalAlignment="Left" CanUserAddRows="False" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
+ VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling"
|
|
|
+ ItemsSource="{Binding StatData}" Margin="0,5,0,0" >
|
|
|
+
|
|
|
+ <DataGrid.Columns>
|
|
|
+ <DataGridTemplateColumn Header="Name" Width="220">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding Name}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" >
|
|
|
+ </TextBlock>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="Last Reset Time" Width="200">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding LastResetTime}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="Value" Width="80">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding Value}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Width="130">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Button Content="Reset Value" Width="120" Height="25" FontSize="12">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="ResetValue">
|
|
|
+ <cal:Parameter Value="{Binding }" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="Enable Warning" Width="120">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <CheckBox Height="35" Width="35" VerticalContentAlignment="Center" IsChecked="{Binding WarningEnable, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
+ <cal:ActionMessage MethodName="ResetEnableWarning">
|
|
|
+ <cal:Parameter Value="{Binding }" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ <i:EventTrigger EventName="Unchecked">
|
|
|
+ <cal:ActionMessage MethodName="ResetEnableWarning">
|
|
|
+ <cal:Parameter Value="{Binding }" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </CheckBox>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="Warning Value" Width="100">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding WarningValue}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="Warning Value Set" Width="130">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <ctrl:TextBoxEx Text="{Binding Path=WarningValueSetPoint, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" TextSaved="{Binding WarningTextSaved, Mode=TwoWay}" Width="110" Height="25"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Width="80">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Button Content="Set" Width="60" Height="25" FontSize="12">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="SetWarningValue">
|
|
|
+ <cal:Parameter Value="{Binding }" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="Enable Alarm" Width="120">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <CheckBox Height="35" Width="35" VerticalContentAlignment="Center" IsChecked="{Binding AlarmEnable, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
+ <cal:ActionMessage MethodName="ResetEnableAlarm">
|
|
|
+ <cal:Parameter Value="{Binding }" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ <i:EventTrigger EventName="Unchecked">
|
|
|
+ <cal:ActionMessage MethodName="ResetEnableAlarm">
|
|
|
+ <cal:Parameter Value="{Binding }" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </CheckBox>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="Alarm Value" Width="100">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding AlarmValue}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="Alarm Value Set" Width="120">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <ctrl:TextBoxEx Text="{Binding Path=AlarmValueSetPoint, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" TextSaved="{Binding AlarmTextSaved, Mode=TwoWay}" Width="110" Height="25"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Width="80">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Button Content="Set" Width="60" Height="25" FontSize="12">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="SetAlarmValue">
|
|
|
+ <cal:Parameter Value="{Binding }" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="Last Reset Total" Width="200">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding LastResetTotalTime}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="Total" Width="80">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding Total}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Width="130" >
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Button Content="Reset Total" Width="120" Height="25" FontSize="12">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="ResetTotalValue">
|
|
|
+ <cal:Parameter Value="{Binding }" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ </DataGrid.Columns>
|
|
|
+ </DataGrid>
|
|
|
+
|
|
|
+
|
|
|
+ </TabItem>
|
|
|
+ </TabControl>
|
|
|
+ <TabControl Grid.Row="1">
|
|
|
+ <TabItem Header="Statistic Item List RF And Pump">
|
|
|
+
|
|
|
+ <DataGrid Grid.Row="1" AlternationCount="2" HorizontalAlignment="Left" CanUserAddRows="False" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
+ VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling"
|
|
|
+ ItemsSource="{Binding StatDataRFAndPump}" Margin="0,5,0,0" >
|
|
|
+
|
|
|
+ <DataGrid.Columns>
|
|
|
+ <DataGridTemplateColumn Header="Name" Width="220">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding Name}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" >
|
|
|
+ </TextBlock>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="Last Reset Time" Width="200">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding LastPMTime}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="From Last Reset(Hour)" Width="160">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding fromLastPM}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Width="130">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Button Content="Reset Value" Width="120" Height="25" FontSize="12">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="ResetTimeValue">
|
|
|
+ <cal:Parameter Value="{Binding }" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="Total(Hour)" Width="150">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding Total}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="PM Interval Value(Hour)" Width="170">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding PMInterval}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="PM Interval Value Set(Hour)" Width="190">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <ctrl:TextBoxEx Text="{Binding Path=PMIntervalSetPoint, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" TextSaved="{Binding PMIntervalTextSaved, Mode=TwoWay}" Width="110" Height="25"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Width="80">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Button Content="Set" Width="60" Height="25" FontSize="12">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="SetPMIntervalValue">
|
|
|
+ <cal:Parameter Value="{Binding }" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Header="Enable Alarm" Width="120">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <CheckBox Height="35" Width="35" VerticalContentAlignment="Center" IsChecked="{Binding AlarmEnable, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Checked">
|
|
|
+ <cal:ActionMessage MethodName="ResetRFEnableAlarm">
|
|
|
+ <cal:Parameter Value="{Binding }" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ <i:EventTrigger EventName="Unchecked">
|
|
|
+ <cal:ActionMessage MethodName="ResetRFEnableAlarm">
|
|
|
+ <cal:Parameter Value="{Binding }" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </CheckBox>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ </DataGrid.Columns>
|
|
|
+ </DataGrid>
|
|
|
+
|
|
|
+
|
|
|
+ </TabItem>
|
|
|
+ </TabControl>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+</UserControl>
|