WinPallet.xaml
3.27 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
<win:MyWindow
xmlns:win="clr-namespace:HHECS.View.Win" x:Class="HHECS.View.ContainerInfo.WinPallet"
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">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="240"/>
<ColumnDefinition Width="277*"/>
</Grid.ColumnDefinitions>
<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>
<DataGridTextColumn Header="Id" Binding="{Binding Id}"></DataGridTextColumn>
<DataGridTextColumn Header="托盘号" Binding="{Binding Code}"></DataGridTextColumn>
<DataGridTextColumn Header="状态" Binding="{Binding Status}"></DataGridTextColumn>
<DataGridTextColumn Header="打印次数" Binding="{Binding PrintCount}"></DataGridTextColumn>
</DataGrid.Columns>
</DataGrid>
</DockPanel>
<TextBlock HorizontalAlignment="Left" Margin="42,69,0,0" TextWrapping="Wrap" Text="编号:" VerticalAlignment="Top" FontSize="14"/>
<TextBox x:Name="txt_code" HorizontalAlignment="Left" Height="23" Margin="90,67,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120" FontSize="14"/>
<CheckBox x:Name="cb_isPrint" Content="是否已打印" HorizontalAlignment="Left" Margin="30,114,0,0" VerticalAlignment="Top" FontSize="14"/>
<CheckBox x:Name="cb_isInWarehouse" Content="是否在库" HorizontalAlignment="Left" Margin="128,114,0,0" VerticalAlignment="Top" FontSize="14"/>
<Button x:Name="btn_print" Content="打印" HorizontalAlignment="Left" Margin="135,258,0,0" VerticalAlignment="Top" Width="75" Click="btn_print_Click"/>
<Button x:Name="btn_query" Content="查询" HorizontalAlignment="Left" Margin="135,172,0,0" VerticalAlignment="Top" Width="75" Click="btn_query_Click"/>
<Rectangle Fill="#FF07427F" Height="2" Margin="12,233,28,0" VerticalAlignment="Top" StrokeThickness="0" RenderTransformOrigin="0.5,0.5">
<Rectangle.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleY="-1"/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</Rectangle.RenderTransform>
</Rectangle>
<CheckBox x:Name="cb_IsDoublePrint" Content="双打" Margin="76,263,116,0" VerticalAlignment="Top"/>
<Button x:Name="btn_Add" Content="新增" HorizontalAlignment="Left" Margin="49,172,0,0" VerticalAlignment="Top" Width="75" Click="btn_Add_Click" Visibility="Collapsed"/>
</Grid>
</win:MyWindow>