Frm_Main.xaml
9.63 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<Window x:Class="HHWCSHost.View.Frm_Main"
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"
xmlns:controls="clr-namespace:HHWCSHost.Controls"
mc:Ignorable="d"
Title="华恒WCS管理系统" Height="774.94" Width="1732.415" Closed="Window_Closed" Background="#FF293955" Icon="/HHWCSHost;component/Content/image/Huaheng.png" FontSize="15">
<DockPanel>
<Menu x:Name="menu" DockPanel.Dock="Top" Background="#FFD6DBE9"></Menu>
<ToolBar DockPanel.Dock="Top" Background="#FFCFD6E5">
<Button x:Name="btn_OpenPLCConnect" Click="btn_OpenPLCConnect_Click" >打开监控</Button>
<Button x:Name="btn_ClosePLCConnect" Click="btn_ClosePLCConnect_Click">关闭监控</Button>
<!--<Button x:Name="btn_UpdateTask" Click="btn_UpdateTask_Click">测试时钟</Button>-->
<Button x:Name="btn_GoBack" Background="AliceBlue" Click="btn_GoBack_Click">拣选台回库</Button>
</ToolBar>
<StatusBar x:Name="statusBar" DockPanel.Dock="Bottom" Height="20" Background="#FF007ACC" Foreground="{DynamicResource {x:Static SystemColors.InfoBrushKey}}"/>
<TabControl>
<TabItem Header="主页">
<Grid x:Name="grid">
<Grid.RowDefinitions>
<RowDefinition Height="50"></RowDefinition>
<RowDefinition Height="130"></RowDefinition>
<RowDefinition Height="130"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="35*"></ColumnDefinition>
<ColumnDefinition Width="35*"></ColumnDefinition>
<ColumnDefinition Width="20*"></ColumnDefinition>
<ColumnDefinition Width="20*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.ColumnSpan="4" TextWrapping="Wrap" Text="主 监 控 画 面" FontWeight="Bold" FontSize="24" TextAlignment="Center" VerticalAlignment="Center"/>
<!--<DockPanel Grid.Row="1" Grid.Column="2" Grid.RowSpan="2" Grid.ColumnSpan="2" Margin="5,5">
<TextBlock Text="任务列表" DockPanel.Dock="Top" HorizontalAlignment="Center" FontSize="14" FontWeight="Bold"/>
<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 Status}"/>
<DataGridTextColumn Header="创建人" Binding="{Binding CreatedBy}"/>
<DataGridTextColumn Header="创建时间" Binding="{Binding Created}"/>
<DataGridTextColumn Header="最后更新时间" Binding="{Binding LastUpdatedBy}"/>
</DataGrid.Columns>
</DataGrid>
</DockPanel>-->
<ScrollViewer x:Name="scrolls" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="4">
<StackPanel x:Name="panel_Bottom" FlowDirection="LeftToRight" Orientation="Horizontal">
</StackPanel>
</ScrollViewer>
<Grid Grid.RowSpan="2" Grid.Column="2" Grid.Row="1" Grid.ColumnSpan="2">
<Viewbox Stretch="Fill">
<Canvas Width="600" Height="280">
<controls:StationH x:Name="conveyor3" Height="64" Width="136" Canvas.Left="92" Canvas.Top="14"/>
<controls:StationH x:Name="conveyor6" Height="64" Width="136" Canvas.Left="92" Canvas.Top="183"/>
<controls:StationH x:Name="conveyor2" Height="64" Width="136" Canvas.Left="233" Canvas.Top="14"/>
<controls:StationH x:Name="conveyor5" Height="64" Width="136" Canvas.Left="233" Canvas.Top="183"/>
<controls:StationH x:Name="conveyor1" Height="64" Width="136" Canvas.Left="374" Canvas.Top="14"/>
<controls:StationV x:Name="conveyor4" Height="96" Width="64" Canvas.Left="303" Canvas.Top="81"/>
<Image Height="58" Canvas.Left="40" Canvas.Top="14" Width="52" Source="/HHWCSHost;component/Content/image/箭头.png"/>
<Image Height="58" Canvas.Left="38" Canvas.Top="183" Width="52" Source="/HHWCSHost;component/Content/image/箭头.png" RenderTransformOrigin="0.5,0.5">
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="179.882"/>
<TranslateTransform/>
</TransformGroup>
</Image.RenderTransform>
</Image>
<Image Height="58" Canvas.Left="388" Canvas.Top="96" Width="52" Source="/HHWCSHost;component/Content/image/箭头.png" RenderTransformOrigin="0.5,0.5">
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="90.167"/>
<TranslateTransform/>
</TransformGroup>
</Image.RenderTransform>
</Image>
<Image Height="58" Canvas.Left="515" Width="52" Source="/HHWCSHost;component/Content/image/箭头.png" Canvas.Top="14"/>
<Image Height="58" Canvas.Left="389" Canvas.Top="202" Width="52" Source="/HHWCSHost;component/Content/image/箭头.png" RenderTransformOrigin="0.5,0.5">
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="179.882"/>
<TranslateTransform/>
</TransformGroup>
</Image.RenderTransform>
</Image>
<Image Height="58" Canvas.Left="359" Canvas.Top="97" Width="52" Source="/HHWCSHost;component/Content/image/箭头.png" RenderTransformOrigin="0.5,0.5">
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="-89.526"/>
<TranslateTransform/>
</TransformGroup>
</Image.RenderTransform>
</Image>
<Image Height="58" Canvas.Left="388" Width="52" Source="/HHWCSHost;component/Content/image/箭头.png" Canvas.Top="174"/>
<TextBlock Text="入库口" Canvas.Left="515" Canvas.Top="81" FontSize="20" Foreground="#FF293955"></TextBlock>
<TextBlock Text="拣选口" Canvas.Left="460" Canvas.Top="207" FontSize="20" Foreground="#FF293955"></TextBlock>
</Canvas>
</Viewbox>
</Grid>
<ScrollViewer x:Name="scrolls2" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" Grid.RowSpan="2">
<StackPanel x:Name="panel_Stocker" FlowDirection="LeftToRight" Orientation="Vertical">
</StackPanel>
</ScrollViewer>
</Grid>
</TabItem>
<controls:StationV/>
</TabControl>
</DockPanel>
</Window>