|
|
|
|
<UserControl x:Class="Kingo.Plugin.NYYP.View.UCYWTBYPList"
|
|
|
|
|
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:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
|
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
|
|
|
xmlns:kui="clr-namespace:KUI;assembly=KUI"
|
|
|
|
|
xmlns:btn="clr-namespace:KUI.Button;assembly=KUI"
|
|
|
|
|
mc:Ignorable="d" d:DesignHeight="500" d:DesignWidth="1200">
|
|
|
|
|
<UserControl.Resources>
|
|
|
|
|
<ResourceDictionary>
|
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
|
|
<ResourceDictionary Source="/Kingo.Plugin.NYYP;component/Style/ControlsStyle.xaml" />
|
|
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
|
</ResourceDictionary>
|
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
|
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
|
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<kui:PagingDataGrid x:Name="dgCtrl" IsReadOnly="True" CanUserAddRows="False" IsShowPaging="False"
|
|
|
|
|
Total="{Binding Count,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
PageSize="{Binding PageSize,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
SelectionChanged="DgCtrl_SelectionChanged"
|
|
|
|
|
ItemsSource="{Binding SourceData, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True, Mode=TwoWay}"
|
|
|
|
|
SelectedValue="{Binding CurrentItem,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
SelectedValuePath="Row"
|
|
|
|
|
SelectedIndex="{Binding CurrentIndex,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
|
AutoGeneratingColumn="DgCtrl_AutoGeneratingColumn">
|
|
|
|
|
<kui:PagingDataGrid.EditButtonList>
|
|
|
|
|
<Label Content="选择字段:" VerticalContentAlignment="Center" />
|
|
|
|
|
<ComboBox Name="cbFields" Width="150" Height="27" Margin="10,0,0,0" ItemsSource="{Binding
|
|
|
|
|
FieldList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectedItem="{Binding YWTBField, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="AliasName" SelectedValuePath="Name">
|
|
|
|
|
</ComboBox>
|
|
|
|
|
<Label Content="搜索内容:" VerticalContentAlignment="Center" Margin="10,0,0,0"/>
|
|
|
|
|
<TextBox Width="200" Text="{Binding SearchKey,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" VerticalContentAlignment="Center" />
|
|
|
|
|
<Label Content="图斑预判结果:" VerticalContentAlignment="Center" Margin="10,0,0,0"/>
|
|
|
|
|
<ComboBox Name="cbTBYPJG" Width="200" Height="27" Margin="10,0,0,0" ItemsSource="{Binding
|
|
|
|
|
TBYPResult,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectedItem="{Binding tbypResult, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="Name" SelectedValuePath="Index">
|
|
|
|
|
</ComboBox>
|
|
|
|
|
<kui:KFontIconButton FIcon="" Height="27" Width="70" Margin="10,0" Content="搜索" Click="Search_Click" />
|
|
|
|
|
<Label Content="预判进度:" VerticalContentAlignment="Center" Margin="10,0,0,0"/>
|
|
|
|
|
<dxe:ProgressBarEdit Name="pro_Progress" Width="200" Height="20" IsPercent="False" ContentDisplayMode="Content" Foreground="Black" Margin="10,0">
|
|
|
|
|
</dxe:ProgressBarEdit>
|
|
|
|
|
</kui:PagingDataGrid.EditButtonList>
|
|
|
|
|
<kui:PagingDataGrid.PageSizeItemsSource>
|
|
|
|
|
<sys:Int32>200</sys:Int32>
|
|
|
|
|
<sys:Int32>500</sys:Int32>
|
|
|
|
|
<sys:Int32>1000</sys:Int32>
|
|
|
|
|
</kui:PagingDataGrid.PageSizeItemsSource>
|
|
|
|
|
</kui:PagingDataGrid>
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.Row="1" Visibility="Visible" >
|
|
|
|
|
<Label Content="图层总条数:" VerticalContentAlignment="Center" Margin="5,0,0,0" ></Label>
|
|
|
|
|
<Label x:Name="lblCount" VerticalContentAlignment="Center" Margin="5,0,0,0" ></Label>
|
|
|
|
|
<Label Content="当前已加载:" VerticalContentAlignment="Center" Margin="5,0,0,0" ></Label>
|
|
|
|
|
<Label x:Name="lblCurrentCount" VerticalContentAlignment="Center" Margin="5,0,0,0" ></Label>
|
|
|
|
|
<TextBlock Width="70" Margin="10,0,0,0" VerticalAlignment="Center">
|
|
|
|
|
<Hyperlink Name="HypeLinkLoadAll" Click="LoadAllData_Click" >加载全部</Hyperlink>
|
|
|
|
|
</TextBlock>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Row="2" Margin="5" Visibility="Visible" >
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="350"></ColumnDefinition>
|
|
|
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Visibility="Collapsed">
|
|
|
|
|
<Button x:Name="btnAll" Content="加 载 全 部" Width="100" Command="{Binding ShowAllData}" IsEnabled="True" ></Button>
|
|
|
|
|
<Button x:Name="btnShowSelect" Content="显示选中数据" Margin="15,0,0,0" Width="100" Command="{Binding ShowSelectedData}" CommandParameter="{Binding ElementName=gcNYHS}"></Button>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Column="1" Visibility="Collapsed">
|
|
|
|
|
<Button x:Name="btnExportDB" Content="导出举证数据" Margin="15,0,15,0" Width="100" Command="{Binding ExportJZXX }" CommandParameter="{Binding View, ElementName=gcNYHS}"></Button>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Column="1" Visibility="Collapsed">
|
|
|
|
|
<Button x:Name="btnExportExcel" Content="导出Excel" Margin="15,0,15,0" Width="100" Command="{Binding ExportExcel }" CommandParameter="{Binding View, ElementName=gcNYHS}"></Button>
|
|
|
|
|
<Label Content="导出矢量类型:" Margin="0,3,0,0" ></Label>
|
|
|
|
|
<ComboBox x:Name="cmbType" Width="70" Margin="0,0,5,0" VerticalContentAlignment="Center" SelectedIndex="{Binding CmbTypeSelectedIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
|
|
|
|
<ComboBoxItem IsSelected="True">SHAPE</ComboBoxItem>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
<Button x:Name="btnExportVector" Content="导出矢量数据" Margin="0,0,15,0" Width="100" Command="{Binding ExportVector}"></Button>
|
|
|
|
|
<ComboBox x:Name="cmbFiled" Width="100" Margin="0,0,5,0" Visibility="Collapsed"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|