113 lines
3.3 KiB
Plaintext
113 lines
3.3 KiB
Plaintext
|
|
<basewindows:BaseWindow
|
|||
|
|
x:Class="SamplePre.UIWpf.ParamManager.chirld.NewActionWindow"
|
|||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|||
|
|
xmlns:basewindows="clr-namespace:SamplePre.UIWpf.BaseWindows"
|
|||
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|||
|
|
Title="新增动作"
|
|||
|
|
Width="400"
|
|||
|
|
Height="300"
|
|||
|
|
ResizeMode="NoResize"
|
|||
|
|
WindowStartupLocation="CenterScreen"
|
|||
|
|
mc:Ignorable="d">
|
|||
|
|
|
|||
|
|
<Grid Margin="10">
|
|||
|
|
<Grid.RowDefinitions>
|
|||
|
|
<RowDefinition Height="*" />
|
|||
|
|
<RowDefinition Height="50" />
|
|||
|
|
</Grid.RowDefinitions>
|
|||
|
|
<Grid>
|
|||
|
|
<Grid.RowDefinitions>
|
|||
|
|
<RowDefinition />
|
|||
|
|
<RowDefinition />
|
|||
|
|
<RowDefinition />
|
|||
|
|
<RowDefinition />
|
|||
|
|
<!--<RowDefinition/>
|
|||
|
|
<RowDefinition/>-->
|
|||
|
|
</Grid.RowDefinitions>
|
|||
|
|
<Grid.ColumnDefinitions>
|
|||
|
|
<ColumnDefinition Width="100" />
|
|||
|
|
<ColumnDefinition />
|
|||
|
|
</Grid.ColumnDefinitions>
|
|||
|
|
|
|||
|
|
<TextBlock VerticalAlignment="Center" Text="名称:" />
|
|||
|
|
<TextBox
|
|||
|
|
Grid.Column="1"
|
|||
|
|
Width="250"
|
|||
|
|
Height="30"
|
|||
|
|
HorizontalAlignment="Left"
|
|||
|
|
Text="{Binding SysAction.action_name}" />
|
|||
|
|
<TextBlock
|
|||
|
|
Grid.Row="3"
|
|||
|
|
VerticalAlignment="Center"
|
|||
|
|
Text="备注:" />
|
|||
|
|
<TextBox
|
|||
|
|
Grid.Row="3"
|
|||
|
|
Grid.Column="1"
|
|||
|
|
Width="250"
|
|||
|
|
Height="30"
|
|||
|
|
HorizontalAlignment="Left"
|
|||
|
|
Text="{Binding SysAction.remark}" />
|
|||
|
|
|
|||
|
|
<TextBlock
|
|||
|
|
Grid.Row="2"
|
|||
|
|
VerticalAlignment="Center"
|
|||
|
|
Text="动作单元:" />
|
|||
|
|
<ComboBox
|
|||
|
|
x:Name="cmbDataType"
|
|||
|
|
Grid.Row="2"
|
|||
|
|
Grid.Column="1"
|
|||
|
|
Width="250"
|
|||
|
|
Height="30"
|
|||
|
|
HorizontalAlignment="Left"
|
|||
|
|
DisplayMemberPath="data_type"
|
|||
|
|
ItemsSource="{Binding ActionUnits}"
|
|||
|
|
SelectedItem="{Binding SelectSysDict}"
|
|||
|
|
SelectedValuePath="id" />
|
|||
|
|
|
|||
|
|
<TextBlock
|
|||
|
|
Grid.Row="1"
|
|||
|
|
VerticalAlignment="Center"
|
|||
|
|
Text="PLC映射:" />
|
|||
|
|
<TextBox
|
|||
|
|
Grid.Row="1"
|
|||
|
|
Grid.Column="1"
|
|||
|
|
Width="250"
|
|||
|
|
Height="30"
|
|||
|
|
HorizontalAlignment="Left"
|
|||
|
|
Text="{Binding SysAction.plc_type}" />
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</Grid>
|
|||
|
|
|
|||
|
|
|
|||
|
|
<StackPanel
|
|||
|
|
Grid.Row="1"
|
|||
|
|
Margin="0,10,0,0"
|
|||
|
|
HorizontalAlignment="Center"
|
|||
|
|
Orientation="Horizontal">
|
|||
|
|
<Button
|
|||
|
|
x:Name="btnOK"
|
|||
|
|
Width="80"
|
|||
|
|
Margin="5"
|
|||
|
|
Click="btnOK_Click"
|
|||
|
|
Content="确定" />
|
|||
|
|
<Button
|
|||
|
|
x:Name="btnCancel"
|
|||
|
|
Width="80"
|
|||
|
|
Margin="5"
|
|||
|
|
Click="btnCancel_Click"
|
|||
|
|
Content="取消" />
|
|||
|
|
</StackPanel>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</Grid>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
</basewindows:BaseWindow>
|