WinTest.xaml
23.1 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<Window x:Class="XingYe_ACS.UI.WinTest"
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:XingYe_ACS.UI"
mc:Ignorable="d"
Title="手动任务" Height="500" Width="500"
WindowStartupLocation="CenterScreen"
WindowStyle="None" AllowsTransparency="True" Background="Transparent"
Loaded="Window_Loaded" Icon="/XingYe_ACS;component/Image/Icon.ico">
<Border Background="White" BorderThickness="1" BorderBrush="{StaticResource HHLGRed}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
</Grid.RowDefinitions>
<Grid Name="Spl_title" Grid.Row="0" Grid.ColumnSpan="2">
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center"
MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"
Foreground="{StaticResource HHAst2}" FontSize="20">手 动 任 务</TextBlock>
<Button Name="BtnClose" Grid.Column="3" Background="{StaticResource HHLGRed}" Foreground="White" Width="20" Margin="2" Click="BtnClose_Click">X</Button>
</Grid>
<StackPanel Height="2" Grid.Row="1" Background="{StaticResource HHLGRed}"></StackPanel>
<TabControl Grid.Row="2">
<!--<TabItem Header="初始化风淋门" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock FontSize="20">风淋门地址</TextBlock>
<ComboBox Name="ComBox_LiftAddress">
<ComboBoxItem>外侧|1</ComboBoxItem>
<ComboBoxItem>内侧|2</ComboBoxItem>
</ComboBox>
<Button Name="Btn_SendLift" Click="Btn_SendLift_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">初始化风淋门状态</Button>
</StackPanel>
</TabItem>-->
<!--<TabItem Header="出入库任务">
<TabControl>
<TabItem Header="单独出入库任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>旋转角度/出库货架号</TextBlock>
<TextBox Name="TBox_ShelfOri">H00</TextBox>
<TextBlock>站台号</TextBlock>
<TextBox Name="TBox_WsNo">WS01</TextBox>
<Button Name="Btn_TaskSend" Click="Btn_TaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送出库任务</Button>
<Button Name="Btn_MoveBack" Click="Btn_MoveBack_Click" Height="52" Margin="120,0" Background="{StaticResource HHLGRed}" Foreground="White">发送回库任务</Button>
<Button Name="Btn_RototeTask" Click="Btn_RototeTask_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送旋转任务</Button>
</StackPanel>
</TabItem>
<TabItem Header="多个出入库任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>起始X值</TextBlock>
<TextBox Name="TBox_StartX">66</TextBox>
<TextBlock>终止X值</TextBlock>
<TextBox Name="TBox_EndX">73</TextBox>
<TextBlock>起始Y值</TextBlock>
<TextBox Name="TBox_StartY">24</TextBox>
<TextBlock>终止Y值</TextBlock>
<TextBox Name="TBox_EndY">34</TextBox>
<TextBlock>站台号</TextBlock>
<TextBox Name="TBox_WsNos">ws01</TextBox>
<Button Name="Btn_DoubleTaskSend" Click="Btn_DoubleTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送出库任务</Button>
</StackPanel>
</TabItem>
</TabControl>
</TabItem>-->
<TabItem Header="单步任务">
<TabControl>
<TabItem Header="单步任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>任务类型</TextBlock>
<ComboBox Name="ComBox_TaskType" SelectedIndex="0">
<ComboBoxItem>手动行走|1</ComboBoxItem>
<ComboBoxItem>手动顶升|2</ComboBoxItem>
<ComboBoxItem>手动下降|3</ComboBoxItem>
<ComboBoxItem>充电|5</ComboBoxItem>
<ComboBoxItem>取消充电|6</ComboBoxItem>
<ComboBoxItem>回家-1|经过W1入库电梯</ComboBoxItem>
<ComboBoxItem>回家-2|经过C1区电梯</ComboBoxItem>
<ComboBoxItem>回家-3|经过W1备料电梯</ComboBoxItem>
</ComboBox>
<TextBlock>Agv</TextBlock>
<TextBox Name="Tbox_Agv">A11_3108</TextBox>
<TextBlock>起点:(旋转任务时,此框为角度1、2、3)</TextBlock>
<TextBox Name="Tbox_Spoint"></TextBox>
<TextBlock>终点:</TextBlock>
<TextBox Name="Tbox_Epoint">296</TextBox>
<Button Name="Btn_OK" Click="Btn_OK_Click" Height="52" Margin="120,20,120,0" Background="{StaticResource HHLGRed}" Foreground="White">发送</Button>
</StackPanel>
</TabItem>
<TabItem Header="配送测试任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock Height="26">任务类型选择</TextBlock>
<ComboBox Name="ComBox_TaskTypeList" Height="26">
</ComboBox>
<TextBlock>起点区域</TextBlock>
<ComboBox Name="ComBox_StartList" Height="20"></ComboBox>
<TextBlock>终点区域</TextBlock>
<ComboBox Name="ComBox_EndList" Height="20"></ComboBox>
<Button Name="TuoPan_GoHomeTaskSend" Click="TuoPan_GoHomeTaskSend_Click" Height="52" Margin="120,50,120,0" Background="{StaticResource HHLGRed}" Foreground="White">测试配送</Button>
</StackPanel>
</TabItem>
<TabItem Header="测试行走任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>任务类型</TextBlock>
<ComboBox Name="ComBox_WalkTaskType" SelectedIndex="0">
<ComboBoxItem>行走|1</ComboBoxItem>
</ComboBox>
<TextBlock>Agv</TextBlock>
<TextBox Name="Tbox_WalkAgv">A22_61</TextBox>
<TextBlock>终点:</TextBlock>
<TextBox Name="Tbox_WalkEpoint"></TextBox>
<Button Name="Btn_WalkOK" Click="Btn_WalkOK_Click" Height="50" Margin="120,30,120,30" Background="{StaticResource HHLGRed}" Foreground="White">开始</Button>
<Button Name="Btn_WalkClose" Click="Btn_Close_Click" Height="50" Margin="120,0,120,0" Background="{StaticResource HHLGRed}" Foreground="White">结束</Button>
</StackPanel>
</TabItem>
<!--<TabItem Header="测试托盘" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>终点码值</TextBlock>
<TextBox Name="TuoPan_MoveEndBarcode">11</TextBox>
<TextBlock >小车号</TextBlock>
<TextBox Name="AgvNo">A02_007;A02_009</TextBox>
<Button Name="TuoPan_SingleMoveTaskSend" Click="TuoPan_SingleMoveTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">X方向测试</Button>
<Button Name="TuoPan_SingleYMoveTaskSend" Click="TuoPan_SingleYMoveTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">Y方向测试</Button>
</StackPanel>
</TabItem>-->
</TabControl>
</TabItem>
<!--<TabItem Header="移库任务">
<TabControl>
<TabItem Header="单独移库任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>起点信息(货架号)</TextBlock>
<TextBox Name="TBox_MoveShelfNo"></TextBox>
<TextBlock>终点信息(码值)</TextBlock>
<TextBox Name="TBox_MoveEndBarcode"></TextBox>
<Button Name="Btn_SingleMoveTaskSend" Click="Btn_SingleMoveTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送移库任务</Button>
</StackPanel>
</TabItem>
<TabItem Header="单独回库任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>起点信息(货架号)</TextBlock>
<TextBox Name="TBox_MoveBackShelfNo"></TextBox>
<TextBlock>终点信息(码值)</TextBlock>
<TextBox Name="TBox_MoveBackEndBarcode"></TextBox>
<Button Name="Btn_SingleMoveBackTaskSend" Click="Btn_SingleMoveBackTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送回库任务</Button>
</StackPanel>
</TabItem>
<TabItem Header="整列移库任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>整列坐标y值</TextBlock>
<TextBox Name="TBox_MoveIntX"></TextBox>
<TextBlock>执行任务小车</TextBlock>
<TextBox Name="TBox_MoveAgvNo">A02_0</TextBox>
<Button Name="Btn_MoveTaskSend" Click="Btn_MoveTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送整列移库任务</Button>
</StackPanel>
</TabItem>
<TabItem Header="整列回库任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>整列坐标X值</TextBlock>
<TextBox Name="TBox_MoveBackIntX"></TextBox>
<TextBlock>执行任务小车</TextBlock>
<TextBox Name="TBox_MoveBackAgvNo">A02_0</TextBox>
<Button Name="Btn_MoveBackTaskSend" Click="Btn_MoveBackTaskSend_Click" Height="52" Margin="120,15" Background="{StaticResource HHLGRed}" Foreground="White">发送整列回库任务</Button>
</StackPanel>
</TabItem>
</TabControl>
</TabItem>-->
<TabItem Header="一键关机" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>关机选择</TextBlock>
<ComboBox Name="Combo_offType">
<ComboBoxItem>单独关机</ComboBoxItem>
<ComboBoxItem>全部关机</ComboBoxItem>
</ComboBox>
<TextBlock Height="29">小车号</TextBlock>
<TextBox Name="TBox_offAgvNo">A11_3108</TextBox>
<Button Name="Btn_Off" Click="Btn_Off_Click" Height="52" Margin="120,20" Background="{StaticResource HHLGRed}" Foreground="White">关 机</Button>
</StackPanel>
</TabItem>
<!--<TabItem Header="切换货架方向" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>当前货架</TextBlock>
<TextBox Name="TBox_CurrentShelf" KeyDown="TBox_CurrentShelf_KeyDown"></TextBox>
<TextBlock>当前货架方向</TextBlock>
<TextBox Name="TBox_CurrentShelfOri"></TextBox>
<TextBlock Height="29">更改货架方向</TextBlock>
<TextBox Name="TBox_ChangeShelfOri" KeyDown="TBox_ChangeShelfOri_KeyDown"></TextBox>
<Button Name="Btn_UpdateShelfOri" Click="Btn_UpdateShelfOri_Click" Height="52" Margin="120,20" Background="{StaticResource HHLGRed}" Foreground="White">更新货架方向</Button>
</StackPanel>
</TabItem>
<TabItem Header="叉车测试任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>起点货架号</TextBlock>
<TextBox Name="TBox_StartShelfNo"></TextBox>
<TextBlock>终点货架号</TextBlock>
<TextBox Name="TBox_EndShelfNo"></TextBox>
<Button Name="Btn_SendTask" Click="Btn_SendTask_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">移货任务</Button>
<Button x:Name="Btn_SendCargoTask" Click="SendCargoTask" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White" Content="放货任务"/>
<Button Name="Btn_SendPickTask" Click="SendPickTask" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">取货任务</Button>
<Button x:Name="Btn_SendTestTask" Click="SendTestTask" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White" Content="先放再取"/>
</StackPanel>
</TabItem>-->
<TabItem Header="新型小车测试任务">
<TabControl>
<TabItem Header="循环行走任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>任务终点</TextBlock>
<TextBox Name="TBox_EndPoint"></TextBox>
<TextBlock>小车号</TextBlock>
<TextBox Name="TBox_AgvNo">A11_3108</TextBox>
<Button Name="Btn_WalktaskStart" Click="Btn_WalktaskStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
<Button Name="Btn_WalktaskEnd" Click="Btn_WalktaskEnd_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务结束</Button>
</StackPanel>
</TabItem>
<TabItem Header="循环耦合旋转任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>小车号</TextBlock>
<TextBox Name="TBox_RotateAgv">A11_3108</TextBox>
<Button Name="Btn_RotateStart" Click="Btn_RotateStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
<Button Name="Btn_RotateEnd" Click="Btn_RotateEnd_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务结束</Button>
</StackPanel>
</TabItem>
<TabItem Header="循环升降任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>小车号</TextBlock>
<TextBox Name="TBox_LiftAgv">A11_3108</TextBox>
<Button Name="Btn_LiftStart" Click="Btn_LiftStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
<Button Name="Btn_LiftEnd" Click="Btn_LiftEnd_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务结束</Button>
</StackPanel>
</TabItem>
<TabItem Header="循环托盘旋转任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>小车号</TextBlock>
<TextBox Name="TBox_PalletAgv">A11_3108</TextBox>
<Button Name="Btn_PalletStart" Click="Btn_PalletStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
<Button Name="Btn_PalletEnd" Click="Btn_PalletEnd_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务结束</Button>
</StackPanel>
</TabItem>
<TabItem Header="充电电量监测" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>小车号</TextBlock>
<TextBox Name="TBox_ChargeAgv">A11_3108</TextBox>
<Button Name="Btn_ChargeStart" Click="Btn_ChargeStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
<Button Name="Btn_ChargeEnd" Click="Btn_ChargeEnd_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务结束</Button>
</StackPanel>
</TabItem>
<TabItem Header="拐点弧线行走任务" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>小车号</TextBlock>
<TextBox Name="TBox_CurveAgv">A11_3108</TextBox>
<TextBlock>拐点起点</TextBlock>
<TextBox Name="TBox_CurveStartPoint"></TextBox>
<TextBlock>拐点终点</TextBlock>
<TextBox Name="TBox_CurveEndPoint"></TextBox>
<Button Name="Btn_CurveStart" Click="Btn_CurveStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
</StackPanel>
</TabItem>
</TabControl>
</TabItem>
<TabItem Header="单步控制">
<TabControl>
<TabItem Header="单步控制" BorderThickness="2" BorderBrush="Green">
<StackPanel>
<TextBlock>任务类型</TextBlock>
<ComboBox Name="ComBox_SingleControl" SelectedIndex="0">
<ComboBoxItem>手动行走|1</ComboBoxItem>
<ComboBoxItem>手动顶升|2</ComboBoxItem>
<ComboBoxItem>手动下降|3</ComboBoxItem>
<ComboBoxItem>手动旋转|4</ComboBoxItem>
<ComboBoxItem>充电|5</ComboBoxItem>
<ComboBoxItem>取消充电|6</ComboBoxItem>
</ComboBox>
<TextBlock>Agv</TextBlock>
<TextBox Name="Tbox_SingleAgv">A11_3108</TextBox>
<TextBlock>单步任务</TextBlock>
<TextBox Name="Tbox_SingleTask"></TextBox>
<!--Click="Btn_SingleOK_Click"-->
<Button Name="Btn_SingleOK" Height="52" Margin="120,20,120,0" Background="{StaticResource HHLGRed}" Foreground="White" PreviewMouseDown="Border_Canv_PreviewMouseDown" PreviewMouseUp="Border_Canv_PreviewMouseUp">发送</Button>
</StackPanel>
</TabItem>
</TabControl>
</TabItem>
<TabItem Header="测试">
<Button Name="Btn_WalktaskStart22" Click="Btn_TaskStart_Click" Height="50" Margin="120,18" Background="{StaticResource HHLGRed}" Foreground="White">任务开始</Button>
</TabItem>
</TabControl>
<StackPanel Height="2" Grid.Row="3" Background="{StaticResource HHLGRed}"></StackPanel>
<TextBlock Grid.Row="4" FontSize="20" HorizontalAlignment="Center"
Foreground="{StaticResource HHAst2}">控制台系统</TextBlock>
</Grid>
</Border>
</Window>