335 lines
15 KiB
XML
335 lines
15 KiB
XML
<UserControl
|
|
x:Class="CapMachine.Wpf.Views.QuickMeterStepView"
|
|
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: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/"
|
|
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
|
|
d:DesignHeight="980"
|
|
d:DesignWidth="1920"
|
|
mc:Ignorable="d">
|
|
<materialDesign:DrawerHost
|
|
x:Name="DrawerHost"
|
|
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 Margin="16">
|
|
<TextBlock
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Text="THE RIGHT STUFF" />
|
|
<Button
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Right}"
|
|
Content="CLOSE THIS"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
<Button
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
Content="CLOSE ALL"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
</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 />
|
|
<ColumnDefinition Width="280" />
|
|
</Grid.ColumnDefinitions>-->
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition Height="50" />
|
|
</Grid.RowDefinitions>
|
|
<syncfusion:SfDataGrid
|
|
x:Name="sfdatagrid"
|
|
Margin="2"
|
|
AddNewRowPosition="Bottom"
|
|
AllowEditing="True"
|
|
AutoGenerateColumns="False"
|
|
ColumnSizer="Auto"
|
|
EditTrigger="OnTap"
|
|
ItemsSource="{Binding ListQuickMeterStepDto}"
|
|
LiveDataUpdateMode="AllowDataShaping"
|
|
ShowRowHeader="True">
|
|
<syncfusion:SfDataGrid.Columns>
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="序号"
|
|
MappingName="StepNo"
|
|
NumberDecimalDigits="0" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="时间(min)"
|
|
MappingName="TimeMin"
|
|
NumberDecimalDigits="0" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="时间(sec)"
|
|
MappingName="TimeSec"
|
|
NumberDecimalDigits="0" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="次数"
|
|
MappingName="Cycle"
|
|
NumberDecimalDigits="0" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="速度(r/min)"
|
|
MappingName="Speed"
|
|
NumberDecimalDigits="0" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="排气压力(BarA)"
|
|
MappingName="ExPress"
|
|
NumberDecimalDigits="2" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="吸气压力(BarA)"
|
|
MappingName="InhPress"
|
|
NumberDecimalDigits="2" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="吸气温度(℃)"
|
|
MappingName="InhTemp"
|
|
NumberDecimalDigits="1" />
|
|
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="COND1温度(℃)"
|
|
MappingName="Cond1Temp"
|
|
NumberDecimalDigits="1" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="润滑油压力(BarA)"
|
|
MappingName="LubePress"
|
|
NumberDecimalDigits="2" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="COND2压力(BarA)"
|
|
MappingName="Cond2Press"
|
|
NumberDecimalDigits="2" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="OCR(%)"
|
|
MappingName="OCR"
|
|
NumberDecimalDigits="1" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="HV电压(V)"
|
|
MappingName="HVVol"
|
|
NumberDecimalDigits="1" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="LV电压(V)"
|
|
MappingName="LVVol"
|
|
NumberDecimalDigits="1" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="阀前温度(℃)"
|
|
MappingName="EnvRH"
|
|
NumberDecimalDigits="1" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="环境温度(℃)"
|
|
MappingName="EnvTemp"
|
|
NumberDecimalDigits="1" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="OS1温度(℃)"
|
|
MappingName="OS1Temp"
|
|
NumberDecimalDigits="1" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="OS2温度(℃)"
|
|
MappingName="OS2Temp"
|
|
NumberDecimalDigits="1" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="吸气电加热温度(℃)"
|
|
MappingName="EVAPExpTemp"
|
|
NumberDecimalDigits="1" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="COND2温度(℃)"
|
|
MappingName="Cond2Temp"
|
|
NumberDecimalDigits="1" />
|
|
|
|
<syncfusion:GridCheckBoxColumn HeaderText="输出锁定" MappingName="OutLock" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="参数编号"
|
|
MappingName="ParNo"
|
|
NumberDecimalDigits="0" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="EV"
|
|
MappingName="EV"
|
|
NumberDecimalDigits="0" />
|
|
<syncfusion:GridCheckBoxColumn HeaderText="使能" MappingName="CapEnable" />
|
|
<syncfusion:GridCheckBoxColumn HeaderText="吸排气阀" MappingName="InhExhValve" />
|
|
<syncfusion:GridCheckBoxColumn HeaderText="PTC使能" MappingName="PTCEnable" />
|
|
|
|
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="PTC入口温度(℃)"
|
|
MappingName="PTCEntTemp"
|
|
NumberDecimalDigits="1" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="PTC流量(L/min)"
|
|
MappingName="PTCFlow"
|
|
NumberDecimalDigits="1" />
|
|
<syncfusion:GridNumericColumn
|
|
HeaderText="PTC功率(W)"
|
|
MappingName="PTCPw"
|
|
NumberDecimalDigits="0" />
|
|
|
|
</syncfusion:SfDataGrid.Columns>
|
|
</syncfusion:SfDataGrid>
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel Margin="20,0" VerticalAlignment="Center">
|
|
<TextBlock
|
|
Margin="2"
|
|
HorizontalAlignment="Center"
|
|
FontSize="16"
|
|
Foreground="Blue"
|
|
Text="数据来源" />
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
FontSize="16"
|
|
Text="{Binding DataSourceStr}" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Column="1"
|
|
Margin="20,0"
|
|
VerticalAlignment="Center">
|
|
<Button
|
|
Command="{Binding ProStepLoadFileCmd}"
|
|
Content="加载Excel文件"
|
|
Foreground="White" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Column="2"
|
|
Margin="20,0"
|
|
VerticalAlignment="Center">
|
|
<Button
|
|
Command="{Binding ProStepExpFileCmd}"
|
|
Content="导出到Excel文件"
|
|
Foreground="White" />
|
|
</StackPanel>
|
|
<!--<StackPanel
|
|
Grid.Column="3"
|
|
Margin="20,0"
|
|
VerticalAlignment="Center">
|
|
<Button
|
|
Command="{Binding ProStepDbSelectedCmd}"
|
|
Content="工况库选择"
|
|
Foreground="White" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Column="4"
|
|
Margin="20,0"
|
|
VerticalAlignment="Center">
|
|
<Button
|
|
Command="{Binding ProStepSaveDbCmd}"
|
|
Content="保存到工况库"
|
|
Foreground="White" />
|
|
</StackPanel>-->
|
|
<StackPanel
|
|
Grid.Column="5"
|
|
Margin="20,0"
|
|
VerticalAlignment="Center">
|
|
<Button
|
|
Command="{Binding ProStepLoadPlcCmd}"
|
|
Content="下载到PLC"
|
|
Foreground="White" />
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
</Grid>
|
|
</materialDesign:DrawerHost>
|
|
</UserControl>
|