123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765 |
- <UserControl x:Class="MECF.Framework.UI.Client.CenterViews.DataLogs.Event.EventView"
- 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:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
- xmlns:wf ="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
- xmlns:interop="clr-namespace:Microsoft.DwayneNeed.Interop;assembly=Microsoft.DwayneNeed"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
- xmlns:toolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
- xmlns:micro="clr-namespace:Caliburn.Micro"
- xmlns:local="clr-namespace:MECF.Framework.UI.Client.CenterViews.DataLogs.Event"
- xmlns:converter="clr-namespace:MECF.Framework.UI.Client.Ctrlib.Converter"
- mc:Ignorable="d"
- Name="uc"
- d:DesignHeight="425" d:DesignWidth="1200">
- <UserControl.Resources>
- <converter:BoolReverseConverter x:Key="boolReverseConverter" />
- <converter:BoolVisibilityConverter x:Key="boolVisibilityConverter" />
- <Style
- TargetType="{x:Type local:CirclePointRingLoading}"
- x:Key="{x:Type local:CirclePointRingLoading}">
- <Setter
- Property="Foreground"
- Value="#FFFFFFFF" />
- <Setter
- Property="UIElement.IsHitTestVisible"
- Value="False" />
- <Setter
- Property="HorizontalAlignment"
- Value="Center" />
- <Setter
- Property="VerticalAlignment"
- Value="Center" />
- <Setter
- Property="MinHeight"
- Value="20" />
- <Setter
- Property="MinWidth"
- Value="20" />
- <Setter
- Property="Height"
- Value="60" />
- <Setter
- Property="Width"
- Value="60" />
- <Setter
- Property="IsTabStop"
- Value="False" />
- <Setter
- Property="Template">
- <Setter.Value>
- <ControlTemplate
- TargetType="{x:Type local:CirclePointRingLoading}">
- <Border
- Background="{TemplateBinding Background}"
- BorderThickness="{TemplateBinding BorderThickness}"
- BorderBrush="{TemplateBinding BorderBrush}">
- <FrameworkElement.Resources>
- <ResourceDictionary>
- <Style
- x:Key="ProgressRingEllipseStyle"
- TargetType="{x:Type Ellipse}">
- <Setter
- Property="UIElement.Opacity"
- Value="0" />
- <Setter
- Property="HorizontalAlignment"
- Value="Left" />
- <Setter
- Property="VerticalAlignment"
- Value="Top" />
- </Style>
- </ResourceDictionary>
- </FrameworkElement.Resources>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup
- x:Name="SizeStates">
- <VisualState
- x:Name="Large">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames
- Duration="0"
- Storyboard.TargetName="SixthCircle"
- Storyboard.TargetProperty="Visibility">
- <DiscreteObjectKeyFrame
- KeyTime="0">
- <ObjectKeyFrame.Value>
- <Visibility>Visible</Visibility>
- </ObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState
- x:Name="Small" />
- </VisualStateGroup>
- <VisualStateGroup
- x:Name="ActiveStates">
- <VisualState
- x:Name="Inactive" />
- <VisualState
- x:Name="Active">
- <Storyboard
- RepeatBehavior="Forever">
- <ObjectAnimationUsingKeyFrames
- Duration="0"
- Storyboard.TargetName="Ring"
- Storyboard.TargetProperty="Visibility">
- <DiscreteObjectKeyFrame
- KeyTime="0">
- <ObjectKeyFrame.Value>
- <Visibility>Visible</Visibility>
- </ObjectKeyFrame.Value>
- </DiscreteObjectKeyFrame>
- </ObjectAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E1"
- Storyboard.TargetProperty="Opacity"
- BeginTime="0">
- <DiscreteDoubleKeyFrame
- KeyTime="0"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.21"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.22"
- Value="0" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.47"
- Value="0" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E2"
- Storyboard.TargetProperty="Opacity"
- BeginTime="00:00:00.167">
- <DiscreteDoubleKeyFrame
- KeyTime="0"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.21"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.22"
- Value="0" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.47"
- Value="0" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E3"
- Storyboard.TargetProperty="Opacity"
- BeginTime="00:00:00.334">
- <DiscreteDoubleKeyFrame
- KeyTime="0"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.21"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.22"
- Value="0" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.47"
- Value="0" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E4"
- Storyboard.TargetProperty="Opacity"
- BeginTime="00:00:00.501">
- <DiscreteDoubleKeyFrame
- KeyTime="0"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.21"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.22"
- Value="0" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.47"
- Value="0" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E5"
- Storyboard.TargetProperty="Opacity"
- BeginTime="00:00:00.668">
- <DiscreteDoubleKeyFrame
- KeyTime="0"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.21"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.22"
- Value="0" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.47"
- Value="0" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E6"
- Storyboard.TargetProperty="Opacity"
- BeginTime="00:00:00.835">
- <DiscreteDoubleKeyFrame
- KeyTime="0"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.21"
- Value="1" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.22"
- Value="0" />
- <DiscreteDoubleKeyFrame
- KeyTime="0:0:3.47"
- Value="0" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E1R"
- BeginTime="0"
- Storyboard.TargetProperty="Angle">
- <SplineDoubleKeyFrame
- KeyTime="0"
- Value="-110"
- KeySpline="0.13,0.21,0.1,0.7" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:0.433"
- Value="10"
- KeySpline="0.02,0.33,0.38,0.77" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.2"
- Value="93" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.617"
- Value="205"
- KeySpline="0.57,0.17,0.95,0.75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.017"
- Value="357"
- KeySpline="0,0.19,0.07,0.72" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.783"
- Value="439" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:3.217"
- Value="585"
- KeySpline="0,0,0.95,0.37" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E2R"
- BeginTime="00:00:00.167"
- Storyboard.TargetProperty="Angle">
- <SplineDoubleKeyFrame
- KeyTime="0"
- Value="-116"
- KeySpline="0.13,0.21,0.1,0.7" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:0.433"
- Value="4"
- KeySpline="0.02,0.33,0.38,0.77" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.2"
- Value="87" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.617"
- Value="199"
- KeySpline="0.57,0.17,0.95,0.75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.017"
- Value="351"
- KeySpline="0,0.19,0.07,0.72" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.783"
- Value="433" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:3.217"
- Value="579"
- KeySpline="0,0,0.95,0.37" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E3R"
- BeginTime="00:00:00.334"
- Storyboard.TargetProperty="Angle">
- <SplineDoubleKeyFrame
- KeyTime="0"
- Value="-122"
- KeySpline="0.13,0.21,0.1,0.7" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:0.433"
- Value="-2"
- KeySpline="0.02,0.33,0.38,0.77" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.2"
- Value="81" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.617"
- Value="193"
- KeySpline="0.57,0.17,0.95,0.75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.017"
- Value="345"
- KeySpline="0,0.19,0.07,0.72" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.783"
- Value="427" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:3.217"
- Value="573"
- KeySpline="0,0,0.95,0.37" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E4R"
- BeginTime="00:00:00.501"
- Storyboard.TargetProperty="Angle">
- <SplineDoubleKeyFrame
- KeyTime="0"
- Value="-128"
- KeySpline="0.13,0.21,0.1,0.7" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:0.433"
- Value="-8"
- KeySpline="0.02,0.33,0.38,0.77" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.2"
- Value="75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.617"
- Value="187"
- KeySpline="0.57,0.17,0.95,0.75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.017"
- Value="339"
- KeySpline="0,0.19,0.07,0.72" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.783"
- Value="421" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:3.217"
- Value="567"
- KeySpline="0,0,0.95,0.37" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E5R"
- BeginTime="00:00:00.668"
- Storyboard.TargetProperty="Angle">
- <SplineDoubleKeyFrame
- KeyTime="0"
- Value="-134"
- KeySpline="0.13,0.21,0.1,0.7" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:0.433"
- Value="-14"
- KeySpline="0.02,0.33,0.38,0.77" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.2"
- Value="69" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.617"
- Value="181"
- KeySpline="0.57,0.17,0.95,0.75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.017"
- Value="331"
- KeySpline="0,0.19,0.07,0.72" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.783"
- Value="415" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:3.217"
- Value="561"
- KeySpline="0,0,0.95,0.37" />
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames
- Storyboard.TargetName="E6R"
- BeginTime="00:00:00.835"
- Storyboard.TargetProperty="Angle">
- <SplineDoubleKeyFrame
- KeyTime="0"
- Value="-140"
- KeySpline="0.13,0.21,0.1,0.7" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:0.433"
- Value="-20"
- KeySpline="0.02,0.33,0.38,0.77" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.2"
- Value="63" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:1.617"
- Value="175"
- KeySpline="0.57,0.17,0.95,0.75" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.017"
- Value="325"
- KeySpline="0,0.19,0.07,0.72" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:2.783"
- Value="409" />
- <SplineDoubleKeyFrame
- KeyTime="0:0:3.217"
- Value="555"
- KeySpline="0,0,0.95,0.37" />
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Grid
- Name="Ring"
- Margin="{TemplateBinding Padding}"
- Visibility="Visible"
- RenderTransformOrigin=".5,.5"
- FlowDirection="LeftToRight"
- MaxWidth="{Binding MaxSideLength, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- MaxHeight="{Binding MaxSideLength, RelativeSource={RelativeSource Mode=TemplatedParent}}">
- <Canvas
- RenderTransformOrigin=".5,.5">
- <UIElement.RenderTransform>
- <RotateTransform
- x:Name="E1R" />
- </UIElement.RenderTransform>
- <Ellipse
- Name="E1"
- Fill="{TemplateBinding Foreground}"
- Style="{StaticResource ProgressRingEllipseStyle}"
- Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- </Canvas>
- <Canvas
- RenderTransformOrigin=".5,.5">
- <UIElement.RenderTransform>
- <RotateTransform
- x:Name="E2R" />
- </UIElement.RenderTransform>
- <Ellipse
- Name="E2"
- Fill="{TemplateBinding Foreground}"
- Style="{StaticResource ProgressRingEllipseStyle}"
- Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- </Canvas>
- <Canvas
- RenderTransformOrigin=".5,.5">
- <UIElement.RenderTransform>
- <RotateTransform
- x:Name="E3R" />
- </UIElement.RenderTransform>
- <Ellipse
- Name="E3"
- Fill="{TemplateBinding Foreground}"
- Style="{StaticResource ProgressRingEllipseStyle}"
- Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- </Canvas>
- <Canvas
- RenderTransformOrigin=".5,.5">
- <UIElement.RenderTransform>
- <RotateTransform
- x:Name="E4R" />
- </UIElement.RenderTransform>
- <Ellipse
- Name="E4"
- Fill="{TemplateBinding Foreground}"
- Style="{StaticResource ProgressRingEllipseStyle}"
- Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- </Canvas>
- <Canvas
- RenderTransformOrigin=".5,.5">
- <UIElement.RenderTransform>
- <RotateTransform
- x:Name="E5R" />
- </UIElement.RenderTransform>
- <Ellipse
- Name="E5"
- Fill="{TemplateBinding Foreground}"
- Style="{StaticResource ProgressRingEllipseStyle}"
- Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- </Canvas>
- <Canvas
- Name="SixthCircle"
- RenderTransformOrigin=".5,.5"
- Visibility="Collapsed">
- <UIElement.RenderTransform>
- <RotateTransform
- x:Name="E6R" />
- </UIElement.RenderTransform>
- <Ellipse
- Name="E6"
- Fill="{TemplateBinding Foreground}"
- Style="{StaticResource ProgressRingEllipseStyle}"
- Width="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Height="{Binding EllipseDiameter, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Margin="{Binding EllipseOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
- </Canvas>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </UserControl.Resources>
- <Grid HorizontalAlignment="Left" IsEnabled="{Binding IsPermission}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="260" />
- <ColumnDefinition Width="1600" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0">
- <Grid.RowDefinitions>
- <RowDefinition Height="24"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
- <TextBlock Text="Query Condition" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <Border Grid.Row="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
- <StackPanel Margin="0,5">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Start Time" Width="70" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"/>
- <interop:AirspaceDecorator AirspaceMode="Redirect" IsInputRedirectionEnabled="True" IsOutputRedirectionEnabled="True">
- <wfi:WindowsFormsHost Margin="0,0,0,0" FontSize="14" FontFamily="Arial" Width="170" Height="22" VerticalAlignment="Center">
- <wf:DateTimePicker x:Name="wfTimeFrom" Value="2011-8-1" CustomFormat="yyyy/MM/dd HH:mm:ss" Format="Custom"></wf:DateTimePicker>
- </wfi:WindowsFormsHost>
- </interop:AirspaceDecorator>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
- <TextBlock Text="End Time" Width="70" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"/>
- <interop:AirspaceDecorator AirspaceMode="Redirect" IsInputRedirectionEnabled="True" IsOutputRedirectionEnabled="True">
- <wfi:WindowsFormsHost Margin="0,0,0,0" FontSize="14" FontFamily="Arial" Width="170" Height="22" VerticalAlignment="Center">
- <wf:DateTimePicker x:Name="wfTimeTo" Value="2013-8-1" CustomFormat="yyyy/MM/dd HH:mm:ss" Format="Custom"></wf:DateTimePicker>
- </wfi:WindowsFormsHost>
- </interop:AirspaceDecorator>
- </StackPanel>
- </StackPanel>
- </Border>
- <Border Grid.Row="2" Margin="0,5,0,0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Height="30">
- <TextBlock Text="Query Option" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <Border Grid.Row="3" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
- <UniformGrid Columns="2" Margin="0,5">
- <CheckBox Content="Alarm" IsChecked="{Binding SearchAlarmEvent}" FontSize="14"/>
- <CheckBox Content="Warning" IsChecked="{Binding SearchWarningEvent}" FontSize="14"/>
- <CheckBox Content="Information" IsChecked="{Binding SearchInfoEvent}" FontSize="14"/>
- <!--<CheckBox Content="Operation" Height="Auto" IsChecked="{Binding SearchOpeLog}" FontSize="14" />-->
- </UniformGrid>
- </Border>
- <Border Grid.Row="4" Margin="0,5,0,0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Height="30">
- <TextBlock Text="Extra Condition" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
-
- <Border Grid.Row="5" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
- <StackPanel Orientation="Horizontal" Margin="0,5">
- <TextBlock Text="Key Words" Name="checkBox3" Tag="ReactorC" FontFamily="Arial" FontSize="14" VerticalAlignment="Center"/>
- <TextBox Margin="5,0,0,0" FontSize="14" Text="{Binding SearchKeyWords,UpdateSourceTrigger=PropertyChanged}" Width="170"/>
- </StackPanel>
- </Border>
- <StackPanel Grid.Row="6" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,20">
- <Button Width="100" Height="30" FontFamily="Arial" Content="Query">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <micro:ActionMessage MethodName="Search">
- </micro:ActionMessage>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- <Button Width="100" Height="30" Margin="0,10,0,0" FontFamily="Arial" Content="Export">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <micro:ActionMessage MethodName="Export">
- </micro:ActionMessage>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
-
- </StackPanel>
- <Border Grid.Row="7" Margin="0,5,0,0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Height="30">
- <TextBlock Text="Filter Condition" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <Border Grid.Row="8" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
- <StackPanel Margin="0,5">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="System" Name="checkBox" Tag="ReactorC" FontFamily="Arial" FontSize="14" VerticalAlignment="Center"/>
- <toolkit:CheckComboBox x:Name="tbLoadPort1" ItemsSource="{Binding SourceLP}" Width="170" FontFamily="Arial" FontSize="14" Height="25" Margin="26,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center" SelectedItemsOverride="{Binding sourcelp}"
- SelectedValue="{Binding SelectedValueLP}" ToolTip="{Binding ElementName=tbLoadPort1,Path=SelectedValue}" ItemSelectionChanged="tbLoadPort1_ItemSelectionChanged" >
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="ItemSelectionChanged" >
- <i:InvokeCommandAction Command="{Binding tbLoadPort1SelectionChangedCommand}" CommandParameter="{Binding ElementName=uc,Path=tbLoadPort1ToolTipValueData}"/>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <!--<toolkit:CheckComboBox.ToolTip>
- <ToolTip>
- <StackPanel>
- <TextBlock Text="{Binding ElementName=tbLoadPort1,Path=SelectedValue}"></TextBlock>
- </StackPanel>
- </ToolTip>
- </toolkit:CheckComboBox.ToolTip>-->
- </toolkit:CheckComboBox>
-
- </StackPanel>
- <!-- <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
- <TextBlock Text="Description" Name="checkBox4" Tag="ReactorC" FontFamily="Arial" FontSize="14" VerticalAlignment="Center"/>
- <toolkit:CheckComboBox x:Name="tbLoadPort2" ItemsSource="{Binding SourceDS}" Width="170" FontFamily="Arial" FontSize="14" Height="25" Margin="3,0,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- SelectedValue="{Binding SelectedValueDS}" ToolTip="{Binding ElementName=uc,Path=tbLoadPort2ToolTipValueData}" ItemSelectionChanged="tbLoadPort2_ItemSelectionChanged" >
-
- </toolkit:CheckComboBox>
- </StackPanel>-->
- <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
- <TextBlock Text="Key Words" Name="checkBox9" Tag="ReactorC" FontFamily="Arial" FontSize="14" VerticalAlignment="Center"/>
- <TextBox Margin="5,0,0,0" Text="{Binding SearchDSKeyWords,UpdateSourceTrigger=PropertyChanged}" FontSize="14" Width="170"/>
- </StackPanel>
- <!--<CheckBox IsThreeState="True" Width="100" Height="30" Margin="0,10,0,0" FontFamily="Arial" Content="ALL"/>-->
- <Button Width="100" Height="30" Margin="0,10,0,0" FontFamily="Arial" Content="Filter">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Click">
- <micro:ActionMessage MethodName="Filter">
- </micro:ActionMessage>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- </StackPanel>
- </Border>
- </Grid>
- <Grid Grid.Column="1" Margin="10,0,0,0">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="35"/>
- <RowDefinition Height="740"/>
- </Grid.RowDefinitions>
- <Canvas Grid.Row="0">
- <TextBlock Height="23" FontSize="16" Text="Show" VerticalAlignment="Top" Canvas.Left="18" Canvas.Top="12" />
- <ComboBox IsEnabled="{Binding IsLoading, Converter={StaticResource boolReverseConverter}}" Height="23" VerticalAlignment="Top" DisplayMemberPath="Value" HorizontalAlignment="Left" Width="100" ItemsSource="{Binding PerPageItems}" SelectedValue="{Binding SelectedPerPage,UpdateSourceTrigger=PropertyChanged}" FontSize="13" Canvas.Left="65" Canvas.Top="10" >
- </ComboBox>
- <TextBlock Height="23" FontSize="16" Text="Items Per Page " VerticalAlignment="Top" Canvas.Left="170" Canvas.Top="12" />
- <TextBlock Height="23" FontSize="16" Visibility="{Binding IsLoading, Converter={StaticResource boolVisibilityConverter}}" Text="Loading..." VerticalAlignment="Top" Canvas.Left="323" Canvas.Top="13" />
- <local:CirclePointRingLoading Height="30" Visibility="{Binding IsLoading, Converter={StaticResource boolVisibilityConverter}}" IsActive="True" IsLarge="True" Foreground="#3ca9fe" Width="30" Canvas.Left="339" Canvas.Top="5" />
- <Button FontSize="15" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" IsEnabled="{Binding EnableFirst}" Command="{Binding NavigateCommand}" CommandParameter="first" Content="|< First" Canvas.Left="428" Margin="0" Canvas.Top="10"/>
- <Button FontSize="15" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" IsEnabled="{Binding EnablePrevious}" Command="{Binding NavigateCommand}" CommandParameter="previous" Content="<< Previous" Canvas.Left="532" Margin="0" Canvas.Top="10"/>
- <TextBlock Height="23" Width="100" TextAlignment="Center" FontSize="16" Text="{Binding PageInfo}" VerticalAlignment="Center" Canvas.Left="640" Canvas.Top="16" />
- <Button FontSize="15" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" IsEnabled="{Binding EnableNext}" Command="{Binding NavigateCommand}" CommandParameter="next" Content="Next >>" Canvas.Left="745" Margin="0" Canvas.Top="10"/>
- <Button FontSize="15" Height="29" VerticalAlignment="Top" FontFamily="Arial,SimSun" IsEnabled="{Binding EnableLast}" Command="{Binding NavigateCommand}" CommandParameter="last" Content="Last >|" Canvas.Left="850" Margin="0" Canvas.Top="10"/>
- </Canvas>
- <!--<StackPanel Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Horizontal">
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Width="70" Height="24">
- <TextBlock Text="Total:" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"/>
- </Border>
- <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1" Width="130" Height="24">
- <TextBlock Text="{Binding SearchedResult.Count}" FlowDirection="LeftToRight" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"/>
- </Border>
- --><!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="5,1" Width="70" Height="24">
- <TextBlock Text="Records" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"/>
- </Border>-->
- <!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1" Width="150" Height="24">
- <TextBlock Text="" FlowDirection="LeftToRight" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"/>
- </Border>--><!--
- </StackPanel>-->
-
- <DataGrid Grid.Row="1" Margin="0,5,0,0"
- Width="Auto"
-
- ScrollViewer.CanContentScroll="True"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- HorizontalAlignment="Left"
- AutoGenerateColumns="False" Name="dataGrid1" ItemsSource="{Binding SearchedResult,Mode=OneWay}"
-
- CanUserReorderColumns="False" CanUserAddRows="False"
- CanUserSortColumns="False"
- IsReadOnly="True" FontSize="14">
- <DataGrid.Columns>
- <DataGridTemplateColumn Width="40" CanUserSort="True" SortMemberPath="Icon">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <Image Width="20" Height="20" HorizontalAlignment="Center" Stretch="Fill" VerticalAlignment="Center" Source="{Binding Icon}" />
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <DataGridTextColumn Width="70" Binding="{Binding LogType,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="Type" VerticalAlignment="Center" TextAlignment="Center"/>
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- </DataGridTextColumn>
- <DataGridTextColumn Width="200" Binding="{Binding Time,Mode=OneWay}" CanUserSort="True" CanUserReorder="True" IsReadOnly="True" CanUserResize="False">
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="Time" VerticalAlignment="Center" TextAlignment="Center"/>
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- </DataGridTextColumn>
- <DataGridTextColumn Width="100" Binding="{Binding TargetChamber,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False" >
- <DataGridTextColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="System" VerticalAlignment="Center" TextAlignment="Center"/>
- </DataTemplate>
- </DataGridTextColumn.HeaderTemplate>
- </DataGridTextColumn>
- <DataGridTemplateColumn Header="Description" Width="*" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
- <DataGridTemplateColumn.HeaderTemplate >
- <DataTemplate>
- <TextBlock Text="Description" />
- </DataTemplate>
- </DataGridTemplateColumn.HeaderTemplate>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Detail}" VerticalAlignment="Center" TextWrapping="Wrap" />
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </DataGrid>
- </Grid>
- </Grid>
- </Grid>
- </UserControl>
|