添加项目文件。
This commit is contained in:
74
RevitKits/WBSCoder/CheckCoderWin.xaml
Normal file
74
RevitKits/WBSCoder/CheckCoderWin.xaml
Normal file
@@ -0,0 +1,74 @@
|
||||
<Window
|
||||
x:Class="Sai.Common.Shared.WBSCoder.CheckCoderWin"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||
xmlns:local="clr-namespace:Sai.Common.Shared.WBSCoder"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="WBS编码"
|
||||
Width="620"
|
||||
Height="358"
|
||||
MinWidth="600"
|
||||
MinHeight="540"
|
||||
d:DataContext="{d:DesignInstance Type=local:CheckCodeViewModel}"
|
||||
Icon="{Binding Icon}"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<!--<utils:ObjectConverter x:Key="objectConverter" />-->
|
||||
<ResourceDictionary Source="/Sai.RvKits;component/Styles/WPFUI.xaml" />
|
||||
</Window.Resources>
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="Closed">
|
||||
<i:InvokeCommandAction Command="{Binding ClosedCommand}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<ComboBox HorizontalContentAlignment="Center" SelectedIndex="0">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="SelectionChanged">
|
||||
<i:InvokeCommandAction Command="{Binding GetDataBaseCommand}"
|
||||
CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ComboBox}}" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
<ComboBoxItem Content="建筑工程WBS分解编码标准" />
|
||||
<ComboBoxItem Content="轨道交通WBS分解编码标准" />
|
||||
</ComboBox>
|
||||
<TabControl Grid.Row="1">
|
||||
<TabItem Header="WBS编码生成" ToolTip="根据选项生成WBS编码">
|
||||
<Frame x:Name="WbsCodeGeneratorFrame" Source="WbsCodeGeneratorPage.xaml" />
|
||||
</TabItem>
|
||||
<TabItem Header="Project文件校验" ToolTip="校验WBS编码是否符合编码标准">
|
||||
<Frame x:Name="ProjectFileCheckerFrame" Source="ProjectFileCheckerPage.xaml.xaml" />
|
||||
</TabItem>
|
||||
<TabItem Header="Project编码校验" ToolTip="根据Project文件,检查WBS编码是否都赋予构件">
|
||||
<Frame x:Name="ProjectCodeAddedCheckerFrame" Source="ProjectCodeAddedCheckerPage.xaml.xaml" />
|
||||
</TabItem>
|
||||
<TabItem Header="Revit构件校验" ToolTip="根据Project文件检查构件是否全部编码">
|
||||
<Frame x:Name="ComponentCodeAddedCheckerFrame" Source="ComponentCodeAddedCheckerPage.xaml.xaml" />
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
<Grid Grid.Row="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBox
|
||||
IsReadOnly="True"
|
||||
Text="{Binding ProjectPath, Mode=TwoWay}"
|
||||
ToolTip="Project路径" />
|
||||
<Button
|
||||
Grid.Column="1"
|
||||
Command="{Binding OpenProjectFileDialogCommand}"
|
||||
Content="选择文件"
|
||||
Cursor="Hand" />
|
||||
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user