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.
213 lines
15 KiB
213 lines
15 KiB
<windows:BaseWindow |
|
xmlns:windows="clr-namespace:KGIS.Framework.Utils;assembly=KGIS.Framework.Utils" |
|
x:Class="Kingo.Plugin.MapView.Views.AppMenuView.UCProjectInformation" |
|
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:kuiBtn="clr-namespace:KUI.Button;assembly=KUI" |
|
xmlns:comboBox="clr-namespace:KUI.ComboBox;assembly=KUI" |
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" |
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid" |
|
mc:Ignorable="d" FontFamily="微软雅黑" FontSize="16" WindowStartupLocation="CenterScreen" Title="工程属性" |
|
Height="690" Width="900"> |
|
<Grid Margin="5"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="auto"/> |
|
<ColumnDefinition Width="*"/> |
|
<ColumnDefinition Width="auto"/> |
|
<ColumnDefinition Width="65"/> |
|
<ColumnDefinition Width="auto"/> |
|
<ColumnDefinition Width="*"/> |
|
</Grid.ColumnDefinitions> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="*"/> |
|
</Grid.RowDefinitions> |
|
<Grid Grid.ColumnSpan="6"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150" /> |
|
<ColumnDefinition Width="*" /> |
|
</Grid.ColumnDefinitions> |
|
<Label Content="工作目录:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="0"/> |
|
<TextBox x:Name="btnPrjDir" Margin="2,8" Grid.Row="0" Grid.Column="1" IsReadOnly="True"/> |
|
<kuiBtn:KImgButton x:Name="btnSelectedPrjDir" Content="选择" Grid.Row="0" Grid.Column="2" Margin="0,8" Visibility="Collapsed"/> |
|
</Grid> |
|
<Grid Grid.Row="1" Grid.ColumnSpan="6"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150" /> |
|
<ColumnDefinition Width="*" /> |
|
</Grid.ColumnDefinitions> |
|
<Label Content="工程类型:" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
|
<ComboBox SelectedIndex="0" Name="projectType" Grid.Column="1" Margin="2,8" VerticalContentAlignment="Center" IsReadOnly="True"> |
|
<ComboBoxItem Content="年度变更" Tag="NDBG" /> |
|
<ComboBoxItem Content="日常变更_增减挂钩" Tag="RCBG_ZJG" /> |
|
<ComboBoxItem Content="日常变更_补充耕地" Tag="RCBG_BCGD" /> |
|
</ComboBox> |
|
</Grid> |
|
<Grid Grid.Row="2" Grid.ColumnSpan="6"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150" /> |
|
<ColumnDefinition Width="*" /> |
|
</Grid.ColumnDefinitions> |
|
<Label Content="工程名称:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="2" /> |
|
<dxe:TextEdit x:Name="txtProjName" Text="{Binding ProjName, UpdateSourceTrigger=LostFocus}" Margin="2,8" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="5" Validate="Validate" InvalidValueBehavior="AllowLeaveEditor" IsReadOnly="True"/> |
|
|
|
</Grid> |
|
<Grid Grid.Row="3" Grid.ColumnSpan="6"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150"/> |
|
<ColumnDefinition/> |
|
<ColumnDefinition Width="auto"/> |
|
</Grid.ColumnDefinitions> |
|
<Label Content="区划代码:" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
|
<comboBox:AutoCompleteBox x:Name="txt_Box" Text="{Binding CODE, UpdateSourceTrigger=LostFocus}" Grid.Column="1" Margin="2,8" IsReadOnly="True"/> |
|
<StackPanel Grid.Column="2" Orientation="Horizontal"> |
|
<CheckBox Name="cb_XZQDMChange" VerticalAlignment="Center" HorizontalAlignment="Stretch" Grid.Row="3" Content="县代码变化" VerticalContentAlignment="Center" Margin="2,8"/> |
|
<CheckBox Name="cb_ZLDWMCChange" VerticalAlignment="Center" HorizontalAlignment="Stretch" Grid.Row="3" Margin="10,8,2,8" Content="村名称变化" VerticalContentAlignment="Center"/> |
|
</StackPanel> |
|
</Grid> |
|
|
|
<Grid Grid.Row="4" Grid.ColumnSpan="6"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150" /> |
|
<ColumnDefinition /> |
|
<ColumnDefinition Width="auto" /> |
|
<ColumnDefinition Width="150" /> |
|
<ColumnDefinition /> |
|
<ColumnDefinition Width="auto" /> |
|
</Grid.ColumnDefinitions> |
|
<Label Content="陆地控制面积:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Column="0"/> |
|
<dxe:TextEdit x:Name="DCMJ" Text="{Binding DCMJ, UpdateSourceTrigger=LostFocus}" Margin="2,8" Grid.Column="1" InvalidValueBehavior="AllowLeaveEditor" /> |
|
<Label Content="平方米" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Column="2" Margin="2,8" /> |
|
<Label Content="海岛控制面积:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Column="3"/> |
|
<dxe:TextEdit x:Name="DCMJHD" Text="{Binding DCMJHD, UpdateSourceTrigger=LostFocus}" Margin="2,8" Grid.Column="4" InvalidValueBehavior="AllowLeaveEditor" /> |
|
<Label Content="平方米" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="2,8" Grid.Column="5" /> |
|
</Grid> |
|
<Grid Grid.Row="5" Grid.ColumnSpan="6"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150" /> |
|
<ColumnDefinition /> |
|
<ColumnDefinition Width="auto" /> |
|
</Grid.ColumnDefinitions> |
|
<Label Content="坐 标 系 :" VerticalAlignment="Center" HorizontalAlignment="Right"/> |
|
<TextBox x:Name="btnPrjFile" Margin="2,8" Grid.Column="1" IsReadOnly="True"/> |
|
<StackPanel Grid.Column="2" Orientation="Horizontal" Visibility="Collapsed"> |
|
<kuiBtn:KImgButton x:Name="btnPrjFilePath" Content="选择" Margin="2,8"/> |
|
<kuiBtn:KImgButton x:Name="btnPrjFilePath2" Content="导入" Margin="2,8"/> |
|
</StackPanel> |
|
</Grid> |
|
<Label Content="图形带号:" VerticalAlignment="Center" Visibility="Collapsed" HorizontalAlignment="Right" Grid.Row="5" Grid.Column="2" /> |
|
<TextBox x:Name="spTXDH" Text="{Binding TXDH, UpdateSourceTrigger=PropertyChanged}" VerticalContentAlignment="Center" Grid.Row="5" IsReadOnly="True" Grid.Column="3" Height="30" Visibility="Collapsed" /> |
|
<Label Content="中央经度:" VerticalAlignment="Center" Visibility="Collapsed" HorizontalAlignment="Right" Grid.Row="5" Grid.Column="4" /> |
|
<TextBox x:Name="txtZYJD" Text="{Binding ZYJD, UpdateSourceTrigger=PropertyChanged}" VerticalContentAlignment="Center" Grid.Row="5" IsReadOnly="True" Grid.Column="5" Height="30" Visibility="Collapsed" /> |
|
<Grid Grid.Row="6" Grid.ColumnSpan="6"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150" /> |
|
<ColumnDefinition /> |
|
<ColumnDefinition Width="150" /> |
|
<ColumnDefinition /> |
|
</Grid.ColumnDefinitions> |
|
<Label Content="数据库容差 :" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
|
<dxe:ComboBoxEdit x:Name="combXYResolution" ValueMember="ScaleCode" DisplayMember="Scale" IsEnabled="False" Text="0.0001" IsReadOnly="True" Grid.Column="1" Height="30" VerticalContentAlignment="Center" /> |
|
<Label Content="比 例 尺 :" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
|
<dxe:ComboBoxEdit x:Name="combScale" ValueMember="ScaleCode" DisplayMember="Scale" Grid.Column="3" Height="30" IsTextEditable="False"/> |
|
</Grid> |
|
<Grid Grid.Row="7" Grid.ColumnSpan="6"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150" /> |
|
<ColumnDefinition /> |
|
<ColumnDefinition Width="auto" /> |
|
</Grid.ColumnDefinitions> |
|
<Label Content="调入村级调查区:" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
|
<TextBox x:Name="btnCJDCQPath" Margin="2,8" Grid.Column="1" IsReadOnly="True" Text="{Binding DR_CJDCQPath, UpdateSourceTrigger=LostFocus}"/> |
|
<kuiBtn:KImgButton x:Name="btnSelectedCJDCQPath" Content="选择" Grid.Column="2" Click="BtnSelectedCJDCQPath_Click" Margin="2,8"/> |
|
</Grid> |
|
<Grid Grid.Row="8" Grid.ColumnSpan="6"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150" /> |
|
<ColumnDefinition /> |
|
<ColumnDefinition Width="auto" /> |
|
</Grid.ColumnDefinitions> |
|
<Label Content="调入行政区:" VerticalAlignment="Center" HorizontalAlignment="Right" /> |
|
<TextBox x:Name="btnXZQPath" Margin="2,8" Grid.Column="1" IsReadOnly="True" Text="{Binding DR_XZQPath, UpdateSourceTrigger=LostFocus}"/> |
|
<kuiBtn:KImgButton x:Name="btnSelectedXZQPath" Content="选择" Grid.Column="2" Click="BtnSelectedXZQPath_Click" Margin="2,8"/> |
|
</Grid> |
|
<Grid Grid.Row="9" Grid.ColumnSpan="6"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150" /> |
|
<ColumnDefinition Width="560*" /> |
|
<ColumnDefinition Width="93*"/> |
|
<ColumnDefinition Width="auto" /> |
|
</Grid.ColumnDefinitions> |
|
<Label Content="调入城镇村:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,4" /> |
|
<TextBox x:Name="btnczcPath" Margin="2,8" Grid.Column="1" IsReadOnly="True" Text="{Binding DR_CZCPath, UpdateSourceTrigger=LostFocus}" Grid.ColumnSpan="2"/> |
|
<kuiBtn:KImgButton x:Name="btnSelectedCZCPath" Content="选择" Grid.Column="3" Click="btnSelectedCZCPath_Click" Margin="2,8"/> |
|
</Grid> |
|
<Grid Grid.Row="10" Grid.ColumnSpan="6"> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="auto"/> |
|
<RowDefinition Height="auto"/> |
|
</Grid.RowDefinitions> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="150" /> |
|
<ColumnDefinition /> |
|
<ColumnDefinition Width="80"/> |
|
<ColumnDefinition Width="88"/> |
|
</Grid.ColumnDefinitions> |
|
<Label Content="坐落范围图斑:" VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Row="0" Margin="5,0,0,0"/> |
|
<TextBox x:Name="btnNewData" IsReadOnly="True" Grid.Row="0" Grid.Column="1" Margin="5,0"/> |
|
<kuiBtn:KImgButton Height="30" x:Name="btnSelTB" Grid.Row="0" Grid.Column="2" Click="BtnSelTB_Click" Content="选择范围" VerticalContentAlignment="Center" /> |
|
<kuiBtn:KImgButton Height="30" x:Name="btnSelExl" Grid.Row="0" Grid.Column="3" Click="BtnOpenFile_Click" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Margin="5,0" Content="选择excel" /> |
|
<Label Grid.Row="1" Grid.Column="0" Content="坐落变化信息:" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" /> |
|
<dxg:GridControl x:Name="gvCtrl" Grid.Row="1" Grid.Column="1" Margin="0,5" Grid.ColumnSpan="3" Height="150" HorizontalAlignment="Stretch" AutoGenerateColumns="None" VerticalAlignment="Stretch"> |
|
<dxg:GridControl.View> |
|
<dxg:TableView Name="tvAttr2" ShowTotalSummary="False" ShowSearchPanelMode="Never" MultiSelectMode="Row" ShowGroupPanel="False" AllowFilterEditor="False" AllowEditing="True" /> |
|
</dxg:GridControl.View> |
|
<dxg:GridControl.Columns> |
|
<dxg:GridColumn FieldName="ID" Header="ID" Width="0" Visible="False"/> |
|
<dxg:GridColumn FieldName="DataDicTionary" Header="DataDicTionary" Width="0" Visible="False"/> |
|
<dxg:GridColumn FieldName="BGQDM" Header="变更前代码" Width="120" /> |
|
<dxg:GridColumn FieldName="BGQMC" Header="变更前名称" Width="120" /> |
|
<dxg:GridColumn FieldName="BGHDM" Header="变更后代码" Width="120" /> |
|
<dxg:GridColumn FieldName="BGHMC" Header="变更后名称" Width="120"/> |
|
<dxg:GridColumn FieldName="IsQS" Header="权属变化" Width="90"/> |
|
<dxg:GridColumn Header="操作" Width="150"> |
|
<dxg:GridColumn.CellTemplate> |
|
<DataTemplate> |
|
<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="9*"/> |
|
<ColumnDefinition Width="16*"/> |
|
</Grid.ColumnDefinitions> |
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.ColumnSpan="2" Margin="30,2"> |
|
<TextBlock x:Name="txt_Add" Width="35" HorizontalAlignment="Center" VerticalAlignment="Center" Tag="{Binding RowData.Row.ID}" MouseLeftButtonDown="Txt_Add_MouseLeftButtonDown" Cursor="Hand" Text="添加" Foreground="Blue" Margin="10,0,0,0"/> |
|
<TextBlock x:Name="txt_Delete" Width="35" HorizontalAlignment="Center" VerticalAlignment="Center" Tag="{Binding RowData.Row.ID}" MouseLeftButtonDown="Txt_Delete_MouseLeftButtonDown" Cursor="Hand" Text="删除" Foreground="Blue" Margin="10,0,0,0"/> |
|
</StackPanel> |
|
</Grid> |
|
</DataTemplate> |
|
</dxg:GridColumn.CellTemplate> |
|
</dxg:GridColumn> |
|
</dxg:GridControl.Columns> |
|
</dxg:GridControl> |
|
</Grid> |
|
<StackPanel Orientation="Horizontal" Grid.ColumnSpan="6" Grid.Row="15" HorizontalAlignment="Center"> |
|
<kuiBtn:KImgButton x:Name="btnOK" Content="确 定" Width="100" Height="40" CornerRadius="3" Margin="20,0" CommandParameter="TBBG" Foreground="White" Click="BtnOK_Click" /> |
|
<kuiBtn:KImgButton x:Name="btnCanel" Content="关 闭" Width="100" Height="40" CornerRadius="3" Margin="20,0" CommandParameter="TBBG" Foreground="White" Click="BtnCanel_Click" /> |
|
</StackPanel> |
|
</Grid> |
|
</windows:BaseWindow>
|
|
|