WinOrganization.xaml
35.6 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
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
<Window
x:Class="RCS.WinClient.Views.Pages.WinOrganization"
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:local="clr-namespace:RCS.WinClient.Views.Pages"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="机构管理"
Width="1400"
Height="800"
AllowsTransparency="True"
Background="Transparent"
Loaded="Window_Loaded"
ResizeMode="CanResizeWithGrip"
WindowStartupLocation="CenterScreen"
WindowStyle="None">
<WindowChrome.WindowChrome>
<WindowChrome CaptionHeight="0" ResizeBorderThickness="2" />
</WindowChrome.WindowChrome>
<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
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="3"
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>
<TabControl Grid.Row="2">
<TabItem Header="AGV管理">
<DataGrid
Name="DGrid_AGV"
AutoGenerateColumns="False"
Background="Transparent"
CanUserAddRows="False"
CanUserDeleteRows="False"
GridLinesVisibility="Vertical"
IsReadOnly="True">
<DataGrid.Columns>
<DataGridTextColumn
Binding="{Binding Path=AgvNo}"
CanUserSort="False"
Header="AGV编号"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=Barcode}"
CanUserSort="False"
Header="RCS地标"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=RCSBarcode}"
CanUserSort="False"
Header="AGV地标"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=XLength}"
CanUserSort="False"
Header="X坐标"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=YLength}"
CanUserSort="False"
Header="Y坐标"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=Reliability}"
CanUserSort="False"
Header="置信"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=SensorStatus}"
CanUserSort="False"
Header="货物状态"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=AgvState}"
CanUserSort="False"
Header="AGV状态"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=AgvDirectionByMap}"
CanUserSort="False"
Header="车头方向"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=Angle}"
CanUserSort="False"
Header="车头角度"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=ActState}"
CanUserSort="False"
Header="动作状态"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=AgvHeight}"
CanUserSort="False"
Header="顶升高度"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=HeightState}"
CanUserSort="False"
Header="顶升状态"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=Voltage}"
CanUserSort="False"
Header="电量"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=IsOnline}"
CanUserSort="False"
Header="在线"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=Heart, StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}"
CanUserSort="False"
Header="心跳接收"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=IsEnable}"
CanUserSort="False"
Header="存在"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=IP}"
CanUserSort="False"
Header="IP地址"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=RunDistance}"
CanUserSort="False"
Header="行驶距离"
IsReadOnly="True" />
</DataGrid.Columns>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem
Name="MItem_AgvOnline"
Click="MItem_AgvOnline_Click"
Header="小车上线" />
<MenuItem
Name="MItem_AgvOut"
Click="MItem_AgvOut_Click"
Header="小车下线" />
<!--<MenuItem Name="MItem_UnLockedChargeStation" Header="解除匹配充电桩" Click="MItem_UnLockedChargeStation_Click"></MenuItem>-->
</ContextMenu>
</DataGrid.ContextMenu>
</DataGrid>
</TabItem>
<TabItem Header="站台信号">
<DataGrid
Name="DGrid_HuahengStaion"
AutoGenerateColumns="False"
Background="Transparent"
CanUserAddRows="False"
CanUserDeleteRows="False"
GridLinesVisibility="Vertical"
IsReadOnly="True">
<DataGrid.Columns>
<DataGridTextColumn
Binding="{Binding Path=EquipmentCode}"
CanUserSort="False"
Header="设备编码"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=EquipmentName}"
CanUserSort="False"
Header="设备名称"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=CADCode}"
CanUserSort="False"
Header="电器编码"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=Online}"
CanUserSort="False"
Header="在线"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=Heart}"
CanUserSort="False"
Header="站台心跳"
IsReadOnly="True" />
<!--<DataGridCheckBoxColumn
Binding="{Binding Path=Placeholder}"
CanUserSort="False"
Header="占位信号"
IsReadOnly="True" />-->
<DataGridCheckBoxColumn
Binding="{Binding Path=Devicessafety}"
CanUserSort="False"
Header="安全信号"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=PutReady}"
CanUserSort="False"
Header="放货就绪"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=PutAllow}"
CanUserSort="False"
Header="允许放"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=PickReady}"
CanUserSort="False"
Header="取货就绪"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=PickAllow}"
CanUserSort="False"
Header="允许取"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=Length}"
CanUserSort="False"
Header="长"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=Width}"
CanUserSort="False"
Header="宽"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=Height}"
CanUserSort="False"
Header="高"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=Weight}"
CanUserSort="False"
Header="重"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=Code}"
CanUserSort="False"
Header="托盘条码"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=RCSHeart}"
CanUserSort="False"
Header="RCS心跳"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=RCSDevicessafety}"
CanUserSort="False"
Header="RCS安全信号"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=RCSPutRequest}"
CanUserSort="False"
Header="RCS请求放"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=RCSPutRuning}"
CanUserSort="False"
Header="RCS放货中"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=RCSPutDone}"
CanUserSort="False"
Header="RCS放完成"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=RCSPickRequest}"
CanUserSort="False"
Header="RCS请求取"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=RCSPickRuning}"
CanUserSort="False"
Header="RCS取货中"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=RCSPickAllow}"
CanUserSort="False"
Header="RCS取完成"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=RCSCode}"
CanUserSort="False"
Header="RCS条码"
IsReadOnly="True" />
</DataGrid.Columns>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem
Name="MItem_ClearHuahengStaion"
Click="MItem_ClearHuahengStaion_Click"
Header="清除信号" />
</ContextMenu>
</DataGrid.ContextMenu>
<DataGrid.RowDetailsTemplate>
<DataTemplate>
<Border
Margin="2"
BorderBrush="Black"
BorderThickness="1">
<StackPanel />
</Border>
</DataTemplate>
</DataGrid.RowDetailsTemplate>
</DataGrid>
</TabItem>
<TabItem Header="站台状态显示" Visibility="Collapsed">
<DataGrid
Name="DGrid_Hoister"
AutoGenerateColumns="False"
Background="Transparent"
CanUserAddRows="False"
CanUserDeleteRows="False"
GridLinesVisibility="Vertical"
IsReadOnly="True">
<DataGrid.Columns>
<DataGridTextColumn
Binding="{Binding Path=hoisterNo}"
CanUserSort="False"
Header="编号"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=read_isGet}"
CanUserSort="False"
Header="PLC工位请求下料"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=write_isGet}"
CanUserSort="False"
Header="AGV答复工位请求下料"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=write_isPut}"
CanUserSort="False"
Header="AGV上料完成"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=read_isPut}"
CanUserSort="False"
Header="PLC答复工位上料完成"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=falanType}"
CanUserSort="False"
Header="法兰类型"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=falanNum}"
CanUserSort="False"
Header="法兰数量"
IsReadOnly="True" />
</DataGrid.Columns>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem
Name="MItem_Hoister"
Click="MItem_Hoister_Click"
Header="清除AGV取货中信号" />
</ContextMenu>
</DataGrid.ContextMenu>
</DataGrid>
</TabItem>
<TabItem Header="充电桩管理">
<DataGrid
Name="DGrid_Charge"
AutoGenerateColumns="False"
Background="Transparent"
CanUserAddRows="False"
CanUserDeleteRows="False"
GridLinesVisibility="Vertical">
<DataGrid.Columns>
<DataGridTextColumn
Binding="{Binding Path=Name}"
CanUserSort="False"
Header="编号"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=StationType}"
CanUserSort="False"
Header="类型"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=IsEnable}"
CanUserSort="False"
Header="可用"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=IsLocked}"
CanUserSort="False"
Header="锁定"
IsReadOnly="True" />
</DataGrid.Columns>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem
Name="MItem_Cforbit"
Click="MItem_Cforbit_Click"
Header="禁用" />
<MenuItem
Name="MItem_CEnable"
Click="MItem_CEnable_Click"
Header="启用" />
<MenuItem
Name="MItem_CUnLock"
Click="MItem_CUnLock_Click"
Header="解除锁定" />
</ContextMenu>
</DataGrid.ContextMenu>
<DataGrid.RowDetailsTemplate>
<DataTemplate>
<Border
Margin="2"
BorderBrush="Black"
BorderThickness="1">
<StackPanel />
</Border>
</DataTemplate>
</DataGrid.RowDetailsTemplate>
</DataGrid>
</TabItem>
<TabItem Header="工位管理">
<DataGrid
Name="DGrid_Station"
AutoGenerateColumns="False"
Background="Transparent"
CanUserAddRows="False"
CanUserDeleteRows="False"
GridLinesVisibility="Vertical">
<DataGrid.Columns>
<DataGridTextColumn
Binding="{Binding Path=Name}"
CanUserSort="False"
Header="名称"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=StationType}"
CanUserSort="False"
Header="类型"
IsReadOnly="True" />
<!--<DataGridTextColumn Header="状态" Binding="{Binding Path=StationState}" IsReadOnly="True" CanUserSort="False"></DataGridTextColumn>-->
<DataGridTextColumn
Binding="{Binding Path=Barcode}"
CanUserSort="False"
Header="点位"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=PreBarcode}"
CanUserSort="False"
Header="附属点位"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=LowHeight}"
CanUserSort="False"
Header="低位高度"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=HighHeight}"
CanUserSort="False"
Header="高位高度"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=IsLocked}"
CanUserSort="False"
Header="锁定"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=IsEnable}"
CanUserSort="False"
Header="启用"
IsReadOnly="True" />
</DataGrid.Columns>
<!--<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem Name="MItem_OnEnable" Header="更改为有托盘" Click="MItem_OnEnable_Click"></MenuItem>
<MenuItem Name="MItem_OffEnable" Header="更改为空托盘" Click="MItem_OffEnable_Click"></MenuItem>
</ContextMenu>
</DataGrid.ContextMenu>-->
<DataGrid.RowDetailsTemplate>
<DataTemplate>
<Border
Margin="2"
BorderBrush="Black"
BorderThickness="1">
<StackPanel />
</Border>
</DataTemplate>
</DataGrid.RowDetailsTemplate>
</DataGrid>
</TabItem>
<TabItem Header="货架管理" Visibility="Collapsed">
<DataGrid
Name="DGrid_Shelf"
AutoGenerateColumns="False"
Background="Transparent"
CanUserAddRows="False"
CanUserDeleteRows="False"
GridLinesVisibility="Vertical"
Visibility="Collapsed">
<DataGrid.Columns>
<DataGridTextColumn
Binding="{Binding Path=strShelfNo}"
CanUserSort="False"
Header="编号"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=strBarcode}"
CanUserSort="False"
Header="固定点"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=strCurrentBarcode}"
CanUserSort="False"
Header="当前点"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=oriShelf}"
CanUserSort="False"
Header="方向"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=isEnable}"
CanUserSort="False"
Header="是否启用"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=isLocked}"
CanUserSort="False"
Header="是否锁定"
IsReadOnly="True" />
</DataGrid.Columns>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem
Name="MItem_ChangeShelf"
Click="MItem_ChangeShelf_Click"
Header="更改货架信息" />
<MenuItem
Name="MItem_ShelfUnLock"
Click="MItem_ShelfUnLock_Click"
Header="解除锁定" />
<MenuItem
Name="MItem_SelectShelf"
Click="MItem_SelectShelf_Click"
Header="查找货架" />
</ContextMenu>
</DataGrid.ContextMenu>
<DataGrid.RowDetailsTemplate>
<DataTemplate>
<Border
Margin="2"
BorderBrush="Black"
BorderThickness="1">
<StackPanel />
</Border>
</DataTemplate>
</DataGrid.RowDetailsTemplate>
</DataGrid>
</TabItem>
<TabItem Header="点位管理">
<DataGrid
Name="DGrid_MatixManager"
AutoGenerateColumns="False"
Background="Transparent"
CanUserAddRows="False"
CanUserDeleteRows="False"
GridLinesVisibility="Vertical">
<DataGrid.Columns>
<DataGridTextColumn
Binding="{Binding Path=Barcode}"
CanUserSort="False"
Header="码值"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=IntX}"
CanUserSort="False"
Header="X值"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=IntY}"
CanUserSort="False"
Header="Y值"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=XLength}"
CanUserSort="False"
Header="X坐标"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=YLength}"
CanUserSort="False"
Header="Y坐标"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=PointType}"
CanUserSort="False"
Header="点位类型"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=AgvAngle}"
CanUserSort="False"
Header="车头角度"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=PreBarcode}"
CanUserSort="False"
Header="附属点码值"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=RegionName}"
CanUserSort="False"
Header="限制区域"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=IsStop}"
CanUserSort="False"
Header="允许驻停"
IsReadOnly="True" />
<DataGridCheckBoxColumn
Binding="{Binding Path=IsEnable}"
CanUserSort="False"
Header="可用"
IsReadOnly="True" />
<DataGridTextColumn
Binding="{Binding Path=LockedAgv.AgvNo}"
CanUserSort="False"
Header="锁定车辆"
IsReadOnly="True" />
</DataGrid.Columns>
<DataGrid.ContextMenu>
<ContextMenu>
<!--<MenuItem Name="MItem_MBarCodeChange" Header="换码" Click="MItem_MBarCodeChange_Click"></MenuItem>-->
<MenuItem
Name="MItem_StopChange"
Click="MItem_StopChange_Click"
Header="启用/禁用驻停" />
<MenuItem
Name="MItem_EnableChange"
Click="MItem_EnableChange_Click"
Header="启用/禁用点位" />
</ContextMenu>
</DataGrid.ContextMenu>
<DataGrid.RowDetailsTemplate>
<DataTemplate>
<Border
Margin="2"
BorderBrush="Black"
BorderThickness="1">
<StackPanel />
</Border>
</DataTemplate>
</DataGrid.RowDetailsTemplate>
</DataGrid>
</TabItem>
</TabControl>
</Grid>
</Border>
</Window>