59 lines
2.3 KiB
Plaintext
59 lines
2.3 KiB
Plaintext
|
|
<Page
|
||
|
|
x:Class="Sai.Common.Shared.WBSCoder.ProjectFileCheckerPage"
|
||
|
|
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
|
xmlns:wbsCoder="clr-namespace:Sai.Common.Shared.WBSCoder"
|
||
|
|
Title="ProjectFileCheckerPage"
|
||
|
|
d:DataContext="{d:DesignInstance Type=wbsCoder:ProjectFileCheckerViewModel}"
|
||
|
|
d:DesignHeight="450"
|
||
|
|
d:DesignWidth="800"
|
||
|
|
mc:Ignorable="d">
|
||
|
|
<Page.Resources>
|
||
|
|
<ResourceDictionary Source="/Sai.RvKits;component/Styles/WPFUI.xaml" />
|
||
|
|
</Page.Resources>
|
||
|
|
<Grid>
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="*" />
|
||
|
|
<RowDefinition Height="Auto" />
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
<DataGrid
|
||
|
|
Grid.Row="0"
|
||
|
|
Grid.ColumnSpan="2"
|
||
|
|
Margin="5"
|
||
|
|
AutoGenerateColumns="False"
|
||
|
|
CanUserAddRows="False"
|
||
|
|
ItemsSource="{Binding ErrorTaskItems, Mode=TwoWay}">
|
||
|
|
<DataGrid.Columns>
|
||
|
|
<DataGridTextColumn
|
||
|
|
Binding="{Binding Parent}"
|
||
|
|
Header="上级任务"
|
||
|
|
IsReadOnly="True" />
|
||
|
|
<DataGridTextColumn
|
||
|
|
Binding="{Binding Name}"
|
||
|
|
Header="任务名"
|
||
|
|
IsReadOnly="True" />
|
||
|
|
<DataGridTextColumn
|
||
|
|
Binding="{Binding WBSCode}"
|
||
|
|
Header="WBS编码"
|
||
|
|
IsReadOnly="True" />
|
||
|
|
<DataGridTextColumn
|
||
|
|
Binding="{Binding ErrorMessages}"
|
||
|
|
Header="存在问题"
|
||
|
|
IsReadOnly="True" />
|
||
|
|
</DataGrid.Columns>
|
||
|
|
</DataGrid>
|
||
|
|
<Button
|
||
|
|
Grid.Row="1"
|
||
|
|
Command="{Binding CheckProjectFileCommand}"
|
||
|
|
Cursor="Hand"
|
||
|
|
ToolTip="校验标准">
|
||
|
|
<StackPanel Orientation="Horizontal">
|
||
|
|
<materialDesign:PackIcon Kind="StandardDefinition" />
|
||
|
|
<TextBlock>校验标准</TextBlock>
|
||
|
|
</StackPanel>
|
||
|
|
</Button>
|
||
|
|
</Grid>
|
||
|
|
</Page>
|