整体调整了功能
This commit is contained in:
@@ -15,14 +15,22 @@
|
||||
</UserControl.Resources>
|
||||
<Grid Margin="10">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<TextBlock
|
||||
Grid.Row="0"
|
||||
Margin="0,0,0,8"
|
||||
FontSize="20"
|
||||
FontWeight="SemiBold"
|
||||
Text="原料使用查询" />
|
||||
|
||||
<!-- 查询条件区域 -->
|
||||
<Border
|
||||
Grid.Row="0"
|
||||
Grid.Row="1"
|
||||
Padding="10"
|
||||
Background="#F9F9F9"
|
||||
BorderBrush="#DDDDDD"
|
||||
@@ -122,51 +130,69 @@
|
||||
<StackPanel
|
||||
Grid.Row="2"
|
||||
Grid.Column="3"
|
||||
Grid.ColumnSpan="2"
|
||||
Margin="0,5,10,0"
|
||||
HorizontalAlignment="Right"
|
||||
Orientation="Horizontal">
|
||||
<Button
|
||||
Width="80"
|
||||
Margin="0,0,8,0"
|
||||
Command="{Binding SearchCommand}"
|
||||
Content="查询" />
|
||||
Command="{Binding SearchCommand}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock
|
||||
Margin="0,0,6,0"
|
||||
FontFamily="/Assets/Fonts/#iconfont"
|
||||
FontSize="16"
|
||||
Text="" />
|
||||
<TextBlock Text="查询" />
|
||||
</StackPanel>
|
||||
</Button>
|
||||
<Button
|
||||
Width="80"
|
||||
Margin="0,0,8,0"
|
||||
Command="{Binding ClearCommand}"
|
||||
Content="清空" />
|
||||
<Button
|
||||
Width="100"
|
||||
Command="{Binding ExportCommand}"
|
||||
Content="导出Excel" />
|
||||
<Button
|
||||
Width="100"
|
||||
Command="{Binding ExportCSVCommand}"
|
||||
Content="导出CSV" />
|
||||
Command="{Binding ClearCommand}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock
|
||||
Margin="0,0,6,0"
|
||||
FontFamily="/Assets/Fonts/#iconfont"
|
||||
FontSize="16"
|
||||
Text="" />
|
||||
<TextBlock Text="清空" />
|
||||
</StackPanel>
|
||||
</Button>
|
||||
<Button Width="100" Command="{Binding ExportCommand}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock
|
||||
Margin="0,0,6,0"
|
||||
FontFamily="/Assets/Fonts/#iconfont"
|
||||
FontSize="16"
|
||||
Text="" />
|
||||
<TextBlock Text="导出Excel" />
|
||||
</StackPanel>
|
||||
</Button>
|
||||
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- 列表区域 -->
|
||||
<DataGrid
|
||||
Grid.Row="1"
|
||||
Grid.Row="2"
|
||||
Margin="0,10,0,10"
|
||||
AutoGenerateColumns="False"
|
||||
CanUserAddRows="False"
|
||||
FontSize="15"
|
||||
IsReadOnly="True"
|
||||
ItemsSource="{Binding Items}">
|
||||
ItemsSource="{Binding Items}"
|
||||
RowHeight="34">
|
||||
<DataGrid.ColumnHeaderStyle>
|
||||
<Style TargetType="DataGridColumnHeader">
|
||||
<Setter Property="FontSize" Value="16" />
|
||||
<Setter Property="FontSize" Value="18" />
|
||||
<Setter Property="FontWeight" Value="Bold" />
|
||||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||
</Style>
|
||||
</DataGrid.ColumnHeaderStyle>
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn
|
||||
Width="80"
|
||||
Binding="{Binding Id}"
|
||||
Header="Id" />
|
||||
<DataGridTextColumn
|
||||
Width="120"
|
||||
Binding="{Binding RawCode}"
|
||||
@@ -176,11 +202,11 @@
|
||||
Binding="{Binding RawName}"
|
||||
Header="原料名称" />
|
||||
<DataGridTextColumn
|
||||
Width="180"
|
||||
Width="260"
|
||||
Binding="{Binding InBagCode}"
|
||||
Header="内袋二维码" />
|
||||
<DataGridTextColumn
|
||||
Width="180"
|
||||
Width="260"
|
||||
Binding="{Binding BoxCode}"
|
||||
Header="外箱二维码" />
|
||||
<DataGridTextColumn
|
||||
@@ -227,7 +253,7 @@
|
||||
</DataGrid>
|
||||
|
||||
<!-- 状态栏 -->
|
||||
<StatusBar Grid.Row="2">
|
||||
<StatusBar Grid.Row="3">
|
||||
<StatusBarItem>
|
||||
<TextBlock Text="本页:" />
|
||||
</StatusBarItem>
|
||||
|
||||
Reference in New Issue
Block a user