2002 lines
116 KiB
XML
2002 lines
116 KiB
XML
<UserControl
|
||
x:Class="CapMachine.Wpf.Views.ProConfigView"
|
||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
xmlns:Controls="clr-namespace:CapMachine.Shared.Controls;assembly=CapMachine.Shared"
|
||
xmlns:convert="clr-namespace:CapMachine.Wpf.Converts"
|
||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||
xmlns:local="clr-namespace:CapMachine.Wpf.Views"
|
||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
xmlns:prism="http://prismlibrary.com/"
|
||
d:DesignHeight="980"
|
||
d:DesignWidth="1920"
|
||
prism:ViewModelLocator.AutoWireViewModel="True"
|
||
mc:Ignorable="d">
|
||
<UserControl.Resources>
|
||
<Style x:Key="myHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
|
||
<Setter Property="FontSize" Value="20" />
|
||
<Setter Property="Width" Value="190" />
|
||
</Style>
|
||
<Style x:Key="myHeaderStyle1" TargetType="{x:Type GridViewColumnHeader}">
|
||
<Setter Property="FontSize" Value="16" />
|
||
|
||
</Style>
|
||
<convert:SecToStrConvert x:Key="SecToStrConvert" />
|
||
<Controls:BoolNgConvert x:Key="BoolNgConverter" />
|
||
<convert:MeterSlopCycleConver x:Key="MeterSlopCycleConverter" />
|
||
|
||
</UserControl.Resources>
|
||
<materialDesign:DrawerHost
|
||
x:Name="ProDrawerHost"
|
||
BorderBrush="{DynamicResource MaterialDesignDivider}"
|
||
BorderThickness="2"
|
||
BottomDrawerBackground="{DynamicResource SecondaryHueLightBrush}"
|
||
BottomDrawerCornerRadius="20 20 0 0">
|
||
<materialDesign:DrawerHost.Style>
|
||
<Style BasedOn="{StaticResource {x:Type materialDesign:DrawerHost}}" TargetType="materialDesign:DrawerHost">
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding IsChecked, ElementName=BackgroundToggle}" Value="True">
|
||
<Setter Property="OverlayBackground" Value="{DynamicResource PrimaryHueMidBrush}" />
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</materialDesign:DrawerHost.Style>
|
||
<materialDesign:DrawerHost.LeftDrawerContent>
|
||
<StackPanel Width="200" Margin="10">
|
||
<TextBlock
|
||
Margin="4"
|
||
HorizontalAlignment="Center"
|
||
Text="操作信息" />
|
||
<Button
|
||
Margin="4"
|
||
HorizontalAlignment="Center"
|
||
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
||
CommandParameter="{x:Static Dock.Left}"
|
||
Content="操作1"
|
||
Style="{StaticResource MaterialDesignFlatButton}" />
|
||
<Button
|
||
Margin="4"
|
||
HorizontalAlignment="Center"
|
||
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
||
Content="操作2"
|
||
Style="{StaticResource MaterialDesignFlatButton}" />
|
||
<Button
|
||
Margin="4"
|
||
HorizontalAlignment="Center"
|
||
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
||
Content="操作3"
|
||
Style="{StaticResource MaterialDesignFlatButton}" />
|
||
</StackPanel>
|
||
</materialDesign:DrawerHost.LeftDrawerContent>
|
||
<materialDesign:DrawerHost.TopDrawerContent>
|
||
<StackPanel
|
||
Margin="16"
|
||
HorizontalAlignment="Center"
|
||
Orientation="Horizontal">
|
||
<TextBlock
|
||
Margin="4"
|
||
VerticalAlignment="Center"
|
||
Text="TOP BANANA" />
|
||
<Button
|
||
Margin="4"
|
||
VerticalAlignment="Center"
|
||
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
||
Content="CLOSE ALL"
|
||
Style="{StaticResource MaterialDesignFlatButton}" />
|
||
<Button
|
||
Margin="4"
|
||
VerticalAlignment="Center"
|
||
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
||
CommandParameter="{x:Static Dock.Top}"
|
||
Content="CLOSE THIS"
|
||
Style="{StaticResource MaterialDesignFlatButton}" />
|
||
</StackPanel>
|
||
</materialDesign:DrawerHost.TopDrawerContent>
|
||
<materialDesign:DrawerHost.RightDrawerContent>
|
||
<StackPanel Width="200" Margin="10">
|
||
<Controls:MeterConfig
|
||
AddCommand="{Binding ProStepPsAddCmd}"
|
||
DeleteCommand="{Binding ProStepPsDeleteCmd}"
|
||
EditCommand="{Binding ProStepPsEditCmd}"
|
||
ListMeter="{Binding ListMeterPsItems}"
|
||
MeterName="Ps"
|
||
MeterSelectedChangedCmd="{Binding MeterPsSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedPs}" />
|
||
</StackPanel>
|
||
</materialDesign:DrawerHost.RightDrawerContent>
|
||
<materialDesign:DrawerHost.BottomDrawerContent>
|
||
<StackPanel
|
||
Margin="16"
|
||
HorizontalAlignment="Center"
|
||
Orientation="Horizontal">
|
||
<TextBlock
|
||
Margin="4"
|
||
VerticalAlignment="Center"
|
||
Foreground="{DynamicResource SecondaryHueMidForegroundBrush}"
|
||
Text="BOTTOM BRACKET" />
|
||
<Button
|
||
Margin="4"
|
||
VerticalAlignment="Center"
|
||
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
||
Content="CLOSE ALL"
|
||
Style="{StaticResource MaterialDesignFlatButton}" />
|
||
<Button
|
||
Margin="4"
|
||
VerticalAlignment="Center"
|
||
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
||
CommandParameter="{x:Static Dock.Bottom}"
|
||
Content="CLOSE THIS"
|
||
Style="{StaticResource MaterialDesignFlatButton}" />
|
||
</StackPanel>
|
||
</materialDesign:DrawerHost.BottomDrawerContent>
|
||
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="220" />
|
||
<ColumnDefinition />
|
||
<ColumnDefinition Width="400" />
|
||
</Grid.ColumnDefinitions>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="8*" />
|
||
<RowDefinition />
|
||
</Grid.RowDefinitions>
|
||
<!-- 工况程序库 -->
|
||
<Grid Grid.Row="0" Grid.Column="0">
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="35" />
|
||
<RowDefinition Height="80" />
|
||
<RowDefinition />
|
||
</Grid.RowDefinitions>
|
||
<Border
|
||
Grid.Row="0"
|
||
Margin="2,1"
|
||
BorderBrush="Gray"
|
||
BorderThickness="1">
|
||
<TextBlock
|
||
Margin="5"
|
||
VerticalAlignment="Center"
|
||
FontSize="20"
|
||
Text="工况程序库"
|
||
TextAlignment="Center" />
|
||
</Border>
|
||
|
||
<Border
|
||
Grid.Row="1"
|
||
Margin="2"
|
||
BorderBrush="Black"
|
||
BorderThickness="1">
|
||
<StackPanel>
|
||
<StackPanel>
|
||
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
||
<Button
|
||
Width="50"
|
||
Margin="1,2"
|
||
Command="{Binding ProAddCmd}"
|
||
FontSize="12"
|
||
Style="{StaticResource MaterialDesignOutlinedDarkButton}"
|
||
ToolTip="增加">
|
||
<Button.Content>
|
||
<TextBlock Margin="-10,0" Text="增加" />
|
||
</Button.Content>
|
||
</Button>
|
||
<Button
|
||
Width="50"
|
||
Margin="1,2"
|
||
Command="{Binding ProEditCmd}"
|
||
Style="{StaticResource MaterialDesignOutlinedDarkButton}"
|
||
ToolTip="修改">
|
||
<Button.Content>
|
||
<TextBlock Margin="-10,0" Text="修改" />
|
||
</Button.Content>
|
||
</Button>
|
||
<Button
|
||
Width="50"
|
||
Margin="1,2"
|
||
Command="{Binding ProCopyCmd}"
|
||
Style="{StaticResource MaterialDesignOutlinedDarkButton}"
|
||
ToolTip="复制">
|
||
<Button.Content>
|
||
<TextBlock Margin="-10,0" Text="复制" />
|
||
</Button.Content>
|
||
</Button>
|
||
<Button
|
||
Width="50"
|
||
Margin="1,2"
|
||
Background="Orange"
|
||
Command="{Binding ProDeleteCmd}"
|
||
Style="{StaticResource MaterialDesignOutlinedDarkButton}"
|
||
ToolTip="删除">
|
||
<Button.Content>
|
||
<TextBlock Margin="-10,0" Text="删除" />
|
||
</Button.Content>
|
||
</Button>
|
||
|
||
</StackPanel>
|
||
</StackPanel>
|
||
<Border Margin="2,5" Background="Gray">
|
||
<TextBlock
|
||
FontSize="18"
|
||
Foreground="White"
|
||
Text="{Binding SelectedProgramSeg.Name}"
|
||
TextAlignment="Center" />
|
||
</Border>
|
||
</StackPanel>
|
||
|
||
|
||
</Border>
|
||
|
||
|
||
<Grid Grid.Row="2" Margin="2">
|
||
<Border BorderBrush="Black" BorderThickness="1">
|
||
|
||
<ListView
|
||
x:Name="listviewPro"
|
||
Foreground="Black"
|
||
ItemsSource="{Binding ProSegListViewItems}">
|
||
<i:Interaction.Triggers>
|
||
<i:EventTrigger EventName="SelectionChanged">
|
||
<prism:InvokeCommandAction Command="{Binding ProSelectedChangedCmd}" CommandParameter="{Binding ElementName=listviewPro, Path=SelectedItem}" />
|
||
</i:EventTrigger>
|
||
</i:Interaction.Triggers>
|
||
<ListView.View>
|
||
<!-- ColumnHeaderContainerStyle="{StaticResource myHeaderStyle}" Header="程序名称" -->
|
||
<GridView>
|
||
<GridViewColumn DisplayMemberBinding="{Binding Name}">
|
||
<GridViewColumn.Header>
|
||
<GridViewColumnHeader
|
||
Padding="2"
|
||
HorizontalContentAlignment="Center"
|
||
VerticalContentAlignment="Center"
|
||
FontSize="25">
|
||
<TextBlock Text="程序名称" />
|
||
</GridViewColumnHeader>
|
||
</GridViewColumn.Header>
|
||
</GridViewColumn>
|
||
</GridView>
|
||
</ListView.View>
|
||
|
||
<!-- 设置ListViewItem的背景色,模拟网格效果 -->
|
||
<!--<ListView.ItemContainerStyle>
|
||
<Style TargetType="ListViewItem">
|
||
<Setter Property="Background" Value="LightGray" />
|
||
</Style>
|
||
</ListView.ItemContainerStyle>-->
|
||
|
||
</ListView>
|
||
</Border>
|
||
|
||
</Grid>
|
||
|
||
</Grid>
|
||
<!-- 内容区域 -->
|
||
<Grid
|
||
Grid.Row="0"
|
||
Grid.Column="1"
|
||
Margin="2,0">
|
||
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="35" />
|
||
<RowDefinition Height="40" />
|
||
<RowDefinition Height="40" />
|
||
<RowDefinition />
|
||
</Grid.RowDefinitions>
|
||
<Border
|
||
Grid.ColumnSpan="2"
|
||
Margin="0,1"
|
||
BorderBrush="Gray"
|
||
BorderThickness="1">
|
||
<TextBlock
|
||
FontSize="20"
|
||
Text="内容区域"
|
||
TextAlignment="Center" />
|
||
</Border>
|
||
|
||
|
||
|
||
|
||
<Border
|
||
Grid.Row="1"
|
||
BorderBrush="Black"
|
||
BorderThickness="1">
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock
|
||
Margin="15,0"
|
||
VerticalAlignment="Center"
|
||
FontSize="20"
|
||
Text="当前工况名称:" />
|
||
<TextBox
|
||
Width="300"
|
||
Margin="2"
|
||
VerticalAlignment="Center"
|
||
Background="SkyBlue"
|
||
FontSize="18"
|
||
Foreground="White"
|
||
Text="{Binding SelectedProgramSeg.Name}"
|
||
TextAlignment="Center" />
|
||
<TextBlock
|
||
Margin="15,0"
|
||
VerticalAlignment="Center"
|
||
FontSize="20"
|
||
Text="总循环次数:" />
|
||
<TextBox
|
||
Width="80"
|
||
Margin="2"
|
||
VerticalAlignment="Center"
|
||
Background="SkyBlue"
|
||
FontSize="18"
|
||
Foreground="White"
|
||
Text="{Binding SelectedProgramSeg.ProRepeat}"
|
||
TextAlignment="Center" />
|
||
|
||
<TextBlock
|
||
Margin="15,0"
|
||
VerticalAlignment="Center"
|
||
FontSize="20"
|
||
Text="当前选中步骤序号:" />
|
||
<TextBox
|
||
Width="80"
|
||
Margin="2"
|
||
VerticalAlignment="Center"
|
||
Background="SkyBlue"
|
||
FontSize="18"
|
||
Foreground="White"
|
||
Text="{Binding SelectedProStepDto.StepNo}"
|
||
TextAlignment="Center" />
|
||
<!--<Button
|
||
Margin="50,0"
|
||
Command="{Binding GenProPlcCmd}"
|
||
Content="下载数据" />-->
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
<Border
|
||
Grid.Row="2"
|
||
BorderBrush="Black"
|
||
BorderThickness="1">
|
||
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
|
||
<StackPanel>
|
||
<TextBlock
|
||
Margin="15,0"
|
||
VerticalAlignment="Center"
|
||
FontSize="20"
|
||
Text="步骤操作:" />
|
||
</StackPanel>
|
||
<StackPanel Margin="5,0" Orientation="Horizontal">
|
||
<TextBlock
|
||
Margin="5,2"
|
||
VerticalAlignment="Center"
|
||
FontSize="16"
|
||
Text="序号"
|
||
TextAlignment="Center" />
|
||
|
||
<TextBox
|
||
Width="60"
|
||
Margin="5,2"
|
||
VerticalAlignment="Center"
|
||
Background="DeepSkyBlue"
|
||
BorderThickness="2"
|
||
FontSize="16"
|
||
Foreground="White"
|
||
Style="{Binding}"
|
||
Text="{Binding ProStepProNo}"
|
||
TextAlignment="Center" />
|
||
<TextBlock
|
||
VerticalAlignment="Center"
|
||
FontSize="16"
|
||
Text="次" />
|
||
</StackPanel>
|
||
<StackPanel Margin="5,0" Orientation="Horizontal">
|
||
<TextBlock
|
||
Margin="5,2"
|
||
VerticalAlignment="Center"
|
||
FontSize="16"
|
||
Text="单步循环次数"
|
||
TextAlignment="Center" />
|
||
|
||
<TextBox
|
||
Width="60"
|
||
Margin="5,2"
|
||
VerticalAlignment="Center"
|
||
Background="DeepSkyBlue"
|
||
BorderThickness="2"
|
||
FontSize="16"
|
||
Foreground="White"
|
||
Style="{Binding}"
|
||
Text="{Binding ProStepCycleCount}"
|
||
TextAlignment="Center" />
|
||
<TextBlock
|
||
VerticalAlignment="Center"
|
||
FontSize="16"
|
||
Text="次" />
|
||
</StackPanel>
|
||
|
||
<StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<Button
|
||
Width="60"
|
||
Height="25"
|
||
Margin="5,2"
|
||
Command="{Binding ProStepAddCmd}"
|
||
Content="增加"
|
||
Style="{StaticResource MaterialDesignOutlinedDarkButton}"
|
||
ToolTip="增加" />
|
||
<Button
|
||
Width="60"
|
||
Height="25"
|
||
Margin="5,2"
|
||
Command="{Binding ProStepEditCmd}"
|
||
Content="修改"
|
||
Style="{StaticResource MaterialDesignOutlinedDarkButton}"
|
||
ToolTip="修改" />
|
||
<Button
|
||
Width="60"
|
||
Height="25"
|
||
Margin="5,2"
|
||
Command="{Binding ProStepCopyCmd}"
|
||
Content="复制"
|
||
Style="{StaticResource MaterialDesignOutlinedDarkButton}"
|
||
ToolTip="复制" />
|
||
<Button
|
||
Width="60"
|
||
Height="25"
|
||
Margin="5,2"
|
||
Background="Orange"
|
||
Command="{Binding ProStepDeleteCmd}"
|
||
Content="删除"
|
||
Style="{StaticResource MaterialDesignOutlinedDarkButton}"
|
||
ToolTip="删除" />
|
||
</StackPanel>
|
||
</StackPanel>
|
||
|
||
</StackPanel>
|
||
</Border>
|
||
<DataGrid
|
||
x:Name="MainDatagrid"
|
||
Grid.Row="3"
|
||
Grid.ColumnSpan="2"
|
||
AutoGenerateColumns="False"
|
||
BorderBrush="Black"
|
||
BorderThickness="1"
|
||
FontWeight="Bold"
|
||
IsReadOnly="True"
|
||
ItemsSource="{Binding ListProStepDtoItems}"
|
||
SelectionMode="Extended"
|
||
SelectionUnit="FullRow">
|
||
<DataGrid.Columns>
|
||
<DataGridTextColumn Binding="{Binding StepNo}">
|
||
<DataGridTextColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="序号" />
|
||
</DataGridTextColumn.Header>
|
||
</DataGridTextColumn>
|
||
<DataGridTextColumn Binding="{Binding StepRepeat}">
|
||
<DataGridTextColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="循环次数" />
|
||
</DataGridTextColumn.Header>
|
||
</DataGridTextColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="压缩机转速
信息" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<!--<TextBlock Text="{Binding SpeedInfo}" TextWrapping="Wrap" /> ×-->
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock
|
||
x:Name="SpeedInfo"
|
||
Text="{Binding SpeedInfo}"
|
||
TextWrapping="Wrap" />
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="20"
|
||
Foreground="Blue">
|
||
<TextBlock.Style>
|
||
<Style TargetType="TextBlock">
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding SpeedCycle.IsSlop}" Value="true">
|
||
<Setter Property="Text" Value="{Binding SpeedCycle.Cycle, Converter={StaticResource MeterSlopCycleConverter}}" />
|
||
</DataTrigger>
|
||
<DataTrigger Binding="{Binding SpeedCycle.IsSlop}" Value="false">
|
||
<Setter Property="Text" Value="" />
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</TextBlock.Style>
|
||
</TextBlock>
|
||
</StackPanel>
|
||
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="排气压力
(barA)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterExPressInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="吸气压力
(barA)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterInhPressInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="吸气温度
(℃)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterInhTempInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="COND1温度
(℃)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterCond1TempInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="润滑油压力
(barA)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterLubePressInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="COND2压力
(barA)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterCond2PressInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="OCR
(%)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterOCRInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="LV电压
(V)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterLVVolInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="HV电压
(V)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterHVVolInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="压缩机环境湿度
(%)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterEnvRHInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="压缩机环境温度
(℃)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterEnvTempInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="EVAP出口温度(℃)
(℃)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterEVAPExpTempInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="OS1温度
(℃)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterOS1TempInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="OS2温度
(℃)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterOS2TempInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="PTC入口温度 
(℃)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterPTCEntTempInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="PTC流量
(L/min)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterPTCFlowInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="PTC功率
(W)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterPTCPwInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
<DataGridTemplateColumn>
|
||
<DataGridTemplateColumn.Header>
|
||
<TextBlock FontWeight="Bold" Text="COND2温度
(℃)" />
|
||
</DataGridTemplateColumn.Header>
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding MeterCond2TempInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>
|
||
|
||
|
||
<!--<DataGridTemplateColumn Width="200" Header="压缩机转速
信息">
|
||
<DataGridTemplateColumn.CellTemplate>
|
||
<DataTemplate>
|
||
<TextBlock Text="{Binding SpeedInfo}" TextWrapping="Wrap" />
|
||
</DataTemplate>
|
||
</DataGridTemplateColumn.CellTemplate>
|
||
</DataGridTemplateColumn>-->
|
||
|
||
</DataGrid.Columns>
|
||
<i:Interaction.Triggers>
|
||
<i:EventTrigger EventName="SelectionChanged">
|
||
<prism:InvokeCommandAction Command="{Binding GridSelectionChangedCmd}" CommandParameter="{Binding ElementName=MainDatagrid, Path=SelectedItem}" />
|
||
</i:EventTrigger>
|
||
<i:EventTrigger EventName="SelectedCellsChanged">
|
||
<prism:InvokeCommandAction Command="{Binding GridSelectedCellsChangedCmd}" CommandParameter="{Binding SelectedCells, ElementName=MainDatagrid}" />
|
||
</i:EventTrigger>
|
||
</i:Interaction.Triggers>
|
||
<!--<prism:InvokeCommandAction Command="{Binding GridSelectionChangedCmd}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=DataGrid}}" />-->
|
||
<!-- CommandParameter="{Binding ElementName=MainDatagrid, Path=SelectedItem}" -->
|
||
<!--<DataGrid.RowStyle>
|
||
<Style TargetType="{x:Type DataGridRow}">
|
||
<Style.Triggers>
|
||
<Trigger Property="ItemsControl.AlternationIndex" Value="0">
|
||
<Setter Property="Background" Value="AliceBlue" />
|
||
</Trigger>
|
||
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
|
||
<Setter Property="Background" Value="#FFF2F2F2" />
|
||
</Trigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</DataGrid.RowStyle>-->
|
||
</DataGrid>
|
||
|
||
</Grid>
|
||
<!-- 工况编辑 -->
|
||
<Grid
|
||
Grid.Row="0"
|
||
Grid.RowSpan="2"
|
||
Grid.Column="2"
|
||
Margin="2,0">
|
||
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="35" />
|
||
<RowDefinition />
|
||
</Grid.RowDefinitions>
|
||
|
||
<Border
|
||
Margin="2,1"
|
||
BorderBrush="Gray"
|
||
BorderThickness="1">
|
||
<TextBlock
|
||
VerticalAlignment="Center"
|
||
FontSize="20"
|
||
Text="工况编辑"
|
||
TextAlignment="Center" />
|
||
</Border>
|
||
|
||
|
||
<Border
|
||
Grid.Row="2"
|
||
Margin="2"
|
||
BorderBrush="Black"
|
||
BorderThickness="1">
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="450" />
|
||
<RowDefinition Height="30" />
|
||
<RowDefinition />
|
||
</Grid.RowDefinitions>
|
||
<!-- 速度参数设置 -->
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="30" />
|
||
<RowDefinition />
|
||
<RowDefinition Height="90" />
|
||
</Grid.RowDefinitions>
|
||
|
||
<StackPanel Margin="1">
|
||
<Border
|
||
Padding="3"
|
||
Background="Gray"
|
||
CornerRadius="3">
|
||
<TextBlock
|
||
FontSize="20"
|
||
Foreground="White"
|
||
Text="速度设置" />
|
||
</Border>
|
||
|
||
</StackPanel>
|
||
|
||
<TabControl
|
||
x:Name="SpeedTabControl"
|
||
Grid.Row="1"
|
||
Margin="1,0"
|
||
IsEnabled="{Binding SpeedTabControlEnable}"
|
||
SelectedIndex="{Binding ProStepSpeedSwitchConstSlopIndex}">
|
||
<TabControl.Style>
|
||
<Style BasedOn="{StaticResource MaterialDesignFilledTabControl}" TargetType="TabControl">
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding IsChecked, ElementName=TBSwitchConstSlop}" Value="True">
|
||
<Setter Property="SelectedIndex" Value="1" />
|
||
</DataTrigger>
|
||
<DataTrigger Binding="{Binding IsChecked, ElementName=TBSwitchConstSlop}" Value="False">
|
||
<Setter Property="SelectedIndex" Value="0" />
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</TabControl.Style>
|
||
<i:Interaction.Triggers>
|
||
<i:EventTrigger EventName="SelectionChanged">
|
||
<i:InvokeCommandAction Command="{Binding SpeedConstSlopSelectChangedCmd}" CommandParameter="{Binding ElementName=SpeedTabControl, Path=SelectedIndex}" />
|
||
</i:EventTrigger>
|
||
</i:Interaction.Triggers>
|
||
<TabItem Header="常值" IsEnabled="{Binding IsChecked, Converter={StaticResource BoolNgConverter}}">
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="80" />
|
||
<RowDefinition Height="80" />
|
||
<RowDefinition Height="40" />
|
||
<RowDefinition />
|
||
</Grid.RowDefinitions>
|
||
|
||
<StackPanel Margin="10" Orientation="Vertical">
|
||
<TextBlock HorizontalAlignment="Center" FontSize="16">常值数据</TextBlock>
|
||
<TextBox
|
||
Width="200"
|
||
HorizontalContentAlignment="Center"
|
||
FontSize="20"
|
||
Text="{Binding SelectedConstSpeedValue}" />
|
||
</StackPanel>
|
||
<StackPanel
|
||
Grid.Row="1"
|
||
Margin="10"
|
||
Orientation="Vertical">
|
||
<TextBlock HorizontalAlignment="Center" FontSize="16">维持时间</TextBlock>
|
||
<TextBox
|
||
Width="200"
|
||
HorizontalContentAlignment="Center"
|
||
FontSize="20"
|
||
Text="{Binding SelectedConstSpeedTimeValue, Converter={StaticResource SecToStrConvert}}" />
|
||
</StackPanel>
|
||
<StackPanel Grid.Row="2" VerticalAlignment="Center">
|
||
<Button
|
||
Width="80"
|
||
Margin="0,0,20,0"
|
||
Command="{Binding SpeedConstSaveCmd}"
|
||
Content="确定"
|
||
Foreground="White" />
|
||
</StackPanel>
|
||
</Grid>
|
||
</TabItem>
|
||
<TabItem Header="斜率" IsEnabled="{Binding IsChecked}">
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="65" />
|
||
<RowDefinition Height="35" />
|
||
<RowDefinition />
|
||
</Grid.RowDefinitions>
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="0.7*" />
|
||
<ColumnDefinition />
|
||
<ColumnDefinition />
|
||
<ColumnDefinition Width="1.3*" />
|
||
</Grid.ColumnDefinitions>
|
||
<StackPanel Grid.Column="0" Margin="2,10,0,0">
|
||
<TextBox
|
||
VerticalAlignment="Top"
|
||
materialDesign:HintAssist.Hint="步骤"
|
||
FontSize="16"
|
||
FontWeight="Bold"
|
||
Style="{StaticResource MaterialDesignOutlinedTextBox}"
|
||
Text="{Binding SelectedSlopMeterSpeed.StepNo}"
|
||
TextWrapping="NoWrap"
|
||
VerticalScrollBarVisibility="Disabled" />
|
||
</StackPanel>
|
||
<StackPanel Grid.Column="1" Margin="2,10,0,0">
|
||
<TextBox
|
||
VerticalAlignment="Top"
|
||
materialDesign:HintAssist.Hint="起始速度"
|
||
FontSize="16"
|
||
FontWeight="Bold"
|
||
Style="{StaticResource MaterialDesignOutlinedTextBox}"
|
||
Text="{Binding SelectedSlopMeterSpeed.StartValue}"
|
||
TextWrapping="NoWrap"
|
||
VerticalScrollBarVisibility="Disabled" />
|
||
</StackPanel>
|
||
<StackPanel Grid.Column="2" Margin="2,10,0,0">
|
||
<TextBox
|
||
VerticalAlignment="Top"
|
||
materialDesign:HintAssist.Hint="结束速度"
|
||
FontSize="16"
|
||
FontWeight="Bold"
|
||
Style="{StaticResource MaterialDesignOutlinedTextBox}"
|
||
Text="{Binding SelectedSlopMeterSpeed.EndValue}"
|
||
TextWrapping="NoWrap"
|
||
VerticalScrollBarVisibility="Disabled" />
|
||
</StackPanel>
|
||
<StackPanel Grid.Column="3" Margin="2,10,2,0">
|
||
<TextBox
|
||
VerticalAlignment="Top"
|
||
materialDesign:HintAssist.Hint="维持时间"
|
||
FontSize="16"
|
||
FontWeight="Bold"
|
||
Style="{StaticResource MaterialDesignOutlinedTextBox}"
|
||
Text="{Binding SelectedSlopMeterSpeed.KeepTime, Converter={StaticResource SecToStrConvert}}"
|
||
TextWrapping="NoWrap"
|
||
VerticalScrollBarVisibility="Disabled" />
|
||
</StackPanel>
|
||
</Grid>
|
||
|
||
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
||
<Button
|
||
Height="25"
|
||
Margin="1,1"
|
||
Command="{Binding ProStepSpeedAddCmd}"
|
||
Content="增加"
|
||
Foreground="White"
|
||
Style="{StaticResource MaterialDesignRaisedSecondaryLightButton}"
|
||
ToolTip="增加程序步骤内的速度设置" />
|
||
<Button
|
||
Height="25"
|
||
Margin="1,1"
|
||
Command="{Binding ProStepSpeedEditCmd}"
|
||
Content="修改"
|
||
Foreground="White"
|
||
Style="{StaticResource MaterialDesignRaisedSecondaryLightButton}"
|
||
ToolTip="修改程序步骤内的速度设置,请先选中" />
|
||
<Button
|
||
Height="25"
|
||
Margin="1,1"
|
||
Command="{Binding ProStepSpeedDeleteCmd}"
|
||
Content="删除"
|
||
Foreground="White"
|
||
Style="{StaticResource MaterialDesignRaisedSecondaryLightButton}"
|
||
ToolTip="删除程序步骤内的速度设置,请先选中" />
|
||
<StackPanel Margin="1,0,0,0" Orientation="Vertical">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
Foreground="Blue"
|
||
Text="总时间" />
|
||
<TextBlock
|
||
Margin="2,0"
|
||
VerticalAlignment="Center"
|
||
FontSize="16"
|
||
Foreground="Blue"
|
||
Text="{Binding MeterSpeedExDto.TotalSlopTime, Converter={StaticResource SecToStrConvert}}">
|
||
<TextBlock.Style>
|
||
<Style TargetType="TextBlock">
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding MeterSpeedExDto.IsTimeOk}" Value="true">
|
||
<Setter Property="Background" Value="LimeGreen" />
|
||
</DataTrigger>
|
||
<DataTrigger Binding="{Binding MeterSpeedExDto.IsTimeOk}" Value="false">
|
||
<Setter Property="Background" Value="OrangeRed" />
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</TextBlock.Style>
|
||
</TextBlock>
|
||
</StackPanel>
|
||
<StackPanel Margin="1,0,0,0" Orientation="Vertical">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
Foreground="Blue"
|
||
Text="时间" />
|
||
<TextBlock
|
||
Margin="2,0"
|
||
VerticalAlignment="Center"
|
||
FontSize="16"
|
||
Foreground="Blue"
|
||
Text="{Binding MeterSpeedExDto.SlopTime, Converter={StaticResource SecToStrConvert}}">
|
||
<TextBlock.Style>
|
||
<Style TargetType="TextBlock">
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding MeterSpeedExDto.IsTimeOk}" Value="true">
|
||
<Setter Property="Background" Value="LimeGreen" />
|
||
</DataTrigger>
|
||
<DataTrigger Binding="{Binding MeterSpeedExDto.IsTimeOk}" Value="false">
|
||
<Setter Property="Background" Value="OrangeRed" />
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</TextBlock.Style>
|
||
</TextBlock>
|
||
</StackPanel>
|
||
<StackPanel Margin="1,2,0,1" Orientation="Horizontal">
|
||
<TextBlock
|
||
Margin="0,0,5,0"
|
||
HorizontalAlignment="Center"
|
||
FontWeight="Bold"
|
||
Foreground="Purple"
|
||
Text="循环
次数" />
|
||
<TextBox
|
||
Width="30"
|
||
HorizontalAlignment="Center"
|
||
HorizontalContentAlignment="Center"
|
||
FontSize="20"
|
||
FontWeight="Bold"
|
||
Foreground="Blue"
|
||
Text="{Binding MeterSpeedExDto.SlopCycle, StringFormat=0}">
|
||
<i:Interaction.Triggers>
|
||
<i:EventTrigger EventName="LostFocus">
|
||
<prism:InvokeCommandAction Command="{Binding MeterSpeedSlopCycleLostFocusCmd}" />
|
||
</i:EventTrigger>
|
||
</i:Interaction.Triggers>
|
||
</TextBox>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
|
||
<Border
|
||
Grid.Row="2"
|
||
Margin="1,0"
|
||
BorderBrush="Black"
|
||
BorderThickness="1">
|
||
<ListView
|
||
x:Name="listviewProStepSpeed"
|
||
Foreground="Black"
|
||
ItemsSource="{Binding ListSlopMeterSpeedItems}">
|
||
<i:Interaction.Triggers>
|
||
<i:EventTrigger EventName="SelectionChanged">
|
||
<prism:InvokeCommandAction Command="{Binding MeterSpeedSelectedChangedCmd}" CommandParameter="{Binding ElementName=listviewProStepSpeed, Path=SelectedItem}" />
|
||
</i:EventTrigger>
|
||
</i:Interaction.Triggers>
|
||
<ListView.View>
|
||
<GridView ColumnHeaderContainerStyle="{StaticResource myHeaderStyle1}">
|
||
<GridViewColumn
|
||
Width="50"
|
||
DisplayMemberBinding="{Binding StepNo}"
|
||
Header="序号" />
|
||
<GridViewColumn
|
||
Width="80"
|
||
DisplayMemberBinding="{Binding StartValue}"
|
||
Header="起始速度" />
|
||
<GridViewColumn
|
||
Width="80"
|
||
DisplayMemberBinding="{Binding EndValue}"
|
||
Header="终止速度" />
|
||
<GridViewColumn
|
||
Width="100"
|
||
DisplayMemberBinding="{Binding KeepTime, Converter={StaticResource SecToStrConvert}}"
|
||
Header="持续时间" />
|
||
</GridView>
|
||
</ListView.View>
|
||
<!-- 设置ListViewItem的背景色,模拟网格效果 -->
|
||
<!--<ListView.ItemContainerStyle>
|
||
<Style TargetType="ListViewItem">
|
||
<Setter Property="Background" Value="LightGray" />
|
||
</Style>
|
||
</ListView.ItemContainerStyle>-->
|
||
</ListView>
|
||
</Border>
|
||
</Grid>
|
||
</TabItem>
|
||
|
||
</TabControl>
|
||
|
||
|
||
|
||
<Border
|
||
Grid.Row="2"
|
||
Margin="2,1"
|
||
BorderBrush="Black"
|
||
BorderThickness="1">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition />
|
||
<ColumnDefinition />
|
||
<ColumnDefinition />
|
||
<ColumnDefinition />
|
||
</Grid.ColumnDefinitions>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition />
|
||
<RowDefinition />
|
||
</Grid.RowDefinitions>
|
||
<Grid.Resources>
|
||
<Style x:Key="txtboxStyle" TargetType="TextBox">
|
||
<Setter Property="FontSize" Value="12" />
|
||
<Setter Property="Margin" Value="0,2" />
|
||
</Style>
|
||
</Grid.Resources>
|
||
<StackPanel HorizontalAlignment="Center">
|
||
<TextBlock FontSize="12" Text="输出锁定(0/1)" />
|
||
<ToggleButton
|
||
Height="20"
|
||
Margin="5,2"
|
||
IsChecked="{Binding SelectedSlopMeterSpeed.OutLock}"
|
||
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
||
ToolTip="输出锁定" />
|
||
</StackPanel>
|
||
<StackPanel Grid.Column="1" HorizontalAlignment="Center">
|
||
<TextBlock FontSize="12" Text="参数编号(1~16)" />
|
||
<TextBox Style="{StaticResource txtboxStyle}" Text="{Binding SelectedSlopMeterSpeed.ParNo}" />
|
||
</StackPanel>
|
||
<StackPanel Grid.Column="2" HorizontalAlignment="Center">
|
||
<TextBlock FontSize="12" Text="EV(1~4)" />
|
||
<TextBox Style="{StaticResource txtboxStyle}" Text="{Binding SelectedSlopMeterSpeed.Ev}" />
|
||
</StackPanel>
|
||
<StackPanel Grid.Column="3" HorizontalAlignment="Center">
|
||
<TextBlock FontSize="12" Text="压缩机使能(0/1)" />
|
||
<ToggleButton
|
||
Height="20"
|
||
Margin="5,2"
|
||
IsChecked="{Binding SelectedSlopMeterSpeed.CapEnable}"
|
||
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
||
ToolTip="压缩机使能" />
|
||
</StackPanel>
|
||
<StackPanel
|
||
Grid.Row="1"
|
||
Grid.Column="0"
|
||
HorizontalAlignment="Center">
|
||
<TextBlock FontSize="12" Text="吸排气阀(0/1)" />
|
||
<ToggleButton
|
||
Height="20"
|
||
Margin="5,2"
|
||
IsChecked="{Binding SelectedSlopMeterSpeed.InhExhValve}"
|
||
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
||
ToolTip="吸排气阀" />
|
||
</StackPanel>
|
||
<StackPanel
|
||
Grid.Row="1"
|
||
Grid.Column="1"
|
||
HorizontalAlignment="Center">
|
||
<TextBlock FontSize="12" Text="加热器使能(0/1)" />
|
||
<ToggleButton
|
||
Height="20"
|
||
Margin="5,2"
|
||
IsChecked="{Binding SelectedSlopMeterSpeed.HeatEnable}"
|
||
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
||
ToolTip="加热器使能" />
|
||
</StackPanel>
|
||
</Grid>
|
||
</Border>
|
||
|
||
</Grid>
|
||
|
||
<DockPanel Grid.Row="1">
|
||
<DockPanel>
|
||
<TextBlock
|
||
Margin="3,0"
|
||
VerticalAlignment="Center"
|
||
Background="Gray"
|
||
FontSize="20"
|
||
Foreground="White"
|
||
Text=" 其他配置"
|
||
TextAlignment="Left" />
|
||
</DockPanel>
|
||
<!--<StackPanel
|
||
HorizontalAlignment="Right"
|
||
DockPanel.Dock="Right"
|
||
Orientation="Horizontal">
|
||
<Button
|
||
Width="40"
|
||
Height="40"
|
||
Click="ProStepOtherTapLeft"
|
||
Style="{StaticResource MaterialDesignIconButton}"
|
||
ToolTip="向左">
|
||
<materialDesign:PackIcon Kind="ArrowLeftBox" />
|
||
</Button>
|
||
<Button
|
||
Width="40"
|
||
Height="40"
|
||
Click="ProStepOtherTapRight"
|
||
Command="{Binding ProStepOtherTapRightCmd}"
|
||
Style="{StaticResource MaterialDesignIconButton}"
|
||
ToolTip="向右">
|
||
<materialDesign:PackIcon Kind="ArrowRightBox" />
|
||
</Button>
|
||
</StackPanel>-->
|
||
</DockPanel>
|
||
|
||
<TabControl
|
||
x:Name="OtherParTabControl"
|
||
Grid.Row="2"
|
||
IsEnabled="{Binding OtherParTabControlEnable}"
|
||
SelectedIndex="{Binding SelectedIndex}"
|
||
TabStripPlacement="Left">
|
||
<TabControl.Resources>
|
||
<Style x:Key="dd" TargetType="TabItem">
|
||
<Setter Property="Header">
|
||
<Setter.Value>
|
||
<DataTemplate>
|
||
<TextBlock FontSize="12" Text="12" />
|
||
</DataTemplate>
|
||
</Setter.Value>
|
||
|
||
</Setter>
|
||
</Style>
|
||
|
||
</TabControl.Resources>
|
||
|
||
<TabItem IsSelected="True">
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="排气压力 (barA)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepExPressAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepExPressSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepExPressConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstExPressValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterExPressExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepExPressDeleteCmd}"
|
||
EditCommand="{Binding ProStepExPressEditCmd}"
|
||
IsTimeOk="{Binding MeterExPressExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterExPressItems}"
|
||
MeterName="排气压力"
|
||
MeterSelectedChangedCmd="{Binding MeterExPressSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopExPress, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterExPressSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterExPressExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="吸气压力 (barA)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepInhPressAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepInhPressSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepInhPressConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstInhPressValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterInhPressExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepInhPressDeleteCmd}"
|
||
EditCommand="{Binding ProStepInhPressEditCmd}"
|
||
IsTimeOk="{Binding MeterInhPressExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterInhPressItems}"
|
||
MeterName="吸气压力"
|
||
MeterSelectedChangedCmd="{Binding MeterInhPressSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopInhPress, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterInhPressSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterInhPressExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="吸气温度 (℃)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepInhTempAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepInhTempSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepInhTempConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstInhTempValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterInhTempExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepInhTempDeleteCmd}"
|
||
EditCommand="{Binding ProStepInhTempEditCmd}"
|
||
IsTimeOk="{Binding MeterInhTempExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterInhTempItems}"
|
||
MeterName="吸气温度"
|
||
MeterSelectedChangedCmd="{Binding MeterInhTempSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopInhTemp, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterInhTempSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterInhTempExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="COND1温度 (℃)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepCond1TempAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepCond1TempSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepCond1TempConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstCond1TempValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterCond1TempExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepCond1TempDeleteCmd}"
|
||
EditCommand="{Binding ProStepCond1TempEditCmd}"
|
||
IsTimeOk="{Binding MeterCond1TempExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterCond1TempItems}"
|
||
MeterName="COND1温度"
|
||
MeterSelectedChangedCmd="{Binding MeterCond1TempSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopCond1Temp, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterCond1TempSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterCond1TempExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="润滑油压力 (barA)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepLubePressAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepLubePressSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepLubePressConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstLubePressValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterLubePressExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepLubePressDeleteCmd}"
|
||
EditCommand="{Binding ProStepLubePressEditCmd}"
|
||
IsTimeOk="{Binding MeterLubePressExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterLubePressItems}"
|
||
MeterName="润滑油压力"
|
||
MeterSelectedChangedCmd="{Binding MeterLubePressSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopLubePress, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterLubePressSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterLubePressExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="COND2温度 (℃)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepCond2TempAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepCond2TempSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepCond2TempConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstCond2TempValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterCond2TempExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepCond2TempDeleteCmd}"
|
||
EditCommand="{Binding ProStepCond2TempEditCmd}"
|
||
IsTimeOk="{Binding MeterCond2TempExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterCond2TempItems}"
|
||
MeterName="COND2温度"
|
||
MeterSelectedChangedCmd="{Binding MeterCond2TempSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopCond2Temp, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterCond2TempSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterCond2TempExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="COND2压力 (barA)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepCond2PressAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepCond2PressSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepCond2PressConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstCond2PressValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterCond2PressExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepCond2PressDeleteCmd}"
|
||
EditCommand="{Binding ProStepCond2PressEditCmd}"
|
||
IsTimeOk="{Binding MeterCond2PressExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterCond2PressItems}"
|
||
MeterName="COND2压力"
|
||
MeterSelectedChangedCmd="{Binding MeterCond2PressSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopCond2Press, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterCond2PressSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterCond2PressExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="EVAP出口温度 (℃)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepEVAPExpTempAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepEVAPExpTempSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepEVAPExpTempConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstEVAPExpTempValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterEVAPExpTempExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepEVAPExpTempDeleteCmd}"
|
||
EditCommand="{Binding ProStepEVAPExpTempEditCmd}"
|
||
IsTimeOk="{Binding MeterEVAPExpTempExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterEVAPExpTempItems}"
|
||
MeterName="EVAP出口温度"
|
||
MeterSelectedChangedCmd="{Binding MeterEVAPExpTempSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopEVAPExpTemp, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterEVAPExpTempSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterEVAPExpTempExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="HV电压 (V)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepHVVolAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepHVVolSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepHVVolConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstHVVolValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterHVVolExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepHVVolDeleteCmd}"
|
||
EditCommand="{Binding ProStepHVVolEditCmd}"
|
||
IsTimeOk="{Binding MeterHVVolExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterHVVolItems}"
|
||
MeterName="HV电压"
|
||
MeterSelectedChangedCmd="{Binding MeterHVVolSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopHVVol, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterHVVolSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterHVVolExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="LV电压 (V)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepLVVolAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepLVVolSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepLVVolConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstLVVolValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterLVVolExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepLVVolDeleteCmd}"
|
||
EditCommand="{Binding ProStepLVVolEditCmd}"
|
||
IsTimeOk="{Binding MeterLVVolExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterLVVolItems}"
|
||
MeterName="LV电压"
|
||
MeterSelectedChangedCmd="{Binding MeterLVVolSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopLVVol, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterLVVolSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterLVVolExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="OCR (%)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepOCRAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepOCRSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepOCRConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstOCRValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterOCRExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepOCRDeleteCmd}"
|
||
EditCommand="{Binding ProStepOCREditCmd}"
|
||
IsTimeOk="{Binding MeterOCRExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterOCRItems}"
|
||
MeterName="OCR"
|
||
MeterSelectedChangedCmd="{Binding MeterOCRSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopOCR, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterOCRSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterOCRExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="OS1温度 (℃)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepOS1TempAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepOS1TempSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepOS1TempConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstOS1TempValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterOS1TempExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepOS1TempDeleteCmd}"
|
||
EditCommand="{Binding ProStepOS1TempEditCmd}"
|
||
IsTimeOk="{Binding MeterOS1TempExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterOS1TempItems}"
|
||
MeterName="OS1温度"
|
||
MeterSelectedChangedCmd="{Binding MeterOS1TempSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopOS1Temp, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterOS1TempSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterOS1TempExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="OS2温度 (℃)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepOS2TempAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepOS2TempSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepOS2TempConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstOS2TempValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterOS2TempExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepOS2TempDeleteCmd}"
|
||
EditCommand="{Binding ProStepOS2TempEditCmd}"
|
||
IsTimeOk="{Binding MeterOS2TempExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterOS2TempItems}"
|
||
MeterName="OS2温度"
|
||
MeterSelectedChangedCmd="{Binding MeterOS2TempSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopOS2Temp, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterOS2TempSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterOS2TempExDto.SlopTime}" />
|
||
</TabItem>
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="PTC入口温度 (℃)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepPTCEntTempAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepPTCEntTempSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepPTCEntTempConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstPTCEntTempValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterPTCEntTempExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepPTCEntTempDeleteCmd}"
|
||
EditCommand="{Binding ProStepPTCEntTempEditCmd}"
|
||
IsTimeOk="{Binding MeterPTCEntTempExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterPTCEntTempItems}"
|
||
MeterName="PTC入口温度"
|
||
MeterSelectedChangedCmd="{Binding MeterPTCEntTempSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopPTCEntTemp, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterPTCEntTempSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterPTCEntTempExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="PTC流量 (L/min)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepPTCFlowAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepPTCFlowSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepPTCFlowConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstPTCFlowValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterPTCFlowExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepPTCFlowDeleteCmd}"
|
||
EditCommand="{Binding ProStepPTCFlowEditCmd}"
|
||
IsTimeOk="{Binding MeterPTCFlowExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterPTCFlowItems}"
|
||
MeterName="PTC流量"
|
||
MeterSelectedChangedCmd="{Binding MeterPTCFlowSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopPTCFlow, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterPTCFlowSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterPTCFlowExDto.SlopTime}" />
|
||
</TabItem>
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="PTC功率 (W)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepPTCPwAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepPTCPwSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepPTCPwConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstPTCPwValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterPTCPwExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepPTCPwDeleteCmd}"
|
||
EditCommand="{Binding ProStepPTCPwEditCmd}"
|
||
IsTimeOk="{Binding MeterPTCPwExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterPTCPwItems}"
|
||
MeterName="PTC功率"
|
||
MeterSelectedChangedCmd="{Binding MeterPTCPwSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopPTCPw, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterPTCPwSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterPTCPwExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="压缩机环境湿度 (%)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepEnvRHAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepEnvRHSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepEnvRHConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstEnvRHValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterEnvRHExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepEnvRHDeleteCmd}"
|
||
EditCommand="{Binding ProStepEnvRHEditCmd}"
|
||
IsTimeOk="{Binding MeterEnvRHExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterEnvRHItems}"
|
||
MeterName="压缩机环境湿度"
|
||
MeterSelectedChangedCmd="{Binding MeterEnvRHSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopEnvRH, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterEnvRHSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterEnvRHExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
<TabItem>
|
||
<TabItem.Header>
|
||
<StackPanel
|
||
Width="90"
|
||
Margin="-20"
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="12"
|
||
FontWeight="Bold"
|
||
Text="压缩机环境温度 (℃)" />
|
||
</StackPanel>
|
||
</TabItem.Header>
|
||
<Controls:MeterConfig
|
||
Margin="5,5,0,5"
|
||
AddCommand="{Binding ProStepEnvTempAddCmd}"
|
||
ConstSlopSelectedIndex="{Binding ProStepEnvTempSwitchConstSlopIndex, Mode=TwoWay}"
|
||
ConstantSaveCommand="{Binding ProStepEnvTempConstantSaveCmd}"
|
||
ConstantValue="{Binding SelectedConstEnvTempValue, Mode=TwoWay}"
|
||
Cycle="{Binding MeterEnvTempExDto.SlopCycle}"
|
||
DeleteCommand="{Binding ProStepEnvTempDeleteCmd}"
|
||
EditCommand="{Binding ProStepEnvTempEditCmd}"
|
||
IsTimeOk="{Binding MeterEnvTempExDto.IsTimeOk}"
|
||
ListMeter="{Binding ListSlopMeterEnvTempItems}"
|
||
MeterName="压缩机环境温度"
|
||
MeterSelectedChangedCmd="{Binding MeterEnvTempSlopSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedSlopEnvTemp, Mode=TwoWay}"
|
||
SwitchConstSlopCommand="{Binding MeterEnvTempSwitchConstSlopCmd}"
|
||
TotalSlopTime="{Binding MeterEnvTempExDto.SlopTime}" />
|
||
</TabItem>
|
||
|
||
</TabControl>
|
||
|
||
|
||
|
||
<!--<StackPanel Margin="3">
|
||
-->
|
||
<!--<ContentControl
|
||
x:Name="ProStepContentControl"
|
||
Width="360"
|
||
Height="360"
|
||
Margin="10"
|
||
prism:RegionManager.RegionName="ProStepDrawerContentRegion" />-->
|
||
|
||
<!--<TabControl x:Name="OtherTabControl" HorizontalContentAlignment="Left">
|
||
<TabItem Header="Ps配置">
|
||
<Controls:MeterConfig
|
||
AddCommand="{Binding ProStepPsAddCmd}"
|
||
DeleteCommand="{Binding ProStepPsDeleteCmd}"
|
||
EditCommand="{Binding ProStepPsEditCmd}"
|
||
ListMeter="{Binding ListMeterPsItems}"
|
||
MeterName="Ps"
|
||
MeterSelectedChangedCmd="{Binding MeterPsSelectedChangedCmd}"
|
||
SelectedMeter="{Binding SelectedPs}" />
|
||
</TabItem>
|
||
<TabItem Header="Pd2配置">
|
||
<TextBlock Margin="8" Text="Not filled, required width, tab 2" />
|
||
</TabItem>
|
||
<TabItem Header="Pd3配置">
|
||
<TextBlock Margin="8" Text="Not filled, required width, tab 3" />
|
||
</TabItem>
|
||
<TabItem Header="Pd4配置">
|
||
<TextBlock Margin="8" Text="Not filled, required width, tab 4" />
|
||
</TabItem>
|
||
<TabItem Header="Pd5配置">
|
||
<TextBlock Margin="8" Text="Not filled, required width, tab 4" />
|
||
</TabItem>
|
||
<TabItem Header="Pd6配置">
|
||
<TextBlock Margin="8" Text="Not filled, required width, tab 4" />
|
||
</TabItem>
|
||
<TabItem Header="Pd7配置">
|
||
<TextBlock Margin="8" Text="Not filled, required width, tab 4" />
|
||
</TabItem>
|
||
<TabItem Header="Pd8配置">
|
||
<TextBlock Margin="8" Text="Not filled, required width, tab 4" />
|
||
</TabItem>
|
||
<TabItem Header="Pd9配置">
|
||
<TextBlock Margin="8" Text="Not filled, required width, tab 4" />
|
||
</TabItem>
|
||
<TabItem Header="Pd10配置">
|
||
<TextBlock Margin="8" Text="Not filled, required width, tab 4" />
|
||
</TabItem>
|
||
<TabItem Header="Pd11配置">
|
||
<TextBlock Margin="8" Text="Not filled, required width, tab 4" />
|
||
</TabItem>
|
||
<TabItem Header="Pd12配置">
|
||
<TextBlock Margin="8" Text="Not filled, required width, tab 4" />
|
||
</TabItem>
|
||
</TabControl>-->
|
||
<!--
|
||
</StackPanel>-->
|
||
|
||
<!-- 其他的参数设置 Grid.Row="1" Margin="3" SelectedIndex="{Binding TabSelectedIndex, RelativeSource={RelativeSource AncestorType={x:Type local:ProConfigView}}}" -->
|
||
|
||
|
||
|
||
</Grid>
|
||
</Border>
|
||
|
||
</Grid>
|
||
<!-- 工况选择 -->
|
||
<Grid Grid.Row="1">
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition />
|
||
<RowDefinition />
|
||
</Grid.RowDefinitions>
|
||
<Border
|
||
Margin="2,1"
|
||
BorderBrush="Gray"
|
||
BorderThickness="1">
|
||
<TextBlock
|
||
HorizontalAlignment="Center"
|
||
VerticalAlignment="Center"
|
||
FontSize="26"
|
||
Text="运行工况选择 ->" />
|
||
</Border>
|
||
<Border
|
||
Grid.Row="1"
|
||
Margin="2,1"
|
||
BorderBrush="Gray"
|
||
BorderThickness="1">
|
||
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
|
||
<Button
|
||
Margin="5"
|
||
Command="{Binding ProRunSelectedAdd}"
|
||
Content="增加"
|
||
Foreground="White"
|
||
ToolTip="增加" />
|
||
<Button
|
||
Margin="5"
|
||
Background="Orange"
|
||
Command="{Binding ProRunSelectedDelete}"
|
||
Content="删除"
|
||
Foreground="White"
|
||
ToolTip="删除" />
|
||
<Button
|
||
Margin="5"
|
||
Command="{Binding GenProPlcCmd}"
|
||
Content="下载"
|
||
Foreground="White"
|
||
ToolTip="下载" />
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
</Grid>
|
||
<Grid
|
||
Grid.Row="1"
|
||
Grid.Column="1"
|
||
Margin="2,1">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="50" />
|
||
<ColumnDefinition Width="2*" />
|
||
<ColumnDefinition />
|
||
</Grid.ColumnDefinitions>
|
||
<Border>
|
||
<TextBlock
|
||
VerticalAlignment="Center"
|
||
FontSize="24"
|
||
Text="当前激活工况"
|
||
TextWrapping="Wrap" />
|
||
</Border>
|
||
<Border
|
||
Grid.Column="1"
|
||
Margin="5,1"
|
||
BorderBrush="Gray"
|
||
BorderThickness="1">
|
||
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled">
|
||
|
||
<ListBox ItemsSource="{Binding ProSegRunListViewItems}" SelectedItem="{Binding ProSegRunSelectedItems}">
|
||
<ListBox.Template>
|
||
<ControlTemplate TargetType="{x:Type ListBox}">
|
||
<StackPanel IsItemsHost="True" Orientation="Horizontal" />
|
||
</ControlTemplate>
|
||
</ListBox.Template>
|
||
<ListBox.ItemTemplate>
|
||
<DataTemplate>
|
||
<Border
|
||
Width="70"
|
||
Height="90"
|
||
Margin="-5,-6"
|
||
Background="LimeGreen"
|
||
BorderBrush="Blue"
|
||
BorderThickness="1">
|
||
<StackPanel>
|
||
<TextBlock
|
||
FontSize="16"
|
||
Foreground="White"
|
||
Text="{Binding Name}"
|
||
TextWrapping="Wrap" />
|
||
</StackPanel>
|
||
</Border>
|
||
</DataTemplate>
|
||
|
||
</ListBox.ItemTemplate>
|
||
</ListBox>
|
||
<!--<ItemsControl ItemsSource="{Binding ProSegRunListViewItems}">
|
||
<ItemsControl.ItemsPanel>
|
||
<ItemsPanelTemplate>
|
||
<StackPanel Orientation="Horizontal" />
|
||
</ItemsPanelTemplate>
|
||
</ItemsControl.ItemsPanel>
|
||
<ItemsControl.ItemTemplate>
|
||
<DataTemplate>
|
||
<Border
|
||
Width="100"
|
||
Margin="1"
|
||
Background="LightGray"
|
||
BorderBrush="Blue"
|
||
BorderThickness="1">
|
||
<StackPanel>
|
||
<TextBlock
|
||
FontSize="20"
|
||
Text="{Binding Name}"
|
||
TextAlignment="Justify"
|
||
TextWrapping="Wrap" />
|
||
<ScrollViewer>
|
||
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||
</ScrollViewer>
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
</DataTemplate>
|
||
</ItemsControl.ItemTemplate>
|
||
</ItemsControl>-->
|
||
|
||
</ScrollViewer>
|
||
</Border>
|
||
|
||
</Grid>
|
||
</Grid>
|
||
</materialDesign:DrawerHost>
|
||
</UserControl>
|