Frm_TaskInfo.xaml
4.2 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
<Window x:Class="HHWCSHost.View.Frm_TaskInfo"
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" Icon="/HHWCSHost;component/Content/image/huaheng2.png">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="240"/>
<ColumnDefinition Width="277*"/>
</Grid.ColumnDefinitions>
<Button x:Name="btn_Query" Content="查询" HorizontalAlignment="Left" Margin="53,222,0,0" VerticalAlignment="Top" Width="75" RenderTransformOrigin="0.975,2.244" Click="btn_Query_Click"/>
<TextBlock HorizontalAlignment="Left" Margin="10,29,0,0" TextWrapping="Wrap" Text="任务号:" VerticalAlignment="Top" FontSize="14"/>
<ComboBox x:Name="cbx_TaskStatus" HorizontalAlignment="Left" Margin="85,102,0,0" VerticalAlignment="Top" Width="120" FontSize="14"/>
<TextBlock HorizontalAlignment="Left" Margin="10,66,0,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
<TextBlock HorizontalAlignment="Left" Margin="10,69,0,0" TextWrapping="Wrap" Text="托盘号:" VerticalAlignment="Top" FontSize="14"/>
<TextBlock HorizontalAlignment="Left" Margin="10,106,0,0" TextWrapping="Wrap" Text="任务状态:" VerticalAlignment="Top" FontSize="14"/>
<TextBox x:Name="txt_TaskNo" HorizontalAlignment="Left" Height="23" Margin="85,24,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
<TextBox x:Name="txt_Pallet" HorizontalAlignment="Left" Height="23" Margin="85,66,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
<DataGrid x:Name="dgv_1" Grid.Column="1" AutoGenerateColumns="False" IsReadOnly="True">
<DataGrid.Columns>
<DataGridTextColumn Header="任务号" Binding="{Binding Id}"/>
<DataGridTextColumn Header="仓库" Binding="{Binding WarehouseCode}"/>
<DataGridTextColumn Header="优先级" Binding="{Binding Priority}"/>
<DataGridTextColumn Header="任务类型" Binding="{Binding Type}"/>
<DataGridTextColumn Header="站台" Binding="{Binding Station}"/>
<DataGridTextColumn Header="托盘号" Binding="{Binding ContainerCode}"/>
<DataGridTextColumn Header="源地址" Binding="{Binding SourceLocation}"/>
<DataGridTextColumn Header="目标地址" Binding="{Binding DestinationLocation}"/>
<DataGridTextColumn Header="首状态" Binding="{Binding FirstStatus}"/>
<DataGridTextColumn Header="尾状态" Binding="{Binding LastStatus}"/>
<DataGridTextColumn Header="创建人" Binding="{Binding CreatedBy}"/>
<DataGridTextColumn Header="创建时间" Binding="{Binding Created}"/>
<DataGridTextColumn Header="最后更新时间" Binding="{Binding LastUpdatedBy}"/>
</DataGrid.Columns>
</DataGrid>
<TextBlock HorizontalAlignment="Left" Margin="10,142,0,0" TextWrapping="Wrap" Text="开始时间:" VerticalAlignment="Top" FontSize="14"/>
<TextBlock HorizontalAlignment="Left" Margin="10,176,0,0" TextWrapping="Wrap" Text="结束时间:" VerticalAlignment="Top" FontSize="14"/>
<DatePicker x:Name="beginTime" HorizontalAlignment="Left" Margin="85,140,0,0" VerticalAlignment="Top" Width="120"/>
<DatePicker x:Name="endTime" HorizontalAlignment="Left" Margin="85,174,0,0" VerticalAlignment="Top" Width="120"/>
<Button Content="新增" HorizontalAlignment="Left" Margin="145,222,0,0" VerticalAlignment="Top" Width="75" Click="Button_Click"/>
<Button x:Name="btn_Delete" Content="删除" HorizontalAlignment="Left" Margin="145,261,0,0" VerticalAlignment="Top" Width="75" Click="btn_Delete_Click" Visibility="Hidden"/>
<Button x:Name="btn_SendToWCS" Content="下发" HorizontalAlignment="Left" Margin="53,261,0,0" VerticalAlignment="Top" Width="75" Click="btn_SendToWCS_Click"/>
</Grid>
</Window>