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

96 lines
7.0 KiB

6 months ago
<windows:BaseWindow
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils"
x:Class="Kingo.Plugin.MapView.Views.AppMenuView.UCSetWorkCatalog"
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:comboBox="clr-namespace:KUI.ComboBox;assembly=KUI"
xmlns:kui="clr-namespace:KUI;assembly=KUI"
xmlns:kuiBtn="clr-namespace:KUI.Button;assembly=KUI"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
mc:Ignorable="d" Title="设置工作目录"
Width="520" Height="380" ResizeMode="NoResize" >
<Grid Height="380" VerticalAlignment="Top">
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="200"/>
<RowDefinition Height="20"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid Grid.Row="0" Grid.ColumnSpan="2">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="90" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="90" />
</Grid.ColumnDefinitions>
<Label Content=" 工作目录:" VerticalAlignment="Center" HorizontalAlignment="Left" FontSize="16" Grid.Row="0"/>
<dxe:ComboBoxEdit x:Name="btnSetWorkPath" IsTextEditable="False" Grid.Column="1" FontSize="16" Height="30" SelectedIndexChanged="btnSetWorkPath_SelectedIndexChanged" />
<kuiBtn:KImgButton x:Name="btnSelectedWorkCatalog" Content="选 择" Width="70" Height="27" FontSize="16" Grid.Column="2" Click="BtnSelectedWorkCatalog_Click" Margin="8,0"/>
</Grid>
<GroupBox Header="行政区代码:" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1" Padding="0" Margin="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="37" />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="60" />
<ColumnDefinition />
<ColumnDefinition Width="60"/>
</Grid.ColumnDefinitions>
<Label Content=" 行政区:" FontSize="12" VerticalAlignment="Center" HorizontalAlignment="Left"/>
<comboBox:AutoCompleteBox x:Name="Box_XZQCode" VerticalContentAlignment="Center" Grid.Column="1" Text="{Binding CODE, UpdateSourceTrigger=LostFocus}" ValueMemberPath="CODE" DisplayMemberPath="DisplayName" Height="27"/>
<kuiBtn:KImgButton Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center" Content="添加" FontSize="12" Click="AddXZQCode_Click" Height="27" Width="46"/>
<Grid Grid.ColumnSpan="3" Grid.Row="1">
<Grid.Resources>
<HierarchicalDataTemplate x:Key="ItemNode" ItemsSource="{Binding}">
<StackPanel Orientation="Horizontal" Height="28">
<CheckBox Content="{Binding Descriction}" Margin="8,0" IsEnabled="{Binding IsEnabled}" IsChecked="{Binding IsChecked,Mode=TwoWay,UpdateSourceTrigger=LostFocus}" />
</StackPanel>
<!--<HierarchicalDataTemplate.Triggers>
<DataTrigger Binding="{Binding IsOpenEdit,Mode=TwoWay}" Value="true">
<Setter TargetName="txtBox" Property="Foreground" Value="Red" />
</DataTrigger>
</HierarchicalDataTemplate.Triggers>-->
</HierarchicalDataTemplate>
</Grid.Resources>
<ListBox x:Name="lbTBList" ItemTemplate="{StaticResource ItemNode}" ></ListBox>
</Grid>
<kui:PagingDataGrid x:Name="SelectXZQCodeData" Margin="0" Visibility="Collapsed" Grid.ColumnSpan="3" Grid.Row="1" HeadersVisibility="None" AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False" CanUserReorderColumns="False" Width="279" Height="123">
<kui:PagingDataGrid.Columns>
<DataGridTemplateColumn Width="*">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<CheckBox Content="{Binding Descriction}" Margin="8,0" IsChecked="{Binding IsChecked,Mode=TwoWay,UpdateSourceTrigger=LostFocus}" />
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</kui:PagingDataGrid.Columns>
</kui:PagingDataGrid>
</Grid>
</GroupBox>
<GroupBox Header="工作目录:" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1" Grid.Column="1" Grid.RowSpan="1" Padding="10" Margin="5">
<StackPanel HorizontalAlignment="Left">
<CheckBox Name="NCSJ" IsChecked="True" Content="年初数据" Height="23" HorizontalAlignment="Center" VerticalAlignment="Center" />
<CheckBox Name="GCML" IsChecked="True" Content="工程目录" Height="23" HorizontalAlignment="Center" VerticalAlignment="Center" />
<CheckBox Name="CKSJ" IsChecked="True" Content="参考数据" HorizontalAlignment="Center" VerticalAlignment="Center" Height="23" />
<CheckBox Name="JZCG" IsChecked="True" Content="举证成果" HorizontalAlignment="Center" VerticalAlignment="Center" Height="23" />
</StackPanel>
</GroupBox>
<StackPanel Orientation="Horizontal" Grid.Row="2" Grid.ColumnSpan="2">
<TextBlock Text="注:选择一个文件夹用来存放工作目录的文件,并将已有的工程文件在软件中进行加载" Margin="10,0,0,0" TextWrapping="Wrap" Width="450" Foreground="Red" ></TextBlock>
</StackPanel>
<StackPanel Grid.Row="3" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center" Width="250" Height="30" >
<kuiBtn:KImgButton x:Name="btnCreate" Content="加 载" Width="80" CornerRadius="3" Margin="20,0" Foreground="White" Click="btnExtract_Click" Cursor="Hand" />
<kuiBtn:KImgButton x:Name="btnCancel" Content="关 闭" Width="80" CornerRadius="3" Margin="28,0" Foreground="White" Click="btnConfirm_Click" />
</StackPanel>
</Grid>
</windows:BaseWindow>