20230201_145_upperpc/InSituLaboratory/Views/Pages/Dialogs/ModifySequentialView.xaml
2024-10-31 08:29:52 +08:00

50 lines
3.6 KiB
XML

<UserControl x:Class="InSituLaboratory.Views.Pages.Dialogs.ModifySequentialView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Dialogs"
xmlns:hc="https://handyorg.github.io/handycontrol"
mc:Ignorable="d" Height="440" Width="500"
FontFamily="{StaticResource SourceHanSansCN-Regular}"
Template="{StaticResource DialogViewTemplate}">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/>
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid Margin="10" FocusManager.FocusedElement="{Binding ElementName=pb}">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Text="子时序号" Grid.Row="0" VerticalAlignment="Center" Foreground="#888" />
<TextBlock Text="设备编号" Grid.Row="1" VerticalAlignment="Center" Foreground="#888"/>
<TextBlock Text="设备工作时长(min)" Grid.Row="2" VerticalAlignment="Center" Foreground="#888"/>
<TextBlock Text="循环间隔时长(min)" Grid.Row="3" VerticalAlignment="Center" Foreground="#888"/>
<TextBlock Text="启动延迟时间(min)" Grid.Row="4" VerticalAlignment="Center" Foreground="#888"/>
<TextBlock Text="循环次数(次)" Grid.Row="5" VerticalAlignment="Center" Foreground="#888"/>
<hc:ComboBox Grid.Row="0" Name="pb" Margin="0,9,0,8" Grid.Column="1" IsEditable="False" ItemsSource="{Binding SysNumberList}" DisplayMemberPath="Number" SelectedValuePath="Number" SelectedValue="{Binding SequenceGroup}" RenderTransformOrigin="0.498,0.193"/>
<hc:ComboBox Grid.Row="1" Margin="0,9,0,8" Grid.Column="1" IsEditable="False" ItemsSource="{Binding DeviceNodes}" DisplayMemberPath="DeviceName" SelectedValuePath="DeviceName" SelectedValue="{Binding SensorID}" RenderTransformOrigin="0.498,0.193"/>
<TextBox Grid.Row="2" Grid.Column="1" Margin="0,2" Height="30" Text="{Binding WorkTime}" Style="{StaticResource NormalTextBoxStyle}"/>
<TextBox Grid.Row="3" Grid.Column="1" Margin="0,2" Height="30" Text="{Binding DurationTime}" Style="{StaticResource NormalTextBoxStyle}"/>
<TextBox Grid.Row="4" Grid.Column="1" Margin="0,2" Height="30" Text="{Binding StartDelayTime}" Style="{StaticResource NormalTextBoxStyle}"/>
<TextBox Grid.Row="5" Grid.Column="1" Margin="0,2" Height="30" Text="{Binding NumberOfCycles}" Style="{StaticResource NormalTextBoxStyle}"/>
<TextBlock Grid.Row="6" Grid.Column="1" Text="注:子时序整体循环间隔时长、启动延迟时间、循环次数与子时序号绑定,请保持与首次设置一致!" Foreground="Red" TextWrapping="Wrap" VerticalAlignment="Center" FontSize="14"/>
</Grid>
</UserControl>