Tag模型
This commit is contained in:
@@ -7,8 +7,9 @@
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
Width="1920"
|
||||
Height="980"
|
||||
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
|
||||
d:DesignHeight="980"
|
||||
d:DesignWidth="1920"
|
||||
mc:Ignorable="d">
|
||||
<materialDesign:DrawerHost
|
||||
x:Name="DrawerHost"
|
||||
@@ -125,16 +126,214 @@
|
||||
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<!--<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="280" />
|
||||
</Grid.ColumnDefinitions>
|
||||
</Grid.ColumnDefinitions>-->
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="160" />
|
||||
<RowDefinition Height="200" />
|
||||
<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="排气压力(MPa)"
|
||||
MappingName="ExPress"
|
||||
NumberDecimalDigits="2" />
|
||||
<syncfusion:GridNumericColumn
|
||||
HeaderText="吸气压力(MPa)"
|
||||
MappingName="InhPress"
|
||||
NumberDecimalDigits="1" />
|
||||
<syncfusion:GridNumericColumn
|
||||
HeaderText="吸气温度(℃)"
|
||||
MappingName="InhTemp"
|
||||
NumberDecimalDigits="2" />
|
||||
|
||||
<syncfusion:GridNumericColumn
|
||||
HeaderText="COND1温度(℃)"
|
||||
MappingName="Cond1Temp"
|
||||
NumberDecimalDigits="1" />
|
||||
<syncfusion:GridNumericColumn
|
||||
HeaderText="润滑油压力(MPa)"
|
||||
MappingName="LubePress"
|
||||
NumberDecimalDigits="2" />
|
||||
<syncfusion:GridNumericColumn
|
||||
HeaderText="COND2压力(MPa)"
|
||||
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="0" />
|
||||
<syncfusion:GridNumericColumn
|
||||
HeaderText="环境温度(℃)"
|
||||
MappingName="EnvTemp"
|
||||
NumberDecimalDigits="0" />
|
||||
<syncfusion:GridNumericColumn
|
||||
HeaderText="OS1温度(℃)"
|
||||
MappingName="OS1Temp"
|
||||
NumberDecimalDigits="1" />
|
||||
<syncfusion:GridNumericColumn
|
||||
HeaderText="OS2温度(℃)"
|
||||
MappingName="OS2Temp"
|
||||
NumberDecimalDigits="1" />
|
||||
<syncfusion:GridNumericColumn
|
||||
HeaderText="EVAP出口温度(℃)"
|
||||
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: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="1" />
|
||||
|
||||
</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>
|
||||
<StackPanel
|
||||
Grid.Column="6"
|
||||
Margin="20,0"
|
||||
VerticalAlignment="Center">
|
||||
<TextBlock Text="值和数据" />
|
||||
<TextBlock Text="{Binding MachineRtDataService.TagInfo.RtValue.Value}" />
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</materialDesign:DrawerHost>
|
||||
</UserControl>
|
||||
|
||||
Reference in New Issue
Block a user