年度变更建库软件5.0版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
4.3 KiB

<windows:BaseWindow
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
x:Class="Kingo.Plugin.DataDictionary.Views.DataDicDetailEdit"
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:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
mc:Ignorable="d" Title="新增字典项"
d:DesignHeight="350" d:DesignWidth="500" ResizeMode="NoResize" Loaded="BaseWindow_Loaded">
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="40" />
</Grid.RowDefinitions>
<dxlc:LayoutControl HorizontalAlignment="Stretch" Grid.Row="0" Name="validationContainer" VerticalAlignment="Stretch" Orientation="Vertical" dxe:ValidationService.IsValidationContainer="True">
<dxlc:LayoutGroup>
<dxlc:LayoutItem Label="字典名称:" LabelHorizontalAlignment="Right">
<dxe:TextEdit Name="txtName" MaxLength="50" AllowNullInput="False" ValidateOnEnterKeyPressed="True" Validate="Validate" InvalidValueBehavior="AllowLeaveEditor" Text="{Binding [NAME],Mode=TwoWay}"/>
</dxlc:LayoutItem>
</dxlc:LayoutGroup>
<dxlc:LayoutGroup>
<dxlc:LayoutItem Label="字典编码:" LabelHorizontalAlignment="Right">
<dxe:TextEdit Name="txtCode" MaxLength="50" AllowNullInput="False" ValidateOnEnterKeyPressed="True" Validate="Validate" InvalidValueBehavior="AllowLeaveEditor" Text="{Binding [CODE],Mode=TwoWay}" />
</dxlc:LayoutItem>
</dxlc:LayoutGroup>
<dxlc:LayoutGroup>
<dxlc:LayoutItem Label="排 序:" LabelHorizontalAlignment="Right">
<dxe:TextEdit Name="txtPaixu" MaxLength="50" AllowNullInput="False" ValidateOnEnterKeyPressed="True" Validate="Validate" InvalidValueBehavior="AllowLeaveEditor" Text="{Binding [PAIXU],Mode=TwoWay}" />
</dxlc:LayoutItem>
</dxlc:LayoutGroup>
<dxlc:LayoutGroup>
<dxlc:LayoutItem Label="父级分类:" LabelHorizontalAlignment="Right" >
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<dxe:TextEdit HorizontalAlignment="Stretch" Grid.Column="0" Name="ParentName" MaxLength="50" AllowNullInput="False" IsReadOnly="True" />
<Button Name="btnSelect" Visibility="Collapsed" Grid.Column="1" Content="选择" Margin="5,0" Click="btnSelect_Click" Width="50" />
<dxe:TextEdit Name="ParentID" Visibility="Collapsed" Grid.Column="1" />
</Grid>
</dxlc:LayoutItem>
</dxlc:LayoutGroup>
<dxlc:LayoutGroup>
<dxlc:LayoutItem Label="备 注:" LabelHorizontalAlignment="Right" LabelVerticalAlignment="Top" >
<dxe:TextEdit Name="txtRemark" TextWrapping="Wrap" AcceptsReturn ="True" VerticalScrollBarVisibility="Visible" Height="130" VerticalContentAlignment="Top" MaxLength="1000" Text="{Binding [REMARK],Mode=TwoWay}" />
</dxlc:LayoutItem>
</dxlc:LayoutGroup>
</dxlc:LayoutControl>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="2">
<Button Content="确 定" IsEnabled="{Binding Path=(dxe:ValidationService.HasValidationError),ElementName=validationContainer,Converter={dx:NegationConverter}}" Height="23" Name="btnSave" Width="75" Margin="10,0" Click="btnSave_Click" />
<Button Content="取 消" Height="23" Name="btnCancel" Width="75" Margin="10,0" Click="btnCancel_Click" />
</StackPanel>
</Grid>
</windows:BaseWindow>