generated from wenjy/SlnMesnac
change - 添加定点巡检,替换PLC地址
parent
643a5ed023
commit
66922f3f30
@ -0,0 +1,51 @@
|
||||
<Window x:Class="SlnMesnac.WPF.Page.FixedPointWindow"
|
||||
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:SlnMesnac.WPF.Page"
|
||||
xmlns:local1="clr-namespace:SlnMesnac.WPF.Converter.Sys_Flag"
|
||||
mc:Ignorable="d"
|
||||
Title="{Binding FixedPointTitle}" Height="550" Width="850">
|
||||
<Window.Resources>
|
||||
<local1:IsFlagConvert x:Key="IsFlagConvert"/>
|
||||
</Window.Resources>
|
||||
<Grid>
|
||||
<DataGrid Grid.Row="0" ItemsSource="{Binding BusbarInfoItems}" Background="Transparent"
|
||||
FontSize="18" ColumnHeaderHeight="35"
|
||||
RowHeight="40" AutoGenerateColumns="False" RowHeaderWidth="0"
|
||||
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
||||
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False" HorizontalAlignment="Center"
|
||||
Foreground="#31446E" x:Name="dataGrid2" Margin="0,10,0,0" >
|
||||
<!--resourceStyle 399行修改选中字体颜色-->
|
||||
<DataGrid.Columns>
|
||||
<!--<DataGridTextColumn Binding="{Binding cabinetCode}" Header="电柜" Width="2*" IsReadOnly="True"/>-->
|
||||
<!--<DataGridTextColumn Binding="{Binding busbarCode}" Header="编号" Width="2*" IsReadOnly="True"/>-->
|
||||
<DataGridTextColumn Binding="{Binding busbarAlias}" Header="别名" Width="4*" IsReadOnly="True"/>
|
||||
<DataGridTextColumn Binding="{Binding busbarDist}" Header="距离" Width="2*" IsReadOnly="True"/>
|
||||
<DataGridTextColumn Binding="{Binding isRotate,Converter={StaticResource IsFlagConvert}}" Header="是否旋转" Width="2*" IsReadOnly="True"/>
|
||||
|
||||
|
||||
<DataGridTextColumn Binding="{Binding wPanPos}" Header="P" Width="2*" IsReadOnly="True"/>
|
||||
<DataGridTextColumn Binding="{Binding wTiltPos}" Header="T" Width="2*" IsReadOnly="True"/>
|
||||
<DataGridTextColumn Binding="{Binding wZoomPos}" Header="Z" Width="2*" IsReadOnly="True"/>
|
||||
|
||||
<!--<DataGridTextColumn Binding="{Binding isEnd,Converter={StaticResource IsFlagConvert}}" Header="是否尾排" Width="2*" IsReadOnly="True"/>
|
||||
<DataGridTextColumn Binding="{Binding isChecked,Converter={StaticResource IsFlagConvert}}" Header="是否检测" Width="2*" IsReadOnly="True"/>-->
|
||||
<!--<DataGridTextColumn Binding="{Binding isPictures,Converter={StaticResource IsFlagConvert}}" Header="是否拍照" Width="2*" IsReadOnly="True"/>-->
|
||||
<DataGridTemplateColumn Header="操作" Width="4*">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<!--<Button Content="巡检" Command="{Binding DataContext.FixedPointCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding}" Style="{StaticResource BUTTON_AGREE}" FontSize="14" Width="80" Height="30" Background="#009999" BorderBrush="#FF36B5C1" VerticalAlignment="Center" HorizontalAlignment="Center"/>-->
|
||||
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||||
<Button Content="巡检" Command="{Binding DataContext.StartFixedPointCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding}" Style="{StaticResource BUTTON_AGREE}" FontSize="14" Width="80" Height="30" Background="#5095F3" BorderBrush="#5095F3" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10,0"/>
|
||||
<Button Content="完成" Command="{Binding DataContext.EndFixedPointCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding}" Style="{StaticResource BUTTON_AGREE}" FontSize="14" Width="80" Height="30" Background="#FF9900" BorderBrush="#FF9900" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10,0"/>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</Grid>
|
||||
</Window>
|
Loading…
Reference in New Issue