91 lines
4.5 KiB
Plaintext
91 lines
4.5 KiB
Plaintext
![]() |
<Page x:Class="Seyounth.Hyosung.Views.Pages.LabelManagementViewPage"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
xmlns:local="clr-namespace:Seyounth.Hyosung.Views.Pages"
|
||
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||
|
mc:Ignorable="d"
|
||
|
d:DesignHeight="800" d:DesignWidth="1500"
|
||
|
d:DataContext="{d:DesignInstance local:LabelManagementViewPage,
|
||
|
IsDesignTimeCreatable=True}">
|
||
|
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="*" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<ToolBarTray>
|
||
|
<ToolBar ClipToBounds="False"
|
||
|
Style="{StaticResource MaterialDesignToolBar}">
|
||
|
<ComboBox Margin="8"
|
||
|
FontSize="20"
|
||
|
VerticalAlignment="Center"
|
||
|
Width="400"
|
||
|
materialDesign:HintAssist.Hint="请选择查询条件"
|
||
|
materialDesign:TextFieldAssist.HasClearButton="False"
|
||
|
IsEditable="False"
|
||
|
ItemsSource="{Binding ViewModel.Varieties}"
|
||
|
DisplayMemberPath="Code"
|
||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}">
|
||
|
</ComboBox>
|
||
|
<Button Content="{materialDesign:PackIcon Kind=Search}" />
|
||
|
<Separator />
|
||
|
<TextBox Margin="8"
|
||
|
Width="100"
|
||
|
FontSize="20"
|
||
|
HorizontalContentAlignment="Left"
|
||
|
materialDesign:HintAssist.Hint="LOT"
|
||
|
Style="{StaticResource MaterialDesignOutlinedTextBox}" />
|
||
|
<Button Content="{materialDesign:PackIcon Kind=Search}" />
|
||
|
<Separator />
|
||
|
<DatePickerTextBox>
|
||
|
|
||
|
</DatePickerTextBox>
|
||
|
<Button x:Name="TrayManagerButton"
|
||
|
Content="{materialDesign:PackIcon Kind=ShippingPallet}"
|
||
|
ToolTip="托盘/隔板管理" />
|
||
|
</ToolBar>
|
||
|
</ToolBarTray>
|
||
|
<DataGrid Margin="10" x:Name="LabelManagementDataGrid"
|
||
|
Grid.Row="1"
|
||
|
ItemsSource="{Binding ViewModel.Labels}"
|
||
|
AutoGenerateColumns="False"
|
||
|
CanUserAddRows="False"
|
||
|
CanUserDeleteRows="False"
|
||
|
CanUserReorderColumns="False"
|
||
|
CanUserResizeRows="False"
|
||
|
CanUserSortColumns="False"
|
||
|
SelectionMode="Extended"
|
||
|
SelectionUnit="CellOrRowHeader"
|
||
|
VerticalAlignment="Stretch"
|
||
|
HorizontalAlignment="Stretch"
|
||
|
RowDetailsVisibilityMode="VisibleWhenSelected">
|
||
|
<DataGrid.Columns>
|
||
|
<DataGridTextColumn Header="LOT"
|
||
|
Binding="{Binding Code}"
|
||
|
Width="80" />
|
||
|
<DataGridTextColumn Header="品类"
|
||
|
Binding="{Binding Variety.Code}"
|
||
|
Width="120" />
|
||
|
<DataGridTextColumn Header="条码"
|
||
|
Binding="{Binding Variety.Code}"
|
||
|
Width="400" />
|
||
|
<DataGridTextColumn Header="数量"
|
||
|
Binding="{Binding Quantity}"
|
||
|
Width="*" />
|
||
|
<DataGridTextColumn Header="控制号"
|
||
|
Binding="{Binding Status}"
|
||
|
Width="*" />
|
||
|
<DataGridTextColumn Header="贴标时间"
|
||
|
Binding="{Binding Tray}"
|
||
|
Width="*" />
|
||
|
<DataGridCheckBoxColumn Header="已发布"
|
||
|
Binding="{Binding Pallet}"
|
||
|
Width="80" />
|
||
|
<DataGridTextColumn Header="操作"
|
||
|
Binding="{Binding Pallet}"
|
||
|
Width="140" />
|
||
|
</DataGrid.Columns>
|
||
|
</DataGrid>
|
||
|
</Grid>
|
||
|
</Page>
|