Frm_Location.xaml
2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<Window x:Class="HHWCSHost.View.Frm_Location"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:HHWCSHost.View"
mc:Ignorable="d"
Title="库位信息" Height="450" Width="800" Closing="Window_Closing">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="240"/>
<ColumnDefinition Width="277*"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Left" Margin="26,70,0,0" TextWrapping="Wrap" Text="编号:" VerticalAlignment="Top" FontSize="14"/>
<TextBlock HorizontalAlignment="Left" Margin="26,117,0,0" TextWrapping="Wrap" Text="状态:" VerticalAlignment="Top" FontSize="14"/>
<TextBox x:Name="txt_Code" HorizontalAlignment="Left" Height="23" Margin="87,68,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120" FontSize="14"/>
<ComboBox x:Name="cbx_Status" HorizontalAlignment="Left" Margin="87,113,0,0" VerticalAlignment="Top" Width="120" FontSize="14"/>
<Button x:Name="btn_Query" Content="查询" HorizontalAlignment="Left" Margin="132,167,0,0" VerticalAlignment="Top" Width="75" Click="btn_Query_Click"/>
<Button x:Name="btn_ChangeStatus" Content="更改状态" HorizontalAlignment="Left" Margin="36,167,0,0" VerticalAlignment="Top" Width="91" Click="btn_ChangeStatus_Click"/>
<DataGrid x:Name="dgv_1" Grid.Column="1" AutoGenerateColumns="False" IsReadOnly="True">
<DataGrid.Columns>
<!--<DataGridTemplateColumn>
<DataGridTemplateColumn.HeaderTemplate>
<DataTemplate>
<CheckBox x:Name="CheckAll" Click="CheckAll_Click" Width="42" />
</DataTemplate>
</DataGridTemplateColumn.HeaderTemplate>
</DataGridTemplateColumn>-->
<DataGridTextColumn Header="Id" Binding="{Binding Id}"/>
<DataGridTextColumn Header="库位编码" Binding="{Binding Code}"/>
<DataGridTextColumn Header="托盘编码" Binding="{Binding ContainerCode}"/>
<DataGridTextColumn Header="行" Binding="{Binding Row}"/>
<DataGridTextColumn Header="列" Binding="{Binding Column}"/>
<DataGridTextColumn Header="层" Binding="{Binding Layer}"/>
<DataGridTextColumn Header="巷道" Binding="{Binding Roadway}"/>
<DataGridTextColumn Header="状态" Binding="{Binding Status}"/>
</DataGrid.Columns>
</DataGrid>
</Grid>
</Window>