WinHistoryTask.xaml
21.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
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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
<Window
x:Class="RCS.WinClient.Views.Pages.WinHistoryTask"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:View="clr-namespace:RCS.WinClient.Controls.View"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
Title="WinHistory"
Width="1200"
Height="800"
AllowsTransparency="True"
Background="Transparent"
Loaded="Window_Loaded"
WindowStartupLocation="CenterScreen"
WindowStyle="None"
mc:Ignorable="d">
<Border
Background="White"
BorderBrush="{StaticResource HHLGRed}"
BorderThickness="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Grid Grid.Row="2">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition />
</Grid.RowDefinitions>
<Grid Background="{StaticResource HHLGRed}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20" />
<ColumnDefinition Width="70" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="70" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="70" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="90" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="70" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="120" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock
Grid.Row="1"
Grid.Column="1"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Foreground="White">
任务编号:
</TextBlock>
<TextBox
Name="tBoxTaskNo"
Grid.Row="1"
Grid.Column="2"
MinWidth="100"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
<TextBlock
Grid.Row="2"
Grid.Column="1"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Foreground="White">
托盘编号:
</TextBlock>
<TextBox
Name="tBoxTaskPallet"
Grid.Row="2"
Grid.Column="2"
MinWidth="100"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
<TextBlock
Grid.Row="1"
Grid.Column="3"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Foreground="White">
任务类型:
</TextBlock>
<ComboBox
Name="cBoxTaskType"
Grid.Row="1"
Grid.Column="4"
MinWidth="100"
HorizontalAlignment="Center"
VerticalAlignment="Center"
IsEditable="True" />
<TextBlock
Grid.Row="2"
Grid.Column="3"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Foreground="White">
Agv编号:
</TextBlock>
<TextBox
Name="tBoxAgvNo"
Grid.Row="2"
Grid.Column="4"
MinWidth="100"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
<TextBlock
Grid.Row="1"
Grid.Column="5"
Margin="10,0,0,0"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Foreground="White">
起始位置:
</TextBlock>
<TextBox
Name="TaskInitial"
Grid.Row="1"
Grid.Column="6"
MinWidth="100"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
<TextBlock
Grid.Row="2"
Grid.Column="5"
Margin="10,0,0,0"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Foreground="White">
目标位置:
</TextBlock>
<TextBox
Name="TaskTarget"
Grid.Row="2"
Grid.Column="6"
MinWidth="100"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
<TextBlock
Grid.Row="1"
Grid.Column="7"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Foreground="White">
接收时间大于:
</TextBlock>
<!--<DatePicker Name="CalendarStart" SelectedDate="{x:Static sys:DateTime.Now}" Grid.Row="0" Grid.Column="5" HorizontalAlignment="Left" Margin="3" MinWidth="100" VerticalAlignment="Center"></DatePicker>-->
<View:DateTimePicker
x:Name="CalendarStart"
Grid.Row="1"
Grid.Column="8"
Height="20"
MinWidth="100"
Padding="0,2,2,2"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Background="White"
DateTime="{x:Static sys:DateTime.Today}" />
<TextBlock
Grid.Row="2"
Grid.Column="7"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Foreground="White">
接收时间小于:
</TextBlock>
<!--<DatePicker Name="CalendarEnd" SelectedDate="2023-07-19 12:00:00" Grid.Row="1" Grid.Column="5" HorizontalAlignment="Left" MinWidth="100" VerticalAlignment="Center" Margin="3"></DatePicker>-->
<View:DateTimePicker
x:Name="CalendarEnd"
Grid.Row="2"
Grid.Column="8"
Height="20"
MinWidth="100"
Padding="0,2,2,2"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Background="White"
DateTime="{x:Static sys:DateTime.Now}" />
<TextBlock
Grid.Row="1"
Grid.Column="9"
Margin="10,0,0,0"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Foreground="White">
任务分组:
</TextBlock>
<ComboBox
Name="TaskGroup"
Grid.Row="1"
Grid.Column="10"
MinWidth="100"
HorizontalAlignment="Center"
VerticalAlignment="Center"
IsEditable="True" />
<TextBlock
Grid.Row="2"
Grid.Column="9"
Margin="10,0,0,0"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Foreground="White">
任务状态:
</TextBlock>
<ComboBox
Name="TaskState"
Grid.Row="2"
Grid.Column="10"
MinWidth="100"
HorizontalAlignment="Center"
VerticalAlignment="Center"
IsEditable="True" />
<CheckBox
Name="LoadSubTask"
Grid.Row="1"
Grid.Column="11"
MinWidth="100"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Foreground="White">
加载子任务
</CheckBox>
<Button
Name="BtnQuery"
Grid.Row="2"
Grid.Column="11"
MinWidth="100"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Click="BtnQuery_Click">
历史记录查询
</Button>
</Grid>
<DataGrid
Name="Grid_History"
Grid.Row="1"
AutoGenerateColumns="False"
CanUserAddRows="False"
CanUserDeleteRows="False"
LoadingRow="Grid_History_LoadingRow">
<DataGrid.Columns>
<DataGridTextColumn
Binding="{Binding Path=ID}"
CanUserSort="False"
Header="ID"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=TaskNo}"
CanUserSort="False"
Header="任务号"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=TaskType}"
CanUserSort="False"
Header="任务类型"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=TaskGroup}"
CanUserSort="False"
Header="任务分组"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=TaskPallet}"
CanUserSort="False"
Header="托盘号"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=TaskAgvNo}"
CanUserSort="False"
Header="AGV编号"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=Initial}"
CanUserSort="False"
Header="起始位置"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=StartBarcode}"
CanUserSort="False"
Header="起始地标"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=Target}"
CanUserSort="False"
Header="目标位置"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=EndBarcode}"
CanUserSort="False"
Header="目标地标"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=AcceptTime, StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}"
CanUserSort="False"
Header="接收时间"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=BeginTime, StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}"
CanUserSort="False"
Header="开始时间"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=EndTime, StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}"
CanUserSort="False"
Header="结束时间"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=TaskState}"
CanUserSort="False"
Header="任务状态"
IsReadOnly="True" />
</DataGrid.Columns>
<DataGrid.RowDetailsTemplate>
<DataTemplate>
<DataGrid
Name="DGrid_SubTask"
AutoGenerateColumns="False"
BorderBrush="{StaticResource HHAst1}"
BorderThickness="3"
CanUserAddRows="False"
CanUserDeleteRows="False"
IsReadOnly="True"
ItemsSource="{Binding Path=LogSubTaskList}">
<DataGrid.Columns>
<DataGridTextColumn
Binding="{Binding Path=SerialNo}"
CanUserSort="False"
Header="序号" />
<DataGridTextColumn
Binding="{Binding Path=SubTaskNo}"
CanUserSort="False"
Header="子任务号" />
<DataGridTextColumn
Binding="{Binding Path=ActionType}"
CanUserSort="False"
Header="子任务动作" />
<DataGridTextColumn
Binding="{Binding Path=StartBarcode}"
CanUserSort="False"
Header="起点"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=EndBarcode}"
CanUserSort="False"
Header="终点"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=IsCarry}"
CanUserSort="False"
Header="是否载货"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=Height}"
CanUserSort="False"
Header="顶升高度"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=RequestType}"
CanUserSort="False"
Header="请求类型"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=SubTaskState}"
CanUserSort="False"
Header="子任务状态"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=BeginTime, StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}"
CanUserSort="False"
Header="开始时间"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=EndTime, StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}"
CanUserSort="False"
Header="结束时间"
IsReadOnly="True" />
</DataGrid.Columns>
<DataGrid.ColumnHeaderStyle>
<Style TargetType="DataGridColumnHeader">
<Setter Property="Background" Value="{StaticResource HHLGRed}" />
<Setter Property="Foreground" Value="White" />
<Setter Property="FontSize" Value="15" />
<Setter Property="BorderBrush" Value="{StaticResource HHLGRed}" />
<Setter Property="BorderThickness" Value="2" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
</Style>
</DataGrid.ColumnHeaderStyle>
</DataGrid>
</DataTemplate>
</DataGrid.RowDetailsTemplate>
</DataGrid>
</Grid>
<Grid
Name="Spl_title"
Grid.Row="0"
Grid.ColumnSpan="2">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock
HorizontalAlignment="Stretch"
VerticalAlignment="Center"
FontSize="20"
Foreground="{StaticResource HHAst2}"
MouseLeftButtonDown="TextBlock_MouseLeftButtonDown"
TextAlignment="Center">
历 史 查 询
</TextBlock>
<Button
Name="BtnClose"
Grid.Column="1"
Width="20"
Margin="2"
Background="{StaticResource HHLGRed}"
Click="BtnClose_Click"
Foreground="White">
X
</Button>
</Grid>
<StackPanel
Grid.Row="1"
Height="2"
Background="{StaticResource HHLGRed}" />
<StackPanel
Grid.Row="3"
Height="2"
Background="{StaticResource HHLGRed}" />
<TextBlock
Grid.Row="4"
HorizontalAlignment="Center"
FontSize="20"
Foreground="{StaticResource HHAst2}">
控制台系统
</TextBlock>
</Grid>
</Border>
</Window>