|
|
|
|
<UserControl x:Class="Kingo.Plugin.General.View.UCTBBasicInformation"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
|
|
|
xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="225" MaxHeight="225" d:DesignWidth="500" MaxWidth="500">
|
|
|
|
|
<UserControl.Resources>
|
|
|
|
|
<ControlTemplate x:Key="ScrollViewerControlTemplate" TargetType="{x:Type ScrollViewer}">
|
|
|
|
|
<Grid x:Name="Grid" Background="{TemplateBinding Background}">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" CanHorizontallyScroll="False" CanVerticallyScroll="False" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Grid.Column="0" Margin="{TemplateBinding Padding}" />
|
|
|
|
|
<ScrollBar x:Name="PART_VerticalScrollBar" AutomationProperties.AutomationId="VerticalScrollBar" Cursor="Arrow" Grid.Column="1" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" Style="{DynamicResource ScrollBarStyle1}" Width="5" MinWidth="5"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
<Grid Background="White" HorizontalAlignment="Stretch">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<ScrollViewer Grid.Row="0" Grid.Column="0" x:Name="scrollContent" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" Template="{DynamicResource ScrollViewerControlTemplate}">
|
|
|
|
|
<Grid Height="225">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="161*"/>
|
|
|
|
|
<ColumnDefinition Width="39*"/>
|
|
|
|
|
<ColumnDefinition Width="300*"/>
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="34"/>
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<StackPanel Grid.Row="0" Background="#FFE0DFDF" Orientation="Horizontal" Grid.ColumnSpan="3">
|
|
|
|
|
<Image Source="/Kingo.Plugin.General;component/Resources/test.png" VerticalAlignment="Top" Height="18" Width="30" Margin="5,9,5,0"/>
|
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="图斑基本信息" FontWeight="Bold"></TextBlock>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<dxlc:LayoutControl Orientation="Vertical" Padding="5" Grid.Row="1" Grid.ColumnSpan="3">
|
|
|
|
|
<dxlc:LayoutGroup>
|
|
|
|
|
<dxlc:LayoutItem Height="30" Label="图斑标识码:" LabelHorizontalAlignment="Right">
|
|
|
|
|
<dxe:TextEdit Height="25" Text="{Binding WYRWTB.TBBSM,Mode=TwoWay}" IsReadOnly="True"/>
|
|
|
|
|
</dxlc:LayoutItem>
|
|
|
|
|
<dxlc:LayoutItem Height="30" Label="监测大类:" LabelHorizontalAlignment="Right">
|
|
|
|
|
<dxe:TextEdit Height="25" Text="{Binding WYRWTB.JCDL,Mode=TwoWay}" IsReadOnly="True"/>
|
|
|
|
|
</dxlc:LayoutItem>
|
|
|
|
|
</dxlc:LayoutGroup>
|
|
|
|
|
<dxlc:LayoutGroup>
|
|
|
|
|
<dxlc:LayoutItem Height="30" Label="行政区代码:" LabelHorizontalAlignment="Right">
|
|
|
|
|
<dxe:TextEdit Height="25" MaskType="RegEx" Mask="\d{0,6}" Text="{Binding WYRWTB.XZQDM,Mode=TwoWay}" IsReadOnly="{Binding IsReadOnly}" LostFocus="TxtYPSM_LostFocus" GotFocus="TxtYPSM_GotFocus"/>
|
|
|
|
|
</dxlc:LayoutItem>
|
|
|
|
|
<dxlc:LayoutItem Height="30" Label="乡镇代码:" LabelHorizontalAlignment="Right">
|
|
|
|
|
<dxe:TextEdit Height="25" MaskType="RegEx" Mask="\d{0,9}" Text="{Binding WYRWTB.XZDM,Mode=TwoWay}" IsReadOnly="{Binding IsReadOnly}" LostFocus="TxtYPSM_LostFocus" GotFocus="TxtYPSM_GotFocus"/>
|
|
|
|
|
</dxlc:LayoutItem>
|
|
|
|
|
</dxlc:LayoutGroup>
|
|
|
|
|
<dxlc:LayoutGroup>
|
|
|
|
|
<dxlc:LayoutItem Height="30" Label="村代码:" LabelHorizontalAlignment="Right">
|
|
|
|
|
<dxe:TextEdit Height="25" MaskType="RegEx" Mask="\d{0,12}" Text="{Binding WYRWTB.CJDM,Mode=TwoWay}" IsReadOnly="{Binding IsReadOnly}" LostFocus="TxtYPSM_LostFocus" GotFocus="TxtYPSM_GotFocus"/>
|
|
|
|
|
</dxlc:LayoutItem>
|
|
|
|
|
<dxlc:LayoutItem Height="30" Label="数据来源:" LabelHorizontalAlignment="Right">
|
|
|
|
|
<dxe:TextEdit Height="25" Text="{Binding WYRWTB.SJLY,Mode=TwoWay}" IsReadOnly="True"/>
|
|
|
|
|
</dxlc:LayoutItem>
|
|
|
|
|
</dxlc:LayoutGroup>
|
|
|
|
|
<dxlc:LayoutGroup>
|
|
|
|
|
<dxlc:LayoutItem Height="30" Label="监测编号:" LabelHorizontalAlignment="Right">
|
|
|
|
|
<dxe:TextEdit x:Name="txtJCBH" Height="25" Text="{Binding WYRWTB.JCBH,Mode=TwoWay}" IsReadOnly="{Binding IsReadOnly}"/>
|
|
|
|
|
</dxlc:LayoutItem>
|
|
|
|
|
<dxlc:LayoutItem Height="30" Label="图斑类型:" LabelHorizontalAlignment="Right">
|
|
|
|
|
<dxe:TextEdit Height="25" x:Name="txttTBLX" Text="{Binding WYRWTB.TBLX,Mode=TwoWay}" IsReadOnly="{Binding IsReadOnly}"/>
|
|
|
|
|
</dxlc:LayoutItem>
|
|
|
|
|
</dxlc:LayoutGroup>
|
|
|
|
|
<dxlc:LayoutGroup>
|
|
|
|
|
<dxlc:LayoutItem Height="30" Label="监测面积:" LabelHorizontalAlignment="Right">
|
|
|
|
|
<dxe:TextEdit Height="25" x:Name="txtJCMJ" Text="{Binding WYRWTB.JCMJ,Mode=TwoWay}" MaskType="Numeric" IsReadOnly="True"/>
|
|
|
|
|
</dxlc:LayoutItem>
|
|
|
|
|
<dxlc:LayoutItem Height="30" Label="图斑面积:" LabelHorizontalAlignment="Right">
|
|
|
|
|
<dxe:TextEdit Height="25" Text="{Binding WYRWTB.TBMJ,Mode=TwoWay}" MaskType="Numeric" IsReadOnly="True"/>
|
|
|
|
|
</dxlc:LayoutItem>
|
|
|
|
|
</dxlc:LayoutGroup>
|
|
|
|
|
</dxlc:LayoutControl>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|