查看plc信息
parent
f08d3f4f92
commit
a4c0387dba
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,132 @@
|
||||
<Window x:Class="XGL.Views.ViewPlcInfoWin"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:XGL.Views" xmlns:localDate="clr-namespace:XGL.Tools"
|
||||
xmlns:convert="clr-namespace:XGL.Tools"
|
||||
mc:Ignorable="d"
|
||||
Title="ViewLogWin" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen" WindowStyle="None" WindowState="Maximized">
|
||||
<Window.Resources>
|
||||
<convert:DeviceNameConverter x:Key="DeviceNameConverter"/>
|
||||
<SolidColorBrush x:Key="EvenRowBackground" Color="#E0E0E0"/>
|
||||
<SolidColorBrush x:Key="OddRowBackground" Color="#FFFFFF"/>
|
||||
<Style x:Key="DataGridRowStyle" TargetType="DataGridRow">
|
||||
<Setter Property="Background" Value="{StaticResource EvenRowBackground}"/>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
|
||||
<Setter Property="Background" Value="{StaticResource OddRowBackground}"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style x:Key="CustomCellStyle" TargetType="DataGridCell">
|
||||
<Setter Property="Foreground" Value="Black" />
|
||||
<Setter Property="TextBlock.TextAlignment" Value="Center" />
|
||||
<Setter Property="TextBlock.FontSize" Value="22" />
|
||||
</Style>
|
||||
<!--日历样式-->
|
||||
<Style TargetType="CalendarDayButton" x:Key="CalendarDayBtnStyle">
|
||||
<Setter Property="FontSize" Value="16"></Setter>
|
||||
</Style>
|
||||
<Style x:Key="calendarWithGotToTodayStyle"
|
||||
TargetType="{x:Type Calendar}">
|
||||
<Setter Property="CalendarDayButtonStyle"
|
||||
Value="{StaticResource CalendarDayBtnStyle}"></Setter>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Calendar}">
|
||||
<Border>
|
||||
<StackPanel Orientation="Vertical">
|
||||
<StackPanel x:Name="PART_Root"
|
||||
HorizontalAlignment="Center" Background="#FF878787">
|
||||
<CalendarItem x:Name="PART_CalendarItem"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Background="{TemplateBinding Background}"
|
||||
Style="{TemplateBinding CalendarItemStyle}"
|
||||
Height="{TemplateBinding Height}"
|
||||
/>
|
||||
<Grid VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="30"></RowDefinition>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="52"></ColumnDefinition>
|
||||
<ColumnDefinition Width="26"></ColumnDefinition>
|
||||
<ColumnDefinition Width="52"></ColumnDefinition>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock x:Name="PART_GoToday"
|
||||
Width="40" Height="20"
|
||||
Text="今天" FontSize="18" VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center" Cursor="Hand" Foreground="#FFFFFFFF" />
|
||||
<TextBlock Grid.Column="2" x:Name="PART_GoClear"
|
||||
Width="40" Height="20"
|
||||
Text="清空" FontSize="18" VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center" Cursor="Hand" Foreground="#FFFFFFFF" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="0.1*"/>
|
||||
<RowDefinition Height="0.9*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Orientation="Horizontal" Grid.Row="0" VerticalAlignment="Center">
|
||||
<Label Content="注释:" VerticalContentAlignment="Center" FontSize="14" Margin="20"></Label>
|
||||
<TextBox x:Name="txtKey" Width="150" Height="30" FontSize="18" VerticalContentAlignment="Center" KeyDown="txtKey_KeyDown"></TextBox>
|
||||
<Label Content="设备编码:" VerticalContentAlignment="Center" FontSize="14" Margin="20"></Label>
|
||||
<TextBox x:Name="txtDeviceCode" Width="150" Height="30" FontSize="18" VerticalContentAlignment="Center" KeyDown="txtDeviceCode_KeyDown"></TextBox>
|
||||
<Button x:Name="btnQueryLog" Content="查询" Foreground="White" Margin="20,0,0,0" FontSize="18" Background="#2B7EE6" Width="100" Height="30" Click="btnQueryLog_Click"/>
|
||||
|
||||
</StackPanel>
|
||||
<Button x:Name="btnClose" Content="关闭" Foreground="White" FontSize="18" Background="#2B7EE6" Width="100" Margin="20" Height="30" Click="btnClose_Click" HorizontalAlignment="Right"/>
|
||||
<DataGrid
|
||||
x:Name="dgPlcValueInfo"
|
||||
Grid.Row="1"
|
||||
MinHeight="340"
|
||||
AlternatingRowBackground="{StaticResource OddRowBackground}"
|
||||
AlternationCount="2"
|
||||
RowStyle="{StaticResource DataGridRowStyle}"
|
||||
Margin="20,0,0,5"
|
||||
LoadingRow="dgLogInfo_LoadingRow"
|
||||
HeadersVisibility="Column"
|
||||
CellStyle="{StaticResource CustomCellStyle}"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top" IsReadOnly="True"
|
||||
AutoGenerateColumns="False" CanUserAddRows="False">
|
||||
<DataGrid.ColumnHeaderStyle >
|
||||
<Style TargetType="DataGridColumnHeader">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
<Setter Property="Height" Value="48" />
|
||||
<Setter Property="FontSize" Value="20" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter Property="Background" Value="#2B7EE6" />
|
||||
</Style>
|
||||
</DataGrid.ColumnHeaderStyle>
|
||||
<DataGrid.Columns>
|
||||
<DataGridTemplateColumn Header=" 序号" Width="80" MinWidth="10" IsReadOnly="True">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type DataGridRow}}, Path=Header}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10,0,0,0"></TextBlock>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<DataGridTextColumn Width="0.08*" Header="设备编码" Binding="{Binding device_code}" />
|
||||
<DataGridTextColumn Width="0.1*" Header="设备类型" Binding="{Binding device_type,Converter={StaticResource DeviceNameConverter}}" />
|
||||
<DataGridTextColumn Width="0.15*" Header="更新时间" Binding="{Binding last_update_time, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" />
|
||||
<DataGridTextColumn Width="0.2*" Header="属性名" Binding="{Binding property}" > </DataGridTextColumn>
|
||||
<DataGridTextColumn Width="0.25*" Header="注释" Binding="{Binding explain}" />
|
||||
<DataGridTextColumn Width="0.12*" Header="值" Binding="{Binding isvalue}" />
|
||||
|
||||
<!--<DataGridTextColumn Width="340" Header="流转码" Binding="{Binding work_batch_code}" />-->
|
||||
<!--<DataGridTextColumn Width="60" Header="出入" Binding="{Binding taskcode,Converter={StaticResource TaskCodeConverter}}"/>-->
|
||||
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
|
||||
</Grid>
|
||||
</Window>
|
||||
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
87f39467f535bf496adb97438a039b26400bb381
|
||||
2a2ffa0c505ff927c6da6cd9f7531b0d8d225fba
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue