|
@@ -7,17 +7,30 @@
|
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
|
xmlns:myContr="clr-namespace:BlankApp1.Controls"
|
|
|
xmlns:wpfdev="https://github.com/WPFDevelopersOrg/WPFDevelopers"
|
|
|
+ xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
mc:Ignorable="d"
|
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
|
+
|
|
|
<Grid >
|
|
|
<Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="30"/>
|
|
|
<RowDefinition Height="40"/>
|
|
|
<RowDefinition Height="40"/>
|
|
|
<RowDefinition/>
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
- <UniformGrid Grid.Row="0" Columns="3">
|
|
|
+ <Grid Grid.Row="0" Background=" #F2F2F2">
|
|
|
+ <wpfdev:BreadCrumbBar ItemsSource="{Binding Path}" VerticalAlignment="Center" DisplayMemberPath="Name" Margin="0,0"
|
|
|
+ SelectedItem="{Binding SelectedCrumb, Mode=TwoWay}">
|
|
|
+ <b:Interaction.Triggers>
|
|
|
+ <b:EventTrigger EventName="SelectionChanged">
|
|
|
+ <b:InvokeCommandAction Command="{Binding BreadChangedCommand}"/>
|
|
|
+ </b:EventTrigger>
|
|
|
+ </b:Interaction.Triggers>
|
|
|
+ </wpfdev:BreadCrumbBar>
|
|
|
+ </Grid>
|
|
|
+ <UniformGrid Grid.Row="1" Columns="3">
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<TextBlock Text="项目编号:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0"/>
|
|
|
<TextBox Height="28" Width="120" Text="{Binding ProjectNo}" />
|
|
@@ -34,7 +47,7 @@
|
|
|
|
|
|
|
|
|
</UniformGrid>
|
|
|
- <Grid Grid.Row="1">
|
|
|
+ <Grid Grid.Row="2">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition/>
|
|
|
<ColumnDefinition/>
|
|
@@ -49,16 +62,16 @@
|
|
|
<hc:DateTimePicker ShowClearButton="True" Style="{StaticResource DateTimePickerExtend}" Height="25" Width="160" Text="{Binding EndTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
|
- <StackPanel Grid.Column="1" Orientation="Horizontal">
|
|
|
+ <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
|
|
|
|
<Button Content="查询" Width="80" Margin="5,0" Command="{Binding QueryCommand}" Style="{StaticResource NormalButtonStyle}" />
|
|
|
- <Button Content="重置" Width="80" Margin="5,0" Command="{Binding ResetCommand}" Style="{StaticResource NormalButtonStyle}" />
|
|
|
- <Button Content="新增" Width="80" Margin="5,0" Command="{Binding AddCommand}" Style="{StaticResource NormalButtonStyle}"/>
|
|
|
+ <Button Content="重置" Width="80" Margin="5,0" Command="{Binding ResetCommand}" Style="{StaticResource NormalButtonStyle}" Background=" #7F7F7F" />
|
|
|
+ <Button Content="新增" Width="80" Margin="5,0" Command="{Binding AddCommand}" Style="{StaticResource NormalButtonStyle}" Background="#00BFBF"/>
|
|
|
|
|
|
- <Button Content="导出Excel" Width="80" Margin="5,0" Command="{Binding ExportCommand}" Style="{StaticResource NormalButtonStyle}" />
|
|
|
+ <!--<Button Content="导出Excel" Width="80" Margin="5,0" Command="{Binding ExportCommand}" Style="{StaticResource NormalButtonStyle}" />-->
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
- <DataGrid Grid.Row="2" ColumnWidth="*" AutoGenerateColumns="False" HeadersVisibility="All" CanUserAddRows="False" SelectionUnit="FullRow" SelectionMode="Single" RowHeaderWidth="0"
|
|
|
+ <DataGrid Grid.Row="3" ColumnWidth="*" AutoGenerateColumns="False" HeadersVisibility="All" CanUserAddRows="False" SelectionUnit="FullRow" SelectionMode="Single" RowHeaderWidth="0"
|
|
|
ColumnHeaderStyle="{StaticResource ColumnHeaderStyle}" RowHeaderStyle="{StaticResource RowHeaderStyle}" RowStyle="{StaticResource DataGridRowtyle}" AlternationCount="2"
|
|
|
ItemsSource="{Binding ProjectItemList}" IsReadOnly="True" Padding="0" >
|
|
|
<DataGrid.Columns >
|
|
@@ -96,7 +109,7 @@
|
|
|
</DataGrid.Columns>
|
|
|
|
|
|
</DataGrid>
|
|
|
- <Grid Grid.Row="3" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
+ <Grid Grid.Row="4" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
<wpfdev:Pagination IsLite="False" Margin="0" Width="auto" Height="30" HorizontalAlignment="Center"
|
|
|
Count="{Binding TotalCount,Mode=TwoWay}"
|
|
|
CountPerPage="{Binding CountPerPage,Mode=TwoWay}"
|