Files
SzmediTools/Szmedi.RvKits/ModelManager/ModelReviewWin.xaml
2025-12-23 21:37:02 +08:00

84 lines
4.3 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<controls:MaterialWindow
x:Class="Szmedi.RvKits.ModelManager.ModelReviewWin"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
xmlns:controls="clr-namespace:Szmedi.RvKits.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Szmedi.RvKits.ModelManager"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
Title="模型规范性审查"
Width="300"
Height="480"
d:DataContext="{d:DesignInstance Type=local:ModelReviewViewModel}"
SizeToContent="Height"
mc:Ignorable="d">
<controls:MaterialWindow.Resources>
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
</controls:MaterialWindow.Resources>
<StackPanel>
<UniformGrid Rows="1">
<GroupBox Header="专业">
<UniformGrid Rows="1">
<RadioButton
Margin="5,5,5,5"
Content="土建"
IsChecked="{Binding IsCivil}"
ToolTip="审查内容包括项目定位,项目、构件信息条目和填写要求,命名" />
<RadioButton
Margin="5,5,5,5"
Content="机电"
IsChecked="{Binding IsCivil, Converter={x:Static md:InvertBooleanConverter.Instance}}"
ToolTip="审查内容包括项目定位,项目、构件信息条目和填写要求,命名,&#13;管径50mm以上的管道及其他管线、坡度设备连接" />
</UniformGrid>
</GroupBox>
<GroupBox Header="属性要求">
<StackPanel>
<CheckBox
Content="所属楼层"
IsChecked="{Binding BelongFloor}"
ToolTip="针对部分项目不具有所属楼层可不进行检查,如场布、前期工程等" />
<CheckBox
Content="深圳构件标识"
IsChecked="{Binding SzComponent}"
ToolTip="针对部分非竣工模型的项目,深圳构件标识可不进行检查" />
</StackPanel>
</GroupBox>
</UniformGrid>
<TextBox
md:HintAssist.Hint="文件序号"
InputMethod.IsInputMethodEnabled="False"
Text="{Binding Number, UpdateSourceTrigger=PropertyChanged}" />
<TextBox md:HintAssist.Hint="审查单位" Text="{Binding ReviewCom, UpdateSourceTrigger=PropertyChanged}" />
<TextBox
md:HintAssist.Hint="审查人"
Text="{Binding Reviewer, UpdateSourceTrigger=PropertyChanged}"
ToolTip="默认为软件的用户名" />
<TextBox md:HintAssist.Hint="审查意见" Text="{Binding ReviewerComments, UpdateSourceTrigger=PropertyChanged}" />
<!--<ComboBox md:HintAssist.Hint="模型版本">
<ComboBoxItem Content="设计阶段" />
<ComboBoxItem Content="施工阶段" />
</ComboBox>-->
<TextBox
md:HintAssist.Hint="报告输出路径"
IsReadOnly="True"
IsReadOnlyCaretVisible="True"
Text="{Binding OutputFolder}"
ToolTip="双击选择路径">
<b:Interaction.Triggers>
<b:EventTrigger EventName="MouseDoubleClick">
<b:InvokeCommandAction Command="{Binding SelectOutputFolderCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType={x:Type Window}}}" />
</b:EventTrigger>
</b:Interaction.Triggers>
</TextBox>
<CheckBox
Content="逐项列举"
IsChecked="{Binding ListEveryErrors}"
ToolTip="报告中列举所有的错误,若会导致报告过长,可取消此选项,审核时间过长" />
<UniformGrid Rows="1">
<Button Command="{Binding ReviewModelCommand}" Content="审核当前项目" />
<Button Command="{Binding ReviewModelsCommand}" Content="审核其他项目" />
</UniformGrid>
</StackPanel>
</controls:MaterialWindow>