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

63 lines
5.2 KiB

<UserControl x:Class="Kingo.Plugin.General.View.UCNYProcessingResults"
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"
xmlns:comboBox="clr-namespace:KUI.ComboBox;assembly=KUI"
mc:Ignorable="d"
d:DesignHeight="250" MaxHeight="250" 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">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<ScrollViewer Grid.Row="0" Grid.Column="0" x:Name="scrollContent" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" Template="{DynamicResource ScrollViewerControlTemplate}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="34"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Background="#FFE0DFDF" Orientation="Horizontal">
<Image Source="/Kingo.Plugin.General;component/Resources/test.png" VerticalAlignment="Top" Height="18" Width="30" Margin="5,9,5,0"/>
<TextBlock VerticalAlignment="Center" Foreground="Red" Text="内业预处理结果" FontWeight="Bold"></TextBlock>
</StackPanel>
<dxlc:LayoutControl Grid.Row="1" Orientation="Vertical" LostFocus="LayoutControl_LostFocus" GotFocus="LayoutControl_GotFocus">
<dxlc:LayoutGroup>
<dxlc:LayoutItem Height="30" Label="预判地类:" LabelHorizontalAlignment="Right">
<dxe:ComboBoxEdit x:Name="txt_Box" VerticalAlignment="Center" VerticalContentAlignment="Center" Text="{Binding NYYSResult.NYYPDL, UpdateSourceTrigger=LostFocus}" Height="27" />
</dxlc:LayoutItem>
<dxlc:LayoutItem Height="30" Label="是否外业:" LabelHorizontalAlignment="Right">
<dxe:ComboBoxEdit x:Name="comBoxSF" Height="27" EditValue="{Binding NYYSResult.SFXYWY, Mode=TwoWay}" DisplayMember="Name" ValueMember="CodeInt" IsTextEditable="False" AllowSpinOnMouseWheel="False" InvalidValueBehavior="AllowLeaveEditor" ShowNullTextForEmptyValue="True" NullText="请选择是否需要外业"/>
</dxlc:LayoutItem>
</dxlc:LayoutGroup>
<dxlc:LayoutGroup>
</dxlc:LayoutGroup>
<dxlc:LayoutGroup>
<dxlc:LayoutItem Height="30" Label="预判时间:" LabelHorizontalAlignment="Right">
<dxe:TextEdit Height="27" IsReadOnly="True" Text="{Binding NYYSResult.YPSJ,Mode=TwoWay}" />
</dxlc:LayoutItem>
<dxlc:LayoutItem Height="30" Label="预判人员:" LabelHorizontalAlignment="Right">
<dxe:TextEdit Height="27" IsReadOnly="True" Text="{Binding NYYSResult.YPRY,Mode=TwoWay}" />
</dxlc:LayoutItem>
</dxlc:LayoutGroup>
<dxlc:LayoutItem Label="预判说明:" LabelHorizontalAlignment="Right">
<dxe:TextEdit x:Name="txtYPSM" Height="100" TextWrapping="Wrap" LostFocus="TxtYPSM_LostFocus" GotFocus="TxtYPSM_GotFocus" VerticalContentAlignment="Top" AcceptsReturn="True" VerticalScrollBarVisibility="Visible" MaxHeight="100" VerticalAlignment="Top" IsReadOnly="False" Text="{Binding NYYSResult.YPSM,Mode=TwoWay}" />
</dxlc:LayoutItem>
</dxlc:LayoutControl>
</Grid>
</ScrollViewer>
</Grid>
</UserControl>