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

151 lines
11 KiB

<windows:BaseWindow
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
x:Class="Kingo.Plugin.DataDictionary.Views.FrmDicManage"
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"
mc:Ignorable="d" Title="数据字典编辑" Closed="BaseWindow_Closed"
Width="900" Height="520">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="470"/>
<RowDefinition Height="60"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="250"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="350"/>
</Grid.ColumnDefinitions>
<Grid.Resources>
<HierarchicalDataTemplate x:Key="ItemNode" ItemsSource="{Binding Nodes,Mode=TwoWay}">
<StackPanel Orientation="Horizontal" Height="28" ContextMenu="{Binding cMenu}">
<Image Width="18" Source="{Binding Icon}" Height="18" Margin="8,0" />
<TextBlock Name="txtBox" Text="{Binding Name}" FontSize="13" VerticalAlignment="Center" Margin="3,0,0,0">
</TextBlock>
</StackPanel>
<HierarchicalDataTemplate.Triggers>
<DataTrigger Binding="{Binding IsOpenEdit,Mode=TwoWay}" Value="true">
<Setter TargetName="txtBox" Property="Foreground" Value="Red" />
</DataTrigger>
</HierarchicalDataTemplate.Triggers>
</HierarchicalDataTemplate>
</Grid.Resources>
<GroupBox Header="代码类型" Grid.Column="0" HorizontalAlignment="Stretch" Name="gbCode" VerticalAlignment="Stretch" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<TreeView Grid.Row="0" x:Name="tvTypes" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ItemTemplate="{StaticResource ItemNode}"
SelectedItemChanged="tvProperties_SelectedItemChanged" >
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="IsExpanded" Value="{Binding IsExpanded}"></Setter>
<Setter Property="IsSelected" Value="{Binding Checked}"></Setter>
<EventSetter Event="TreeViewItem.PreviewMouseRightButtonDown" Handler="tvTypes_PreviewMouseRightButtonDown"/>
</Style>
</TreeView.ItemContainerStyle>
</TreeView>
<StackPanel Grid.Row="1" HorizontalAlignment="Stretch" Orientation="Horizontal" Margin="0,5,0,0">
<Button Name="btnAdd" Content="添 加" Margin="0,0,10,0" Click="btnAdd_Click" />
<Button Name="btnEdit" Content="编 辑" Margin="10,0,10,0" Click="btnEdit_Click" />
<Button Name="btnDel" Content="删 除" Margin="10,0,0,0" Click="btnDel_Click"/>
<Button Name="btnClose" Content="退 出" Visibility="Collapsed" HorizontalAlignment="Right" Click="btnClose_Click" />
</StackPanel>
</Grid>
</GroupBox>
<GroupBox Header="代码及名称" Grid.Column="1" HorizontalAlignment="Stretch" Margin="5" Name="gbCodeEdit" VerticalAlignment="Stretch" >
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<TreeView Name="tvDicDetail" Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
SelectedItemChanged="tvDicDetail_SelectedItemChanged" ItemTemplate="{StaticResource ItemNode}">
<TreeView.ItemContainerStyle>
<Style TargetType="{x:Type TreeViewItem}">
<Setter Property="IsExpanded" Value="{Binding IsExpanded}"></Setter>
<Setter Property="IsSelected" Value="{Binding Checked}"></Setter>
</Style>
</TreeView.ItemContainerStyle>
</TreeView>
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0">
<Button Name="btnDetailAdd" Content="添 加" IsEnabled="False" Margin="0,0,10,0" Click="btnDetailAdd_Click" />
<Button Name="btnDetailEdit" Content="编 辑" IsEnabled="False" Margin="10,0,10,0" Click="btnDetailEdit_Click" />
<Button Name="btnDetailDel" Content="删 除" IsEnabled="False" Margin="10,0,0,0" Click="btnDetailDel_Click" />
</StackPanel>
</Grid>
</GroupBox>
<Grid Grid.Column="2" Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<GroupBox Header="详情信息" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
<Grid>
<Grid ShowGridLines="False" Margin="2,10" HorizontalAlignment="Stretch" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="75"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="35"/>
<RowDefinition Height="35"/>
<RowDefinition Height="35"/>
<RowDefinition Height="35"/>
<RowDefinition Height="170"/>
</Grid.RowDefinitions>
<TextBlock x: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="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="2">
<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="3">
<TextBlock Grid.Column="0" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center" Text="父级名称" />
</Border>
<Border BorderBrush="Black" Visibility="Collapsed" BorderThickness="1,0,1,1" Grid.Column="0" Grid.Row="4">
<TextBlock Grid.Column="0" Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center" Text="字典映射" />
</Border>
<Border BorderBrush="Black" BorderThickness="0,1,1,1" Grid.Column="1" Grid.Row="0">
<TextBlock x:Name="txtDicName" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Center" />
</Border>
<Border BorderBrush="Black" BorderThickness="0,0,1,1" Grid.Column="1" Grid.Row="1">
<TextBlock x:Name="txtAliasName" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Center" />
</Border>
<Border BorderBrush="Black" BorderThickness="0,0,1,1" Grid.Column="1" Grid.Row="2">
<TextBlock x:Name="txtCode" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Center"/>
</Border>
<Border BorderBrush="Black" BorderThickness="0,0,1,1" Grid.Column="1" Grid.Row="3">
<TextBlock x:Name="txtParentName" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center"/>
</Border>
<Border BorderBrush="Black" BorderThickness="0,0,1,1" Grid.Column="1" Grid.Row="5">
<ScrollViewer Grid.Column="0" Grid.Row="4" Grid.ColumnSpan="2" VerticalAlignment="Stretch" >
<TextBlock x:Name="txtRemark" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" />
</ScrollViewer>
</Border>
<Border BorderBrush="Black" BorderThickness="1,0,1,1" Grid.Column="0" Grid.Row="5">
<TextBlock Grid.Column="0" Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center" Text="描 述" />
</Border>
</Grid>
</Grid>
</GroupBox>
<GroupBox Height="80" Width="340" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5,10,0,0" Height="36">
<Button Name="btnDicImport" Content="字典导入" Width="95" Height="30" Margin="0,0,0,0" Click="btnDicImport_Click" />
<Button Name="btnDicExport" Content="字典导出" Width="95" Height="30" Margin="10,0,0,0" Click="btnDicExport_Click" />
<Button Name="btnCreateDicNew" Content="生成权属字典" Width="95" Height="30" Margin="10,0,0,0" Click="btnCreateDicNew_Click" />
</StackPanel>
</GroupBox>
</Grid>
<Grid Grid.ColumnSpan="3" Grid.Row="1">
<TextBlock Text="注:主要维护的是权属字典,其中权属字典的维护方式有三种:生成权属代码字典、导入权属代码表、字典导入" Margin="5,0" TextWrapping="Wrap" Foreground="Red" ></TextBlock>
</Grid>
</Grid>
</windows:BaseWindow>