WinLocation.xaml
3.61 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
43
44
45
46
47
48
49
50
51
<win:MyWindow
xmlns:win="clr-namespace:HHECS.View.Win" x:Class="HHECS.View.LocationInfo.WinLocation"
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:control="clr-namespace:HHECS.Controls"
mc:Ignorable="d"
Title="库位信息" Height="450" Width="800" Loaded="Window_Loaded">
<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"/>
<TextBlock HorizontalAlignment="Left" Margin="26,164,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"/>
<TextBox x:Name="txt_Code1" HorizontalAlignment="Left" Height="23" Margin="87,117,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120" FontSize="14"/>
<ComboBox x:Name="cbx_Status" HorizontalAlignment="Left" Margin="87,164,0,0" VerticalAlignment="Top" Width="120" FontSize="14"/>
<Button x:Name="btn_Query" Content="查询" HorizontalAlignment="Left" Margin="132,215,0,0" VerticalAlignment="Top" Width="75" Click="btn_Query_Click"/>
<Button x:Name="btn_ChangeStatus" Content="更改状态" HorizontalAlignment="Left" Margin="36,215,0,0" VerticalAlignment="Top" Width="91" Click="btn_ChangeStatus_Click" RenderTransformOrigin="0.482,1.999"/>
<DockPanel Grid.Column="1">
<control:DataPager x:Name="page" DockPanel.Dock="Bottom" PageIndex="{Binding PageIndex}" PageSize="{Binding PageSize}" TotalCount="{Binding TotalCount}"
PageChanged="page_PageChanged"></control:DataPager>
<DataGrid x:Name="dgv_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 UserDef1}"/>
<DataGridTextColumn Header="托盘编码" Binding="{Binding ContainerCode}"/>
<DataGridTextColumn Header="行" Binding="{Binding Row}"/>
<DataGridTextColumn Header="列" Binding="{Binding Line}"/>
<DataGridTextColumn Header="层" Binding="{Binding Layer}"/>
<DataGridTextColumn Header="巷道" Binding="{Binding Roadway}"/>
<DataGridTextColumn Header="状态" Binding="{Binding Status}"/>
</DataGrid.Columns>
</DataGrid>
</DockPanel>
</Grid>
</win:MyWindow>