|
@@ -15,7 +15,13 @@
|
|
|
Width="800"
|
|
|
>
|
|
|
<Grid>
|
|
|
- <Canvas IsEnabled="{Binding IsPermission}">
|
|
|
+
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="40"></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition Height="50"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
<Button Content="All Power ON" Visibility="{Binding PowerOnVisibility,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" Foreground="{DynamicResource FG_Black}" Canvas.Left="10" Canvas.Top="10" FontSize="16" Height="40" Width="150" FontFamily="Arial" >
|
|
|
<i:Interaction.Triggers>
|
|
|
<i:EventTrigger EventName="Click">
|
|
@@ -34,69 +40,105 @@
|
|
|
</i:EventTrigger>
|
|
|
</i:Interaction.Triggers>
|
|
|
</Button>
|
|
|
- <DataGrid Margin="0,60,0,0" Width="800" ItemsSource="{Binding FFUDataList}" AutoGenerateColumns="False" CanUserAddRows="False" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
|
|
- <DataGrid.Columns>
|
|
|
- <DataGridTemplateColumn Width="*" Header="Name">
|
|
|
- <DataGridTemplateColumn.CellTemplate>
|
|
|
- <DataTemplate>
|
|
|
- <TextBlock Text="{Binding DisplayName}" FontSize="14" TextAlignment="Center"/>
|
|
|
- </DataTemplate>
|
|
|
- </DataGridTemplateColumn.CellTemplate>
|
|
|
- </DataGridTemplateColumn>
|
|
|
- <DataGridTemplateColumn Width="*" Header="Feedback">
|
|
|
- <DataGridTemplateColumn.CellTemplate>
|
|
|
- <DataTemplate>
|
|
|
- <TextBlock Text="{Binding ActualValue, StringFormat={}{0:f3}}" FontSize="14" TextAlignment="Center"/>
|
|
|
- </DataTemplate>
|
|
|
- </DataGridTemplateColumn.CellTemplate>
|
|
|
- </DataGridTemplateColumn>
|
|
|
- <!--<DataGridTemplateColumn Width="100" Header="Min">
|
|
|
+
|
|
|
+ <Button Content="All Set" Foreground="{DynamicResource FG_Black}" Margin="20,0,0,0" FontSize="16" Height="40" Width="150" FontFamily="Arial" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="AllSetClick">
|
|
|
+ <cal:Parameter Value="$source"/>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
+
|
|
|
+
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <DataGrid Grid.Row="1" Margin="0,10,0,0" Width="800" ItemsSource="{Binding FFUDataList}" AutoGenerateColumns="False" CanUserAddRows="False" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
|
|
+ <DataGrid.Columns>
|
|
|
+ <DataGridTemplateColumn Width="*" Header="Name">
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
<DataTemplate>
|
|
|
- <TextBlock Text="{Binding MinValue}" FontSize="14" TextAlignment="Center"/>
|
|
|
+ <TextBlock Text="{Binding DisplayName}" FontSize="14" TextAlignment="Center"/>
|
|
|
</DataTemplate>
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
- </DataGridTemplateColumn>-->
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+ <DataGridTemplateColumn Width="*" Header="Feedback">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding ActualValue, StringFormat={}{0:f3}}" FontSize="14" TextAlignment="Center"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+ <!--<DataGridTemplateColumn Width="100" Header="Min">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding MinValue}" FontSize="14" TextAlignment="Center"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>-->
|
|
|
+
|
|
|
+ <DataGridTemplateColumn Width="100" Header="Set">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <controls:TextBoxEx Cursor="Hand" EditBoxMode="Decimal" KeepDecimals="3" ChangedColor="Yellow" Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}" FontSize="14" TextAlignment="Center" Tag="Number">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="TextChanged">
|
|
|
+ <cal:ActionMessage MethodName="SetValueTextChanged">
|
|
|
+ <cal:Parameter Value="Value"></cal:Parameter>
|
|
|
+ <cal:Parameter Value="$source"></cal:Parameter>
|
|
|
+ <cal:Parameter Value="{Binding}"></cal:Parameter>
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
|
|
|
- <DataGridTemplateColumn Width="100" Header="Set">
|
|
|
- <DataGridTemplateColumn.CellTemplate>
|
|
|
- <DataTemplate>
|
|
|
- <controls:TextBoxEx Cursor="Hand" EditBoxMode="Decimal" KeepDecimals="3" ChangedColor="Yellow" Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}" FontSize="14" TextAlignment="Center" Tag="Number">
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="TextChanged">
|
|
|
- <cal:ActionMessage MethodName="SetValueTextChanged">
|
|
|
- <cal:Parameter Value="Value"></cal:Parameter>
|
|
|
- <cal:Parameter Value="$source"></cal:Parameter>
|
|
|
- <cal:Parameter Value="{Binding}"></cal:Parameter>
|
|
|
- </cal:ActionMessage>
|
|
|
- </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </controls:TextBoxEx>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+ <!--<DataGridTemplateColumn Width="100" Header="Max">
|
|
|
+ <DataGridTemplateColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <TextBlock Text="{Binding MaxValue, StringFormat={}{0:f3}}" FontSize="14" TextAlignment="Center"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </DataGridTemplateColumn.CellTemplate>
|
|
|
+ </DataGridTemplateColumn>-->
|
|
|
|
|
|
- </i:Interaction.Triggers>
|
|
|
- </controls:TextBoxEx>
|
|
|
- </DataTemplate>
|
|
|
- </DataGridTemplateColumn.CellTemplate>
|
|
|
- </DataGridTemplateColumn>
|
|
|
- <!--<DataGridTemplateColumn Width="100" Header="Max">
|
|
|
+ <DataGridTemplateColumn Header="Status" Width="*" IsReadOnly="True">
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
<DataTemplate>
|
|
|
- <TextBlock Text="{Binding MaxValue, StringFormat={}{0:f3}}" FontSize="14" TextAlignment="Center"/>
|
|
|
+ <Label Width="150" HorizontalContentAlignment="Center" Grid.Column="0" >
|
|
|
+ <deviceControl:AITSensor CustomColorOn="Green" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding IsSwitch}" EnableToolTip="False"/>
|
|
|
+ </Label>
|
|
|
</DataTemplate>
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
- </DataGridTemplateColumn>-->
|
|
|
+ </DataGridTemplateColumn>
|
|
|
+
|
|
|
+ </DataGrid.Columns>
|
|
|
+ </DataGrid>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- <DataGridTemplateColumn Header="Status" Width="*" IsReadOnly="True">
|
|
|
- <DataGridTemplateColumn.CellTemplate>
|
|
|
- <DataTemplate>
|
|
|
- <Label Width="150" HorizontalContentAlignment="Center" Grid.Column="0" >
|
|
|
- <deviceControl:AITSensor CustomColorOn="Green" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding IsSwitch}" EnableToolTip="False"/>
|
|
|
- </Label>
|
|
|
- </DataTemplate>
|
|
|
- </DataGridTemplateColumn.CellTemplate>
|
|
|
- </DataGridTemplateColumn>
|
|
|
+ <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
+
|
|
|
+ <Button Content="Save" Foreground="{DynamicResource FG_Black}" Margin="20,0,0,0" FontSize="16" Height="40" Width="150" FontFamily="Arial" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="Save">
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
|
|
|
- </DataGrid.Columns>
|
|
|
- </DataGrid>
|
|
|
- </Canvas>
|
|
|
+ <Button Content="Cancle" Foreground="{DynamicResource FG_Black}" Margin="20,0,0,0" FontSize="16" Height="40" Width="150" FontFamily="Arial" >
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="Cancle">
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
|
|
|
</Grid>
|
|
|
</UserControl>
|