年度变更建库软件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.

105 lines
8.1 KiB

6 months ago
<windows:BaseWindow
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
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"
x:Class="Kingo.Plugin.DataDictionary.Views.DataDicEdit"
mc:Ignorable="d" Title="新增字典"
Height="410" Width="550" ResizeMode="NoResize" >
<Grid>
<Grid.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/KUI;component/Themes/Style/GridStyle.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="40" />
</Grid.RowDefinitions>
<dxlc:LayoutControl HorizontalAlignment="Stretch" x:Name="validationContainer" VerticalAlignment="Stretch" Orientation="Vertical" dxe:ValidationService.IsValidationContainer="True">
<dxlc:LayoutGroup>
<dxlc:LayoutItem Label="" LabelHorizontalAlignment="Right">
<!--<dxe:TextEdit x:Name="txtName" MaxLength="20" AllowNullInput="False" ValidateOnEnterKeyPressed="True" Validate="Validate" Text="{Binding [NAME], Mode=TwoWay}"/>-->
<Grid ShowGridLines="False" HorizontalAlignment="Stretch" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="75"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="35"></RowDefinition>
<RowDefinition Height="35"></RowDefinition>
<RowDefinition Height="35"></RowDefinition>
<RowDefinition Height="35"></RowDefinition>
<RowDefinition Height="165"></RowDefinition>
</Grid.RowDefinitions>
<TextBlock Name="txtDicID" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center" Visibility="Hidden" />
<Border BorderBrush="Black" BorderThickness="1" Grid.Column="0" Grid.Row="0">
<TextBlock Grid.Column="0" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Text="字典名称:" />
</Border>
<Border BorderBrush="Black" BorderThickness="0,1,1,1" Grid.Column="1" Grid.Row="0">
<dxe:TextEdit Name="txtName" MaxLength="20" AllowNullInput="False" ValidateOnEnterKeyPressed="True" Validate="Validate" InvalidValueBehavior="AllowLeaveEditor" Text="{Binding [NAME],Mode=OneWay}" ShowBorder="False"/>
</Border>
<Border BorderBrush="Black" BorderThickness="1,0,1,1" Grid.Column="0" Grid.Row="1">
<TextBlock Grid.Column="0" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Text="字典别名:" />
</Border>
<Border BorderBrush="Black" BorderThickness="1,0,1,1" Grid.Column="0" Grid.Row="3">
<TextBlock Grid.Column="0" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Text="父级名称:" />
</Border>
<Border BorderBrush="Black" BorderThickness="1,0,1,1" Grid.Column="0" Grid.Row="2">
<TextBlock Grid.Column="0" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Text="排 序:" />
</Border>
<Border BorderBrush="Black" BorderThickness="0,0,1,1" Grid.Column="1" Grid.Row="2">
<dxe:TextEdit Name="txtPaixu" MaxLength="20" AllowNullInput="False" ValidateOnEnterKeyPressed="True" Validate="Validate" InvalidValueBehavior="AllowLeaveEditor" Text="{Binding [PAIXU],Mode=TwoWay}" ShowBorder="False"/>
</Border>
<Border BorderBrush="Black" BorderThickness="1,0,1,1" Grid.Column="0" Grid.Row="3">
<TextBlock Grid.Column="0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" Text="字段映射:" Visibility="Collapsed" />
</Border>
<Border BorderBrush="Black" BorderThickness="0,0,1,1" Grid.Column="1" Grid.Row="1">
<dxe:TextEdit x:Name="txtAliasName" MaxLength="20" AllowNullInput="False" ValidateOnEnterKeyPressed="True" Validate="Validate" InvalidValueBehavior="AllowLeaveEditor" Text="{Binding [ALIASNAME], Mode=OneWay}" ShowBorder="False" />
</Border>
<Border BorderBrush="Black" BorderThickness="0,0,1,1" Grid.Column="1" Grid.Row="3">
<ComboBox x:Name="ddlType"/>
</Border>
<Border BorderBrush="Black" Visibility="Collapsed" BorderThickness="0,0,1,1" Grid.Column="1" Grid.Row="3">
<Grid Height="150">
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition />
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Grid.Row="0">
</StackPanel>
<DataGrid x:Name="dgMapping" Grid.Row="1" IsReadOnly="True" AutoGenerateColumns="False">
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding TableName}" HeaderStyle="{StaticResource DataGridColumnHeader}" Width="100" Header="表(图层)"/>
<DataGridTextColumn Binding="{Binding FieldName}" HeaderStyle="{StaticResource DataGridColumnHeader}" Width="100" Header="字段"/>
</DataGrid.Columns>
</DataGrid>
</Grid>
</Border>
<Border BorderBrush="Black" BorderThickness="0,0,1,1" Grid.Column="1" Grid.Row="4">
<dxe:TextEdit x:Name="txtRemark" TextWrapping="Wrap" AcceptsReturn ="True" VerticalScrollBarVisibility="Visible" VerticalContentAlignment="Top" MaxLength="100" Text="{Binding [REMARK], Mode=OneWay}" ShowBorder="False" />
<!--Text="{Binding [REMARK], Mode=TwoWay}"-->
<!--白明雅 2018-12-28 bug13997-->
</Border>
<Border BorderBrush="Black" BorderThickness="1,0,1,1" Grid.Column="0" Grid.Row="4">
<TextBlock Grid.Column="0" Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center" Text="描 述" />
</Border>
</Grid>
</dxlc:LayoutItem>
</dxlc:LayoutGroup>
</dxlc:LayoutControl>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="2">
<Button Content="确 定" IsEnabled="{Binding (dxe:ValidationService.HasValidationError), Converter={dx:NegationConverter}, ElementName=validationContainer}" Height="23" x:Name="btnSave" Width="75" Margin="10,0" Click="btnSave_Click" />
<Button Content="取 消" Height="23" x:Name="btnCancel" Width="75" Margin="10,0" Click="btnCancel_Click" />
</StackPanel>
</Grid>
</windows:BaseWindow>