|
@@ -0,0 +1,120 @@
|
|
|
+<Window x:Class="SAGA.MBI.ToolsData.ModeCheck.WinModeCheckSetting"
|
|
|
+ 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:local="clr-namespace:SAGA.MBI.ToolsData.ModeCheck"
|
|
|
+ xmlns:common="clr-namespace:SAGA.MBI.Common"
|
|
|
+ xmlns:converter="clr-namespace:SAGA.DotNetUtils.WPF.Converter;assembly=SAGA.DotNetUtils"
|
|
|
+ xmlns:userControl="clr-namespace:SAGA.DotNetUtils.WPF.UserControl;assembly=SAGA.DotNetUtils"
|
|
|
+ xmlns:checkBase="clr-namespace:SAGA.MBI.ToolsData.CheckBase"
|
|
|
+ xmlns:dataCheck="clr-namespace:SAGA.MBI.ToolsData.DataCheck"
|
|
|
+ mc:Ignorable="d" Title="模型检查" WindowStartupLocation="CenterScreen"
|
|
|
+ Height="587" Width="600">
|
|
|
+ <Window.Resources>
|
|
|
+ <converter:BoolToInverserConverter x:Key="BoolInverseConverter"></converter:BoolToInverserConverter>
|
|
|
+ <converter:StringToImageConverter x:Key="StringToImageConverter"></converter:StringToImageConverter>
|
|
|
+ </Window.Resources>
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="40"></RowDefinition>
|
|
|
+ <RowDefinition Height="*"></RowDefinition>
|
|
|
+ <RowDefinition Height="80"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <WrapPanel VerticalAlignment="Center">
|
|
|
+ <Label Margin="5,0,0,0" Content="当前项目:" FontSize="15"></Label>
|
|
|
+ <Label Content="{x:Static common:MBIControl.ProjectCur}" FontSize="15"></Label>
|
|
|
+ </WrapPanel>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid Grid.Column="0">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="*"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <GroupBox Grid.Row="0" Header="请选择需要检查的建筑">
|
|
|
+ <TreeView ItemsSource="{Binding Path=ProjectList}">
|
|
|
+ <TreeView.ItemTemplate>
|
|
|
+ <HierarchicalDataTemplate ItemsSource="{Binding Path=Children}">
|
|
|
+ <WrapPanel>
|
|
|
+ <CheckBox IsChecked="{Binding Path=IsSelected,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}"
|
|
|
+ Width="Auto" VerticalContentAlignment="Center"
|
|
|
+ Checked="TreeItemChecked_OnChecked"
|
|
|
+ Unchecked="TreeItemChecked_OnChecked">
|
|
|
+ </CheckBox>
|
|
|
+ <Label Content="{Binding Path=Item.TvItemName}"></Label>
|
|
|
+ </WrapPanel>
|
|
|
+ </HierarchicalDataTemplate>
|
|
|
+ </TreeView.ItemTemplate>
|
|
|
+ <TreeView.ItemContainerStyle>
|
|
|
+ <Style TargetType="{x:Type TreeViewItem}">
|
|
|
+ <Setter Property="IsExpanded" Value="True" />
|
|
|
+ </Style>
|
|
|
+ </TreeView.ItemContainerStyle>
|
|
|
+ </TreeView>
|
|
|
+ </GroupBox>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Column="1">
|
|
|
+ <GroupBox Header="请选择检查项">
|
|
|
+ <ListBox x:Name="myListbox" >
|
|
|
+ <!--ItemsSource="{Binding Path=CheckList}"-->
|
|
|
+ <ListBox.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <WrapPanel >
|
|
|
+ <CheckBox IsChecked="{Binding Path=RIsChecked,UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ IsEnabled="{Binding Path=RIsReadOnly,Converter={StaticResource BoolInverseConverter}}"
|
|
|
+ VerticalContentAlignment="Center"></CheckBox>
|
|
|
+ <Label Content="{Binding Path=Name}"></Label>
|
|
|
+ </WrapPanel>
|
|
|
+ </DataTemplate>
|
|
|
+ </ListBox.ItemTemplate>
|
|
|
+ </ListBox>
|
|
|
+ </GroupBox>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="2">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ <RowDefinition></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <userControl:SelectFile_Hyperlink Margin="5,0" x:Name="btnSelectPath" VerticalContentAlignment="Center"
|
|
|
+ Text="{Binding Path=SavePath,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ BtnImage="{Binding Path=OFImage,Converter={StaticResource StringToImageConverter}}"
|
|
|
+ OverrideClickAction="SelectFile_Click"></userControl:SelectFile_Hyperlink>
|
|
|
+ </Grid>
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition></ColumnDefinition>
|
|
|
+ <ColumnDefinition></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Button Grid.Column="0" Width="100" Height="25" Content="确定" HorizontalAlignment="Right" Margin="0,0,20,0" VerticalAlignment="Center" Click="ButtonNext_OnClick" IsDefault="True"></Button>
|
|
|
+ <Button Grid.Column="1" Width="100" Height="25" Content="取消" HorizontalAlignment="Left" Margin="20,0,0,0" VerticalAlignment="Center" IsCancel="True" Background="White"></Button>
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+</Window>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|